@sme.up/ketchup 6.8.0 → 7.0.0
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-229c63fd.js → f-button-293afb08.js} +1 -1
- package/dist/cjs/{f-cell-dd006395.js → f-cell-06b323ca.js} +11 -8
- package/dist/cjs/{f-chip-f2c369fd.js → f-chip-1c944c07.js} +2 -2
- package/dist/cjs/{f-image-847a6ddf.js → f-image-bfb4e4c9.js} +1 -1
- package/dist/cjs/{f-paginator-utils-cedc4b3e.js → f-paginator-utils-c9560cfd.js} +2 -2
- package/dist/cjs/{f-text-field-fe85187d.js → f-text-field-e99c5a26.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_26.cjs.entry.js +166 -23
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-dash-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-dash_2.cjs.entry.js +1 -1
- 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-family-tree.cjs.entry.js +3 -3
- 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-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
- package/dist/cjs/{kup-manager-c53468cd.js → kup-manager-1e882e61.js} +7 -2
- 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-photo-frame.cjs.entry.js +1 -1
- 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/card.js +9 -2
- package/dist/collection/assets/data-table.js +4 -1
- package/dist/collection/components/kup-card/box/kup-card-box.js +114 -5
- package/dist/collection/components/kup-card/kup-card.css +171 -21
- package/dist/collection/components/kup-chip/kup-chip.js +2 -2
- package/dist/collection/components/kup-data-table/kup-data-table.js +10 -3
- package/dist/collection/components/kup-form/kup-form-declarations.js +3 -0
- package/dist/collection/components/kup-form/kup-form.js +56 -3
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +2 -0
- package/dist/collection/f-components/f-cell/f-cell.js +7 -4
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +4 -1
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
- package/dist/components/index.d.ts +68 -0
- package/dist/components/index.js +48 -0
- package/dist/components/kup-accordion.d.ts +11 -0
- package/dist/components/kup-accordion.js +363 -0
- package/dist/components/kup-autocomplete.d.ts +11 -0
- package/dist/components/kup-autocomplete.js +6 -0
- package/dist/components/kup-autocomplete2.js +46145 -0
- package/dist/components/kup-badge.d.ts +11 -0
- package/dist/components/kup-badge.js +6 -0
- package/dist/components/kup-box.d.ts +11 -0
- package/dist/components/kup-box.js +6 -0
- package/dist/components/kup-box2.js +1412 -0
- package/dist/components/kup-button-list.d.ts +11 -0
- package/dist/components/kup-button-list.js +6 -0
- package/dist/components/kup-button.d.ts +11 -0
- package/dist/components/kup-button.js +6 -0
- package/dist/components/kup-calendar.d.ts +11 -0
- package/dist/components/kup-calendar.js +14818 -0
- package/dist/components/kup-card.d.ts +11 -0
- package/dist/components/kup-card.js +6 -0
- package/dist/components/kup-cell.d.ts +11 -0
- package/dist/components/kup-cell.js +332 -0
- package/dist/components/kup-chart.d.ts +11 -0
- package/dist/components/kup-chart.js +6 -0
- package/dist/components/kup-checkbox.d.ts +11 -0
- package/dist/components/kup-checkbox.js +6 -0
- package/dist/components/kup-chip.d.ts +11 -0
- package/dist/components/kup-chip.js +6 -0
- package/dist/components/kup-color-picker.d.ts +11 -0
- package/dist/components/kup-color-picker.js +6 -0
- package/dist/components/kup-combobox.d.ts +11 -0
- package/dist/components/kup-combobox.js +6 -0
- package/dist/components/kup-dash-list.d.ts +11 -0
- package/dist/components/kup-dash-list.js +275 -0
- package/dist/components/kup-dash.d.ts +11 -0
- package/dist/components/kup-dash.js +6 -0
- package/dist/components/kup-dash2.js +223 -0
- package/dist/components/kup-dashboard.d.ts +11 -0
- package/dist/components/kup-dashboard.js +559 -0
- package/dist/components/kup-data-table.d.ts +11 -0
- package/dist/components/kup-data-table.js +6 -0
- package/dist/components/kup-date-picker.d.ts +11 -0
- package/dist/components/kup-date-picker.js +6 -0
- package/dist/components/kup-drawer.d.ts +11 -0
- package/dist/components/kup-drawer.js +303 -0
- package/dist/components/kup-dropdown-button.d.ts +11 -0
- package/dist/components/kup-dropdown-button.js +6 -0
- package/dist/components/kup-echart.d.ts +11 -0
- package/dist/components/kup-echart.js +6 -0
- package/dist/components/kup-echart2.js +94317 -0
- package/dist/components/kup-family-tree.d.ts +11 -0
- package/dist/components/kup-family-tree.js +623 -0
- package/dist/components/kup-form.d.ts +11 -0
- package/dist/components/kup-form.js +6 -0
- package/dist/components/kup-gauge.d.ts +11 -0
- package/dist/components/kup-gauge.js +6 -0
- package/dist/components/kup-grid.d.ts +11 -0
- package/dist/components/kup-grid.js +6 -0
- package/dist/components/kup-grid2.js +256 -0
- package/dist/components/kup-iframe.d.ts +11 -0
- package/dist/components/kup-iframe.js +257 -0
- package/dist/components/kup-image-list.d.ts +11 -0
- package/dist/components/kup-image-list.js +416 -0
- package/dist/components/kup-image.d.ts +11 -0
- package/dist/components/kup-image.js +6 -0
- package/dist/components/kup-lazy.d.ts +11 -0
- package/dist/components/kup-lazy.js +352 -0
- package/dist/components/kup-list.d.ts +11 -0
- package/dist/components/kup-list.js +6 -0
- package/dist/components/kup-magic-box.d.ts +11 -0
- package/dist/components/kup-magic-box.js +470 -0
- package/dist/components/kup-nav-bar.d.ts +11 -0
- package/dist/components/kup-nav-bar.js +292 -0
- package/dist/components/kup-numeric-picker.d.ts +11 -0
- package/dist/components/kup-numeric-picker.js +536 -0
- package/dist/components/kup-photo-frame.d.ts +11 -0
- package/dist/components/kup-photo-frame.js +308 -0
- package/dist/components/kup-probe.d.ts +11 -0
- package/dist/components/kup-probe.js +403 -0
- package/dist/components/kup-progress-bar.d.ts +11 -0
- package/dist/components/kup-progress-bar.js +6 -0
- package/dist/components/kup-qlik.d.ts +11 -0
- package/dist/components/kup-qlik.js +302 -0
- package/dist/components/kup-radio.d.ts +11 -0
- package/dist/components/kup-radio.js +6 -0
- package/dist/components/kup-rating.d.ts +11 -0
- package/dist/components/kup-rating.js +6 -0
- package/dist/components/kup-snackbar.d.ts +11 -0
- package/dist/components/kup-snackbar.js +272 -0
- package/dist/components/kup-spinner.d.ts +11 -0
- package/dist/components/kup-spinner.js +6 -0
- package/dist/components/kup-switch.d.ts +11 -0
- package/dist/components/kup-switch.js +6 -0
- package/dist/components/kup-tab-bar.d.ts +11 -0
- package/dist/components/kup-tab-bar.js +6 -0
- package/dist/components/kup-text-field.d.ts +11 -0
- package/dist/components/kup-text-field.js +6 -0
- package/dist/components/kup-time-picker.d.ts +11 -0
- package/dist/components/kup-time-picker.js +6 -0
- package/dist/components/kup-tree.d.ts +11 -0
- package/dist/components/kup-tree.js +6 -0
- package/dist/esm/{f-button-d1aba968.js → f-button-4aad092d.js} +1 -1
- package/dist/esm/{f-cell-646406bb.js → f-cell-43ca8ab5.js} +11 -8
- package/dist/esm/{f-chip-d94e9e81.js → f-chip-94851217.js} +2 -2
- package/dist/esm/{f-image-57c88302.js → f-image-48a4b032.js} +1 -1
- package/dist/esm/{f-paginator-utils-2c865e9a.js → f-paginator-utils-fe00f75c.js} +2 -2
- package/dist/esm/{f-text-field-b0a1fea6.js → f-text-field-b6f9ce84.js} +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +2 -2
- package/dist/esm/kup-autocomplete_26.entry.js +166 -23
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +4 -4
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-dash-list.entry.js +1 -1
- package/dist/esm/kup-dash_2.entry.js +1 -1
- 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-family-tree.entry.js +3 -3
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +6 -6
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +2 -2
- package/dist/esm/{kup-manager-c0fbb180.js → kup-manager-07c9ba13.js} +7 -2
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-photo-frame.entry.js +1 -1
- 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/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-a1fe329f.entry.js → p-02be3dd2.entry.js} +1 -1
- package/dist/ketchup/{p-35e16ea2.entry.js → p-10281712.entry.js} +1 -1
- package/dist/ketchup/{p-b1da1ba7.entry.js → p-122f51a0.entry.js} +1 -1
- package/dist/ketchup/{p-e6f19333.entry.js → p-14aec9c8.entry.js} +1 -1
- package/dist/ketchup/{p-a992cf87.js → p-200c76a8.js} +1 -1
- package/dist/ketchup/{p-738685f9.entry.js → p-23f50851.entry.js} +1 -1
- package/dist/ketchup/{p-30766296.entry.js → p-2935f22d.entry.js} +1 -1
- package/dist/ketchup/{p-7c8c5444.entry.js → p-33429412.entry.js} +1 -1
- package/dist/ketchup/{p-596bdc10.entry.js → p-3a55568c.entry.js} +1 -1
- package/dist/ketchup/{p-cee3635a.entry.js → p-4c92f0a4.entry.js} +1 -1
- package/dist/ketchup/{p-a740352c.js → p-5781af8a.js} +1 -1
- package/dist/ketchup/{p-1914969e.entry.js → p-5f7da18e.entry.js} +1 -1
- package/dist/ketchup/{p-9214ef33.entry.js → p-69a9af60.entry.js} +1 -1
- package/dist/ketchup/{p-f43b445e.entry.js → p-7134b172.entry.js} +1 -1
- package/dist/ketchup/{p-980ed953.entry.js → p-772f4bb7.entry.js} +1 -1
- package/dist/ketchup/{p-72d4fa26.entry.js → p-79936744.entry.js} +1 -1
- package/dist/ketchup/{p-395675b8.js → p-86e4bfad.js} +1 -1
- package/dist/ketchup/p-8f8b5a08.entry.js +9 -0
- package/dist/ketchup/{p-250118e3.entry.js → p-94e3b109.entry.js} +1 -1
- package/dist/ketchup/{p-86154e2b.js → p-984a05ff.js} +1 -1
- package/dist/ketchup/{p-eb10958a.entry.js → p-9f759d8d.entry.js} +1 -1
- package/dist/ketchup/{p-351cecba.entry.js → p-ab6c66f7.entry.js} +1 -1
- package/dist/ketchup/{p-fa37e92e.entry.js → p-be7748e6.entry.js} +1 -1
- package/dist/ketchup/{p-61ff1761.js → p-c1a5ed6b.js} +1 -1
- package/dist/ketchup/p-e3b85cae.js +1 -0
- package/dist/ketchup/p-e8666a6d.js +1 -0
- package/dist/ketchup/{p-d422151a.entry.js → p-eab86c09.entry.js} +1 -1
- package/dist/ketchup/{p-991bd70d.entry.js → p-ec2d1c8c.entry.js} +1 -1
- package/dist/types/adoptedStyleSheet-shim.d.ts +3 -3
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +9 -9
- package/dist/types/components/kup-card/box/kup-card-box.d.ts +24 -0
- package/dist/types/components/kup-form/kup-form-declarations.d.ts +4 -1
- package/dist/types/components/kup-form/kup-form.d.ts +11 -1
- package/dist/types/components.d.ts +21 -1
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +2 -1
- package/package.json +1 -1
- package/dist/ketchup/p-3cf97e3a.js +0 -1
- package/dist/ketchup/p-d05ed931.entry.js +0 -9
- package/dist/ketchup/p-ecac6269.js +0 -1
|
@@ -0,0 +1,559 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, a6 as KupLanguageDashboard, T as FButton, R as KupLanguageGeneric, a7 as FTextField, a8 as FCheckbox, Y as KupDragEffect, a9 as KupDebugCategory, aa as FTextFieldMDC, c as componentWrapperId, d as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, h as defineCustomElement$6, i as defineCustomElement$7, j as defineCustomElement$8, l as defineCustomElement$9, m as defineCustomElement$a, n as defineCustomElement$b, o as defineCustomElement$c, p as defineCustomElement$d, q as defineCustomElement$e, r as defineCustomElement$f, t as defineCustomElement$g, u as defineCustomElement$h, v as defineCustomElement$i, w as defineCustomElement$j, x as defineCustomElement$k, y as defineCustomElement$l, z as defineCustomElement$m, A as defineCustomElement$n, B as defineCustomElement$o, C as defineCustomElement$p, D as defineCustomElement$q, E as defineCustomElement$r } from './kup-autocomplete2.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Props of the kup-dashboard component.
|
|
6
|
+
* Used to export every prop in an object.
|
|
7
|
+
*/
|
|
8
|
+
var KupDashboardProps;
|
|
9
|
+
(function (KupDashboardProps) {
|
|
10
|
+
KupDashboardProps["customStyle"] = "Custom style of the component.";
|
|
11
|
+
KupDashboardProps["data"] = "The data of the component.";
|
|
12
|
+
KupDashboardProps["enableDesign"] = "When set to true, the component is in design mode and it is draggable.";
|
|
13
|
+
})(KupDashboardProps || (KupDashboardProps = {}));
|
|
14
|
+
|
|
15
|
+
const kupDashboardCss = ":host{width:100%;height:100%}#kup-component{height:100%}.header{display:flex;flex-direction:row;justify-content:center}.header>*{margin-left:0.5em}.form{display:grid;height:100%}.form-dropzone{padding:1em;grid-gap:0.5em;border:1px solid var(--kup-primary-color);height:auto}.section{display:flex;flex-direction:column;overflow:auto}.section-header{display:flex;flex-direction:column}.section-header>*{width:100%;display:flex;flex-direction:row}.section-header>*>.section-header-actions{display:flex;justify-content:end}.section-header>*>.section-header-actions>*{margin-top:auto;margin-bottom:auto}.section-body{display:grid}.section-dropzone{border:1px solid var(--kup-primary-color)}.section-draggable{border:1px solid var(--kup-secondary-color);padding:1em}.section-placeholder{background-color:rgba(var(--kup-secondary-color-rgb), 0.5);min-height:1em;min-width:1em}.component{height:fit-content;padding:1em;margin:0.5em}.layout-row{grid-auto-flow:column;grid-template-columns:min-content}.layout-column{grid-auto-flow:row;grid-template-rows:min-content}";
|
|
16
|
+
|
|
17
|
+
const KupDashboard$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
this.__registerHost();
|
|
21
|
+
this.__attachShadow();
|
|
22
|
+
this.kupSave = createEvent(this, "kup-dashboard-save", 6);
|
|
23
|
+
/*-------------------------------------------------*/
|
|
24
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
25
|
+
/*-------------------------------------------------*/
|
|
26
|
+
/**
|
|
27
|
+
* Instance of the KupManager class.
|
|
28
|
+
*/
|
|
29
|
+
this.kupManager = kupManagerInstance();
|
|
30
|
+
/**
|
|
31
|
+
* Internal data of the component.
|
|
32
|
+
*/
|
|
33
|
+
this.internalData = null;
|
|
34
|
+
/**
|
|
35
|
+
* Internal data backup of the component for refresh when changed content by drag&drop.
|
|
36
|
+
*/
|
|
37
|
+
this.internalDataBackup = null;
|
|
38
|
+
this.resetInternalData = false;
|
|
39
|
+
this.customStyle = '';
|
|
40
|
+
this.data = null;
|
|
41
|
+
this.enableDesign = false;
|
|
42
|
+
}
|
|
43
|
+
onKupSave() {
|
|
44
|
+
this.kupSave.emit({
|
|
45
|
+
comp: this,
|
|
46
|
+
id: this.rootElement.id,
|
|
47
|
+
data: this.internalData,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/*-------------------------------------------------*/
|
|
51
|
+
/* W a t c h e r s */
|
|
52
|
+
/*-------------------------------------------------*/
|
|
53
|
+
dataChanged() {
|
|
54
|
+
this.resetData();
|
|
55
|
+
}
|
|
56
|
+
/*-------------------------------------------------*/
|
|
57
|
+
/* P u b l i c M e t h o d s */
|
|
58
|
+
/*-------------------------------------------------*/
|
|
59
|
+
/**
|
|
60
|
+
* Used to retrieve component's props values.
|
|
61
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
62
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
63
|
+
*/
|
|
64
|
+
async getProps(descriptions) {
|
|
65
|
+
return getProps(this, KupDashboardProps, descriptions);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* This method is used to trigger a new render of the component.
|
|
69
|
+
*/
|
|
70
|
+
async refresh() {
|
|
71
|
+
forceUpdate(this);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Sets the props to the component.
|
|
75
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
76
|
+
*/
|
|
77
|
+
async setProps(props) {
|
|
78
|
+
setProps(this, KupDashboardProps, props);
|
|
79
|
+
}
|
|
80
|
+
/*-------------------------------------------------*/
|
|
81
|
+
/* P r i v a t e M e t h o d s */
|
|
82
|
+
/*-------------------------------------------------*/
|
|
83
|
+
buildGuid() {
|
|
84
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
85
|
+
var r = (Math.random() * 16) | 0, v = c === 'x' ? r : (r & 0x3) | 0x8;
|
|
86
|
+
return v.toString(16);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
buildHeader() {
|
|
90
|
+
const clearButtonProp = {
|
|
91
|
+
icon: 'cancel',
|
|
92
|
+
label: this.kupManager.language.translate(KupLanguageDashboard.RESET),
|
|
93
|
+
secondary: true,
|
|
94
|
+
onClick: () => {
|
|
95
|
+
this.resetData();
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
const saveButtonProp = {
|
|
99
|
+
icon: 'save',
|
|
100
|
+
label: this.kupManager.language.translate(KupLanguageDashboard.SAVE),
|
|
101
|
+
onClick: () => this.onKupSave(),
|
|
102
|
+
};
|
|
103
|
+
return (h("div", { class: "header" }, this.enableDesign ? (h(FButton, Object.assign({}, clearButtonProp))) : undefined, this.enableDesign ? (h(FButton, Object.assign({}, saveButtonProp))) : undefined));
|
|
104
|
+
}
|
|
105
|
+
buildForm(form, parent) {
|
|
106
|
+
const classes = {
|
|
107
|
+
form: true,
|
|
108
|
+
'layout-column': form && form.layout == 'column',
|
|
109
|
+
'layout-row': form && form.layout == 'row',
|
|
110
|
+
'form-dropzone': this.enableDesign &&
|
|
111
|
+
form &&
|
|
112
|
+
form.sections != null &&
|
|
113
|
+
form.sections.length > 0,
|
|
114
|
+
};
|
|
115
|
+
return form ? (h("div", { class: classes, style: this.getGridStyle(form), ref: (el) => {
|
|
116
|
+
if (!el)
|
|
117
|
+
return;
|
|
118
|
+
const kel = el;
|
|
119
|
+
kel.kupData = { parent: parent, form: form };
|
|
120
|
+
} }, form.sections.map((section) => this.buildSection(section, form)))) : (h("div", null, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA)));
|
|
121
|
+
}
|
|
122
|
+
buildSectionHeader(section, parent) {
|
|
123
|
+
const dimTextFieldProp = {
|
|
124
|
+
value: section.dim,
|
|
125
|
+
label: this.kupManager.language.translate(KupLanguageDashboard.DIMENSION),
|
|
126
|
+
onChange: (e) => {
|
|
127
|
+
const { target } = e;
|
|
128
|
+
section.dim = target.value;
|
|
129
|
+
this.refresh();
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
const addButtonProp = {
|
|
133
|
+
icon: 'add',
|
|
134
|
+
slim: true,
|
|
135
|
+
onClick: () => {
|
|
136
|
+
if (!section.sections) {
|
|
137
|
+
section.sections = [];
|
|
138
|
+
}
|
|
139
|
+
const newSec = {
|
|
140
|
+
id: section.id + (section.sections.length + 1),
|
|
141
|
+
loaded: section.loaded,
|
|
142
|
+
layout: section.layout,
|
|
143
|
+
};
|
|
144
|
+
section.sections.push(newSec);
|
|
145
|
+
this.resetData(this.internalData);
|
|
146
|
+
},
|
|
147
|
+
};
|
|
148
|
+
const removeButtonProp = {
|
|
149
|
+
icon: 'remove',
|
|
150
|
+
slim: true,
|
|
151
|
+
secondary: true,
|
|
152
|
+
onClick: () => {
|
|
153
|
+
const idx = parent.sections.indexOf(section);
|
|
154
|
+
parent.sections.splice(idx, 1);
|
|
155
|
+
this.resetData(this.internalData);
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
const loadedCheckBoxProp = {
|
|
159
|
+
checked: section.loaded,
|
|
160
|
+
label: this.kupManager.language.translate(KupLanguageDashboard.LOADED),
|
|
161
|
+
onChange: () => {
|
|
162
|
+
section.loaded = !section.loaded;
|
|
163
|
+
this.refresh();
|
|
164
|
+
},
|
|
165
|
+
};
|
|
166
|
+
const columnCheckBoxProp = {
|
|
167
|
+
checked: section.layout == 'column',
|
|
168
|
+
label: this.kupManager.language.translate(KupLanguageDashboard.VERTICAL),
|
|
169
|
+
onChange: () => {
|
|
170
|
+
section.layout = section.layout == 'column' ? 'row' : 'column';
|
|
171
|
+
this.refresh();
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
return (h("div", { class: "section-header" }, h("div", null, section.id, " - ", section.layout), h("div", null, h("div", { class: "section-header-actions" }, h(FTextField, Object.assign({}, dimTextFieldProp)), h(FCheckbox, Object.assign({}, loadedCheckBoxProp)), h(FCheckbox, Object.assign({}, columnCheckBoxProp)), h(FButton, Object.assign({}, addButtonProp)), h(FButton, Object.assign({}, removeButtonProp))))));
|
|
175
|
+
}
|
|
176
|
+
buildSection(section, parent) {
|
|
177
|
+
const classes = {
|
|
178
|
+
section: true,
|
|
179
|
+
'section-draggable': this.enableDesign,
|
|
180
|
+
'section-dropzone': this.enableDesign,
|
|
181
|
+
};
|
|
182
|
+
const bodyClasses = {
|
|
183
|
+
'section-body': true,
|
|
184
|
+
'layout-column': section && section.layout == 'column',
|
|
185
|
+
'layout-row': section && section.layout == 'row',
|
|
186
|
+
};
|
|
187
|
+
return (h("div", { class: classes, ref: (el) => {
|
|
188
|
+
if (!el)
|
|
189
|
+
return;
|
|
190
|
+
const kel = el;
|
|
191
|
+
kel.kupData = { parent: parent, section: section };
|
|
192
|
+
} }, this.enableDesign
|
|
193
|
+
? this.buildSectionHeader(section, parent)
|
|
194
|
+
: undefined, h("div", { class: bodyClasses, style: this.getGridStyle(section) }, !this.enableDesign &&
|
|
195
|
+
section.loaded &&
|
|
196
|
+
(!section.sections || section.sections.length == 0) ? (h("slot", { name: section.id })) : undefined, section.sections && (section.loaded || this.enableDesign)
|
|
197
|
+
? section.sections.map((childSection) => this.buildSection(childSection, section))
|
|
198
|
+
: undefined)));
|
|
199
|
+
}
|
|
200
|
+
calcSectionPosition(pointerY, pointerX, vertical, sectionCount, elements) {
|
|
201
|
+
let idx = sectionCount;
|
|
202
|
+
for (let index = 0; index < elements.length; index++) {
|
|
203
|
+
const element = elements[index];
|
|
204
|
+
const srect = element.getBoundingClientRect();
|
|
205
|
+
if (vertical && pointerY < srect.y) {
|
|
206
|
+
idx = index;
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
else if (!vertical && pointerX < srect.x) {
|
|
210
|
+
idx = index;
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
//console.log(
|
|
215
|
+
// `pointer: ${pointerX}:${pointerY} - vertical: ${vertical} - index: ${idx}`
|
|
216
|
+
//);
|
|
217
|
+
return idx;
|
|
218
|
+
}
|
|
219
|
+
didRenderInteractables() {
|
|
220
|
+
try {
|
|
221
|
+
const items = [];
|
|
222
|
+
this.rootElement.shadowRoot
|
|
223
|
+
.querySelectorAll('.section-draggable')
|
|
224
|
+
.forEach((x) => items.push(x));
|
|
225
|
+
items.forEach((item) => {
|
|
226
|
+
this.kupManager.interact.draggable(item, null, null, KupDragEffect.CLONE);
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
catch (error) {
|
|
230
|
+
this.kupManager.debug.logMessage(this, error, KupDebugCategory.ERROR);
|
|
231
|
+
}
|
|
232
|
+
try {
|
|
233
|
+
const items = [];
|
|
234
|
+
this.rootElement.shadowRoot
|
|
235
|
+
.querySelectorAll('.section-dropzone')
|
|
236
|
+
.forEach((x) => items.push(x));
|
|
237
|
+
this.rootElement.shadowRoot
|
|
238
|
+
.querySelectorAll('.form-dropzone')
|
|
239
|
+
.forEach((x) => items.push(x));
|
|
240
|
+
items.forEach((item) => {
|
|
241
|
+
this.kupManager.interact.dropzone(item, {
|
|
242
|
+
ondropdeactivate: () => {
|
|
243
|
+
this.removeSectionPlaceHolder();
|
|
244
|
+
},
|
|
245
|
+
ondropmove: (ev) => {
|
|
246
|
+
this.removeSectionPlaceHolder();
|
|
247
|
+
this.dragEnter(ev.dragEvent.clientY, ev.dragEvent.clientX, ev.currentTarget);
|
|
248
|
+
},
|
|
249
|
+
}, null, {
|
|
250
|
+
drop: (ev) => {
|
|
251
|
+
this.dropped(ev, ev.currentTarget, ev.relatedTarget);
|
|
252
|
+
},
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
catch (error) {
|
|
257
|
+
this.kupManager.debug.logMessage(this, error, KupDebugCategory.ERROR);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
dragEnter(clientY, clientX, parent) {
|
|
261
|
+
if (parent.kupData.form) {
|
|
262
|
+
// form is the target of drop.
|
|
263
|
+
// calculate a new position for the section.
|
|
264
|
+
const nidx = this.calcSectionPosition(clientY, clientX, parent.kupData.form.layout == 'column', parent.kupData.form.sections.length, parent.children);
|
|
265
|
+
// set placeholder into target area.
|
|
266
|
+
this.setSectionPlaceHolder(parent, nidx);
|
|
267
|
+
}
|
|
268
|
+
else if (parent.kupData.section) {
|
|
269
|
+
// section is the target of drop.
|
|
270
|
+
// calculate a new position for the section.
|
|
271
|
+
const nidx = this.calcSectionPosition(clientY, clientX, parent.kupData.section.layout == 'column', parent.kupData.section.sections.length, parent.lastElementChild.children);
|
|
272
|
+
// set placeholder into target area.
|
|
273
|
+
this.setSectionPlaceHolder(parent.lastElementChild, nidx);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
dropped(event, parent, child) {
|
|
277
|
+
const idx = child.kupData.parent.sections.indexOf(child.kupData.section);
|
|
278
|
+
child.kupData.parent.sections.splice(idx, 1);
|
|
279
|
+
if (parent.kupData.form) {
|
|
280
|
+
// form is the target of drop.
|
|
281
|
+
if (!parent.kupData.form.sections)
|
|
282
|
+
parent.kupData.form.sections = [];
|
|
283
|
+
// calculate a new position for the section.
|
|
284
|
+
const nidx = this.calcSectionPosition(event.dragEvent.clientY, event.dragEvent.clientX, parent.kupData.form.layout == 'column', parent.kupData.form.sections.length, parent.children);
|
|
285
|
+
// set the section in 'nidx' position.
|
|
286
|
+
parent.kupData.form.sections.splice(nidx, 0, child.kupData.section);
|
|
287
|
+
child.kupData.parent = parent.kupData.form;
|
|
288
|
+
}
|
|
289
|
+
else if (parent.kupData.section) {
|
|
290
|
+
// section is the target of drop.
|
|
291
|
+
if (!parent.kupData.section.sections ||
|
|
292
|
+
parent.kupData.section.sections.length == 0) {
|
|
293
|
+
// if the section target of drop doesn't contains other sections, i create a wrapper that will contain target section and dragged section.
|
|
294
|
+
const newSec = JSON.parse(JSON.stringify(parent.kupData.section));
|
|
295
|
+
newSec.dim = null;
|
|
296
|
+
child.kupData.section.dim = null;
|
|
297
|
+
parent.kupData.section.id = this.buildGuid();
|
|
298
|
+
parent.kupData.section.sections = [];
|
|
299
|
+
parent.kupData.section.sections.push(newSec);
|
|
300
|
+
}
|
|
301
|
+
// calculate a new position for the section.
|
|
302
|
+
const nidx = this.calcSectionPosition(event.dragEvent.clientY, event.dragEvent.clientX, parent.kupData.section.layout == 'column', parent.kupData.section.sections.length, parent.lastElementChild.children);
|
|
303
|
+
// set the section in 'nidx' position.
|
|
304
|
+
parent.kupData.section.sections.splice(nidx, 0, child.kupData.section);
|
|
305
|
+
child.kupData.parent = parent.kupData.section;
|
|
306
|
+
}
|
|
307
|
+
this.resetData(this.internalData);
|
|
308
|
+
}
|
|
309
|
+
getGridStyle(entity) {
|
|
310
|
+
let bodyStyles = {};
|
|
311
|
+
if (entity.sections) {
|
|
312
|
+
let gridTemplate = '';
|
|
313
|
+
entity.sections.forEach((childSection) => {
|
|
314
|
+
if (this.enableDesign || !childSection.dim)
|
|
315
|
+
gridTemplate += ' 1fr';
|
|
316
|
+
else
|
|
317
|
+
gridTemplate +=
|
|
318
|
+
childSection.dim.indexOf('%') < 0
|
|
319
|
+
? ' ' + childSection.dim + 'px'
|
|
320
|
+
: ' ' + childSection.dim;
|
|
321
|
+
});
|
|
322
|
+
if (entity.layout == 'column')
|
|
323
|
+
bodyStyles['gridTemplateRows'] = gridTemplate;
|
|
324
|
+
if (entity.layout == 'row')
|
|
325
|
+
bodyStyles['gridTemplateColumns'] = gridTemplate;
|
|
326
|
+
}
|
|
327
|
+
return bodyStyles;
|
|
328
|
+
}
|
|
329
|
+
setSectionPlaceHolder(element, index) {
|
|
330
|
+
const ph = document.createElement('div');
|
|
331
|
+
ph.className = 'section-placeholder';
|
|
332
|
+
element.insertBefore(ph, element.childNodes[index]);
|
|
333
|
+
}
|
|
334
|
+
removeSectionPlaceHolder() {
|
|
335
|
+
const ph = this.rootElement.shadowRoot.querySelector('.section-placeholder');
|
|
336
|
+
if (ph)
|
|
337
|
+
ph.parentElement.removeChild(ph);
|
|
338
|
+
}
|
|
339
|
+
resetData(form = null) {
|
|
340
|
+
if (form)
|
|
341
|
+
this.internalDataBackup = form;
|
|
342
|
+
this.resetInternalData = true;
|
|
343
|
+
setTimeout(() => {
|
|
344
|
+
if (this.internalDataBackup) {
|
|
345
|
+
this.internalData = this.internalDataBackup;
|
|
346
|
+
this.internalDataBackup = null;
|
|
347
|
+
}
|
|
348
|
+
this.resetInternalData = false;
|
|
349
|
+
}, 250);
|
|
350
|
+
}
|
|
351
|
+
unregisterInteractables() {
|
|
352
|
+
this.kupManager.interact.unregister(Array.from(this.rootElement.shadowRoot.querySelectorAll('.section-dropzone')));
|
|
353
|
+
this.kupManager.interact.unregister(Array.from(this.rootElement.shadowRoot.querySelectorAll('.section-draggable')));
|
|
354
|
+
this.kupManager.interact.unregister(Array.from(this.rootElement.shadowRoot.querySelectorAll('.form-dropzone')));
|
|
355
|
+
}
|
|
356
|
+
/*-------------------------------------------------*/
|
|
357
|
+
/* L i f e c y c l e H o o k s */
|
|
358
|
+
/*-------------------------------------------------*/
|
|
359
|
+
componentWillLoad() {
|
|
360
|
+
this.kupManager.dates.register(this);
|
|
361
|
+
this.kupManager.debug.logLoad(this, false);
|
|
362
|
+
this.kupManager.language.register(this);
|
|
363
|
+
this.kupManager.theme.register(this);
|
|
364
|
+
}
|
|
365
|
+
componentDidLoad() {
|
|
366
|
+
this.kupManager.debug.logLoad(this, true);
|
|
367
|
+
}
|
|
368
|
+
componentWillRender() {
|
|
369
|
+
this.kupManager.debug.logRender(this, false);
|
|
370
|
+
if (this.resetInternalData) {
|
|
371
|
+
this.internalData = null;
|
|
372
|
+
this.unregisterInteractables();
|
|
373
|
+
}
|
|
374
|
+
else if (!this.internalData)
|
|
375
|
+
this.internalData = JSON.parse(JSON.stringify(this.data));
|
|
376
|
+
}
|
|
377
|
+
componentDidRender() {
|
|
378
|
+
this.kupManager.debug.logRender(this, true);
|
|
379
|
+
const root = this.rootElement.shadowRoot;
|
|
380
|
+
if (root) {
|
|
381
|
+
const fields = root.querySelectorAll('.f-text-field');
|
|
382
|
+
if (fields)
|
|
383
|
+
fields.forEach((f) => {
|
|
384
|
+
FTextFieldMDC(f);
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
this.didRenderInteractables();
|
|
388
|
+
}
|
|
389
|
+
render() {
|
|
390
|
+
return (h(Host, null, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, this.buildHeader(), this.buildForm(this.internalData, null))));
|
|
391
|
+
}
|
|
392
|
+
disconnectedCallback() {
|
|
393
|
+
this.unregisterInteractables();
|
|
394
|
+
this.kupManager.dates.unregister(this);
|
|
395
|
+
this.kupManager.language.unregister(this);
|
|
396
|
+
this.kupManager.theme.unregister(this);
|
|
397
|
+
}
|
|
398
|
+
get rootElement() { return this; }
|
|
399
|
+
static get watchers() { return {
|
|
400
|
+
"data": ["dataChanged"]
|
|
401
|
+
}; }
|
|
402
|
+
static get style() { return kupDashboardCss; }
|
|
403
|
+
}, [1, "kup-dashboard", {
|
|
404
|
+
"customStyle": [1, "custom-style"],
|
|
405
|
+
"data": [16],
|
|
406
|
+
"enableDesign": [4, "enable-design"],
|
|
407
|
+
"resetInternalData": [32],
|
|
408
|
+
"getProps": [64],
|
|
409
|
+
"refresh": [64],
|
|
410
|
+
"setProps": [64]
|
|
411
|
+
}]);
|
|
412
|
+
function defineCustomElement$1() {
|
|
413
|
+
if (typeof customElements === "undefined") {
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
const components = ["kup-dashboard", "kup-autocomplete", "kup-badge", "kup-button", "kup-button-list", "kup-card", "kup-chart", "kup-checkbox", "kup-chip", "kup-color-picker", "kup-combobox", "kup-data-table", "kup-date-picker", "kup-dropdown-button", "kup-form", "kup-gauge", "kup-image", "kup-list", "kup-progress-bar", "kup-radio", "kup-rating", "kup-spinner", "kup-switch", "kup-tab-bar", "kup-text-field", "kup-time-picker", "kup-tree"];
|
|
417
|
+
components.forEach(tagName => { switch (tagName) {
|
|
418
|
+
case "kup-dashboard":
|
|
419
|
+
if (!customElements.get(tagName)) {
|
|
420
|
+
customElements.define(tagName, KupDashboard$1);
|
|
421
|
+
}
|
|
422
|
+
break;
|
|
423
|
+
case "kup-autocomplete":
|
|
424
|
+
if (!customElements.get(tagName)) {
|
|
425
|
+
defineCustomElement$r();
|
|
426
|
+
}
|
|
427
|
+
break;
|
|
428
|
+
case "kup-badge":
|
|
429
|
+
if (!customElements.get(tagName)) {
|
|
430
|
+
defineCustomElement$q();
|
|
431
|
+
}
|
|
432
|
+
break;
|
|
433
|
+
case "kup-button":
|
|
434
|
+
if (!customElements.get(tagName)) {
|
|
435
|
+
defineCustomElement$p();
|
|
436
|
+
}
|
|
437
|
+
break;
|
|
438
|
+
case "kup-button-list":
|
|
439
|
+
if (!customElements.get(tagName)) {
|
|
440
|
+
defineCustomElement$o();
|
|
441
|
+
}
|
|
442
|
+
break;
|
|
443
|
+
case "kup-card":
|
|
444
|
+
if (!customElements.get(tagName)) {
|
|
445
|
+
defineCustomElement$n();
|
|
446
|
+
}
|
|
447
|
+
break;
|
|
448
|
+
case "kup-chart":
|
|
449
|
+
if (!customElements.get(tagName)) {
|
|
450
|
+
defineCustomElement$m();
|
|
451
|
+
}
|
|
452
|
+
break;
|
|
453
|
+
case "kup-checkbox":
|
|
454
|
+
if (!customElements.get(tagName)) {
|
|
455
|
+
defineCustomElement$l();
|
|
456
|
+
}
|
|
457
|
+
break;
|
|
458
|
+
case "kup-chip":
|
|
459
|
+
if (!customElements.get(tagName)) {
|
|
460
|
+
defineCustomElement$k();
|
|
461
|
+
}
|
|
462
|
+
break;
|
|
463
|
+
case "kup-color-picker":
|
|
464
|
+
if (!customElements.get(tagName)) {
|
|
465
|
+
defineCustomElement$j();
|
|
466
|
+
}
|
|
467
|
+
break;
|
|
468
|
+
case "kup-combobox":
|
|
469
|
+
if (!customElements.get(tagName)) {
|
|
470
|
+
defineCustomElement$i();
|
|
471
|
+
}
|
|
472
|
+
break;
|
|
473
|
+
case "kup-data-table":
|
|
474
|
+
if (!customElements.get(tagName)) {
|
|
475
|
+
defineCustomElement$h();
|
|
476
|
+
}
|
|
477
|
+
break;
|
|
478
|
+
case "kup-date-picker":
|
|
479
|
+
if (!customElements.get(tagName)) {
|
|
480
|
+
defineCustomElement$g();
|
|
481
|
+
}
|
|
482
|
+
break;
|
|
483
|
+
case "kup-dropdown-button":
|
|
484
|
+
if (!customElements.get(tagName)) {
|
|
485
|
+
defineCustomElement$f();
|
|
486
|
+
}
|
|
487
|
+
break;
|
|
488
|
+
case "kup-form":
|
|
489
|
+
if (!customElements.get(tagName)) {
|
|
490
|
+
defineCustomElement$e();
|
|
491
|
+
}
|
|
492
|
+
break;
|
|
493
|
+
case "kup-gauge":
|
|
494
|
+
if (!customElements.get(tagName)) {
|
|
495
|
+
defineCustomElement$d();
|
|
496
|
+
}
|
|
497
|
+
break;
|
|
498
|
+
case "kup-image":
|
|
499
|
+
if (!customElements.get(tagName)) {
|
|
500
|
+
defineCustomElement$c();
|
|
501
|
+
}
|
|
502
|
+
break;
|
|
503
|
+
case "kup-list":
|
|
504
|
+
if (!customElements.get(tagName)) {
|
|
505
|
+
defineCustomElement$b();
|
|
506
|
+
}
|
|
507
|
+
break;
|
|
508
|
+
case "kup-progress-bar":
|
|
509
|
+
if (!customElements.get(tagName)) {
|
|
510
|
+
defineCustomElement$a();
|
|
511
|
+
}
|
|
512
|
+
break;
|
|
513
|
+
case "kup-radio":
|
|
514
|
+
if (!customElements.get(tagName)) {
|
|
515
|
+
defineCustomElement$9();
|
|
516
|
+
}
|
|
517
|
+
break;
|
|
518
|
+
case "kup-rating":
|
|
519
|
+
if (!customElements.get(tagName)) {
|
|
520
|
+
defineCustomElement$8();
|
|
521
|
+
}
|
|
522
|
+
break;
|
|
523
|
+
case "kup-spinner":
|
|
524
|
+
if (!customElements.get(tagName)) {
|
|
525
|
+
defineCustomElement$7();
|
|
526
|
+
}
|
|
527
|
+
break;
|
|
528
|
+
case "kup-switch":
|
|
529
|
+
if (!customElements.get(tagName)) {
|
|
530
|
+
defineCustomElement$6();
|
|
531
|
+
}
|
|
532
|
+
break;
|
|
533
|
+
case "kup-tab-bar":
|
|
534
|
+
if (!customElements.get(tagName)) {
|
|
535
|
+
defineCustomElement$5();
|
|
536
|
+
}
|
|
537
|
+
break;
|
|
538
|
+
case "kup-text-field":
|
|
539
|
+
if (!customElements.get(tagName)) {
|
|
540
|
+
defineCustomElement$4();
|
|
541
|
+
}
|
|
542
|
+
break;
|
|
543
|
+
case "kup-time-picker":
|
|
544
|
+
if (!customElements.get(tagName)) {
|
|
545
|
+
defineCustomElement$3();
|
|
546
|
+
}
|
|
547
|
+
break;
|
|
548
|
+
case "kup-tree":
|
|
549
|
+
if (!customElements.get(tagName)) {
|
|
550
|
+
defineCustomElement$2();
|
|
551
|
+
}
|
|
552
|
+
break;
|
|
553
|
+
} });
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
const KupDashboard = KupDashboard$1;
|
|
557
|
+
const defineCustomElement = defineCustomElement$1;
|
|
558
|
+
|
|
559
|
+
export { KupDashboard, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface KupDataTable extends Components.KupDataTable, HTMLElement {}
|
|
4
|
+
export const KupDataTable: {
|
|
5
|
+
prototype: KupDataTable;
|
|
6
|
+
new (): KupDataTable;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface KupDatePicker extends Components.KupDatePicker, HTMLElement {}
|
|
4
|
+
export const KupDatePicker: {
|
|
5
|
+
prototype: KupDatePicker;
|
|
6
|
+
new (): KupDatePicker;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface KupDrawer extends Components.KupDrawer, HTMLElement {}
|
|
4
|
+
export const KupDrawer: {
|
|
5
|
+
prototype: KupDrawer;
|
|
6
|
+
new (): KupDrawer;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|