@sme.up/ketchup 9.0.0 → 9.2.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-b2cfce1c.js → f-button-9ccadd52.js} +2 -2
- package/dist/cjs/{f-cell-75fca92b.js → f-cell-3130506f.js} +183 -11
- package/dist/cjs/{f-checkbox-48d7af02.js → f-checkbox-9d2635d9.js} +1 -1
- package/dist/cjs/{f-chip-3e504f3e.js → f-chip-beb7af58.js} +3 -3
- package/dist/cjs/{f-image-270d39ae.js → f-image-66a3c3c1.js} +2 -2
- package/dist/cjs/{f-paginator-utils-6d0c4678.js → f-paginator-utils-c475e07f.js} +49 -50
- package/dist/cjs/{f-text-field-bbcd2143.js → f-text-field-c74856ff.js} +38 -4
- package/dist/cjs/{index-c3d10561.js → index-d8e5eb5f.js} +156 -39
- package/dist/cjs/index.cjs.js +11 -0
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +159 -197
- package/dist/cjs/kup-box.cjs.entry.js +23 -15
- package/dist/cjs/kup-calendar.cjs.entry.js +5061 -5028
- package/dist/cjs/kup-card-list.cjs.entry.js +34 -14
- package/dist/cjs/kup-cell.cjs.entry.js +9 -7
- package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
- package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
- package/dist/cjs/kup-echart.cjs.entry.js +2 -2
- package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
- package/dist/cjs/kup-grid.cjs.entry.js +2 -2
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
- package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
- package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
- package/dist/cjs/{kup-manager-130bbd9d.js → kup-manager-7334c396.js} +63 -12
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
- package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner.cjs.entry.js +895 -410
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/card-list.js +12 -9
- package/dist/collection/assets/index.js +4 -0
- package/dist/collection/assets/progress-bar.js +0 -0
- package/dist/collection/assets/radio.js +30 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/kup-box/kup-box.js +14 -6
- package/dist/collection/components/kup-card/kup-card.css +14 -0
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +10 -5
- package/dist/collection/components/kup-card-list/kup-card-list-declarations.js +10 -0
- package/dist/collection/components/kup-card-list/kup-card-list.js +232 -12
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +47 -48
- package/dist/collection/components/kup-data-table/kup-data-table.js +36 -22
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.css +1 -242
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +37 -84
- package/dist/collection/components/kup-radio/kup-radio.css +0 -161
- package/dist/collection/components/kup-radio/kup-radio.js +31 -26
- package/dist/collection/components/kup-rating/kup-rating.css +0 -8
- package/dist/collection/components/kup-rating/kup-rating.js +27 -52
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +1 -0
- package/dist/collection/f-components/f-cell/f-cell.js +19 -5
- package/dist/collection/f-components/f-progress-bar/f-progress-bar-declarations.js +1 -0
- package/dist/collection/f-components/f-progress-bar/f-progress-bar.js +88 -0
- package/dist/collection/f-components/f-radio/f-radio-declarations.js +1 -0
- package/dist/collection/f-components/f-radio/f-radio.js +28 -0
- package/dist/collection/f-components/f-rating/f-rating-declarations.js +1 -0
- package/dist/collection/f-components/f-rating/f-rating.js +26 -0
- package/dist/collection/f-components/f-text-field/f-text-field.js +36 -2
- package/dist/collection/index.js +5 -0
- package/dist/collection/managers/kup-data/kup-data.js +2 -0
- package/dist/collection/managers/kup-math/kup-math-helper.js +1 -1
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +33 -0
- package/dist/collection/managers/kup-theme/kup-theme.js +13 -1
- package/dist/collection/utils/cell-utils.js +6 -7
- package/dist/collection/utils/utils.js +0 -5
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +9 -1
- package/dist/components/kup-accordion.js +4 -1
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-autocomplete2.js +13902 -32341
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box2.js +26 -7
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +5001 -4964
- package/dist/components/kup-card-list.js +44 -13
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -1
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +4 -1
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -1
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart2.js +2 -1
- package/dist/components/kup-family-tree.js +2 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid2.js +2 -1
- package/dist/components/kup-iframe.js +2 -1
- package/dist/components/kup-image-list.js +4 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-lazy.js +2 -1
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +2 -1
- package/dist/{esm/kup-manager-c8d5c94d.js → components/kup-manager.js} +63 -13
- package/dist/components/kup-nav-bar.js +2 -1
- package/dist/components/kup-numeric-picker.js +2 -1
- package/dist/components/kup-photo-frame.js +2 -1
- package/dist/components/kup-planner.js +896 -408
- package/dist/components/kup-probe.js +2 -1
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +2 -1
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +2 -1
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/esm/{f-button-baa419dc.js → f-button-0bce6587.js} +2 -2
- package/dist/esm/{f-cell-18ee3afa.js → f-cell-88d375e1.js} +181 -12
- package/dist/esm/{f-checkbox-00a1e020.js → f-checkbox-31219c42.js} +1 -1
- package/dist/esm/{f-chip-311500f4.js → f-chip-ef0d4130.js} +3 -3
- package/dist/esm/{f-image-da03494c.js → f-image-727453df.js} +2 -2
- package/dist/esm/{f-paginator-utils-d63a195e.js → f-paginator-utils-4524e41c.js} +49 -50
- package/dist/esm/{f-text-field-e5f1f1fd.js → f-text-field-7b4d622c.js} +38 -4
- package/dist/esm/{index-3336c3b1.js → index-99c17b08.js} +157 -40
- package/dist/esm/index.js +8 -0
- package/dist/esm/ketchup.js +4 -4
- package/dist/esm/kup-accordion.entry.js +3 -3
- package/dist/esm/kup-autocomplete_27.entry.js +159 -197
- package/dist/esm/kup-box.entry.js +23 -15
- package/dist/esm/kup-calendar.entry.js +5061 -5028
- package/dist/esm/kup-card-list.entry.js +34 -14
- package/dist/esm/kup-cell.entry.js +9 -7
- package/dist/esm/kup-dashboard.entry.js +6 -6
- package/dist/esm/kup-drawer.entry.js +2 -2
- package/dist/esm/kup-echart.entry.js +2 -2
- package/dist/esm/kup-family-tree.entry.js +4 -4
- package/dist/esm/kup-grid.entry.js +2 -2
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-image-list.entry.js +8 -8
- package/dist/esm/kup-lazy.entry.js +2 -2
- package/dist/esm/kup-magic-box.entry.js +3 -3
- package/dist/esm/kup-manager-9a9d2dbb.js +18604 -0
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-photo-frame.entry.js +2 -2
- package/dist/esm/kup-planner.entry.js +895 -410
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +4 -4
- package/dist/esm/loader.js +3 -3
- package/dist/ketchup/index.esm.js +1 -0
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-a8a39b08.entry.js → p-042e1ed0.entry.js} +1 -1
- package/dist/ketchup/{p-55fd3f46.entry.js → p-0dc763af.entry.js} +1 -1
- package/dist/ketchup/{p-76130e83.entry.js → p-1ae879af.entry.js} +1 -1
- package/dist/ketchup/p-1db0c862.entry.js +1 -0
- package/dist/ketchup/{p-25de68e5.js → p-20458088.js} +3 -3
- package/dist/ketchup/{p-a0f59b05.entry.js → p-20c1a69f.entry.js} +1 -1
- package/dist/ketchup/p-267dd24a.entry.js +9 -0
- package/dist/ketchup/{p-39602629.js → p-2849af6f.js} +1 -1
- package/dist/ketchup/p-30938d5a.entry.js +1 -0
- package/dist/ketchup/{p-f729449f.js → p-34e4a985.js} +1 -1
- package/dist/ketchup/p-4067c71b.js +2 -0
- package/dist/ketchup/{p-8281c9e5.js → p-4e696daf.js} +1 -1
- package/dist/ketchup/p-61f71872.entry.js +1 -0
- package/dist/ketchup/p-6a7df3d2.js +1 -0
- package/dist/ketchup/{p-2dab9c4f.entry.js → p-6b33f5de.entry.js} +1 -1
- package/dist/ketchup/{p-4597f25d.js → p-7a876328.js} +1 -1
- package/dist/ketchup/{p-7e1c8fc0.entry.js → p-7f64b612.entry.js} +1 -1
- package/dist/ketchup/{p-07707cd1.entry.js → p-90db42e6.entry.js} +1 -1
- package/dist/ketchup/{p-13eac183.entry.js → p-9cc1c76b.entry.js} +1 -1
- package/dist/ketchup/p-9d3d8690.js +1 -0
- package/dist/ketchup/{p-7bf649f0.entry.js → p-b4ba27da.entry.js} +1 -1
- package/dist/ketchup/{p-2a2a18bf.entry.js → p-c046fd1c.entry.js} +1 -1
- package/dist/ketchup/p-c120043a.entry.js +1 -0
- package/dist/ketchup/p-d520d757.entry.js +1 -0
- package/dist/ketchup/p-e9bc0749.entry.js +1 -0
- package/dist/ketchup/{p-7555c10d.js → p-ea56edbe.js} +1 -1
- package/dist/ketchup/p-edd88921.entry.js +1 -0
- package/dist/ketchup/{p-da58f8ab.entry.js → p-f1f82eef.entry.js} +1 -1
- package/dist/ketchup/{p-51aa248f.entry.js → p-f67ee60f.entry.js} +3 -3
- package/dist/ketchup/p-f6844304.entry.js +1 -0
- package/dist/ketchup/{p-2d192def.entry.js → p-f8213d22.entry.js} +1 -1
- package/dist/types/components/kup-box/kup-box.d.ts +1 -0
- package/dist/types/components/kup-card-list/kup-card-list-declarations.d.ts +12 -12
- package/dist/types/components/kup-card-list/kup-card-list.d.ts +50 -0
- package/dist/types/components/kup-progress-bar/kup-progress-bar.d.ts +0 -1
- package/dist/types/components/kup-radio/kup-radio-declarations.d.ts +1 -9
- package/dist/types/components/kup-radio/kup-radio.d.ts +3 -2
- package/dist/types/components/kup-rating/kup-rating.d.ts +2 -7
- package/dist/types/components.d.ts +674 -4
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +1 -0
- package/dist/types/f-components/f-progress-bar/f-progress-bar-declarations.d.ts +16 -0
- package/dist/types/f-components/f-progress-bar/f-progress-bar.d.ts +3 -0
- package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +22 -0
- package/dist/types/f-components/f-radio/f-radio.d.ts +3 -0
- package/dist/types/f-components/f-rating/f-rating-declarations.d.ts +10 -0
- package/dist/types/f-components/f-rating/f-rating.d.ts +3 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +12 -0
- package/dist/types/stencil-public-runtime.d.ts +26 -3
- package/dist/types/utils/utils.d.ts +0 -2
- package/package.json +3 -3
- package/dist/ketchup/p-008ad26c.js +0 -1
- package/dist/ketchup/p-0c19d485.entry.js +0 -9
- package/dist/ketchup/p-2d42477d.js +0 -2
- package/dist/ketchup/p-5c15661d.entry.js +0 -1
- package/dist/ketchup/p-5cfaa673.entry.js +0 -1
- package/dist/ketchup/p-5f583257.entry.js +0 -1
- package/dist/ketchup/p-80699a95.js +0 -1
- package/dist/ketchup/p-81debebe.entry.js +0 -1
- package/dist/ketchup/p-bb854cf5.entry.js +0 -1
- package/dist/ketchup/p-d6a7498b.entry.js +0 -1
- package/dist/ketchup/p-d8384990.entry.js +0 -1
- package/dist/ketchup/p-ecb9fe91.entry.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-d8e5eb5f.js');
|
|
4
4
|
const fButtonDeclarations = require('./f-button-declarations-3fd791a8.js');
|
|
5
|
-
const fImage = require('./f-image-
|
|
5
|
+
const fImage = require('./f-image-66a3c3c1.js');
|
|
6
6
|
|
|
7
7
|
/*-------------------------------------------------*/
|
|
8
8
|
/* C o m p o n e n t */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const kupManager = require('./kup-manager-
|
|
4
|
-
const index = require('./index-
|
|
5
|
-
const fCheckbox = require('./f-checkbox-
|
|
6
|
-
const fTextField = require('./f-text-field-
|
|
7
|
-
const fImage = require('./f-image-
|
|
8
|
-
const fChip = require('./f-chip-
|
|
3
|
+
const kupManager = require('./kup-manager-7334c396.js');
|
|
4
|
+
const index = require('./index-d8e5eb5f.js');
|
|
5
|
+
const fCheckbox = require('./f-checkbox-9d2635d9.js');
|
|
6
|
+
const fTextField = require('./f-text-field-c74856ff.js');
|
|
7
|
+
const fImage = require('./f-image-66a3c3c1.js');
|
|
8
|
+
const fChip = require('./f-chip-beb7af58.js');
|
|
9
|
+
const fButton = require('./f-button-9ccadd52.js');
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Props of the kup-list component.
|
|
@@ -56,6 +57,164 @@ const FSwitch = (props) => {
|
|
|
56
57
|
index.h("label", { onClick: props.onChange }, props.label))));
|
|
57
58
|
};
|
|
58
59
|
|
|
60
|
+
/*-------------------------------------------------*/
|
|
61
|
+
/* C o m p o n e n t */
|
|
62
|
+
/*-------------------------------------------------*/
|
|
63
|
+
const FProgressBar = (props) => {
|
|
64
|
+
if (!props.centeredLabel && !props.centeredLabel !== false) {
|
|
65
|
+
props.centeredLabel = true;
|
|
66
|
+
}
|
|
67
|
+
let componentClass = `f-progress-bar ${props.danger ? 'kup-danger' : ''} ${props.animated ? 'kup-animated' : ''} ${props.padded ? 'kup-padded' : ''} ${props.info ? 'kup-info' : ''} ${props.slim ? 'kup-slim' : ''} ${props.striped ? 'kup-striped' : ''} ${props.secondary ? 'kup-secondary' : ''} ${props.slim ? 'kup-slim' : ''} ${props.success ? 'kup-success' : ''} ${props.warning ? 'kup-warning' : ''} ${props.wrapperClass ? props.wrapperClass : ''}`;
|
|
68
|
+
let pieClass = 'pie';
|
|
69
|
+
let radialStyle = undefined;
|
|
70
|
+
if (props.isRadial) {
|
|
71
|
+
componentClass += ' pie-wrapper is-radial';
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
componentClass += ' progress-bar';
|
|
75
|
+
}
|
|
76
|
+
let labelStyle = undefined;
|
|
77
|
+
const valueStyle = {
|
|
78
|
+
width: `${props.value}%`,
|
|
79
|
+
};
|
|
80
|
+
if (!props.centeredLabel) {
|
|
81
|
+
labelStyle = valueStyle;
|
|
82
|
+
if (props.value > 2) {
|
|
83
|
+
componentClass += ' text-color-on-primary';
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
else if (props.value > 49) {
|
|
87
|
+
componentClass += ' text-color-on-primary';
|
|
88
|
+
}
|
|
89
|
+
let label = null;
|
|
90
|
+
if (props.icon) {
|
|
91
|
+
label = createIconElement(props);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
if (!props.hideLabel) {
|
|
95
|
+
if (props.isRadial) {
|
|
96
|
+
if (props.label) {
|
|
97
|
+
label = index.h("span", { class: "label" }, props.label);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
label = (index.h("span", { class: "label" },
|
|
101
|
+
props.value,
|
|
102
|
+
index.h("span", { class: "smaller" }, "%")));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
if (props.label) {
|
|
107
|
+
label = props.label;
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
label = props.value + '%';
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
if (props.value > 0) {
|
|
116
|
+
pieClass += ' has-value';
|
|
117
|
+
if (props.value > 50) {
|
|
118
|
+
pieClass += ' is-more-than-half';
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
pieClass += ' is-less-than-half';
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
if (props.isRadial) {
|
|
125
|
+
return (index.h("div", { class: componentClass },
|
|
126
|
+
label,
|
|
127
|
+
index.h("div", { class: pieClass },
|
|
128
|
+
index.h("div", { style: radialStyle, class: "left-side half-circle" }),
|
|
129
|
+
index.h("div", { class: "right-side half-circle" })),
|
|
130
|
+
index.h("div", { class: "shadow" })));
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
return (index.h("div", { class: componentClass },
|
|
134
|
+
index.h("div", { class: "progress-bar-percentage", style: valueStyle },
|
|
135
|
+
index.h("span", { style: labelStyle }, label))));
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
function createIconElement(props) {
|
|
139
|
+
if (!props.icon) {
|
|
140
|
+
return undefined;
|
|
141
|
+
}
|
|
142
|
+
if (props.icon.indexOf('.') > -1 ||
|
|
143
|
+
props.icon.indexOf('/') > -1 ||
|
|
144
|
+
props.icon.indexOf('\\') > -1) {
|
|
145
|
+
return (index.h("span", { class: "label kup-icon is-image" },
|
|
146
|
+
index.h("img", { src: props.icon })));
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
let svg = `url('${index.getAssetPath(`./assets/svg/${props.icon}.svg`)}') no-repeat center`;
|
|
150
|
+
let iconStyle = {
|
|
151
|
+
mask: svg,
|
|
152
|
+
webkitMask: svg,
|
|
153
|
+
};
|
|
154
|
+
return index.h("span", { style: iconStyle, class: "label kup-icon" });
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/*-------------------------------------------------*/
|
|
159
|
+
/* C o m p o n e n t */
|
|
160
|
+
/*-------------------------------------------------*/
|
|
161
|
+
const FRadio = (props) => {
|
|
162
|
+
var _a;
|
|
163
|
+
const hasColumns = !!props.columns;
|
|
164
|
+
const radioList = [];
|
|
165
|
+
for (let i = 0; i < ((_a = props.data) === null || _a === void 0 ? void 0 : _a.length); i++) {
|
|
166
|
+
const data = props.data[i];
|
|
167
|
+
const classObj = {
|
|
168
|
+
radio: true,
|
|
169
|
+
'radio--checked': data.checked ? true : false,
|
|
170
|
+
'radio--disabled': props.disabled ? true : false,
|
|
171
|
+
};
|
|
172
|
+
radioList.push(index.h("div", { class: `form-field ${props.leadingLabel ? ' form-field--align-end' : ''}` },
|
|
173
|
+
index.h("div", { class: classObj },
|
|
174
|
+
index.h("input", { class: "radio__native-control", type: "radio", name: "radio-element", value: data.value, checked: data.checked, disabled: props.disabled, onBlur: props.onBlur, onChange: props.onChange
|
|
175
|
+
? props.onChange.bind(props.onChange, i)
|
|
176
|
+
: null, onFocus: props.onFocus }),
|
|
177
|
+
index.h("div", { class: "radio__background" },
|
|
178
|
+
index.h("div", { class: "radio__outer-circle" }),
|
|
179
|
+
index.h("div", { class: "radio__inner-circle" }))),
|
|
180
|
+
index.h("label", { htmlFor: 'radio-element', onClick: props.onChange
|
|
181
|
+
? props.onChange.bind(props.onChange, i)
|
|
182
|
+
: null }, data.label ? data.label : '')));
|
|
183
|
+
}
|
|
184
|
+
const styleObj = {
|
|
185
|
+
'--kup_radio_columns': hasColumns
|
|
186
|
+
? `repeat(${props.columns}, 1fr)`
|
|
187
|
+
: '',
|
|
188
|
+
};
|
|
189
|
+
return (index.h("div", { class: `f-radio radio-wrapper ${hasColumns ? 'radio-wrapper-grid' : ''} ${props.danger ? 'kup-danger' : ''} ${props.info ? 'kup-info' : ''} ${props.secondary ? 'kup-secondary' : ''} ${props.success ? 'kup-success' : ''} ${props.warning ? 'kup-warning' : ''} ${props.wrapperClass ? props.wrapperClass : ''}`, style: styleObj }, radioList));
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
/*-------------------------------------------------*/
|
|
193
|
+
/* C o m p o n e n t */
|
|
194
|
+
/*-------------------------------------------------*/
|
|
195
|
+
const FRating = (props) => {
|
|
196
|
+
if (!props.maxValue) {
|
|
197
|
+
props.maxValue = 5;
|
|
198
|
+
}
|
|
199
|
+
return (index.h("div", { class: `f-rating ${props.disabled ? 'disabled' : ''} ${props.danger ? 'kup-danger' : ''} ${props.info ? 'kup-info' : ''} ${props.secondary ? 'kup-secondary' : ''} ${props.success ? 'kup-success' : ''} ${props.warning ? 'kup-warning' : ''} ${props.wrapperClass ? props.wrapperClass : ''}` }, buildStars(props)));
|
|
200
|
+
};
|
|
201
|
+
function buildStars(props) {
|
|
202
|
+
const stars = [];
|
|
203
|
+
for (let i = 1; i <= props.maxValue; i++) {
|
|
204
|
+
if (i <= props.value) {
|
|
205
|
+
stars.push(index.h("span", { class: "rating", onClick: props.onClick
|
|
206
|
+
? props.onClick.bind(props.onClick, i)
|
|
207
|
+
: null }, "\u2605"));
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
stars.push(index.h("span", { class: "rating", onClick: props.onClick
|
|
211
|
+
? props.onClick.bind(props.onClick, i)
|
|
212
|
+
: null }, "\u2606"));
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return stars;
|
|
216
|
+
}
|
|
217
|
+
|
|
59
218
|
const dom = document.documentElement;
|
|
60
219
|
/*-------------------------------------------------*/
|
|
61
220
|
/* C o m p o n e n t */
|
|
@@ -254,7 +413,14 @@ function setEditableCell(cellType, classObj, cell, column, props) {
|
|
|
254
413
|
if (isAutoCentered(props)) {
|
|
255
414
|
classObj[kupManager.FCellClasses.C_CENTERED] = true;
|
|
256
415
|
}
|
|
257
|
-
|
|
416
|
+
if (cell.shape === kupManager.FCellShapes.INPUT_CHECKBOX) {
|
|
417
|
+
return (index.h("input", { checked: cell.value === 'on' || cell.value === '1'
|
|
418
|
+
? true
|
|
419
|
+
: false, class: "input-checkbox", onChange: (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE), type: "checkbox" }));
|
|
420
|
+
}
|
|
421
|
+
else {
|
|
422
|
+
return (index.h(fCheckbox.FCheckbox, Object.assign({}, cell.data, { onChange: (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE) })));
|
|
423
|
+
}
|
|
258
424
|
case kupManager.FCellTypes.CHIP:
|
|
259
425
|
return (index.h("kup-chip", Object.assign({}, cell.data, { type: fChip.FChipType.INPUT, enableInput: true, "onKup-chip-change": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE) }),
|
|
260
426
|
index.h("kup-text-field", Object.assign({ fullWidth: true, slot: "field" }, cell.slotData))));
|
|
@@ -373,7 +539,7 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
|
|
|
373
539
|
if (isAutoCentered(props)) {
|
|
374
540
|
classObj[kupManager.FCellClasses.C_CENTERED] = true;
|
|
375
541
|
}
|
|
376
|
-
return (index.h(
|
|
542
|
+
return (index.h(fButton.FButton, Object.assign({}, subcomponentProps, { onClick: (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.CLICK) })));
|
|
377
543
|
case kupManager.FCellTypes.BUTTON_LIST:
|
|
378
544
|
if (isAutoCentered(props)) {
|
|
379
545
|
classObj[kupManager.FCellClasses.C_CENTERED] = true;
|
|
@@ -399,15 +565,15 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
|
|
|
399
565
|
return (index.h("kup-gauge", Object.assign({ key: column.name + props.row.id, value: dom.ketchup.math.numberifySafe(cell.value), "width-component": "280px" }, subcomponentProps)));
|
|
400
566
|
case kupManager.FCellTypes.KNOB:
|
|
401
567
|
case kupManager.FCellTypes.PROGRESS_BAR:
|
|
402
|
-
return (index.h("kup-progress-bar", Object.assign({ key: column.name + props.row.id }, subcomponentProps)));
|
|
568
|
+
return subcomponentProps.customStyle ? (index.h("kup-progress-bar", Object.assign({ key: column.name + props.row.id }, subcomponentProps))) : (index.h(FProgressBar, Object.assign({}, subcomponentProps)));
|
|
403
569
|
case kupManager.FCellTypes.RADIO:
|
|
404
570
|
if (isAutoCentered(props)) {
|
|
405
571
|
classObj[kupManager.FCellClasses.C_CENTERED] = true;
|
|
406
572
|
}
|
|
407
573
|
subcomponentProps['disabled'] = row.readOnly;
|
|
408
|
-
return
|
|
574
|
+
return index.h(FRadio, Object.assign({}, subcomponentProps));
|
|
409
575
|
case kupManager.FCellTypes.RATING:
|
|
410
|
-
return
|
|
576
|
+
return index.h(FRating, Object.assign({}, subcomponentProps, { disabled: true }));
|
|
411
577
|
}
|
|
412
578
|
}
|
|
413
579
|
function cellEvent(e, props, cellType, cellEventName) {
|
|
@@ -480,6 +646,9 @@ function getValueFromEventTaget(e, cellType) {
|
|
|
480
646
|
let value = isInputEvent
|
|
481
647
|
? e.target.value
|
|
482
648
|
: e.detail.value;
|
|
649
|
+
if (cellType === kupManager.FCellTypes.CHECKBOX && isInputEvent) {
|
|
650
|
+
value = e.target.checked ? 'off' : 'on';
|
|
651
|
+
}
|
|
483
652
|
if (cellType === kupManager.FCellTypes.NUMBER && isInputEvent) {
|
|
484
653
|
value = dom.ketchup.math.formattedStringToNumberString(value, '');
|
|
485
654
|
}
|
|
@@ -495,4 +664,7 @@ function isFullWidth(props) {
|
|
|
495
664
|
}
|
|
496
665
|
|
|
497
666
|
exports.FCell = FCell;
|
|
667
|
+
exports.FProgressBar = FProgressBar;
|
|
668
|
+
exports.FRadio = FRadio;
|
|
669
|
+
exports.FRating = FRating;
|
|
498
670
|
exports.FSwitch = FSwitch;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const fImage = require('./f-image-
|
|
5
|
-
const kupManager = require('./kup-manager-
|
|
3
|
+
const index = require('./index-d8e5eb5f.js');
|
|
4
|
+
const fImage = require('./f-image-66a3c3c1.js');
|
|
5
|
+
const kupManager = require('./kup-manager-7334c396.js');
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Types of the f-chip component.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const kupManager = require('./kup-manager-
|
|
3
|
+
const index = require('./index-d8e5eb5f.js');
|
|
4
|
+
const kupManager = require('./kup-manager-7334c396.js');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* The type of a CSS step in CSS-drawing mode.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const kupManager = require('./kup-manager-
|
|
4
|
-
const index = require('./index-
|
|
5
|
-
const fButton = require('./f-button-
|
|
3
|
+
const kupManager = require('./kup-manager-7334c396.js');
|
|
4
|
+
const index = require('./index-d8e5eb5f.js');
|
|
5
|
+
const fButton = require('./f-button-9ccadd52.js');
|
|
6
6
|
const fButtonDeclarations = require('./f-button-declarations-3fd791a8.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -871,19 +871,19 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
|
|
|
871
871
|
return;
|
|
872
872
|
}
|
|
873
873
|
keys.forEach((key) => {
|
|
874
|
-
const currentTotalValue = dom$2.ketchup.math.numberify(groupRow.group.totals[key] || 0);
|
|
875
874
|
const cell = addedRow.cells[key];
|
|
876
875
|
if (cell) {
|
|
877
|
-
|
|
876
|
+
const _isNumber = dom$2.ketchup.objects.isNumber(cell.obj);
|
|
878
877
|
const totalMode = totals[key];
|
|
879
878
|
switch (totalMode) {
|
|
880
879
|
case kupManager.TotalMode.COUNT:
|
|
881
|
-
groupRow.group.totals[key]
|
|
880
|
+
let currentTotalValue = groupRow.group.totals[key] || 0;
|
|
881
|
+
groupRow.group.totals[key] = ++currentTotalValue;
|
|
882
882
|
// updating parents
|
|
883
883
|
let parent = groupRow.group.parent;
|
|
884
884
|
while (parent != null) {
|
|
885
|
-
|
|
886
|
-
parent.group.totals[key] = currentParentCount
|
|
885
|
+
let currentParentCount = parent.group.totals[key] || 0;
|
|
886
|
+
parent.group.totals[key] = ++currentParentCount;
|
|
887
887
|
parent = parent.group.parent;
|
|
888
888
|
}
|
|
889
889
|
break;
|
|
@@ -941,8 +941,9 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
|
|
|
941
941
|
break;
|
|
942
942
|
case kupManager.TotalMode.SUM:
|
|
943
943
|
case kupManager.TotalMode.AVERAGE:
|
|
944
|
-
if (_isNumber) {
|
|
944
|
+
if (_isNumber && cell.value) {
|
|
945
945
|
const cellValue = dom$2.ketchup.math.numberify(dom$2.ketchup.math.numberifySafe(cell.value));
|
|
946
|
+
const currentTotalValue = groupRow.group.totals[key] || 0;
|
|
946
947
|
groupRow.group.totals[key] =
|
|
947
948
|
cellValue + currentTotalValue;
|
|
948
949
|
// updating parents
|
|
@@ -957,11 +958,11 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
|
|
|
957
958
|
break;
|
|
958
959
|
// TODO DRY the MIN and MAX functions
|
|
959
960
|
case kupManager.TotalMode.MIN:
|
|
960
|
-
if (_isNumber) {
|
|
961
|
-
const
|
|
961
|
+
if (_isNumber && cell.value) {
|
|
962
|
+
const currentMinValue = groupRow.group.totals[key];
|
|
962
963
|
const cellValue = dom$2.ketchup.math.numberify(dom$2.ketchup.math.numberifySafe(cell.value));
|
|
963
|
-
if (
|
|
964
|
-
groupRow.group.totals[key] = Math.min(
|
|
964
|
+
if (currentMinValue) {
|
|
965
|
+
groupRow.group.totals[key] = Math.min(currentMinValue, cellValue);
|
|
965
966
|
}
|
|
966
967
|
else {
|
|
967
968
|
// first round
|
|
@@ -981,22 +982,21 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
|
|
|
981
982
|
parent = parent.group.parent;
|
|
982
983
|
}
|
|
983
984
|
}
|
|
984
|
-
else if (
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
const currentTotalValue = groupRow.group.totals[key];
|
|
991
|
-
if (currentTotalValue) {
|
|
985
|
+
else if (cell.value &&
|
|
986
|
+
dom$2.ketchup.objects.isDate(cell.obj)) {
|
|
987
|
+
const cellValue = dom$2.ketchup.dates.toDayjs(cell.value);
|
|
988
|
+
if (dom$2.ketchup.dates.isValid(cellValue)) {
|
|
989
|
+
const currentMinValue = groupRow.group.totals[key];
|
|
990
|
+
if (currentMinValue) {
|
|
992
991
|
let moments = [];
|
|
993
992
|
moments.push(cellValue);
|
|
994
|
-
moments.push(dom$2.ketchup.dates.
|
|
993
|
+
moments.push(dom$2.ketchup.dates.toDayjs(currentMinValue));
|
|
995
994
|
groupRow.group.totals[key] =
|
|
996
|
-
dom$2.ketchup.dates.format(dom$2.ketchup.dates.min(moments));
|
|
995
|
+
dom$2.ketchup.dates.format(dom$2.ketchup.dates.min(moments), kupManager.KupDatesFormats.ISO_DATE);
|
|
997
996
|
}
|
|
998
997
|
else {
|
|
999
|
-
groupRow.group.totals[key] =
|
|
998
|
+
groupRow.group.totals[key] =
|
|
999
|
+
dom$2.ketchup.dates.format(cellValue, kupManager.KupDatesFormats.ISO_DATE);
|
|
1000
1000
|
}
|
|
1001
1001
|
// updating parents
|
|
1002
1002
|
let parent = groupRow.group.parent;
|
|
@@ -1005,13 +1005,14 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
|
|
|
1005
1005
|
if (currentParentMin) {
|
|
1006
1006
|
let moments = [];
|
|
1007
1007
|
moments.push(cellValue);
|
|
1008
|
-
moments.push(dom$2.ketchup.dates.
|
|
1008
|
+
moments.push(dom$2.ketchup.dates.toDayjs(currentParentMin));
|
|
1009
1009
|
parent.group.totals[key] =
|
|
1010
|
-
dom$2.ketchup.dates.format(dom$2.ketchup.dates.min(moments));
|
|
1010
|
+
dom$2.ketchup.dates.format(dom$2.ketchup.dates.min(moments), kupManager.KupDatesFormats.ISO_DATE);
|
|
1011
1011
|
}
|
|
1012
1012
|
else {
|
|
1013
1013
|
// first round
|
|
1014
|
-
parent.group.totals[key] =
|
|
1014
|
+
parent.group.totals[key] =
|
|
1015
|
+
dom$2.ketchup.dates.format(cellValue, kupManager.KupDatesFormats.ISO_DATE);
|
|
1015
1016
|
}
|
|
1016
1017
|
parent = parent.group.parent;
|
|
1017
1018
|
}
|
|
@@ -1020,11 +1021,11 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
|
|
|
1020
1021
|
break;
|
|
1021
1022
|
// TODO DRY the MIN and MAX functions
|
|
1022
1023
|
case kupManager.TotalMode.MAX:
|
|
1023
|
-
if (_isNumber) {
|
|
1024
|
-
const
|
|
1024
|
+
if (_isNumber && cell.value) {
|
|
1025
|
+
const currentMaxValue = groupRow.group.totals[key];
|
|
1025
1026
|
const cellValue = dom$2.ketchup.math.numberify(dom$2.ketchup.math.numberifySafe(cell.value));
|
|
1026
|
-
if (
|
|
1027
|
-
groupRow.group.totals[key] = Math.max(
|
|
1027
|
+
if (currentMaxValue) {
|
|
1028
|
+
groupRow.group.totals[key] = Math.max(currentMaxValue, cellValue);
|
|
1028
1029
|
}
|
|
1029
1030
|
else {
|
|
1030
1031
|
// first round
|
|
@@ -1044,37 +1045,37 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
|
|
|
1044
1045
|
parent = parent.group.parent;
|
|
1045
1046
|
}
|
|
1046
1047
|
}
|
|
1047
|
-
else if (
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
const currentTotalValue = groupRow.group.totals[key];
|
|
1054
|
-
if (currentTotalValue) {
|
|
1048
|
+
else if (cell.value &&
|
|
1049
|
+
dom$2.ketchup.objects.isDate(cell.obj)) {
|
|
1050
|
+
const cellValue = dom$2.ketchup.dates.toDayjs(cell.value);
|
|
1051
|
+
if (dom$2.ketchup.dates.isValid(cellValue)) {
|
|
1052
|
+
const currentMaxValue = groupRow.group.totals[key];
|
|
1053
|
+
if (currentMaxValue) {
|
|
1055
1054
|
let moments = [];
|
|
1056
1055
|
moments.push(cellValue);
|
|
1057
|
-
moments.push(dom$2.ketchup.dates.
|
|
1056
|
+
moments.push(dom$2.ketchup.dates.toDayjs(currentMaxValue));
|
|
1058
1057
|
groupRow.group.totals[key] =
|
|
1059
|
-
dom$2.ketchup.dates.format(dom$2.ketchup.dates.max(moments));
|
|
1058
|
+
dom$2.ketchup.dates.format(dom$2.ketchup.dates.max(moments), kupManager.KupDatesFormats.ISO_DATE);
|
|
1060
1059
|
}
|
|
1061
1060
|
else {
|
|
1062
|
-
groupRow.group.totals[key] =
|
|
1061
|
+
groupRow.group.totals[key] =
|
|
1062
|
+
dom$2.ketchup.dates.format(cellValue, kupManager.KupDatesFormats.ISO_DATE);
|
|
1063
1063
|
}
|
|
1064
1064
|
// updating parents
|
|
1065
1065
|
let parent = groupRow.group.parent;
|
|
1066
1066
|
while (parent != null) {
|
|
1067
|
-
const
|
|
1068
|
-
if (
|
|
1067
|
+
const currentParentMax = parent.group.totals[key];
|
|
1068
|
+
if (currentParentMax) {
|
|
1069
1069
|
let moments = [];
|
|
1070
1070
|
moments.push(cellValue);
|
|
1071
|
-
moments.push(dom$2.ketchup.dates.
|
|
1071
|
+
moments.push(dom$2.ketchup.dates.toDayjs(currentParentMax));
|
|
1072
1072
|
parent.group.totals[key] =
|
|
1073
|
-
dom$2.ketchup.dates.format(dom$2.ketchup.dates.max(moments));
|
|
1073
|
+
dom$2.ketchup.dates.format(dom$2.ketchup.dates.max(moments), kupManager.KupDatesFormats.ISO_DATE);
|
|
1074
1074
|
}
|
|
1075
1075
|
else {
|
|
1076
1076
|
// first round
|
|
1077
|
-
parent.group.totals[key] =
|
|
1077
|
+
parent.group.totals[key] =
|
|
1078
|
+
dom$2.ketchup.dates.format(cellValue, kupManager.KupDatesFormats.ISO_DATE);
|
|
1078
1079
|
}
|
|
1079
1080
|
parent = parent.group.parent;
|
|
1080
1081
|
}
|
|
@@ -1163,9 +1164,7 @@ function adjustGroupAverageOrFormula(row, type, toAdjustKeys, totals) {
|
|
|
1163
1164
|
// adjust average/formulas
|
|
1164
1165
|
toAdjustKeys.forEach((key) => {
|
|
1165
1166
|
if (type == kupManager.TotalMode.AVERAGE) {
|
|
1166
|
-
row.group.totals[key] =
|
|
1167
|
-
dom$2.ketchup.math.numberify(row.group.totals[key]) /
|
|
1168
|
-
numberOfLeaf;
|
|
1167
|
+
row.group.totals[key] = row.group.totals[key] / numberOfLeaf;
|
|
1169
1168
|
}
|
|
1170
1169
|
if (type == kupManager.TotalMode.MATH) {
|
|
1171
1170
|
let formula = totals[key].substring(kupManager.TotalMode.MATH.length);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const kupManager = require('./kup-manager-
|
|
3
|
+
const index = require('./index-d8e5eb5f.js');
|
|
4
|
+
const kupManager = require('./kup-manager-7334c396.js');
|
|
5
5
|
|
|
6
6
|
const dom = document.documentElement;
|
|
7
7
|
/*-------------------------------------------------*/
|
|
@@ -57,7 +57,8 @@ function setContent(props) {
|
|
|
57
57
|
let value = props.value;
|
|
58
58
|
let inputType = (_a = props.inputType) !== null && _a !== void 0 ? _a : 'text';
|
|
59
59
|
let persManageForNumberFormat = false;
|
|
60
|
-
if (props.inputType === 'number' &&
|
|
60
|
+
if (props.inputType === 'number' &&
|
|
61
|
+
((props.decimals && props.decimals > 0) || props.group)) {
|
|
61
62
|
inputType = 'text';
|
|
62
63
|
persManageForNumberFormat = true;
|
|
63
64
|
}
|
|
@@ -101,7 +102,40 @@ function setContent(props) {
|
|
|
101
102
|
group: props.group,
|
|
102
103
|
integer: props.integers,
|
|
103
104
|
};
|
|
104
|
-
|
|
105
|
+
if (props.min !== undefined &&
|
|
106
|
+
props.min !== null &&
|
|
107
|
+
props.min >
|
|
108
|
+
parseFloat(e.target.value)) {
|
|
109
|
+
e.target.value =
|
|
110
|
+
formatValue(props.min.toString(), options, true);
|
|
111
|
+
}
|
|
112
|
+
else if (props.max !== undefined &&
|
|
113
|
+
props.max !== null &&
|
|
114
|
+
props.max <
|
|
115
|
+
parseFloat(e.target.value)) {
|
|
116
|
+
e.target.value =
|
|
117
|
+
formatValue(props.max.toString(), options, true);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
e.target.value =
|
|
121
|
+
formatValue(e.target.value, options, true);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
if (props.min !== undefined &&
|
|
126
|
+
props.min !== null &&
|
|
127
|
+
props.min >
|
|
128
|
+
parseFloat(e.target.value)) {
|
|
129
|
+
e.target.value =
|
|
130
|
+
props.min.toString();
|
|
131
|
+
}
|
|
132
|
+
else if (props.max !== undefined &&
|
|
133
|
+
props.max !== null &&
|
|
134
|
+
props.max <
|
|
135
|
+
parseFloat(e.target.value)) {
|
|
136
|
+
e.target.value =
|
|
137
|
+
props.max.toString();
|
|
138
|
+
}
|
|
105
139
|
}
|
|
106
140
|
if (props.onChange) {
|
|
107
141
|
props.onChange(e);
|