@sme.up/ketchup 9.6.6 → 9.6.7
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-button-7de4ca64.js → f-button-3cc5c9ba.js} +1 -1
- package/dist/cjs/{f-cell-abe47ff4.js → f-cell-192e5b87.js} +5 -5
- package/dist/cjs/{f-chip-d98809f9.js → f-chip-be2dddb4.js} +2 -2
- package/dist/cjs/{f-image-b22e12c9.js → f-image-98e4e61d.js} +32 -9
- package/dist/cjs/{f-paginator-utils-59c26ee9.js → f-paginator-utils-44d07f52.js} +2 -2
- package/dist/cjs/{f-text-field-4cacd928.js → f-text-field-1efcecb6.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +9 -7
- package/dist/cjs/kup-box.cjs.entry.js +22 -15
- package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +6 -6
- package/dist/cjs/kup-dashboard.cjs.entry.js +4 -4
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-editor.cjs.entry.js +29 -3
- package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +6 -6
- package/dist/cjs/kup-input-panel.cjs.entry.js +70 -40
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
- package/dist/cjs/{kup-manager-118c4e57.js → kup-manager-72ad15fe.js} +1 -1
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
- package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
- package/dist/cjs/kup-planner.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 +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/editor.js +3 -2
- package/dist/collection/assets/input-panel.js +3864 -260
- package/dist/collection/components/kup-box/kup-box.js +15 -8
- package/dist/collection/components/kup-editor/kup-editor-declarations.js +1 -0
- package/dist/collection/components/kup-editor/kup-editor.js +56 -2
- package/dist/collection/components/kup-image/kup-image.js +23 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +12 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +64 -34
- package/dist/collection/f-components/f-image/f-image.js +32 -10
- package/dist/components/kup-autocomplete2.js +35 -9
- package/dist/components/kup-box2.js +15 -8
- package/dist/components/kup-editor.js +30 -2
- package/dist/components/kup-input-panel.js +65 -35
- package/dist/components/kup-manager.js +1 -1
- package/dist/esm/{f-button-e63b4537.js → f-button-07a6ea71.js} +1 -1
- package/dist/esm/{f-cell-262f3239.js → f-cell-819033de.js} +5 -5
- package/dist/esm/{f-chip-eaf517ff.js → f-chip-71ce7cab.js} +2 -2
- package/dist/esm/{f-image-20e217c8.js → f-image-46787842.js} +32 -9
- package/dist/esm/{f-paginator-utils-7ed775bd.js → f-paginator-utils-a8f895d1.js} +2 -2
- package/dist/esm/{f-text-field-17075562.js → f-text-field-52de97f3.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +2 -2
- package/dist/esm/kup-autocomplete_27.entry.js +9 -7
- package/dist/esm/kup-box.entry.js +22 -15
- package/dist/esm/kup-calendar.entry.js +4 -4
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +6 -6
- package/dist/esm/kup-dashboard.entry.js +4 -4
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-editor.entry.js +29 -3
- package/dist/esm/kup-family-tree.entry.js +3 -3
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +6 -6
- package/dist/esm/kup-input-panel.entry.js +70 -40
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +2 -2
- package/dist/esm/{kup-manager-c974dda6.js → kup-manager-7b151628.js} +1 -1
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-photo-frame.entry.js +1 -1
- package/dist/esm/kup-planner.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 +3 -3
- 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-00a5d02c.js +1 -0
- package/dist/ketchup/{p-fa1f706e.js → p-0787925c.js} +1 -1
- package/dist/ketchup/{p-76f39bd6.entry.js → p-1afe847f.entry.js} +1 -1
- package/dist/ketchup/{p-04d047b1.entry.js → p-1f8d3a1e.entry.js} +1 -1
- package/dist/ketchup/{p-8c7009f6.entry.js → p-20030845.entry.js} +1 -1
- package/dist/ketchup/{p-04e2beb5.js → p-34b51a97.js} +1 -1
- package/dist/ketchup/{p-b169b592.js → p-43a89559.js} +1 -1
- package/dist/ketchup/p-45bb8683.entry.js +1 -0
- package/dist/ketchup/{p-dad18517.entry.js → p-475429a1.entry.js} +1 -1
- package/dist/ketchup/{p-d77fbe3d.entry.js → p-4952eba9.entry.js} +1 -1
- package/dist/ketchup/{p-ca3d9d80.js → p-537f66c5.js} +1 -1
- package/dist/ketchup/{p-f6f30bb4.entry.js → p-58093828.entry.js} +1 -1
- package/dist/ketchup/{p-e7eaa6b3.entry.js → p-64099f8c.entry.js} +2 -2
- package/dist/ketchup/p-66ec0b16.entry.js +1 -0
- package/dist/ketchup/{p-e850bdf3.entry.js → p-791dfc1a.entry.js} +1 -1
- package/dist/ketchup/{p-c7e28520.entry.js → p-7ce691cd.entry.js} +1 -1
- package/dist/ketchup/{p-2ea2fd08.entry.js → p-85d44da6.entry.js} +1 -1
- package/dist/ketchup/{p-cb600014.entry.js → p-9106f511.entry.js} +1 -1
- package/dist/ketchup/{p-9fa95bdb.entry.js → p-a323ff1c.entry.js} +1 -1
- package/dist/ketchup/{p-4f4d4b9d.entry.js → p-b42a37ae.entry.js} +1 -1
- package/dist/ketchup/{p-c0be9b3c.entry.js → p-b58cc563.entry.js} +1 -1
- package/dist/ketchup/p-b8aefc56.entry.js +1 -0
- package/dist/ketchup/{p-4561daec.entry.js → p-bb1b8aac.entry.js} +1 -1
- package/dist/ketchup/{p-d9a4f193.entry.js → p-be0070a2.entry.js} +3 -3
- package/dist/ketchup/{p-1b5eb6f4.entry.js → p-cd0f09b3.entry.js} +1 -1
- package/dist/ketchup/{p-02b017a6.entry.js → p-cea71777.entry.js} +1 -1
- package/dist/ketchup/{p-b6e350b5.entry.js → p-d56677f1.entry.js} +1 -1
- package/dist/ketchup/{p-c58a6b55.entry.js → p-e70ff428.entry.js} +1 -1
- package/dist/ketchup/{p-237f4b66.js → p-ecbd1132.js} +1 -1
- package/dist/ketchup/{p-b5a46daf.entry.js → p-ed99792c.entry.js} +1 -1
- package/dist/ketchup/{p-1fc57b76.entry.js → p-f1aa239b.entry.js} +1 -1
- package/dist/ketchup/{p-75b2681f.js → p-f46c2da6.js} +1 -1
- package/dist/types/components/kup-editor/kup-editor-declarations.d.ts +2 -0
- package/dist/types/components/kup-editor/kup-editor.d.ts +8 -1
- package/dist/types/components/kup-image/kup-image.d.ts +5 -0
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +2 -2
- package/dist/types/components.d.ts +22 -2
- package/dist/types/f-components/f-image/f-image-declarations.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ketchup/p-2c3aff15.js +0 -1
- package/dist/ketchup/p-90b07248.entry.js +0 -1
- package/dist/ketchup/p-b9884b65.entry.js +0 -1
- package/dist/ketchup/p-f943ef5b.entry.js +0 -1
|
@@ -39121,6 +39121,7 @@ var KupEditorProps;
|
|
|
39121
39121
|
KupEditorProps["initialEditType"] = "Initializes editor with the specified editor type. Suported values: \"markdown\", \"wysiwyg\".";
|
|
39122
39122
|
KupEditorProps["initialValue"] = "Initializes editor with the specified string.";
|
|
39123
39123
|
KupEditorProps["isReadOnly"] = "Defaults at false. When set, When set, the editor\u2019s content can\u2019t be changed..";
|
|
39124
|
+
KupEditorProps["selectedTab"] = "Sets the markdown editor with the specified tab. Supported values: \"preview\", \"write\".";
|
|
39124
39125
|
KupEditorProps["previewStyle"] = "Initializes editor with the specified preview type. Suported values: \"tab\", \"vertical\".";
|
|
39125
39126
|
KupEditorProps["showSaveButton"] = "When set, a save button shown in the editor\u2019s toolbar.";
|
|
39126
39127
|
KupEditorProps["showToolbar"] = "When set to false, the toolbar will not be shown.";
|
|
@@ -45920,6 +45921,7 @@ const KupEditor$1 = /*@__PURE__*/ proxyCustomElement(class KupEditor extends HTM
|
|
|
45920
45921
|
this.initialValue = '';
|
|
45921
45922
|
this.isReadOnly = false;
|
|
45922
45923
|
this.previewStyle = 'vertical';
|
|
45924
|
+
this.selectedTab = 'write';
|
|
45923
45925
|
this.showSaveButton = true;
|
|
45924
45926
|
this.showToolbar = true;
|
|
45925
45927
|
}
|
|
@@ -45940,7 +45942,14 @@ const KupEditor$1 = /*@__PURE__*/ proxyCustomElement(class KupEditor extends HTM
|
|
|
45940
45942
|
if (this.editor) {
|
|
45941
45943
|
// to give focus to editor
|
|
45942
45944
|
setTimeout(() => {
|
|
45943
|
-
|
|
45945
|
+
if (this.editor) {
|
|
45946
|
+
this.editor.moveCursorToStart();
|
|
45947
|
+
if (this.initialEditType === 'markdown' &&
|
|
45948
|
+
this.previewStyle === 'tab' &&
|
|
45949
|
+
this.selectedTab === 'preview') {
|
|
45950
|
+
this.updateMarkDownPreviewTab();
|
|
45951
|
+
}
|
|
45952
|
+
}
|
|
45944
45953
|
}, 100);
|
|
45945
45954
|
}
|
|
45946
45955
|
}
|
|
@@ -45979,6 +45988,13 @@ const KupEditor$1 = /*@__PURE__*/ proxyCustomElement(class KupEditor extends HTM
|
|
|
45979
45988
|
}
|
|
45980
45989
|
this.updateToolbarVisiblity();
|
|
45981
45990
|
}
|
|
45991
|
+
onMarkdownPreviewTabChanged() {
|
|
45992
|
+
if ((this.initialEditType != 'markdown' &&
|
|
45993
|
+
this.previewStyle != 'tab') ||
|
|
45994
|
+
!this.editor)
|
|
45995
|
+
return;
|
|
45996
|
+
this.updateMarkDownPreviewTab();
|
|
45997
|
+
}
|
|
45982
45998
|
onShowSaveButtonChanged() {
|
|
45983
45999
|
if (this.editor) {
|
|
45984
46000
|
const toolbar = this.editor.getUI().getToolbar();
|
|
@@ -46160,6 +46176,15 @@ const KupEditor$1 = /*@__PURE__*/ proxyCustomElement(class KupEditor extends HTM
|
|
|
46160
46176
|
onEditorAutoSave() {
|
|
46161
46177
|
this.kupAutoSave.emit(this.getSaveAndAutoSaveProps());
|
|
46162
46178
|
}
|
|
46179
|
+
updateMarkDownPreviewTab() {
|
|
46180
|
+
const tabSection = this.rootElement.querySelector('.te-markdown-tab-section');
|
|
46181
|
+
if (!tabSection)
|
|
46182
|
+
return;
|
|
46183
|
+
this.selectedTab === 'preview' &&
|
|
46184
|
+
tabSection.querySelector('button:last-child').click();
|
|
46185
|
+
this.selectedTab === 'write' &&
|
|
46186
|
+
tabSection.querySelector('button').click();
|
|
46187
|
+
}
|
|
46163
46188
|
getToolBarWithSaveButton(includeDefaultItems = true) {
|
|
46164
46189
|
const options = {
|
|
46165
46190
|
toolbarItems: [
|
|
@@ -46234,7 +46259,7 @@ const KupEditor$1 = /*@__PURE__*/ proxyCustomElement(class KupEditor extends HTM
|
|
|
46234
46259
|
__classPrivateFieldGet(this, _KupEditor_kupManager, "f").debug.logRender(this, true);
|
|
46235
46260
|
}
|
|
46236
46261
|
render() {
|
|
46237
|
-
return (h(Host, { key: '
|
|
46262
|
+
return (h(Host, { key: 'f414260cec0a8190bdd9f5958d7eef3199866068' }, h("div", { key: '285a3de0a62a09bac44d88a949f33d415ca433b6', id: componentWrapperId }, h("div", { key: this.rootElement.id, ref: (el) => (this.editorRef = el), class: "kup-editor" }))));
|
|
46238
46263
|
}
|
|
46239
46264
|
disconnectedCallback() {
|
|
46240
46265
|
__classPrivateFieldGet(this, _KupEditor_kupManager, "f").theme.unregister(this);
|
|
@@ -46247,6 +46272,7 @@ const KupEditor$1 = /*@__PURE__*/ proxyCustomElement(class KupEditor extends HTM
|
|
|
46247
46272
|
"initialEditType": ["onInitialEditTypeChanged"],
|
|
46248
46273
|
"isReadOnly": ["onIsReadOnlyChanged"],
|
|
46249
46274
|
"previewStyle": ["onPreviewStyleChanged"],
|
|
46275
|
+
"selectedTab": ["onMarkdownPreviewTabChanged"],
|
|
46250
46276
|
"showSaveButton": ["onShowSaveButtonChanged"],
|
|
46251
46277
|
"showToolbar": ["onShowToolBarChanged"],
|
|
46252
46278
|
"autosaveTimer": ["onAutosaveTimerChanged"]
|
|
@@ -46258,6 +46284,7 @@ const KupEditor$1 = /*@__PURE__*/ proxyCustomElement(class KupEditor extends HTM
|
|
|
46258
46284
|
"initialValue": [1, "initial-value"],
|
|
46259
46285
|
"isReadOnly": [4, "is-read-only"],
|
|
46260
46286
|
"previewStyle": [1, "preview-style"],
|
|
46287
|
+
"selectedTab": [1, "selected-tab"],
|
|
46261
46288
|
"showSaveButton": [4, "show-save-button"],
|
|
46262
46289
|
"showToolbar": [4, "show-toolbar"],
|
|
46263
46290
|
"editor": [32],
|
|
@@ -46274,6 +46301,7 @@ const KupEditor$1 = /*@__PURE__*/ proxyCustomElement(class KupEditor extends HTM
|
|
|
46274
46301
|
"initialEditType": ["onInitialEditTypeChanged"],
|
|
46275
46302
|
"isReadOnly": ["onIsReadOnlyChanged"],
|
|
46276
46303
|
"previewStyle": ["onPreviewStyleChanged"],
|
|
46304
|
+
"selectedTab": ["onMarkdownPreviewTabChanged"],
|
|
46277
46305
|
"showSaveButton": ["onShowSaveButtonChanged"],
|
|
46278
46306
|
"showToolbar": ["onShowToolBarChanged"],
|
|
46279
46307
|
"autosaveTimer": ["onAutosaveTimerChanged"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { N as FTextFieldMDC, c as componentWrapperId, R as FButton, J as FCell, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s } from './kup-autocomplete2.js';
|
|
3
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, c as KupLanguageGeneric
|
|
3
|
+
import { k as kupManagerInstance, F as FCellTypes, g as getProps, s as setProps, c as KupLanguageGeneric } from './kup-manager.js';
|
|
4
4
|
|
|
5
5
|
var KupInputPanelProps;
|
|
6
6
|
(function (KupInputPanelProps) {
|
|
@@ -11,7 +11,7 @@ var KupInputPanelProps;
|
|
|
11
11
|
KupInputPanelProps["optionsHandler"] = "Sets the callback function to recieve options";
|
|
12
12
|
})(KupInputPanelProps || (KupInputPanelProps = {}));
|
|
13
13
|
|
|
14
|
-
const kupInputPanelCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_input_panel_background_color:var(--kup-input-panel-background-color,\n var(--kup-background-color));--kup_input_panel_color:var(--kup-input-panel-color, var(--kup-text-color));--kup_input_panel_font_family:var(--kup-input-panel-font-family, var(--kup-font-family));--kup_input_panel_font_size:var(--kup-input-panel-font-size, var(--kup-font-size));--kup_input_panel_label_alignment:var(--kup-input-panel-label-alignment);--kup_input_panel_label_width:var(--kup-input-panel-label-width);--kup_input_panel_padding:var(--kup-input-panel-padding, 1em 0)}:host .input-panel{background:var(--kup_input_panel_background_color);color:var(--kup_input_panel_color);display:flex;flex-grow:1;overflow:auto;padding:var(--kup_input_panel_padding);position:relative}:host .input-panel--column{flex-direction:column}:host .input-panel__section{display:grid}:host .input-panel__horizontal-section{display:inline-grid}:host .input-panel .f-cell .f-checkbox .checkbox .checkbox__native-control{height:40px;width:40px}";
|
|
14
|
+
const kupInputPanelCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_input_panel_background_color:var(--kup-input-panel-background-color,\n var(--kup-background-color));--kup_input_panel_color:var(--kup-input-panel-color, var(--kup-text-color));--kup_input_panel_font_family:var(--kup-input-panel-font-family, var(--kup-font-family));--kup_input_panel_font_size:var(--kup-input-panel-font-size, var(--kup-font-size));--kup_input_panel_label_alignment:var(--kup-input-panel-label-alignment);--kup_input_panel_label_width:var(--kup-input-panel-label-width);--kup_input_panel_padding:var(--kup-input-panel-padding, 1em 0)}:host .input-panel{background:var(--kup_input_panel_background_color);color:var(--kup_input_panel_color);display:flex;flex-grow:1;overflow:auto;padding:var(--kup_input_panel_padding);position:relative;gap:2rem}:host .input-panel--column{flex-direction:column}:host .input-panel__section{display:grid}:host .input-panel__section .f-cell__content>*{width:100%}:host .input-panel__horizontal-section{display:inline-grid}:host .input-panel .f-cell .f-checkbox .checkbox .checkbox__native-control{height:40px;width:40px}:host .input-panel__label_container{display:flex;flex-direction:column;justify-content:center}:host .input-panel__label_container>.f-cell{flex:1}";
|
|
15
15
|
const KupInputPanelStyle0 = kupInputPanelCss;
|
|
16
16
|
|
|
17
17
|
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
@@ -30,7 +30,7 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
|
|
|
30
30
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
31
31
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
32
32
|
};
|
|
33
|
-
var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_renderSection, _KupInputPanel_renderField, _KupInputPanel_mapCells, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_tableOptionsAdapter;
|
|
33
|
+
var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_eventNames, _KupInputPanel_listeners, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_getLabelComponent, _KupInputPanel_renderSection, _KupInputPanel_renderField, _KupInputPanel_mapCells, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_tableOptionsAdapter, _KupInputPanel_getAutocompleteEventCallback;
|
|
34
34
|
const dom = document.documentElement;
|
|
35
35
|
const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel extends HTMLElement {
|
|
36
36
|
constructor() {
|
|
@@ -50,6 +50,14 @@ const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel ext
|
|
|
50
50
|
['SmeupTable', __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_tableOptionsAdapter).bind(this)],
|
|
51
51
|
]));
|
|
52
52
|
_KupInputPanel_originalData.set(this, null);
|
|
53
|
+
_KupInputPanel_eventNames.set(this, new Map([
|
|
54
|
+
[
|
|
55
|
+
FCellTypes.AUTOCOMPLETE,
|
|
56
|
+
['kup-autocomplete-input', 'kup-autocomplete-iconclick'],
|
|
57
|
+
],
|
|
58
|
+
[FCellTypes.COMBOBOX, ['kup-combobox-iconclick']],
|
|
59
|
+
]));
|
|
60
|
+
_KupInputPanel_listeners.set(this, []);
|
|
53
61
|
this.customStyle = '';
|
|
54
62
|
this.data = null;
|
|
55
63
|
this.hiddenSubmitButton = false;
|
|
@@ -63,8 +71,12 @@ const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel ext
|
|
|
63
71
|
/* W a t c h e r s */
|
|
64
72
|
/*-------------------------------------------------*/
|
|
65
73
|
onDataChanged() {
|
|
66
|
-
|
|
67
|
-
|
|
74
|
+
__classPrivateFieldSet(this, _KupInputPanel_originalData, structuredClone(this.data), "f");
|
|
75
|
+
if (__classPrivateFieldGet(this, _KupInputPanel_listeners, "f").length) {
|
|
76
|
+
__classPrivateFieldGet(this, _KupInputPanel_listeners, "f").map(({ event, handler }) => {
|
|
77
|
+
this.rootElement.removeEventListener(event, handler);
|
|
78
|
+
});
|
|
79
|
+
__classPrivateFieldSet(this, _KupInputPanel_listeners, [], "f");
|
|
68
80
|
}
|
|
69
81
|
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapCells).call(this, this.data);
|
|
70
82
|
}
|
|
@@ -108,22 +120,6 @@ const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel ext
|
|
|
108
120
|
componentDidLoad() {
|
|
109
121
|
this.kupReady.emit({ comp: this, id: this.rootElement.id });
|
|
110
122
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logLoad(this, true);
|
|
111
|
-
// this.handleEventsCallbacks.map((cbData) => {
|
|
112
|
-
// this.rootElement.addEventListener(cbData.eventName, (e: any) => {
|
|
113
|
-
// const inputPanelEvent: InputPanelEvent = {
|
|
114
|
-
// state: this.inputPanelCells.find((data) =>
|
|
115
|
-
// data.cells.find(
|
|
116
|
-
// (cell) => cell.column.name === e.detail.id
|
|
117
|
-
// )
|
|
118
|
-
// ).cells,
|
|
119
|
-
// data: {
|
|
120
|
-
// field: e.detail.id,
|
|
121
|
-
// value: e.detail.inputValue || e.detail.value,
|
|
122
|
-
// },
|
|
123
|
-
// };
|
|
124
|
-
// cbData.eventCallback(inputPanelEvent);
|
|
125
|
-
// });
|
|
126
|
-
// });
|
|
127
123
|
}
|
|
128
124
|
componentWillRender() {
|
|
129
125
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logRender(this, false);
|
|
@@ -145,7 +141,7 @@ const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel ext
|
|
|
145
141
|
h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
|
|
146
142
|
]
|
|
147
143
|
: this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
|
|
148
|
-
return (h(Host, { key: '
|
|
144
|
+
return (h(Host, { key: 'ae9e00db322fcda0ee1f996c5ba7f92d337ab03c' }, h("style", { key: '0aea3b4b3c388f5887a5440d05a7cafa1f1c24aa' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '181bc90607f56adf9b5ee12f0716693ed425cd88', id: componentWrapperId }, inputPanelContent)));
|
|
149
145
|
}
|
|
150
146
|
disconnectedCallback() {
|
|
151
147
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
|
|
@@ -169,7 +165,7 @@ const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel ext
|
|
|
169
165
|
}, undefined, {
|
|
170
166
|
"data": ["onDataChanged"]
|
|
171
167
|
}]);
|
|
172
|
-
_KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = new WeakMap(), _KupInputPanel_originalData = new WeakMap(), _KupInputPanel_instances = new WeakSet(), _KupInputPanel_renderRow = function _KupInputPanel_renderRow(inputPanelCell) {
|
|
168
|
+
_KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = new WeakMap(), _KupInputPanel_originalData = new WeakMap(), _KupInputPanel_eventNames = new WeakMap(), _KupInputPanel_listeners = new WeakMap(), _KupInputPanel_instances = new WeakSet(), _KupInputPanel_renderRow = function _KupInputPanel_renderRow(inputPanelCell) {
|
|
173
169
|
var _a;
|
|
174
170
|
const layout = inputPanelCell.row.layout;
|
|
175
171
|
const horizontal = (layout === null || layout === void 0 ? void 0 : layout.horizontal) || false;
|
|
@@ -198,11 +194,24 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
198
194
|
column,
|
|
199
195
|
row,
|
|
200
196
|
component: this,
|
|
201
|
-
editable:
|
|
197
|
+
editable: true,
|
|
202
198
|
renderKup: true,
|
|
203
199
|
setSizes: true,
|
|
204
200
|
};
|
|
201
|
+
const label = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getLabelComponent).call(this, cell, column.title);
|
|
202
|
+
if (label) {
|
|
203
|
+
return (h("div", { class: { 'input-panel__label_container': true } }, label, h(FCell, Object.assign({}, cellProps))));
|
|
204
|
+
}
|
|
205
205
|
return h(FCell, Object.assign({}, cellProps));
|
|
206
|
+
}, _KupInputPanel_getLabelComponent = function _KupInputPanel_getLabelComponent(cell, label) {
|
|
207
|
+
if (!label) {
|
|
208
|
+
return null;
|
|
209
|
+
}
|
|
210
|
+
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
211
|
+
if (cellType === FCellTypes.RADIO) {
|
|
212
|
+
return h("span", null, label);
|
|
213
|
+
}
|
|
214
|
+
return null;
|
|
206
215
|
}, _KupInputPanel_renderSection = function _KupInputPanel_renderSection(cells, section) {
|
|
207
216
|
var _a, _b, _c, _d;
|
|
208
217
|
let content = [];
|
|
@@ -257,7 +266,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
257
266
|
.filter((column) => column.visible)
|
|
258
267
|
.map((column) => {
|
|
259
268
|
const cell = structuredClone(row.cells[column.name]);
|
|
260
|
-
const mappedCell = Object.assign(Object.assign({}, cell), { data: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapData).call(this, cell, column)), { id: column.name }), slotData: __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_slotData).call(this, cell, column), isEditable:
|
|
269
|
+
const mappedCell = Object.assign(Object.assign({}, cell), { data: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapData).call(this, cell, column)), { disabled: !cell.editable, id: column.name }), slotData: __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_slotData).call(this, cell, column), isEditable: true });
|
|
261
270
|
return { column, cell: mappedCell };
|
|
262
271
|
});
|
|
263
272
|
return [...inpuPanelCells, { cells, row }];
|
|
@@ -305,7 +314,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
305
314
|
]);
|
|
306
315
|
const adapter = dataAdapterMap.get(cellType);
|
|
307
316
|
return adapter
|
|
308
|
-
? adapter(options, fieldLabel, currentValue, cell.
|
|
317
|
+
? adapter(options, fieldLabel, currentValue, cell, col.name)
|
|
309
318
|
: null;
|
|
310
319
|
}, _KupInputPanel_slotData = function _KupInputPanel_slotData(cell, col) {
|
|
311
320
|
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
@@ -352,7 +361,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
352
361
|
{ data: { dropdownOnly: false, label: 'Valerio' } },
|
|
353
362
|
],
|
|
354
363
|
};
|
|
355
|
-
}, _KupInputPanel_CMBandACPAdapter = function _KupInputPanel_CMBandACPAdapter(rawOptions, fieldLabel, currentValue,
|
|
364
|
+
}, _KupInputPanel_CMBandACPAdapter = function _KupInputPanel_CMBandACPAdapter(rawOptions, fieldLabel, currentValue, cell, id) {
|
|
356
365
|
const configCMandACP = {
|
|
357
366
|
data: {
|
|
358
367
|
'kup-text-field': {
|
|
@@ -365,19 +374,29 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
365
374
|
data: [],
|
|
366
375
|
},
|
|
367
376
|
},
|
|
377
|
+
initialValue: currentValue,
|
|
368
378
|
label: fieldLabel,
|
|
369
379
|
};
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
return
|
|
375
|
-
|
|
380
|
+
if (cell.fun) {
|
|
381
|
+
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
382
|
+
const evNames = __classPrivateFieldGet(this, _KupInputPanel_eventNames, "f").get(cellType);
|
|
383
|
+
if (!evNames) {
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
evNames.map((evName) => {
|
|
387
|
+
const handler = (e) => {
|
|
388
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getAutocompleteEventCallback).call(this, e.detail, cell.fun, configCMandACP, id, currentValue);
|
|
389
|
+
};
|
|
390
|
+
this.rootElement.addEventListener(evName, handler);
|
|
391
|
+
__classPrivateFieldGet(this, _KupInputPanel_listeners, "f").push({
|
|
392
|
+
event: evName,
|
|
393
|
+
handler,
|
|
394
|
+
});
|
|
376
395
|
});
|
|
377
396
|
}
|
|
378
|
-
else if (
|
|
397
|
+
else if (rawOptions) {
|
|
379
398
|
configCMandACP.data['kup-list'].data =
|
|
380
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this,
|
|
399
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this, rawOptions, currentValue);
|
|
381
400
|
}
|
|
382
401
|
return configCMandACP;
|
|
383
402
|
}, _KupInputPanel_CHKAdapter = function _KupInputPanel_CHKAdapter(_options, fieldLabel, currentValue) {
|
|
@@ -439,6 +458,17 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
439
458
|
}));
|
|
440
459
|
})
|
|
441
460
|
.flat();
|
|
461
|
+
}, _KupInputPanel_getAutocompleteEventCallback = function _KupInputPanel_getAutocompleteEventCallback(detail, fun, data, id, currentValue) {
|
|
462
|
+
if (detail.id !== id ||
|
|
463
|
+
detail.open === false) {
|
|
464
|
+
return;
|
|
465
|
+
}
|
|
466
|
+
this.optionsHandler(fun, detail.inputValue, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_reverseMapCells).call(this)).then((options) => {
|
|
467
|
+
var _a;
|
|
468
|
+
data.data['kup-list'].data =
|
|
469
|
+
(_a = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this, options, currentValue)) !== null && _a !== void 0 ? _a : [];
|
|
470
|
+
detail.comp.refresh();
|
|
471
|
+
});
|
|
442
472
|
};
|
|
443
473
|
function defineCustomElement$1() {
|
|
444
474
|
if (typeof customElements === "undefined") {
|
|
@@ -5777,7 +5777,7 @@ const fCheckboxCss$1 = fCheckboxCss;
|
|
|
5777
5777
|
const fChipCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.f-chip{--kup_chip_background_color:var( --kup-chip-background-color, var(--kup-background-color) );--kup_chip_border_radius:var(--kup-chip-border-radius, 16px);--kup_chip_font_family:var(--kup-chip-font-family, var(--kup-font-family));--kup_chip_font_size:var(--kup-chip-font-size, var(--kup-font-size));--kup_chip_font_weight:var(--kup-chip-font-weight, var(--kup-font-weight));--kup_chip_height:var(--kup-chip-height, 32px);--kup_chip_indent_multiplier:var(--kup-chip-indent-multiplier, 10);--kup_chip_margin:var(--kup-chip-margin, 4px);--kup_chip_padding:var(--kup-chip-padding, 0 12px);--kup_chip_primary_color:var( --kup-chip-primary-color, var(--kup-primary-color) );--kup_chip_primary_color_rgb:var( --kup-chip-primary-color-rgb, var(--kup-primary-color-rgb) );--kup_chip_text_color:var(--kup-chip-text-color, var(--kup-text-color));--kup_chip_text_color_rgb:var( --kup-chip-text-color-rgb, var(--kup-text-color-rgb) );font-family:var(--kup_chip_font_family);font-size:var(--kup_chip_font_size)}.f-chip .chip-set{padding:4px;display:flex;flex-wrap:wrap;box-sizing:border-box}.f-chip .chip-set .chip-set__item{display:flex;flex-direction:column}.f-chip .chip-set .chip-set__wrapper{display:flex}.f-chip .chip-set .chip-set__wrapper .dropdown-icon{cursor:pointer;margin:auto 0;transform:rotate(180deg);transform-origin:unset}.f-chip .chip-set .chip-set__wrapper .dropdown-icon:hover{opacity:.75}.f-chip .chip-set .chip-set__wrapper--hidden-children .dropdown-icon{transform:unset}.f-chip .chip-set .chip-set__indent{width:calc(var(--kup_chip_margin)*var(--kup_chip_indent_offset)*var(--kup_chip_indent_multiplier))}.f-chip .chip-set .chip{align-items:center;background-color:var(--kup_chip_background_color);background-image:linear-gradient(to right, rgba(var(--kup_chip_text_color_rgb), 0.1) 0%, rgba(var(--kup_chip_text_color_rgb), 0.1) 0.1%, rgba(var(--kup_chip_text_color_rgb), 0.1));border-radius:var(--kup_chip_border_radius);border-width:0;box-sizing:border-box;color:var(--kup_chip_text_color);cursor:pointer;display:inline-flex;font-size:.875em;font-weight:var(--kup_chip_font_weight);height:var(--kup_chip_height);letter-spacing:0.0178571429em;margin:var(--kup_chip_margin);max-width:max-content;outline:none;padding:var(--kup_chip_padding);position:relative;text-decoration:inherit;text-transform:inherit}.f-chip .chip-set .chip .chip__icon--leading{color:var(--kup_chip_text_color)}.f-chip .chip-set .chip .chip__icon--leading:not(.chip__icon--leading-hidden){margin-left:-4px;margin-right:6px}.f-chip .chip-set .chip .chip__icon--leading .chip__icon--trailing{position:relative}.f-chip .chip-set .chip--only-icon .chip__icon.f-image{margin:0}.f-chip .chip-set .chip .chip__icon{border-radius:50%;outline:none;vertical-align:middle}.f-chip .chip-set .chip .chip__icon .chip_icon--leading:not(.chip__icon--leading-hidden){width:20px;height:20px;font-size:20px}.f-chip .chip-set .chip .chip__icon .f-image__icon{margin:auto;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-chip .chip-set .chip .chip__checkmark-svg{width:0;height:20px;transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.f-chip .chip-set .chip .chip__checkmark-path{transition:stroke-dashoffset 150ms 50ms cubic-bezier(0.4, 0, 0.6, 1);stroke-width:2px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.f-chip .chip-set .chip svg path{color:var(--kup_chip_text_color);stroke:var(--kup_chip_text_color)}.f-chip .chip-set .chip .kup-icon{background:var(--kup_chip_text_color);display:block;width:18px;height:18px}.f-chip .chip-set .chip .chip__primary-action{outline:none}.f-chip .chip-set .chip .chip__primary-action .chip__text{white-space:nowrap}.f-chip .chip-set.chip-set--choice .chip--selected{background-color:var(--kup_chip_background_color);background-image:linear-gradient(to right, rgba(var(--kup_chip_primary_color_rgb), 0.25) 0%, rgba(var(--kup_chip_primary_color_rgb), 0.25) 0.1%, rgba(var(--kup_chip_primary_color_rgb), 0.25));color:var(--kup_chip_primary_color)}.f-chip .chip-set.chip-set--filter .chip__icon--leading{opacity:1;transition:opacity 75ms linear;transition-delay:-50ms}.f-chip .chip-set.chip-set--filter .chip__icon--leading+.chip__checkmark{opacity:0;transition:opacity 75ms linear;transition-delay:80ms}.f-chip .chip-set.chip-set--filter .chip__icon--leading+.chip__checkmark .chip__checkmark-svg{transition:width 0ms}.f-chip .chip-set.chip-set--filter .chip__icon--leading.chip__icon--leading-hidden{display:none;width:0;opacity:0}.f-chip .chip-set.chip-set--filter .chip__icon--leading.chip__icon--leading-hidden+.chip__checkmark{height:20px;width:20px;opacity:1}.f-chip .chip-set.chip-set--filter .chip--selected .chip__icon--leading{opacity:0}.f-chip .chip-set.chip-set--filter .chip--selected .chip__checkmark-path{stroke-dashoffset:0}.f-chip .chip-set.chip-set--filter .chip--selected .chip__checkmark{margin-left:-4px;margin-right:4px}.f-chip .chip-set.chip-set--filter .chip--selected .chip__checkmark .chip__checkmark-svg{height:20px;width:20px}.f-chip .chip-set.chip-set--input .kup-clear-icon{margin-left:4px;margin-right:-4px}.f-chip .chip-set.chip-set--input .kup-clear-icon:hover{opacity:.75}.f-chip :not(svg){transform-origin:0px 0px}.f-chip.kup-danger{--kup-chip-primary-color:var(--kup-danger-color);--kup-chip-primary-color-rgb:var(--kup-danger-color-rgb)}.f-chip.kup-info{--kup-chip-primary-color:var(--kup-info-color);--kup-chip-primary-color-rgb:var(--kup-info-color-rgb)}.f-chip.kup-secondary{--kup-chip-primary-color:var(--kup-secondary-color);--kup-chip-primary-color-rgb:var(--kup-secondary-color-rgb)}.f-chip.kup-success{--kup-chip-primary-color:var(--kup-success-color);--kup-chip-primary-color-rgb:var(--kup-success-color-rgb)}.f-chip.kup-warning{--kup-chip-primary-color:var(--kup-warning-color);--kup-chip-primary-color-rgb:var(--kup-warning-color-rgb)}.f-chip .kup-icon.kup-dropdown-icon{-webkit-mask:var(--kup-dropdown-icon);mask:var(--kup-dropdown-icon);transition:opacity 125ms,transform .15s}.f-chip .kup-icon.kup-clear-icon{-webkit-mask:var(--kup-clear-icon);mask:var(--kup-clear-icon)}";
|
|
5778
5778
|
const fChipCss$1 = fChipCss;
|
|
5779
5779
|
|
|
5780
|
-
const fImageCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.f-image{display:block;margin:auto;position:relative;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image.kup-fit img{max-width:max-content;object-fit:contain}.f-image img{display:block;margin:auto;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image .f-image__css{overflow:hidden;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image .f-image__icon{margin:auto;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image .css-step.bottom-aligned{bottom:0;position:absolute}";
|
|
5780
|
+
const fImageCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.f-image{display:block;margin:auto;position:relative;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image.kup-fit img{max-width:max-content;object-fit:contain}.f-image img{display:block;margin:auto;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image .f-image__css{overflow:hidden;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image .f-image__icon{margin:auto;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image .f-image__placeholder{height:100%;position:absolute;width:100%}.f-image .f-image__hidden{visibility:hidden}.f-image .css-step.bottom-aligned{bottom:0;position:absolute}";
|
|
5781
5781
|
const fImageCss$1 = fImageCss;
|
|
5782
5782
|
|
|
5783
5783
|
const fPaginatorCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.f-paginator{margin:.5em 0;display:flex;flex-wrap:wrap;align-items:start}.f-paginator .prev-page,.f-paginator .next-page{margin:0 .25em}.f-paginator kup-combobox{display:inline-block;margin:0 .25em;z-index:0}.f-paginator kup-combobox.page-selector{width:100px}.f-paginator kup-combobox.rows-selector{width:150px}";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-95bb3410.js';
|
|
2
2
|
import { F as FButtonStyling } from './f-button-declarations-9bdc6f26.js';
|
|
3
|
-
import { F as FImage } from './f-image-
|
|
3
|
+
import { F as FImage } from './f-image-46787842.js';
|
|
4
4
|
|
|
5
5
|
/*-------------------------------------------------*/
|
|
6
6
|
/* C o m p o n e n t */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a6 as editableTypes, a7 as kupTypes, c as KupThemeColorValues, a3 as FCellTypes, a8 as KupTagNames, F as FCellShapes, a9 as fullWidthFieldsComps, aa as FCellClasses, ab as autoCenterComps, ac as getCellValueForDisplay, ad as FCellEvents, d as KupDebugCategory } from './kup-manager-
|
|
1
|
+
import { a6 as editableTypes, a7 as kupTypes, c as KupThemeColorValues, a3 as FCellTypes, a8 as KupTagNames, F as FCellShapes, a9 as fullWidthFieldsComps, aa as FCellClasses, ab as autoCenterComps, ac as getCellValueForDisplay, ad as FCellEvents, d as KupDebugCategory } from './kup-manager-7b151628.js';
|
|
2
2
|
import { h, g as getAssetPath } from './index-95bb3410.js';
|
|
3
3
|
import { F as FCheckbox } from './f-checkbox-61c142b8.js';
|
|
4
|
-
import { F as FTextField } from './f-text-field-
|
|
5
|
-
import { F as FImage } from './f-image-
|
|
6
|
-
import { F as FChipType, a as FChip } from './f-chip-
|
|
7
|
-
import { F as FButton } from './f-button-
|
|
4
|
+
import { F as FTextField } from './f-text-field-52de97f3.js';
|
|
5
|
+
import { F as FImage } from './f-image-46787842.js';
|
|
6
|
+
import { F as FChipType, a as FChip } from './f-chip-71ce7cab.js';
|
|
7
|
+
import { F as FButton } from './f-button-07a6ea71.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Props of the kup-list component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-95bb3410.js';
|
|
2
|
-
import { F as FImage } from './f-image-
|
|
3
|
-
import { a as KupThemeIconValues, l as KupLanguageGeneric, c as KupThemeColorValues } from './kup-manager-
|
|
2
|
+
import { F as FImage } from './f-image-46787842.js';
|
|
3
|
+
import { a as KupThemeIconValues, l as KupLanguageGeneric, c as KupThemeColorValues } from './kup-manager-7b151628.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Types of the f-chip component.
|
|
@@ -12,6 +12,9 @@ var FImageShape;
|
|
|
12
12
|
/*-------------------------------------------------*/
|
|
13
13
|
/* C o m p o n e n t */
|
|
14
14
|
/*-------------------------------------------------*/
|
|
15
|
+
let img;
|
|
16
|
+
let placeholder;
|
|
17
|
+
const HIDDEN_CLASS = 'f-image__hidden';
|
|
15
18
|
const FImage = (props) => {
|
|
16
19
|
let el;
|
|
17
20
|
let style;
|
|
@@ -30,7 +33,7 @@ const FImage = (props) => {
|
|
|
30
33
|
'--kup_image_height': props.sizeY ? props.sizeY : '100%',
|
|
31
34
|
'--kup_image_width': props.sizeX ? props.sizeX : '100%',
|
|
32
35
|
};
|
|
33
|
-
el = createIcon(props);
|
|
36
|
+
el = createIcon(props.resource, props.color);
|
|
34
37
|
}
|
|
35
38
|
}
|
|
36
39
|
else if (props.data) {
|
|
@@ -47,33 +50,53 @@ const FImage = (props) => {
|
|
|
47
50
|
}
|
|
48
51
|
}
|
|
49
52
|
return (h("div", Object.assign({ class: `f-image ${props.wrapperClass ? props.wrapperClass : ''} ` }, props.dataSet, { id: props.id, style: style, title: props.title, onClick: props.onClick }),
|
|
53
|
+
props.placeholderResource
|
|
54
|
+
? createIcon(props.placeholderResource, props.color, 'f-image__placeholder ' + HIDDEN_CLASS)
|
|
55
|
+
: undefined,
|
|
50
56
|
el,
|
|
51
57
|
...badgeCollection));
|
|
52
58
|
};
|
|
53
59
|
/*-------------------------------------------------*/
|
|
54
60
|
/* M e t h o d s */
|
|
55
61
|
/*-------------------------------------------------*/
|
|
56
|
-
function createIcon(
|
|
62
|
+
function createIcon(icon, color, iconClass = 'f-image__icon') {
|
|
57
63
|
const classObj = {
|
|
58
|
-
|
|
64
|
+
[iconClass]: true,
|
|
59
65
|
};
|
|
60
66
|
const style = {
|
|
61
|
-
background:
|
|
67
|
+
background: color ? color : `var(--kup-gray-color-70)`,
|
|
62
68
|
};
|
|
63
|
-
if (
|
|
64
|
-
let themeIcon =
|
|
69
|
+
if (icon.indexOf('--kup') > -1) {
|
|
70
|
+
let themeIcon = icon.replace('--', '');
|
|
65
71
|
classObj['kup-icon'] = true;
|
|
66
72
|
classObj[themeIcon] = true;
|
|
67
73
|
}
|
|
68
74
|
else {
|
|
69
|
-
const path = getAssetPath(`./assets/svg/${
|
|
75
|
+
const path = getAssetPath(`./assets/svg/${icon}.svg`);
|
|
70
76
|
style.mask = `url('${path}') no-repeat center`;
|
|
71
77
|
style.webkitMask = `url('${path}') no-repeat center`;
|
|
72
78
|
}
|
|
73
|
-
return h("div", { class: classObj,
|
|
79
|
+
return (h("div", { class: classObj, ref: (el) => {
|
|
80
|
+
if (iconClass.indexOf('placeholder') > 1) {
|
|
81
|
+
placeholder = el;
|
|
82
|
+
}
|
|
83
|
+
}, style: style }));
|
|
74
84
|
}
|
|
75
85
|
function createImage(props) {
|
|
76
|
-
return h("img", {
|
|
86
|
+
return (h("img", { class: props.placeholderResource ? HIDDEN_CLASS : '', onLoad: (e) => {
|
|
87
|
+
if (props.onLoad) {
|
|
88
|
+
props.onLoad(e);
|
|
89
|
+
}
|
|
90
|
+
if (placeholder) {
|
|
91
|
+
placeholder.classList.add(HIDDEN_CLASS);
|
|
92
|
+
img.classList.remove(HIDDEN_CLASS);
|
|
93
|
+
}
|
|
94
|
+
}, onError: () => {
|
|
95
|
+
if (placeholder) {
|
|
96
|
+
placeholder.classList.remove(HIDDEN_CLASS);
|
|
97
|
+
img.classList.add(HIDDEN_CLASS);
|
|
98
|
+
}
|
|
99
|
+
}, ref: (el) => (img = el), src: props.resource }));
|
|
77
100
|
}
|
|
78
101
|
function createBar(data) {
|
|
79
102
|
const steps = [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as Filters, E as FilterInterval, C as getValueForDisplay, A as getValueForDisplay2, ac as getCellValueForDisplay, u as getColumnByName, w as KupObjects, ae as KupData, af as compareCell, I as TotalMode, $ as SortMode, ag as KupLanguagePage, q as KupLanguageRow, l as KupLanguageGeneric } from './kup-manager-
|
|
1
|
+
import { B as Filters, E as FilterInterval, C as getValueForDisplay, A as getValueForDisplay2, ac as getCellValueForDisplay, u as getColumnByName, w as KupObjects, ae as KupData, af as compareCell, I as TotalMode, $ as SortMode, ag as KupLanguagePage, q as KupLanguageRow, l as KupLanguageGeneric } from './kup-manager-7b151628.js';
|
|
2
2
|
import { K as KupDatesFormats } from './kup-dates-26a56bf7.js';
|
|
3
3
|
import { h } from './index-95bb3410.js';
|
|
4
|
-
import { F as FButton } from './f-button-
|
|
4
|
+
import { F as FButton } from './f-button-07a6ea71.js';
|
|
5
5
|
import { F as FButtonStyling } from './f-button-declarations-9bdc6f26.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, g as getAssetPath } from './index-95bb3410.js';
|
|
2
|
-
import { a as KupThemeIconValues } from './kup-manager-
|
|
2
|
+
import { a as KupThemeIconValues } from './kup-manager-7b151628.js';
|
|
3
3
|
|
|
4
4
|
const dom = document.documentElement;
|
|
5
5
|
/*-------------------------------------------------*/
|
package/dist/esm/index.js
CHANGED