@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,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface KupCard extends Components.KupCard, HTMLElement {}
|
|
4
|
+
export const KupCard: {
|
|
5
|
+
prototype: KupCard;
|
|
6
|
+
new (): KupCard;
|
|
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 KupCell extends Components.KupCell, HTMLElement {}
|
|
4
|
+
export const KupCell: {
|
|
5
|
+
prototype: KupCell;
|
|
6
|
+
new (): KupCell;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { k as kupManagerInstance, X as FCellPadding, g as getProps, s as setProps, c as componentWrapperId, Y as KupDragEffect, R as KupLanguageGeneric, Z as FCell, 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-cell component.
|
|
6
|
+
* Used to export every prop in an object.
|
|
7
|
+
*/
|
|
8
|
+
var KupCellProps;
|
|
9
|
+
(function (KupCellProps) {
|
|
10
|
+
KupCellProps["customStyle"] = "Custom style of the component.";
|
|
11
|
+
KupCellProps["data"] = "The data of the cell.";
|
|
12
|
+
KupCellProps["density"] = "The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.";
|
|
13
|
+
KupCellProps["dragEnabled"] = "When set to true, the component is draggable.";
|
|
14
|
+
})(KupCellProps || (KupCellProps = {}));
|
|
15
|
+
|
|
16
|
+
const kupCellCss = ":host{display:block;height:100%;width:100%}#kup-component{height:100%;width:100%}";
|
|
17
|
+
|
|
18
|
+
const KupCell$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
this.__registerHost();
|
|
22
|
+
this.__attachShadow();
|
|
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
|
+
this.customStyle = '';
|
|
31
|
+
this.data = null;
|
|
32
|
+
this.density = FCellPadding.NONE;
|
|
33
|
+
this.dragEnabled = false;
|
|
34
|
+
}
|
|
35
|
+
/*-------------------------------------------------*/
|
|
36
|
+
/* P u b l i c M e t h o d s */
|
|
37
|
+
/*-------------------------------------------------*/
|
|
38
|
+
/**
|
|
39
|
+
* Adds the given CSS classes to the cell's data.
|
|
40
|
+
* @param {string[]} classes - Array of CSS classes.
|
|
41
|
+
*/
|
|
42
|
+
async addCssClasses(classes) {
|
|
43
|
+
if (!this.data.cssClass) {
|
|
44
|
+
this.data.cssClass = '';
|
|
45
|
+
}
|
|
46
|
+
if (classes) {
|
|
47
|
+
for (let index = 0; index < classes.length; index++) {
|
|
48
|
+
const cssClass = classes[index];
|
|
49
|
+
if (this.data.cssClass.indexOf(cssClass) < 0) {
|
|
50
|
+
this.data.cssClass += ` ${cssClass}`;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
this.refresh();
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Used to retrieve component's props values.
|
|
58
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
59
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
60
|
+
*/
|
|
61
|
+
async getProps(descriptions) {
|
|
62
|
+
return getProps(this, KupCellProps, descriptions);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* This method is used to trigger a new render of the component.
|
|
66
|
+
*/
|
|
67
|
+
async refresh() {
|
|
68
|
+
forceUpdate(this);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Removes the given CSS classes from the cell's data.
|
|
72
|
+
* @param {string[]} classes - Array of CSS classes.
|
|
73
|
+
*/
|
|
74
|
+
async removeCssClasses(classes) {
|
|
75
|
+
if (!this.data.cssClass) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
if (classes) {
|
|
79
|
+
for (let index = 0; index < classes.length; index++) {
|
|
80
|
+
const cssClass = classes[index];
|
|
81
|
+
if (this.data.cssClass.indexOf(cssClass) > 0) {
|
|
82
|
+
this.data.cssClass = this.data.cssClass.replace(new RegExp(cssClass, 'g'), '');
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
this.refresh();
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Sets the props to the component.
|
|
90
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
91
|
+
*/
|
|
92
|
+
async setProps(props) {
|
|
93
|
+
setProps(this, KupCellProps, props);
|
|
94
|
+
}
|
|
95
|
+
/*-------------------------------------------------*/
|
|
96
|
+
/* P r i v a t e M e t h o d s */
|
|
97
|
+
/*-------------------------------------------------*/
|
|
98
|
+
didRenderInteractables() {
|
|
99
|
+
if (this.dragEnabled) {
|
|
100
|
+
const dataCb = () => {
|
|
101
|
+
return {
|
|
102
|
+
cell: this.data,
|
|
103
|
+
column: this.generateColumn(),
|
|
104
|
+
id: this.rootElement.id,
|
|
105
|
+
multiple: false,
|
|
106
|
+
row: this.generateRow(),
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
this.kupManager.interact.draggable(this.rootElement.shadowRoot.querySelector('#' + componentWrapperId), {
|
|
110
|
+
cursorChecker() {
|
|
111
|
+
return null;
|
|
112
|
+
},
|
|
113
|
+
}, {
|
|
114
|
+
callback: dataCb,
|
|
115
|
+
}, KupDragEffect.BADGE);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
generateColumn() {
|
|
119
|
+
const colname = this.data && this.data.obj && this.data.obj.t
|
|
120
|
+
? this.data.obj.t + ';' + this.data.obj.p
|
|
121
|
+
: 'KUPCELL';
|
|
122
|
+
const coltitle = this.data && this.data.obj && this.data.obj.t
|
|
123
|
+
? this.data.obj.t + ';' + this.data.obj.p
|
|
124
|
+
: this.kupManager.language.translate(KupLanguageGeneric.EMPTY_OBJECT);
|
|
125
|
+
return {
|
|
126
|
+
name: colname,
|
|
127
|
+
title: coltitle,
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
generateRow() {
|
|
131
|
+
const col = this.generateColumn();
|
|
132
|
+
const row = { cells: {} };
|
|
133
|
+
row.cells[col.name] = this.data;
|
|
134
|
+
return row;
|
|
135
|
+
}
|
|
136
|
+
/*-------------------------------------------------*/
|
|
137
|
+
/* L i f e c y c l e H o o k s */
|
|
138
|
+
/*-------------------------------------------------*/
|
|
139
|
+
componentWillLoad() {
|
|
140
|
+
this.kupManager.dates.register(this);
|
|
141
|
+
this.kupManager.debug.logLoad(this, false);
|
|
142
|
+
this.kupManager.language.register(this);
|
|
143
|
+
this.kupManager.theme.register(this);
|
|
144
|
+
}
|
|
145
|
+
componentDidLoad() {
|
|
146
|
+
this.kupManager.debug.logLoad(this, true);
|
|
147
|
+
}
|
|
148
|
+
componentWillRender() {
|
|
149
|
+
this.kupManager.debug.logRender(this, false);
|
|
150
|
+
}
|
|
151
|
+
componentDidRender() {
|
|
152
|
+
this.didRenderInteractables();
|
|
153
|
+
this.kupManager.debug.logRender(this, true);
|
|
154
|
+
}
|
|
155
|
+
render() {
|
|
156
|
+
const props = {
|
|
157
|
+
cell: this.data,
|
|
158
|
+
column: this.generateColumn(),
|
|
159
|
+
component: this,
|
|
160
|
+
density: this.density,
|
|
161
|
+
editable: this.data.isEditable,
|
|
162
|
+
renderKup: true,
|
|
163
|
+
row: this.generateRow(),
|
|
164
|
+
};
|
|
165
|
+
return (h(Host, null, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, h(FCell, Object.assign({}, props)))));
|
|
166
|
+
}
|
|
167
|
+
disconnectedCallback() {
|
|
168
|
+
this.kupManager.dates.unregister(this);
|
|
169
|
+
this.kupManager.language.unregister(this);
|
|
170
|
+
this.kupManager.theme.unregister(this);
|
|
171
|
+
}
|
|
172
|
+
get rootElement() { return this; }
|
|
173
|
+
static get style() { return kupCellCss; }
|
|
174
|
+
}, [1, "kup-cell", {
|
|
175
|
+
"customStyle": [1, "custom-style"],
|
|
176
|
+
"data": [16],
|
|
177
|
+
"density": [1],
|
|
178
|
+
"dragEnabled": [4, "drag-enabled"],
|
|
179
|
+
"addCssClasses": [64],
|
|
180
|
+
"getProps": [64],
|
|
181
|
+
"refresh": [64],
|
|
182
|
+
"removeCssClasses": [64],
|
|
183
|
+
"setProps": [64]
|
|
184
|
+
}]);
|
|
185
|
+
function defineCustomElement$1() {
|
|
186
|
+
if (typeof customElements === "undefined") {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
const components = ["kup-cell", "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"];
|
|
190
|
+
components.forEach(tagName => { switch (tagName) {
|
|
191
|
+
case "kup-cell":
|
|
192
|
+
if (!customElements.get(tagName)) {
|
|
193
|
+
customElements.define(tagName, KupCell$1);
|
|
194
|
+
}
|
|
195
|
+
break;
|
|
196
|
+
case "kup-autocomplete":
|
|
197
|
+
if (!customElements.get(tagName)) {
|
|
198
|
+
defineCustomElement$r();
|
|
199
|
+
}
|
|
200
|
+
break;
|
|
201
|
+
case "kup-badge":
|
|
202
|
+
if (!customElements.get(tagName)) {
|
|
203
|
+
defineCustomElement$q();
|
|
204
|
+
}
|
|
205
|
+
break;
|
|
206
|
+
case "kup-button":
|
|
207
|
+
if (!customElements.get(tagName)) {
|
|
208
|
+
defineCustomElement$p();
|
|
209
|
+
}
|
|
210
|
+
break;
|
|
211
|
+
case "kup-button-list":
|
|
212
|
+
if (!customElements.get(tagName)) {
|
|
213
|
+
defineCustomElement$o();
|
|
214
|
+
}
|
|
215
|
+
break;
|
|
216
|
+
case "kup-card":
|
|
217
|
+
if (!customElements.get(tagName)) {
|
|
218
|
+
defineCustomElement$n();
|
|
219
|
+
}
|
|
220
|
+
break;
|
|
221
|
+
case "kup-chart":
|
|
222
|
+
if (!customElements.get(tagName)) {
|
|
223
|
+
defineCustomElement$m();
|
|
224
|
+
}
|
|
225
|
+
break;
|
|
226
|
+
case "kup-checkbox":
|
|
227
|
+
if (!customElements.get(tagName)) {
|
|
228
|
+
defineCustomElement$l();
|
|
229
|
+
}
|
|
230
|
+
break;
|
|
231
|
+
case "kup-chip":
|
|
232
|
+
if (!customElements.get(tagName)) {
|
|
233
|
+
defineCustomElement$k();
|
|
234
|
+
}
|
|
235
|
+
break;
|
|
236
|
+
case "kup-color-picker":
|
|
237
|
+
if (!customElements.get(tagName)) {
|
|
238
|
+
defineCustomElement$j();
|
|
239
|
+
}
|
|
240
|
+
break;
|
|
241
|
+
case "kup-combobox":
|
|
242
|
+
if (!customElements.get(tagName)) {
|
|
243
|
+
defineCustomElement$i();
|
|
244
|
+
}
|
|
245
|
+
break;
|
|
246
|
+
case "kup-data-table":
|
|
247
|
+
if (!customElements.get(tagName)) {
|
|
248
|
+
defineCustomElement$h();
|
|
249
|
+
}
|
|
250
|
+
break;
|
|
251
|
+
case "kup-date-picker":
|
|
252
|
+
if (!customElements.get(tagName)) {
|
|
253
|
+
defineCustomElement$g();
|
|
254
|
+
}
|
|
255
|
+
break;
|
|
256
|
+
case "kup-dropdown-button":
|
|
257
|
+
if (!customElements.get(tagName)) {
|
|
258
|
+
defineCustomElement$f();
|
|
259
|
+
}
|
|
260
|
+
break;
|
|
261
|
+
case "kup-form":
|
|
262
|
+
if (!customElements.get(tagName)) {
|
|
263
|
+
defineCustomElement$e();
|
|
264
|
+
}
|
|
265
|
+
break;
|
|
266
|
+
case "kup-gauge":
|
|
267
|
+
if (!customElements.get(tagName)) {
|
|
268
|
+
defineCustomElement$d();
|
|
269
|
+
}
|
|
270
|
+
break;
|
|
271
|
+
case "kup-image":
|
|
272
|
+
if (!customElements.get(tagName)) {
|
|
273
|
+
defineCustomElement$c();
|
|
274
|
+
}
|
|
275
|
+
break;
|
|
276
|
+
case "kup-list":
|
|
277
|
+
if (!customElements.get(tagName)) {
|
|
278
|
+
defineCustomElement$b();
|
|
279
|
+
}
|
|
280
|
+
break;
|
|
281
|
+
case "kup-progress-bar":
|
|
282
|
+
if (!customElements.get(tagName)) {
|
|
283
|
+
defineCustomElement$a();
|
|
284
|
+
}
|
|
285
|
+
break;
|
|
286
|
+
case "kup-radio":
|
|
287
|
+
if (!customElements.get(tagName)) {
|
|
288
|
+
defineCustomElement$9();
|
|
289
|
+
}
|
|
290
|
+
break;
|
|
291
|
+
case "kup-rating":
|
|
292
|
+
if (!customElements.get(tagName)) {
|
|
293
|
+
defineCustomElement$8();
|
|
294
|
+
}
|
|
295
|
+
break;
|
|
296
|
+
case "kup-spinner":
|
|
297
|
+
if (!customElements.get(tagName)) {
|
|
298
|
+
defineCustomElement$7();
|
|
299
|
+
}
|
|
300
|
+
break;
|
|
301
|
+
case "kup-switch":
|
|
302
|
+
if (!customElements.get(tagName)) {
|
|
303
|
+
defineCustomElement$6();
|
|
304
|
+
}
|
|
305
|
+
break;
|
|
306
|
+
case "kup-tab-bar":
|
|
307
|
+
if (!customElements.get(tagName)) {
|
|
308
|
+
defineCustomElement$5();
|
|
309
|
+
}
|
|
310
|
+
break;
|
|
311
|
+
case "kup-text-field":
|
|
312
|
+
if (!customElements.get(tagName)) {
|
|
313
|
+
defineCustomElement$4();
|
|
314
|
+
}
|
|
315
|
+
break;
|
|
316
|
+
case "kup-time-picker":
|
|
317
|
+
if (!customElements.get(tagName)) {
|
|
318
|
+
defineCustomElement$3();
|
|
319
|
+
}
|
|
320
|
+
break;
|
|
321
|
+
case "kup-tree":
|
|
322
|
+
if (!customElements.get(tagName)) {
|
|
323
|
+
defineCustomElement$2();
|
|
324
|
+
}
|
|
325
|
+
break;
|
|
326
|
+
} });
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
const KupCell = KupCell$1;
|
|
330
|
+
const defineCustomElement = defineCustomElement$1;
|
|
331
|
+
|
|
332
|
+
export { KupCell, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface KupChart extends Components.KupChart, HTMLElement {}
|
|
4
|
+
export const KupChart: {
|
|
5
|
+
prototype: KupChart;
|
|
6
|
+
new (): KupChart;
|
|
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 KupCheckbox extends Components.KupCheckbox, HTMLElement {}
|
|
4
|
+
export const KupCheckbox: {
|
|
5
|
+
prototype: KupCheckbox;
|
|
6
|
+
new (): KupCheckbox;
|
|
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 KupChip extends Components.KupChip, HTMLElement {}
|
|
4
|
+
export const KupChip: {
|
|
5
|
+
prototype: KupChip;
|
|
6
|
+
new (): KupChip;
|
|
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 KupColorPicker extends Components.KupColorPicker, HTMLElement {}
|
|
4
|
+
export const KupColorPicker: {
|
|
5
|
+
prototype: KupColorPicker;
|
|
6
|
+
new (): KupColorPicker;
|
|
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 KupCombobox extends Components.KupCombobox, HTMLElement {}
|
|
4
|
+
export const KupCombobox: {
|
|
5
|
+
prototype: KupCombobox;
|
|
6
|
+
new (): KupCombobox;
|
|
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 KupDashList extends Components.KupDashList, HTMLElement {}
|
|
4
|
+
export const KupDashList: {
|
|
5
|
+
prototype: KupDashList;
|
|
6
|
+
new (): KupDashList;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|