@sme.up/ketchup 11.0.0-SNAPSHOT-20241029160403 → 11.0.0-SNAPSHOT-20241030135105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-cell-51f23dcb.js → f-cell-ccde7158.js} +4 -4
- package/dist/cjs/{f-cell-51f23dcb.js.map → f-cell-ccde7158.js.map} +1 -1
- package/dist/cjs/{f-chip-b49adf5f.js → f-chip-dbe137ed.js} +2 -2
- package/dist/cjs/{f-chip-b49adf5f.js.map → f-chip-dbe137ed.js.map} +1 -1
- package/dist/cjs/{f-paginator-utils-5d1c3cbe.js → f-paginator-utils-4cf8ac1e.js} +2 -2
- package/dist/cjs/{f-paginator-utils-5d1c3cbe.js.map → f-paginator-utils-4cf8ac1e.js.map} +1 -1
- package/dist/cjs/{f-text-field-03d5cda6.js → f-text-field-8b373b26.js} +2 -2
- package/dist/cjs/{f-text-field-03d5cda6.js.map → f-text-field-8b373b26.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_28.cjs.entry.js +6 -6
- package/dist/cjs/kup-box.cjs.entry.js +6 -6
- package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +4 -4
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-5f2f9608.js → kup-data-table-helper-bef7a94e.js} +2 -2
- package/dist/cjs/{kup-data-table-helper-5f2f9608.js.map → kup-data-table-helper-bef7a94e.js.map} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-input-panel.cjs.entry.js +96 -55
- package/dist/cjs/kup-input-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +1 -1
- package/dist/cjs/{kup-manager-51a6b521.js → kup-manager-6e414e08.js} +112 -82
- package/dist/cjs/kup-manager-6e414e08.js.map +1 -0
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
- package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
- package/dist/cjs/kup-planner.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +3 -2
- package/dist/cjs/kup-typography.cjs.entry.js.map +1 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +92 -51
- package/dist/collection/components/kup-input-panel/kup-input-panel.js.map +1 -1
- package/dist/collection/components/kup-typography/assets/fonts/IBMPlexMono-Regular.woff +0 -0
- package/dist/collection/components/kup-typography/assets/fonts/IBMPlexMono-Regular.woff2 +0 -0
- package/dist/collection/components/kup-typography/assets/fonts/IBMPlexSans-Regular.woff +0 -0
- package/dist/collection/components/kup-typography/assets/fonts/IBMPlexSans-Regular.woff2 +0 -0
- package/dist/collection/components/kup-typography/kup-typography.js +2 -1
- package/dist/collection/components/kup-typography/kup-typography.js.map +1 -1
- package/dist/collection/managers/kup-language/kup-language-declarations.js +1 -0
- package/dist/collection/managers/kup-language/kup-language-declarations.js.map +1 -1
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +9 -0
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js.map +1 -1
- package/dist/collection/managers/kup-theme/kup-theme.js +17 -14
- package/dist/collection/managers/kup-theme/kup-theme.js.map +1 -1
- package/dist/components/kup-input-panel.js +92 -51
- package/dist/components/kup-input-panel.js.map +1 -1
- package/dist/components/kup-manager.js +111 -81
- package/dist/components/kup-manager.js.map +1 -1
- package/dist/components/kup-typography.js +2 -1
- package/dist/components/kup-typography.js.map +1 -1
- package/dist/esm/{f-cell-a11f1068.js → f-cell-e6b53a87.js} +4 -4
- package/dist/esm/{f-cell-a11f1068.js.map → f-cell-e6b53a87.js.map} +1 -1
- package/dist/esm/{f-chip-6a8151c3.js → f-chip-ebf776f3.js} +2 -2
- package/dist/esm/{f-chip-6a8151c3.js.map → f-chip-ebf776f3.js.map} +1 -1
- package/dist/esm/{f-paginator-utils-1b1bf83b.js → f-paginator-utils-2aac0d1a.js} +2 -2
- package/dist/esm/{f-paginator-utils-1b1bf83b.js.map → f-paginator-utils-2aac0d1a.js.map} +1 -1
- package/dist/esm/{f-text-field-ba253046.js → f-text-field-ca6c5386.js} +2 -2
- package/dist/esm/{f-text-field-ba253046.js.map → f-text-field-ca6c5386.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/kup-accordion.entry.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_28.entry.js +6 -6
- package/dist/esm/kup-box.entry.js +6 -6
- package/dist/esm/kup-calendar.entry.js +2 -2
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +4 -4
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-cf099214.js → kup-data-table-helper-2ff0b12a.js} +2 -2
- package/dist/esm/{kup-data-table-helper-cf099214.js.map → kup-data-table-helper-2ff0b12a.js.map} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-editor.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +1 -1
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +4 -4
- package/dist/esm/kup-input-panel.entry.js +96 -55
- package/dist/esm/kup-input-panel.entry.js.map +1 -1
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-58202f14.js → kup-manager-1d6b8b1a.js} +112 -82
- package/dist/esm/kup-manager-1d6b8b1a.js.map +1 -0
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-photo-frame.entry.js +1 -1
- package/dist/esm/kup-planner.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +3 -2
- package/dist/esm/kup-typography.entry.js.map +1 -1
- package/dist/ketchup/assets/fonts/IBMPlexMono-Regular.woff +0 -0
- package/dist/ketchup/assets/fonts/IBMPlexMono-Regular.woff2 +0 -0
- package/dist/ketchup/assets/fonts/IBMPlexSans-Regular.woff +0 -0
- package/dist/ketchup/assets/fonts/IBMPlexSans-Regular.woff2 +0 -0
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-81e39d58.entry.js → p-0b4f6874.entry.js} +2 -2
- package/dist/ketchup/{p-1b82fe39.entry.js → p-16e93198.entry.js} +2 -2
- package/dist/ketchup/{p-fb33b3c1.entry.js → p-18481eec.entry.js} +2 -2
- package/dist/ketchup/{p-d6761118.entry.js → p-192c022f.entry.js} +2 -2
- package/dist/ketchup/{p-7c94e917.entry.js → p-196f3059.entry.js} +2 -2
- package/dist/ketchup/{p-8452e252.entry.js → p-2389ccc1.entry.js} +2 -2
- package/dist/ketchup/{p-c4129003.entry.js → p-4799c97f.entry.js} +2 -2
- package/dist/ketchup/{p-05da2b79.entry.js → p-587e12b4.entry.js} +2 -2
- package/dist/ketchup/{p-6ea6f43e.entry.js → p-607b83f5.entry.js} +2 -2
- package/dist/ketchup/{p-c40ad67f.entry.js → p-62596f5d.entry.js} +2 -2
- package/dist/ketchup/{p-32042eb5.entry.js → p-67763e23.entry.js} +2 -2
- package/dist/ketchup/{p-a27d4e3d.entry.js → p-7cdceaea.entry.js} +2 -2
- package/dist/ketchup/{p-22a17b5a.js → p-7d7b8718.js} +2 -2
- package/dist/ketchup/{p-824a75e1.entry.js → p-853e2b1d.entry.js} +2 -2
- package/dist/ketchup/p-86b6489e.js +29 -0
- package/dist/ketchup/p-86b6489e.js.map +1 -0
- package/dist/ketchup/{p-c3bc85c3.entry.js → p-8ab1203f.entry.js} +2 -2
- package/dist/ketchup/{p-5cc75efb.entry.js → p-8e844b9d.entry.js} +2 -2
- package/dist/ketchup/{p-d2bf9725.entry.js → p-9da57972.entry.js} +2 -2
- package/dist/ketchup/{p-2724b666.js → p-a16707d1.js} +2 -2
- package/dist/ketchup/{p-837824a9.entry.js → p-a3ace76e.entry.js} +2 -2
- package/dist/ketchup/{p-8a6b8754.entry.js → p-a55d2c8b.entry.js} +2 -2
- package/dist/ketchup/{p-4ac3481d.entry.js → p-affd9a2c.entry.js} +2 -2
- package/dist/ketchup/{p-879a4c67.entry.js → p-b0ca996f.entry.js} +2 -2
- package/dist/ketchup/p-b0ca996f.entry.js.map +1 -0
- package/dist/ketchup/{p-8dacbd87.entry.js → p-bb7dddb3.entry.js} +2 -2
- package/dist/ketchup/{p-a44b1d04.entry.js → p-c4ae346f.entry.js} +2 -2
- package/dist/ketchup/{p-6278ee25.entry.js → p-cc901eb3.entry.js} +2 -2
- package/dist/ketchup/{p-17992b1b.entry.js → p-d5325eb6.entry.js} +2 -2
- package/dist/ketchup/{p-838b6a2f.entry.js → p-d6243c07.entry.js} +2 -2
- package/dist/ketchup/{p-2292af7c.entry.js → p-deb86dcb.entry.js} +2 -2
- package/dist/ketchup/{p-01ff9884.js → p-e9388650.js} +2 -2
- package/dist/ketchup/{p-6a532839.js → p-f3f54269.js} +2 -2
- package/dist/ketchup/{p-0b4f9fbd.entry.js → p-f59fb7d0.entry.js} +2 -2
- package/dist/ketchup/{p-f6103b1d.entry.js → p-f607dc0d.entry.js} +2 -2
- package/dist/ketchup/p-fc91cec3.entry.js +2 -0
- package/dist/ketchup/p-fc91cec3.entry.js.map +1 -0
- package/dist/ketchup/{p-c670c1ae.js → p-fe31a004.js} +2 -2
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +2 -1
- package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +6 -1
- package/dist/types/managers/kup-theme/kup-theme.d.ts +1 -4
- package/package.json +1 -1
- package/dist/cjs/kup-manager-51a6b521.js.map +0 -1
- package/dist/esm/kup-manager-58202f14.js.map +0 -1
- package/dist/ketchup/p-56e04d74.js +0 -29
- package/dist/ketchup/p-56e04d74.js.map +0 -1
- package/dist/ketchup/p-879a4c67.entry.js.map +0 -1
- package/dist/ketchup/p-ffc02752.entry.js +0 -2
- package/dist/ketchup/p-ffc02752.entry.js.map +0 -1
- /package/dist/ketchup/{p-81e39d58.entry.js.map → p-0b4f6874.entry.js.map} +0 -0
- /package/dist/ketchup/{p-1b82fe39.entry.js.map → p-16e93198.entry.js.map} +0 -0
- /package/dist/ketchup/{p-fb33b3c1.entry.js.map → p-18481eec.entry.js.map} +0 -0
- /package/dist/ketchup/{p-d6761118.entry.js.map → p-192c022f.entry.js.map} +0 -0
- /package/dist/ketchup/{p-7c94e917.entry.js.map → p-196f3059.entry.js.map} +0 -0
- /package/dist/ketchup/{p-8452e252.entry.js.map → p-2389ccc1.entry.js.map} +0 -0
- /package/dist/ketchup/{p-c4129003.entry.js.map → p-4799c97f.entry.js.map} +0 -0
- /package/dist/ketchup/{p-05da2b79.entry.js.map → p-587e12b4.entry.js.map} +0 -0
- /package/dist/ketchup/{p-6ea6f43e.entry.js.map → p-607b83f5.entry.js.map} +0 -0
- /package/dist/ketchup/{p-c40ad67f.entry.js.map → p-62596f5d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-32042eb5.entry.js.map → p-67763e23.entry.js.map} +0 -0
- /package/dist/ketchup/{p-a27d4e3d.entry.js.map → p-7cdceaea.entry.js.map} +0 -0
- /package/dist/ketchup/{p-22a17b5a.js.map → p-7d7b8718.js.map} +0 -0
- /package/dist/ketchup/{p-824a75e1.entry.js.map → p-853e2b1d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-c3bc85c3.entry.js.map → p-8ab1203f.entry.js.map} +0 -0
- /package/dist/ketchup/{p-5cc75efb.entry.js.map → p-8e844b9d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-d2bf9725.entry.js.map → p-9da57972.entry.js.map} +0 -0
- /package/dist/ketchup/{p-2724b666.js.map → p-a16707d1.js.map} +0 -0
- /package/dist/ketchup/{p-837824a9.entry.js.map → p-a3ace76e.entry.js.map} +0 -0
- /package/dist/ketchup/{p-8a6b8754.entry.js.map → p-a55d2c8b.entry.js.map} +0 -0
- /package/dist/ketchup/{p-4ac3481d.entry.js.map → p-affd9a2c.entry.js.map} +0 -0
- /package/dist/ketchup/{p-8dacbd87.entry.js.map → p-bb7dddb3.entry.js.map} +0 -0
- /package/dist/ketchup/{p-a44b1d04.entry.js.map → p-c4ae346f.entry.js.map} +0 -0
- /package/dist/ketchup/{p-6278ee25.entry.js.map → p-cc901eb3.entry.js.map} +0 -0
- /package/dist/ketchup/{p-17992b1b.entry.js.map → p-d5325eb6.entry.js.map} +0 -0
- /package/dist/ketchup/{p-838b6a2f.entry.js.map → p-d6243c07.entry.js.map} +0 -0
- /package/dist/ketchup/{p-2292af7c.entry.js.map → p-deb86dcb.entry.js.map} +0 -0
- /package/dist/ketchup/{p-01ff9884.js.map → p-e9388650.js.map} +0 -0
- /package/dist/ketchup/{p-6a532839.js.map → p-f3f54269.js.map} +0 -0
- /package/dist/ketchup/{p-0b4f9fbd.entry.js.map → p-f59fb7d0.entry.js.map} +0 -0
- /package/dist/ketchup/{p-f6103b1d.entry.js.map → p-f607dc0d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-c670c1ae.js.map → p-fe31a004.js.map} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-6e414e08.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-3fc9697c.js');
|
|
9
9
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-6e414e08.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
|
-
const fTextField = require('./f-text-field-
|
|
8
|
+
const fTextField = require('./f-text-field-8b373b26.js');
|
|
9
9
|
const fTextFieldMdc = require('./f-text-field-mdc-2a3c8c01.js');
|
|
10
10
|
require('./kup-dates-3fc9697c.js');
|
|
11
11
|
require('./f-image-8dbf27a2.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-6e414e08.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const kupDates = require('./kup-dates-3fc9697c.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-6e414e08.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-3fc9697c.js');
|
|
9
9
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager$1 = require('./kup-manager-
|
|
6
|
+
const kupManager$1 = require('./kup-manager-6e414e08.js');
|
|
7
7
|
const kupPlannerDeclarations = require('./kup-planner-declarations-7291d01c.js');
|
|
8
8
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
9
|
-
const fTextField = require('./f-text-field-
|
|
9
|
+
const fTextField = require('./f-text-field-8b373b26.js');
|
|
10
10
|
const fTextFieldMdc = require('./f-text-field-mdc-2a3c8c01.js');
|
|
11
11
|
require('./kup-dates-3fc9697c.js');
|
|
12
12
|
require('./f-image-8dbf27a2.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-6e414e08.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-3fc9697c.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-6e414e08.js');
|
|
7
7
|
require('./kup-dates-3fc9697c.js');
|
|
8
8
|
|
|
9
9
|
const kupQlikCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.kup-qlik-container-fluid{width:100%}.kup-qlik-container{width:100%}@media (min-width: 576px){.kup-qlik-container{width:576px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 768px){.kup-qlik-container{width:768px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 992px){.kup-qlik-container{width:992px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 1200px){.kup-qlik-container{width:1200px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}.kup-qlik-row{display:flex;display:ms-flexbox;flex-wrap:wrap;-ms-flex-wrap:wrap;margin-bottom:5px}.kup-qlik-row .size-M{height:var(--lyo_obj-height)}.kup-qlik-row .size-S{height:calc(var(--lyo_obj-height) / 2)}.kup-qlik-row .size-XS{height:calc(var(--lyo_obj-height) / 3)}.kup-qlik-row .size-L{height:calc(var(--lyo_obj-height) * 2)}.kup-qlik-row .size-XL{height:calc(var(--lyo_obj-height) * 3)}.kup-qlik-row .bordered{border:1px solid var(--kup-border-subtle, #969696)}.kup-qlik-row .width-1{width:8.3333%}.kup-qlik-row .width-2{width:16.6666%}.kup-qlik-row .width-3{width:25%}.kup-qlik-row .width-4{width:33.3333%}.kup-qlik-row .width-5{width:41.6666%}.kup-qlik-row .width-6{width:50%}.kup-qlik-row .width-7{width:58.3333%}.kup-qlik-row .width-8{width:66.6666%}.kup-qlik-row .width-9{width:75%}.kup-qlik-row .width-10{width:83.3333%}.kup-qlik-row .width-11{width:91.6666%}.kup-qlik-row .width-12{width:100%}";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-6e414e08.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const fButton = require('./f-button-54d0f017.js');
|
|
9
9
|
require('./kup-dates-3fc9697c.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-6e414e08.js');
|
|
7
7
|
const fTypography = require('./f-typography-024bace8.js');
|
|
8
8
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
9
9
|
require('./kup-dates-3fc9697c.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-6e414e08.js');
|
|
7
7
|
const fTypography = require('./f-typography-024bace8.js');
|
|
8
8
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
9
9
|
const fImage = require('./f-image-8dbf27a2.js');
|
|
@@ -187,7 +187,7 @@ const KupTypography = class {
|
|
|
187
187
|
const classObjParent = {
|
|
188
188
|
'kup-typography--wrap': props.toolbar ? true : false,
|
|
189
189
|
};
|
|
190
|
-
return (index.h(index.Host, { key: '
|
|
190
|
+
return (index.h(index.Host, { key: '94065214e2a71b21f5c267b9e674a87b80c9875c' }, index.h("style", { key: '4bb5e3698c6f7a0ec37b13ddc461d4c3e08ad71f' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: '2c3d0c38823f5444d9cf94f141f4399b32b0f1f4', id: GenericVariables.componentWrapperId, class: classObjParent, onClick: () => this.onKupClick }, index.h(fTypography.FTypography, Object.assign({ key: '4486f4bb1ef72269e23cb1f5277657310789a277' }, props)), index.h(fImage.FImage, Object.assign({ key: '66a5d473165b7b1f2467fb4e4210011fbb32016a' }, propsFImage, { onClick: (event) => {
|
|
191
191
|
event.stopPropagation();
|
|
192
192
|
this.onKupIconClick(event.currentTarget);
|
|
193
193
|
} })))));
|
|
@@ -195,6 +195,7 @@ const KupTypography = class {
|
|
|
195
195
|
disconnectedCallback() {
|
|
196
196
|
this.kupManager.theme.unregister(this);
|
|
197
197
|
}
|
|
198
|
+
static get assetsDirs() { return ["assets/fonts"]; }
|
|
198
199
|
get rootElement() { return index.getElement(this); }
|
|
199
200
|
};
|
|
200
201
|
_KupTypography_clickCbDropCard = new WeakMap(), _KupTypography_dropDownActionCardAnchor = new WeakMap();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"kup-typography.entry.cjs.js","mappings":";;;;;;;;;;;AAEA;;;;AAIA,IAAY,kBAcX;AAdD,WAAY,kBAAkB;IAC1B,mDAA6B,CAAA;IAC7B,2DAAqC,CAAA;IACrC,kEAA4C,CAAA;IAC5C,mEAA6C,CAAA;IAC7C,8CAAwB,CAAA;IACxB,0EAAoD,CAAA;IACpD,qFAA+D,CAAA;IAC/D,6DAAuC,CAAA;IACvC,yEAAmD,CAAA;IACnD,wEAAkD,CAAA;IAClD,2EAAqD,CAAA;IACrD,0EAAoD,CAAA;IACpD,uJAAiI,CAAA;AACrI,CAAC,EAdW,kBAAkB,KAAlB,kBAAkB;;ACN9B,MAAM,gBAAgB,GAAG,uxEAAuxE,CAAC;AACjzE,4BAAe,gBAAgB;;;;;;;;;;;;;;;;;;;MC2ClB,aAAa;;;;;;;;;;;;QA4Cd,eAAU,GAAeA,6BAAkB,EAAE,CAAC;QACtD,yCAAsC,IAAI,EAAC;QAK3C,kDAAyC,IAAI,EAAC;2BAnChB,EAAE;uBAKL,IAAI;;oBAUCC,2BAAe,CAAC,YAAY;qBAKpC,IAAI;;IA6C5B,UAAU;QACN,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YACf,IAAI,EAAE,I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AC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;KAC1C;;;;;;;;","names":["kupManagerInstance","FTypographyType","KupDynamicPositionPlacement","getProps","forceUpdate","setProps","h","Host","componentWrapperId","FTypography","FImage"],"sources":["src/components/kup-typography/kup-typography-declarations.ts","src/components/kup-typography/kup-typography.scss?tag=kup-typography&encapsulation=shadow","src/components/kup-typography/kup-typography.tsx"],"sourcesContent":["import { KupEventPayload } from '../../types/GenericTypes';\n\n/**\n * Props of the kup-typography component.\n * Used to export every prop in an object.\n */\nexport enum KupTypographyProps {\n data = 'the text of the text',\n Style = 'it is the style of the text',\n Border = 'when true it will appear a border',\n BorderWidth = 'it is the width of the border',\n Align = 'text alignment',\n FontBold = 'when true it will display the bold font',\n FontItalic = 'when true it will display the italic ( cursive )',\n FontName = 'it is the name of the font',\n FontSize = 'it is the size of the font of the text',\n FontULine = 'when true it will show the underline',\n FontColor = 'it is the color of the font of the text',\n BackColor = 'it is the background color of the text',\n Type = 'it is the type of the font. It is an enum that can take from different variant such as body, heading1, caption and so on',\n}\n\nexport interface KupTypographyIconClickEventPayload extends KupEventPayload {}\n\nexport interface KupTypographyClickEventPayload extends KupEventPayload {\n value: string;\n}\n","@import 'styles/kup-typography-main.scss';\n@import 'styles/kup-typography-classes.scss';\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n forceUpdate,\n h,\n Host,\n Method,\n Prop,\n} from '@stencil/core';\nimport { GenericObject, KupComponent } from '../../types/GenericTypes';\nimport { getProps, setProps } from '../../utils/utils';\nimport {\n KupManager,\n KupManagerClickCb,\n} from '../../managers/kup-manager/kup-manager-declarations';\nimport { kupManagerInstance } from '../../managers/kup-manager/kup-manager';\nimport { FTypography } from '../../f-components/f-typography/f-typography';\nimport {\n FTypographyProps,\n FTypographyType,\n} from '../../f-components/f-typography/f-typography-declarations';\nimport {\n KupTypographyClickEventPayload,\n KupTypographyIconClickEventPayload,\n KupTypographyProps,\n} from './kup-typography-declarations';\nimport { KupDataNode } from '../../managers/kup-data/kup-data-declarations';\nimport {\n KupDynamicPositionAnchor,\n KupDynamicPositionElement,\n KupDynamicPositionPlacement,\n} from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';\nimport { componentWrapperId } from '../../variables/GenericVariables';\nimport { FImage } from '../../f-components/f-image/f-image';\nimport { FImageProps } from '../../f-components/f-image/f-image-declarations';\nimport { KupToolbarItemClickEventPayload } from '../../components/kup-toolbar/kup-toolbar-declarations';\n\n@Component({\n tag: 'kup-typography',\n styleUrl: 'kup-typography.scss',\n shadow: true,\n})\nexport class KupTypography {\n /**\n * References the root HTML element of the component (<kup-typography>).\n */\n @Element() rootElement: HTMLElement;\n\n /*-------------------------------------------------*/\n /* P r o p s */\n /*-------------------------------------------------*/\n\n /**\n * Custom style of the component.\n * @default \"\"\n * @see https://smeup.github.io/ketchup/#/customization\n */\n @Prop() customStyle: string = '';\n /**\n * Manage the toolbar icon. If true is visible, otherwise is not\n * @default null\n */\n @Prop() toolbar: boolean = true;\n /**\n * Display DataNode Toolbar.\n * @default null\n */\n @Prop() toolbarData: KupDataNode[];\n /**\n * Sets the sizing of the textfield\n * @default FTypographyType.BODY_COMPACT\n */\n @Prop() type: FTypographyType = FTypographyType.BODY_COMPACT;\n /**\n * This is the content of the text\n * @default null\n */\n @Prop() value: string = null;\n\n /*-------------------------------------------------*/\n /* I n t e r n a l V a r i a b l e s */\n /*-------------------------------------------------*/\n\n /**\n * Instance of the KupManager class.\n */\n private kupManager: KupManager = kupManagerInstance();\n #clickCbDropCard: KupManagerClickCb = null;\n /**\n * Toolbar List.\n */\n private toolbarList: KupDynamicPositionElement;\n #dropDownActionCardAnchor: HTMLElement = null;\n\n /*-------------------------------------------------*/\n /* E v e n t s */\n /*-------------------------------------------------*/\n\n @Event({\n eventName: 'kup-typography-iconclick',\n composed: true,\n cancelable: false,\n bubbles: true,\n })\n kupIconClick: EventEmitter<KupTypographyIconClickEventPayload>;\n\n @Event({\n eventName: 'kup-typography-click',\n composed: true,\n cancelable: false,\n bubbles: true,\n })\n kupClick: EventEmitter<KupTypographyClickEventPayload>;\n\n @Event({\n eventName: 'kup-typography-itemclick',\n composed: true,\n cancelable: false,\n bubbles: true,\n })\n kupItemClick: EventEmitter<KupToolbarItemClickEventPayload>;\n\n onKupClick() {\n this.kupClick.emit({\n comp: this,\n id: this.rootElement.id,\n value: this.value,\n });\n }\n\n onKupIconClick(el: HTMLElement) {\n this.#dropDownActionCardAnchor = el;\n this.kupIconClick.emit({\n comp: this,\n id: this.rootElement.id,\n });\n this.createDropDownToolbarList();\n }\n\n onKupToolbarItemClick(e: CustomEvent) {\n this.kupItemClick.emit({\n comp: this,\n id: this.rootElement.id,\n value: this.value,\n node: e.detail.selected,\n });\n }\n\n /*-------------------------------------------------*/\n /* P r i v a t e M e t h o d s */\n /*-------------------------------------------------*/\n\n closeRowToolbarList() {\n if (this.toolbarList) {\n this.kupManager.dynamicPosition.stop(\n this.toolbarList as KupDynamicPositionElement\n );\n this.kupManager.removeClickCallback(this.#clickCbDropCard);\n this.toolbarList.remove();\n this.toolbarList = null;\n }\n }\n\n createDropDownToolbarList() {\n if (this.toolbarList) {\n this.closeRowToolbarList();\n }\n const listEl = document.createElement('kup-toolbar');\n listEl.data = this.toolbarData;\n listEl.addEventListener('kup-toolbar-click', (e: CustomEvent) => {\n this.onKupToolbarItemClick(e);\n setTimeout(() => {\n this.closeRowToolbarList();\n }, 0);\n });\n this.toolbarList = listEl;\n this.#clickCbDropCard = {\n cb: () => {\n this.closeRowToolbarList();\n },\n el: this.toolbarList,\n };\n\n this.kupManager.addClickCallback(this.#clickCbDropCard, true);\n this.rootElement.shadowRoot.appendChild(this.toolbarList);\n requestAnimationFrame(() => {\n this.kupManager.dynamicPosition.register(\n this.toolbarList as unknown as KupDynamicPositionElement,\n this.#dropDownActionCardAnchor as KupDynamicPositionAnchor,\n 0,\n KupDynamicPositionPlacement.AUTO,\n true\n );\n this.kupManager.dynamicPosition.start(\n this.toolbarList as unknown as KupDynamicPositionElement\n );\n });\n }\n\n /*-------------------------------------------------*/\n /* P u b l i c M e t h o d s */\n /*-------------------------------------------------*/\n\n /**\n * Used to retrieve component's props values.\n * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.\n * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.\n */\n @Method()\n async getProps(descriptions?: boolean): Promise<GenericObject> {\n return getProps(this, KupTypographyProps, descriptions);\n }\n /**\n * This method is used to trigger a new render of the component.\n */\n @Method()\n async refresh(): Promise<void> {\n forceUpdate(this);\n }\n /**\n * Sets the props to the component.\n * @param {GenericObject} props - Object containing props that will be set to the component.\n */\n @Method()\n async setProps(props: GenericObject): Promise<void> {\n setProps(this, KupTypographyProps, props);\n }\n\n /*-------------------------------------------------*/\n /* L i f e c y c l e H o o k s */\n /*-------------------------------------------------*/\n\n componentWillLoad() {\n this.kupManager.debug.logLoad(this, false);\n this.kupManager.theme.register(this);\n }\n\n componentDidLoad() {\n this.kupManager.debug.logLoad(this, true);\n }\n\n componentWillRender() {\n this.kupManager.debug.logRender(this, false);\n }\n\n componentDidRender() {\n this.kupManager.debug.logRender(this, true);\n }\n\n render() {\n const props: FTypographyProps = {\n toolbar: this.toolbar,\n value: this.value,\n type: this.type,\n };\n\n const propsFImage: FImageProps = {\n color: 'var(--kup-gray-color-70)',\n resource: 'more_vert',\n sizeX: '16px',\n sizeY: '16px',\n wrapperClass: 'image__iconToolbar',\n };\n const classObjParent: Record<string, boolean> = {\n 'kup-typography--wrap': props.toolbar ? true : false,\n };\n return (\n <Host>\n <style>\n {this.kupManager.theme.setKupStyle(\n this.rootElement as KupComponent\n )}\n </style>\n <div\n id={componentWrapperId}\n class={classObjParent}\n onClick={() => this.onKupClick}\n >\n <FTypography {...props} />\n <FImage\n {...propsFImage}\n onClick={(event: MouseEvent) => {\n event.stopPropagation();\n this.onKupIconClick(\n event.currentTarget as HTMLElement\n );\n }}\n />\n </div>\n </Host>\n );\n }\n disconnectedCallback() {\n this.kupManager.theme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AE,IAAI,CAAC,KAAK;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;SAClB,CAAC;QAEF,MAAM,WAAW,GAAgB;YAC7B,KAAK,EAAE,0BAA0B;YACjC,QAAQ,EAAE,WAAW;YACrB,KAAK,EAAE,MAAM;YACb,KAAK,EAAE,MAAM;YACb,YAAY,EAAE,oBAAoB;SACrC,CAAC;QACF,MAAM,cAAc,GAA4B;YAC5C,sBAAsB,EAAE,KAAK,CAAC,OAAO,GAAG,IAAI,GAAG,KAAK;SACvD,CAAC;QACF,QACIC,QAACC,UAAI,uDACDD,sEACK,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,WAAW,CAC9B,IAAI,CAAC,WAA2B,CACnC,CACG,EACRA,kEACI,EAAE,EAAEE,mCAAkB,EACtB,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,MAAM,IAAI,CAAC,UAAU,IAE9BF,QAACG,uBAAW,qEAAK,KAAK,EAAI,EAC1BH,QAACI,aAAM,qEACC,WAAW,IACf,OAAO,EAAE,CAAC,KAAiB;gBACvB,KAAK,CAAC,eAAe,EAAE,CAAC;gBACxB,IAAI,CAAC,cAAc,CACf,KAAK,CAAC,aAA4B,CACrC,CAAC;aACL,IACH,CACA,CACH,EACT;KACL;IACD,oBAAoB;QAChB,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;KAC1C;;;;;;;;;","names":["kupManagerInstance","FTypographyType","KupDynamicPositionPlacement","getProps","forceUpdate","setProps","h","Host","componentWrapperId","FTypography","FImage"],"sources":["src/components/kup-typography/kup-typography-declarations.ts","src/components/kup-typography/kup-typography.scss?tag=kup-typography&encapsulation=shadow","src/components/kup-typography/kup-typography.tsx"],"sourcesContent":["import { KupEventPayload } from '../../types/GenericTypes';\n\n/**\n * Props of the kup-typography component.\n * Used to export every prop in an object.\n */\nexport enum KupTypographyProps {\n data = 'the text of the text',\n Style = 'it is the style of the text',\n Border = 'when true it will appear a border',\n BorderWidth = 'it is the width of the border',\n Align = 'text alignment',\n FontBold = 'when true it will display the bold font',\n FontItalic = 'when true it will display the italic ( cursive )',\n FontName = 'it is the name of the font',\n FontSize = 'it is the size of the font of the text',\n FontULine = 'when true it will show the underline',\n FontColor = 'it is the color of the font of the text',\n BackColor = 'it is the background color of the text',\n Type = 'it is the type of the font. It is an enum that can take from different variant such as body, heading1, caption and so on',\n}\n\nexport interface KupTypographyIconClickEventPayload extends KupEventPayload {}\n\nexport interface KupTypographyClickEventPayload extends KupEventPayload {\n value: string;\n}\n","@import 'styles/kup-typography-main.scss';\n@import 'styles/kup-typography-classes.scss';\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n forceUpdate,\n h,\n Host,\n Method,\n Prop,\n} from '@stencil/core';\nimport { GenericObject, KupComponent } from '../../types/GenericTypes';\nimport { getProps, setProps } from '../../utils/utils';\nimport {\n KupManager,\n KupManagerClickCb,\n} from '../../managers/kup-manager/kup-manager-declarations';\nimport { kupManagerInstance } from '../../managers/kup-manager/kup-manager';\nimport { FTypography } from '../../f-components/f-typography/f-typography';\nimport {\n FTypographyProps,\n FTypographyType,\n} from '../../f-components/f-typography/f-typography-declarations';\nimport {\n KupTypographyClickEventPayload,\n KupTypographyIconClickEventPayload,\n KupTypographyProps,\n} from './kup-typography-declarations';\nimport { KupDataNode } from '../../managers/kup-data/kup-data-declarations';\nimport {\n KupDynamicPositionAnchor,\n KupDynamicPositionElement,\n KupDynamicPositionPlacement,\n} from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';\nimport { componentWrapperId } from '../../variables/GenericVariables';\nimport { FImage } from '../../f-components/f-image/f-image';\nimport { FImageProps } from '../../f-components/f-image/f-image-declarations';\nimport { KupToolbarItemClickEventPayload } from '../../components/kup-toolbar/kup-toolbar-declarations';\n\n@Component({\n assetsDirs: ['assets/fonts'],\n tag: 'kup-typography',\n styleUrl: 'kup-typography.scss',\n shadow: true,\n})\nexport class KupTypography {\n /**\n * References the root HTML element of the component (<kup-typography>).\n */\n @Element() rootElement: HTMLElement;\n\n /*-------------------------------------------------*/\n /* P r o p s */\n /*-------------------------------------------------*/\n\n /**\n * Custom style of the component.\n * @default \"\"\n * @see https://smeup.github.io/ketchup/#/customization\n */\n @Prop() customStyle: string = '';\n /**\n * Manage the toolbar icon. If true is visible, otherwise is not\n * @default null\n */\n @Prop() toolbar: boolean = true;\n /**\n * Display DataNode Toolbar.\n * @default null\n */\n @Prop() toolbarData: KupDataNode[];\n /**\n * Sets the sizing of the textfield\n * @default FTypographyType.BODY_COMPACT\n */\n @Prop() type: FTypographyType = FTypographyType.BODY_COMPACT;\n /**\n * This is the content of the text\n * @default null\n */\n @Prop() value: string = null;\n\n /*-------------------------------------------------*/\n /* I n t e r n a l V a r i a b l e s */\n /*-------------------------------------------------*/\n\n /**\n * Instance of the KupManager class.\n */\n private kupManager: KupManager = kupManagerInstance();\n #clickCbDropCard: KupManagerClickCb = null;\n /**\n * Toolbar List.\n */\n private toolbarList: KupDynamicPositionElement;\n #dropDownActionCardAnchor: HTMLElement = null;\n\n /*-------------------------------------------------*/\n /* E v e n t s */\n /*-------------------------------------------------*/\n\n @Event({\n eventName: 'kup-typography-iconclick',\n composed: true,\n cancelable: false,\n bubbles: true,\n })\n kupIconClick: EventEmitter<KupTypographyIconClickEventPayload>;\n\n @Event({\n eventName: 'kup-typography-click',\n composed: true,\n cancelable: false,\n bubbles: true,\n })\n kupClick: EventEmitter<KupTypographyClickEventPayload>;\n\n @Event({\n eventName: 'kup-typography-itemclick',\n composed: true,\n cancelable: false,\n bubbles: true,\n })\n kupItemClick: EventEmitter<KupToolbarItemClickEventPayload>;\n\n onKupClick() {\n this.kupClick.emit({\n comp: this,\n id: this.rootElement.id,\n value: this.value,\n });\n }\n\n onKupIconClick(el: HTMLElement) {\n this.#dropDownActionCardAnchor = el;\n this.kupIconClick.emit({\n comp: this,\n id: this.rootElement.id,\n });\n this.createDropDownToolbarList();\n }\n\n onKupToolbarItemClick(e: CustomEvent) {\n this.kupItemClick.emit({\n comp: this,\n id: this.rootElement.id,\n value: this.value,\n node: e.detail.selected,\n });\n }\n\n /*-------------------------------------------------*/\n /* P r i v a t e M e t h o d s */\n /*-------------------------------------------------*/\n\n closeRowToolbarList() {\n if (this.toolbarList) {\n this.kupManager.dynamicPosition.stop(\n this.toolbarList as KupDynamicPositionElement\n );\n this.kupManager.removeClickCallback(this.#clickCbDropCard);\n this.toolbarList.remove();\n this.toolbarList = null;\n }\n }\n\n createDropDownToolbarList() {\n if (this.toolbarList) {\n this.closeRowToolbarList();\n }\n const listEl = document.createElement('kup-toolbar');\n listEl.data = this.toolbarData;\n listEl.addEventListener('kup-toolbar-click', (e: CustomEvent) => {\n this.onKupToolbarItemClick(e);\n setTimeout(() => {\n this.closeRowToolbarList();\n }, 0);\n });\n this.toolbarList = listEl;\n this.#clickCbDropCard = {\n cb: () => {\n this.closeRowToolbarList();\n },\n el: this.toolbarList,\n };\n\n this.kupManager.addClickCallback(this.#clickCbDropCard, true);\n this.rootElement.shadowRoot.appendChild(this.toolbarList);\n requestAnimationFrame(() => {\n this.kupManager.dynamicPosition.register(\n this.toolbarList as unknown as KupDynamicPositionElement,\n this.#dropDownActionCardAnchor as KupDynamicPositionAnchor,\n 0,\n KupDynamicPositionPlacement.AUTO,\n true\n );\n this.kupManager.dynamicPosition.start(\n this.toolbarList as unknown as KupDynamicPositionElement\n );\n });\n }\n\n /*-------------------------------------------------*/\n /* P u b l i c M e t h o d s */\n /*-------------------------------------------------*/\n\n /**\n * Used to retrieve component's props values.\n * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.\n * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.\n */\n @Method()\n async getProps(descriptions?: boolean): Promise<GenericObject> {\n return getProps(this, KupTypographyProps, descriptions);\n }\n /**\n * This method is used to trigger a new render of the component.\n */\n @Method()\n async refresh(): Promise<void> {\n forceUpdate(this);\n }\n /**\n * Sets the props to the component.\n * @param {GenericObject} props - Object containing props that will be set to the component.\n */\n @Method()\n async setProps(props: GenericObject): Promise<void> {\n setProps(this, KupTypographyProps, props);\n }\n\n /*-------------------------------------------------*/\n /* L i f e c y c l e H o o k s */\n /*-------------------------------------------------*/\n\n componentWillLoad() {\n this.kupManager.debug.logLoad(this, false);\n this.kupManager.theme.register(this);\n }\n\n componentDidLoad() {\n this.kupManager.debug.logLoad(this, true);\n }\n\n componentWillRender() {\n this.kupManager.debug.logRender(this, false);\n }\n\n componentDidRender() {\n this.kupManager.debug.logRender(this, true);\n }\n\n render() {\n const props: FTypographyProps = {\n toolbar: this.toolbar,\n value: this.value,\n type: this.type,\n };\n\n const propsFImage: FImageProps = {\n color: 'var(--kup-gray-color-70)',\n resource: 'more_vert',\n sizeX: '16px',\n sizeY: '16px',\n wrapperClass: 'image__iconToolbar',\n };\n const classObjParent: Record<string, boolean> = {\n 'kup-typography--wrap': props.toolbar ? true : false,\n };\n return (\n <Host>\n <style>\n {this.kupManager.theme.setKupStyle(\n this.rootElement as KupComponent\n )}\n </style>\n <div\n id={componentWrapperId}\n class={classObjParent}\n onClick={() => this.onKupClick}\n >\n <FTypography {...props} />\n <FImage\n {...propsFImage}\n onClick={(event: MouseEvent) => {\n event.stopPropagation();\n this.onKupIconClick(\n event.currentTarget as HTMLElement\n );\n }}\n />\n </div>\n </Host>\n );\n }\n disconnectedCallback() {\n this.kupManager.theme.unregister(this);\n }\n}\n"],"version":3}
|
|
@@ -26,7 +26,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
26
26
|
}
|
|
27
27
|
return t;
|
|
28
28
|
};
|
|
29
|
-
var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_eventNames, _KupInputPanel_eventBlurNames, _KupInputPanel_listeners, _KupInputPanel_cellTypeComponents, _KupInputPanel_cellCustomRender, _KupInputPanel_sectionRenderMap, _KupInputPanel_keysShortcut, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_renderButton, _KupInputPanel_renderEditor, _KupInputPanel_renderDataTable, _KupInputPanel_renderLabel, _KupInputPanel_getLabelComponent, _KupInputPanel_renderGridLayout, _KupInputPanel_renderAbsoluteLayout, _KupInputPanel_renderSection, _KupInputPanel_renderAbsoluteSection, _KupInputPanel_renderSectionTab, _KupInputPanel_renderField, _KupInputPanel_renderAbsoluteField, _KupInputPanel_mapCells, _KupInputPanel_setData, _KupInputPanel_deepObjectsMerge, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_EDTAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_SWTAdapter, _KupInputPanel_DateAdapter, _KupInputPanel_ObjectAdapter, _KupInputPanel_TimeAdapter, _KupInputPanel_NumberAdapter, _KupInputPanel_DataTableAdapter, _KupInputPanel_getTableUpdatedCell, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_dataTreeOptionsChildrenAdapter, _KupInputPanel_tableOptionsAdapter, _KupInputPanel_getAutocompleteEventCallback,
|
|
29
|
+
var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_eventNames, _KupInputPanel_eventBlurNames, _KupInputPanel_listeners, _KupInputPanel_cellTypeComponents, _KupInputPanel_cellCustomRender, _KupInputPanel_sectionRenderMap, _KupInputPanel_keysShortcut, _KupInputPanel_getCell, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_renderButton, _KupInputPanel_renderEditor, _KupInputPanel_renderDataTable, _KupInputPanel_renderLabel, _KupInputPanel_getLabelComponent, _KupInputPanel_renderGridLayout, _KupInputPanel_renderAbsoluteLayout, _KupInputPanel_renderSection, _KupInputPanel_renderAbsoluteSection, _KupInputPanel_renderSectionTab, _KupInputPanel_renderField, _KupInputPanel_renderAbsoluteField, _KupInputPanel_mapCells, _KupInputPanel_setData, _KupInputPanel_deepObjectsMerge, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_EDTAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_SWTAdapter, _KupInputPanel_DateAdapter, _KupInputPanel_ObjectAdapter, _KupInputPanel_TimeAdapter, _KupInputPanel_NumberAdapter, _KupInputPanel_DataTableAdapter, _KupInputPanel_getTableUpdatedCell, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_dataTreeOptionsChildrenAdapter, _KupInputPanel_tableOptionsAdapter, _KupInputPanel_getAutocompleteEventCallback, _KupInputPanel_checkOnBlurProp, _KupInputPanel_checkOnBlurEvent, _KupInputPanel_setCellError;
|
|
30
30
|
import { Host, forceUpdate, h, } from "@stencil/core";
|
|
31
31
|
import { FButton } from "../../f-components/f-button/f-button";
|
|
32
32
|
import { FCell } from "../../f-components/f-cell/f-cell";
|
|
@@ -185,7 +185,7 @@ export class KupInputPanel {
|
|
|
185
185
|
h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
|
|
186
186
|
]
|
|
187
187
|
: this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
|
|
188
|
-
return (h(Host, { key: '
|
|
188
|
+
return (h(Host, { key: '2e431f8ed3bc24cb844c21e62f09d0ebd4c95227' }, h("style", { key: '1b5d013473b0270b3ff95950c956b4e040f5bb6f' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '1bd47df5bced2847e3a661588f7f7234c3be9e1a', id: componentWrapperId }, inputPanelContent)));
|
|
189
189
|
}
|
|
190
190
|
disconnectedCallback() {
|
|
191
191
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
|
|
@@ -497,7 +497,14 @@ export class KupInputPanel {
|
|
|
497
497
|
}];
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
_KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = new WeakMap(), _KupInputPanel_originalData = new WeakMap(), _KupInputPanel_eventNames = new WeakMap(), _KupInputPanel_eventBlurNames = new WeakMap(), _KupInputPanel_listeners = new WeakMap(), _KupInputPanel_cellTypeComponents = new WeakMap(), _KupInputPanel_cellCustomRender = new WeakMap(), _KupInputPanel_sectionRenderMap = new WeakMap(), _KupInputPanel_keysShortcut = new WeakMap(), _KupInputPanel_instances = new WeakSet(),
|
|
500
|
+
_KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = new WeakMap(), _KupInputPanel_originalData = new WeakMap(), _KupInputPanel_eventNames = new WeakMap(), _KupInputPanel_eventBlurNames = new WeakMap(), _KupInputPanel_listeners = new WeakMap(), _KupInputPanel_cellTypeComponents = new WeakMap(), _KupInputPanel_cellCustomRender = new WeakMap(), _KupInputPanel_sectionRenderMap = new WeakMap(), _KupInputPanel_keysShortcut = new WeakMap(), _KupInputPanel_instances = new WeakSet(), _KupInputPanel_getCell = function _KupInputPanel_getCell(id) {
|
|
501
|
+
return this.inputPanelCells.reduce((cell, { cells }) => {
|
|
502
|
+
if (!cell) {
|
|
503
|
+
return cells.find(({ column }) => column.name === id).cell;
|
|
504
|
+
}
|
|
505
|
+
return cell;
|
|
506
|
+
}, null);
|
|
507
|
+
}, _KupInputPanel_renderRow = function _KupInputPanel_renderRow(inputPanelCell) {
|
|
501
508
|
var _a;
|
|
502
509
|
const layout = inputPanelCell.row.layout;
|
|
503
510
|
const horizontal = (layout === null || layout === void 0 ? void 0 : layout.horizontal) || false;
|
|
@@ -866,8 +873,8 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
866
873
|
return null;
|
|
867
874
|
}, _KupInputPanel_CHIAdapter = function _KupInputPanel_CHIAdapter(_options, _fieldLabel, currentValue, cell, id) {
|
|
868
875
|
var _a;
|
|
869
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
870
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
876
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
877
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurEvent).call(this, cell, id);
|
|
871
878
|
}
|
|
872
879
|
return CHIAdapter(currentValue);
|
|
873
880
|
}, _KupInputPanel_GRAAdapter = function _KupInputPanel_GRAAdapter() {
|
|
@@ -930,16 +937,16 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
930
937
|
configCMandACP.data['kup-list'].data =
|
|
931
938
|
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this, rawOptions, currentValue);
|
|
932
939
|
}
|
|
933
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
934
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
940
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
941
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurEvent).call(this, cell, id);
|
|
935
942
|
}
|
|
936
943
|
return configCMandACP;
|
|
937
944
|
}, _KupInputPanel_CHKAdapter = function _KupInputPanel_CHKAdapter(_options, fieldLabel, currentValue, cell, id) {
|
|
938
945
|
var _a;
|
|
939
946
|
let data = CHKAdapter(currentValue, fieldLabel);
|
|
940
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
947
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
941
948
|
return Object.assign(Object.assign({}, data), { onBlur: () => {
|
|
942
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
949
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurProp).call(this, cell, id);
|
|
943
950
|
} });
|
|
944
951
|
}
|
|
945
952
|
return data;
|
|
@@ -957,11 +964,11 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
957
964
|
};
|
|
958
965
|
}, _KupInputPanel_ITXAdapter = function _KupInputPanel_ITXAdapter(_options, fieldLabel, _currentValue, cell, id) {
|
|
959
966
|
var _a;
|
|
960
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
967
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
961
968
|
return {
|
|
962
969
|
label: fieldLabel,
|
|
963
970
|
onBlur: () => {
|
|
964
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
971
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurProp).call(this, cell, id);
|
|
965
972
|
},
|
|
966
973
|
};
|
|
967
974
|
}
|
|
@@ -969,9 +976,9 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
969
976
|
}, _KupInputPanel_RADAdapter = function _KupInputPanel_RADAdapter(options, _fieldLabel, currentValue, cell, id) {
|
|
970
977
|
var _a;
|
|
971
978
|
let data = RADAdapter(currentValue, options);
|
|
972
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
979
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
973
980
|
return Object.assign(Object.assign({}, data), { onBlur: () => {
|
|
974
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
981
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurProp).call(this, cell, id);
|
|
975
982
|
} });
|
|
976
983
|
}
|
|
977
984
|
return data;
|
|
@@ -979,8 +986,8 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
979
986
|
return SWTAdapter(currentValue, fieldLabel);
|
|
980
987
|
}, _KupInputPanel_DateAdapter = function _KupInputPanel_DateAdapter(_options, fieldLabel, currentValue, cell, id) {
|
|
981
988
|
var _a;
|
|
982
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
983
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
989
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
990
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurEvent).call(this, cell, id);
|
|
984
991
|
}
|
|
985
992
|
return {
|
|
986
993
|
data: {
|
|
@@ -992,13 +999,13 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
992
999
|
};
|
|
993
1000
|
}, _KupInputPanel_ObjectAdapter = function _KupInputPanel_ObjectAdapter(_options, fieldLabel, currentValue, cell, id) {
|
|
994
1001
|
var _a;
|
|
995
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
1002
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
996
1003
|
return {
|
|
997
1004
|
initialValue: currentValue || '',
|
|
998
1005
|
label: fieldLabel || ' ',
|
|
999
1006
|
value: currentValue || '',
|
|
1000
1007
|
onBlur: () => {
|
|
1001
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
1008
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurProp).call(this, cell, id);
|
|
1002
1009
|
},
|
|
1003
1010
|
};
|
|
1004
1011
|
}
|
|
@@ -1009,8 +1016,8 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
1009
1016
|
};
|
|
1010
1017
|
}, _KupInputPanel_TimeAdapter = function _KupInputPanel_TimeAdapter(_options, fieldLabel, _currentValue, cell, id) {
|
|
1011
1018
|
var _a;
|
|
1012
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
1013
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
1019
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
1020
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurEvent).call(this, cell, id);
|
|
1014
1021
|
}
|
|
1015
1022
|
return {
|
|
1016
1023
|
data: {
|
|
@@ -1021,11 +1028,11 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
1021
1028
|
};
|
|
1022
1029
|
}, _KupInputPanel_NumberAdapter = function _KupInputPanel_NumberAdapter(_options, fieldLabel, _currentValue, cell, id) {
|
|
1023
1030
|
var _a;
|
|
1024
|
-
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
1031
|
+
if (((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) || cell.mandatory) {
|
|
1025
1032
|
return {
|
|
1026
1033
|
label: fieldLabel,
|
|
1027
1034
|
onBlur: () => {
|
|
1028
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
1035
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_checkOnBlurProp).call(this, cell, id);
|
|
1029
1036
|
},
|
|
1030
1037
|
};
|
|
1031
1038
|
}
|
|
@@ -1137,49 +1144,83 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
1137
1144
|
(_a = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this, options, currentValue)) !== null && _a !== void 0 ? _a : [];
|
|
1138
1145
|
detail.comp.refresh();
|
|
1139
1146
|
});
|
|
1140
|
-
},
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1147
|
+
}, _KupInputPanel_checkOnBlurProp = function _KupInputPanel_checkOnBlurProp(cell, id) {
|
|
1148
|
+
var _a;
|
|
1149
|
+
const currCell = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getCell).call(this, id);
|
|
1150
|
+
// Required cell check
|
|
1151
|
+
if (cell.mandatory) {
|
|
1152
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_setCellError).call(this, id, currCell.value
|
|
1153
|
+
? // If it's not empty remove the error message
|
|
1154
|
+
null
|
|
1155
|
+
: // else set the error message
|
|
1156
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.REQUIRED_VALUE));
|
|
1157
|
+
}
|
|
1158
|
+
if (!currCell.value) {
|
|
1159
|
+
return;
|
|
1160
|
+
}
|
|
1161
|
+
// Valid object check
|
|
1162
|
+
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
1163
|
+
this.checkValidObjCallback({
|
|
1164
|
+
obj: cell.obj,
|
|
1165
|
+
currentState: __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_reverseMapCells).call(this),
|
|
1166
|
+
fun: cell.fun,
|
|
1167
|
+
}).then(({ valid }) => {
|
|
1168
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_setCellError).call(this, id, valid
|
|
1169
|
+
? // If it's a valid object remove the error message
|
|
1170
|
+
null
|
|
1171
|
+
: // else set the error message
|
|
1172
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.INVALID_VALUE));
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
1175
|
+
}, _KupInputPanel_checkOnBlurEvent = function _KupInputPanel_checkOnBlurEvent(cell, id) {
|
|
1176
|
+
const evName = __classPrivateFieldGet(this, _KupInputPanel_eventBlurNames, "f").get(cell.shape);
|
|
1161
1177
|
if (!evName) {
|
|
1162
1178
|
return;
|
|
1163
1179
|
}
|
|
1164
1180
|
const handler = (e) => {
|
|
1181
|
+
var _a;
|
|
1165
1182
|
if (e.detail.id !== id) {
|
|
1166
1183
|
return;
|
|
1167
1184
|
}
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.INVALID_VALUE);
|
|
1185
|
+
// Required cell check
|
|
1186
|
+
if (cell.mandatory) {
|
|
1187
|
+
e.detail.comp.error = e.detail.value
|
|
1188
|
+
? // If it's not empty remove the error message
|
|
1189
|
+
null
|
|
1190
|
+
: // else set the error message
|
|
1191
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.REQUIRED_VALUE);
|
|
1176
1192
|
e.detail.comp.refresh();
|
|
1177
|
-
}
|
|
1193
|
+
}
|
|
1194
|
+
if (!e.detail.value) {
|
|
1195
|
+
return;
|
|
1196
|
+
}
|
|
1197
|
+
// Valid object check
|
|
1198
|
+
if ((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkObject) {
|
|
1199
|
+
this.checkValidObjCallback({
|
|
1200
|
+
obj: cell.obj,
|
|
1201
|
+
currentState: __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_reverseMapCells).call(this),
|
|
1202
|
+
fun: cell.fun,
|
|
1203
|
+
}).then(({ valid }) => {
|
|
1204
|
+
e.detail.comp.error = valid
|
|
1205
|
+
? null
|
|
1206
|
+
: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.INVALID_VALUE);
|
|
1207
|
+
e.detail.comp.refresh();
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1178
1210
|
};
|
|
1179
1211
|
this.rootElement.addEventListener(evName, handler);
|
|
1180
1212
|
__classPrivateFieldGet(this, _KupInputPanel_listeners, "f").push({
|
|
1181
1213
|
event: evName,
|
|
1182
1214
|
handler,
|
|
1183
1215
|
});
|
|
1216
|
+
}, _KupInputPanel_setCellError = function _KupInputPanel_setCellError(id, error) {
|
|
1217
|
+
this.inputPanelCells = this.inputPanelCells.map((cell) => (Object.assign(Object.assign({}, cell), { cells: cell.cells.map(({ cell, column }) => {
|
|
1218
|
+
const data = column.name === id
|
|
1219
|
+
? Object.assign(Object.assign({}, cell.data), { error }) : cell.data;
|
|
1220
|
+
return {
|
|
1221
|
+
column,
|
|
1222
|
+
cell: Object.assign(Object.assign({}, cell), { data }),
|
|
1223
|
+
};
|
|
1224
|
+
}) })));
|
|
1184
1225
|
};
|
|
1185
1226
|
//# sourceMappingURL=kup-input-panel.js.map
|