@sme.up/ketchup 9.5.2 → 9.6.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-357a3dff.js → f-button-623dfcc3.js} +2 -2
- package/dist/cjs/{f-cell-1de0ea69.js → f-cell-9c718d83.js} +9 -8
- package/dist/cjs/{f-checkbox-41864e53.js → f-checkbox-bfa92ebe.js} +1 -1
- package/dist/cjs/{f-chip-bd5882a0.js → f-chip-c8efad5b.js} +3 -3
- package/dist/cjs/{f-image-30531fd0.js → f-image-b61cc967.js} +2 -2
- package/dist/cjs/{f-paginator-utils-ad8a4635.js → f-paginator-utils-67dbc14c.js} +4 -4
- package/dist/cjs/{f-text-field-be758970.js → f-text-field-a09b1705.js} +2 -2
- package/dist/cjs/{index-8f2f4159.js → index-db0a6be6.js} +79 -38
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +7 -6
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +141 -112
- package/dist/cjs/kup-box.cjs.entry.js +13 -12
- package/dist/cjs/kup-calendar.cjs.entry.js +76 -11
- package/dist/cjs/kup-card-list.cjs.entry.js +5 -4
- package/dist/cjs/kup-cell.cjs.entry.js +12 -11
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +22 -16
- package/dist/cjs/kup-dashboard.cjs.entry.js +10 -9
- package/dist/cjs/{kup-dates-0e59b05d.js → kup-dates-4aa560f0.js} +80 -67
- package/dist/cjs/kup-drawer.cjs.entry.js +7 -6
- package/dist/cjs/kup-echart.cjs.entry.js +1504 -1025
- package/dist/cjs/kup-editor.cjs.entry.js +46260 -0
- package/dist/cjs/kup-family-tree.cjs.entry.js +9 -8
- package/dist/cjs/kup-gantt_10.cjs.entry.js +58 -42
- package/dist/cjs/kup-grid.cjs.entry.js +5 -4
- package/dist/cjs/kup-iframe.cjs.entry.js +5 -4
- package/dist/cjs/kup-image-list.cjs.entry.js +13 -12
- package/dist/cjs/kup-lazy.cjs.entry.js +16 -15
- package/dist/cjs/kup-magic-box.cjs.entry.js +9 -8
- package/dist/cjs/{kup-manager-cefb1999.js → kup-manager-227c4be2.js} +121 -79
- package/dist/cjs/kup-nav-bar.cjs.entry.js +6 -5
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +7 -6
- package/dist/cjs/kup-photo-frame.cjs.entry.js +7 -6
- package/dist/cjs/{kup-planner-renderer-helper-c2394940.js → kup-planner-renderer-helper-f0c869d7.js} +1 -1
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +4 -4
- package/dist/cjs/kup-planner.cjs.entry.js +7 -6
- package/dist/cjs/kup-probe.cjs.entry.js +4 -4
- package/dist/cjs/kup-qlik.cjs.entry.js +6 -5
- package/dist/cjs/kup-snackbar.cjs.entry.js +8 -7
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/editor-example-1.js +52 -0
- package/dist/collection/assets/editor.js +60 -0
- package/dist/collection/assets/index.js +8 -0
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/kup-accordion/kup-accordion.js +10 -16
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +10 -16
- package/dist/collection/components/kup-badge/kup-badge.js +8 -12
- package/dist/collection/components/kup-box/kup-box.css +1 -1
- package/dist/collection/components/kup-box/kup-box.js +12 -14
- package/dist/collection/components/kup-button/kup-button.js +6 -10
- package/dist/collection/components/kup-button-list/kup-button-list.js +7 -11
- package/dist/collection/components/kup-calendar/kup-calendar.js +8 -12
- package/dist/collection/components/kup-card/kup-card.js +6 -10
- package/dist/collection/components/kup-card-list/kup-card-list.js +6 -10
- package/dist/collection/components/kup-cell/kup-cell.js +13 -21
- package/dist/collection/components/kup-chart/kup-chart.js +7 -11
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +7 -11
- package/dist/collection/components/kup-chip/kup-chip.js +8 -12
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +11 -17
- package/dist/collection/components/kup-combobox/kup-combobox.js +10 -16
- package/dist/collection/components/kup-dashboard/kup-dashboard.js +7 -11
- package/dist/collection/components/kup-data-table/kup-data-table.js +72 -95
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +7 -11
- package/dist/collection/components/kup-dialog/kup-dialog.css +2 -2
- package/dist/collection/components/kup-dialog/kup-dialog.js +9 -13
- package/dist/collection/components/kup-drawer/kup-drawer.js +8 -12
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +10 -13
- package/dist/collection/components/kup-echart/kup-echart.js +7 -11
- package/dist/collection/components/kup-editor/kup-editor-declarations.js +15 -0
- package/dist/collection/components/kup-editor/kup-editor.js +774 -0
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +14 -16
- package/dist/collection/components/kup-form/kup-form.js +14 -22
- package/dist/collection/components/kup-gauge/kup-gauge.js +6 -10
- package/dist/collection/components/kup-grid/kup-grid.js +6 -10
- package/dist/collection/components/kup-iframe/kup-iframe.js +6 -10
- package/dist/collection/components/kup-image/kup-image.js +6 -10
- package/dist/collection/components/kup-image-list/kup-image-list.js +8 -12
- package/dist/collection/components/kup-lazy/kup-lazy.js +17 -21
- package/dist/collection/components/kup-list/kup-list.js +10 -16
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +9 -13
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +7 -11
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +7 -11
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +8 -12
- package/dist/collection/components/kup-planner/kup-planner.js +13 -21
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
- package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -1
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +0 -2
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +13 -14
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +6 -4
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +6 -1
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.css +0 -2
- package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
- package/dist/collection/components/kup-probe/kup-probe.js +1 -1
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +7 -11
- package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
- package/dist/collection/components/kup-radio/kup-radio.js +6 -10
- package/dist/collection/components/kup-rating/kup-rating.js +7 -11
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +7 -11
- package/dist/collection/components/kup-spinner/kup-spinner.js +40 -44
- package/dist/collection/components/kup-switch/kup-switch.js +7 -11
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +6 -10
- package/dist/collection/components/kup-text-field/kup-text-field.js +10 -13
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +10 -13
- package/dist/collection/components/kup-tree/kup-tree-faker.js +1 -1
- package/dist/collection/components/kup-tree/kup-tree.js +24 -33
- package/dist/collection/f-components/f-cell/f-cell.js +2 -1
- package/dist/collection/managers/kup-manager/kup-manager.js +5 -0
- package/dist/collection/managers/kup-openai/kup-openai.js +11 -8
- package/dist/components/custom-task-list-header.js +4 -3
- package/dist/components/custom-task-list-table.js +4 -3
- package/dist/components/kup-accordion.js +3 -2
- package/dist/components/kup-autocomplete2.js +135 -105
- package/dist/components/kup-box2.js +4 -3
- package/dist/components/kup-calendar.js +71 -6
- package/dist/components/kup-card-list.js +2 -1
- package/dist/components/kup-cell.js +3 -2
- package/dist/components/kup-dashboard.js +3 -2
- package/dist/components/kup-dates.js +81 -67
- package/dist/components/kup-drawer.js +4 -3
- package/dist/components/kup-echart2.js +1501 -1022
- package/dist/components/kup-editor.d.ts +11 -0
- package/dist/components/kup-editor.js +46434 -0
- package/dist/components/kup-family-tree.js +4 -3
- package/dist/components/kup-gantt-calendar2.js +3 -2
- package/dist/components/kup-gantt2.js +4 -2
- package/dist/components/kup-grid-renderer2.js +10 -7
- package/dist/components/kup-grid2.js +2 -1
- package/dist/components/kup-horizontal-scroll2.js +12 -12
- package/dist/components/kup-iframe.js +2 -1
- package/dist/components/kup-image-list.js +4 -3
- package/dist/components/kup-lazy.js +13 -12
- package/dist/components/kup-magic-box.js +5 -4
- package/dist/components/kup-manager.js +121 -79
- package/dist/components/kup-nav-bar.js +3 -2
- package/dist/components/kup-numeric-picker.js +3 -2
- package/dist/components/kup-photo-frame.js +4 -3
- package/dist/components/kup-planner-renderer-helper.js +2 -2
- package/dist/components/kup-planner-renderer2.js +3 -3
- package/dist/components/kup-planner.js +4 -3
- package/dist/components/kup-probe.js +1 -1
- package/dist/components/kup-qlik.js +3 -2
- package/dist/components/kup-snackbar.js +3 -2
- package/dist/components/kup-standard-tooltip2.js +3 -2
- package/dist/components/kup-switcher2.js +3 -2
- package/dist/components/kup-task-gantt2.js +6 -4
- package/dist/components/kup-task-list-header2.js +9 -8
- package/dist/components/kup-task-list-table2.js +3 -2
- package/dist/components/kup-task-list2.js +9 -3
- package/dist/components/kup-tooltip2.js +3 -2
- package/dist/components/kup-vertical-scroll2.js +5 -4
- package/dist/esm/{f-button-856a189a.js → f-button-121958b3.js} +2 -2
- package/dist/esm/{f-cell-6324d838.js → f-cell-959b83db.js} +9 -8
- package/dist/esm/{f-checkbox-43481de2.js → f-checkbox-fdf27ce9.js} +1 -1
- package/dist/esm/{f-chip-e15fba8a.js → f-chip-915ddf53.js} +3 -3
- package/dist/esm/{f-image-26b1bc14.js → f-image-98371dac.js} +2 -2
- package/dist/esm/{f-paginator-utils-e8f62783.js → f-paginator-utils-f5f4c666.js} +4 -4
- package/dist/esm/{f-text-field-bbe1f236.js → f-text-field-0df308e4.js} +2 -2
- package/dist/esm/{index-59f83f91.js → index-bbef9f2a.js} +79 -38
- package/dist/esm/index.js +3 -3
- package/dist/esm/ketchup.js +4 -4
- package/dist/esm/kup-accordion.entry.js +7 -6
- package/dist/esm/kup-autocomplete_27.entry.js +141 -112
- package/dist/esm/kup-box.entry.js +13 -12
- package/dist/esm/kup-calendar.entry.js +76 -11
- package/dist/esm/kup-card-list.entry.js +5 -4
- package/dist/esm/kup-cell.entry.js +12 -11
- package/dist/esm/kup-custom-task-list-header_4.entry.js +22 -16
- package/dist/esm/kup-dashboard.entry.js +10 -9
- package/dist/esm/{kup-dates-15f89ea2.js → kup-dates-172954df.js} +81 -67
- package/dist/esm/kup-drawer.entry.js +7 -6
- package/dist/esm/kup-echart.entry.js +1504 -1025
- package/dist/esm/kup-editor.entry.js +46256 -0
- package/dist/esm/kup-family-tree.entry.js +9 -8
- package/dist/esm/kup-gantt_10.entry.js +58 -42
- package/dist/esm/kup-grid.entry.js +5 -4
- package/dist/esm/kup-iframe.entry.js +5 -4
- package/dist/esm/kup-image-list.entry.js +13 -12
- package/dist/esm/kup-lazy.entry.js +16 -15
- package/dist/esm/kup-magic-box.entry.js +9 -8
- package/dist/esm/{kup-manager-8d1df189.js → kup-manager-33b051d6.js} +122 -80
- package/dist/esm/kup-nav-bar.entry.js +6 -5
- package/dist/esm/kup-numeric-picker.entry.js +7 -6
- package/dist/esm/kup-photo-frame.entry.js +7 -6
- package/dist/esm/{kup-planner-renderer-helper-2143d119.js → kup-planner-renderer-helper-5d97e075.js} +2 -2
- package/dist/esm/kup-planner-renderer.entry.js +4 -4
- package/dist/esm/kup-planner.entry.js +8 -7
- package/dist/esm/kup-probe.entry.js +4 -4
- package/dist/esm/kup-qlik.entry.js +6 -5
- package/dist/esm/kup-snackbar.entry.js +8 -7
- package/dist/esm/loader.js +3 -3
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-0c124f99.entry.js → p-0a4595bd.entry.js} +1 -1
- package/dist/ketchup/{p-dc370227.entry.js → p-0dd0ae49.entry.js} +1 -1
- package/dist/ketchup/p-102866cd.js +1 -0
- package/dist/ketchup/p-1ad7fea0.js +2 -0
- package/dist/ketchup/{p-01a0b54c.js → p-2778f948.js} +1 -1
- package/dist/ketchup/p-2f4055ba.entry.js +1 -0
- package/dist/ketchup/p-3c9ac0fd.entry.js +1 -0
- package/dist/ketchup/p-3ce8ce77.entry.js +49 -0
- package/dist/ketchup/p-3ff9a661.entry.js +1 -0
- package/dist/ketchup/p-41d6466e.entry.js +1 -0
- package/dist/ketchup/p-4bf5e04f.entry.js +1 -0
- package/dist/ketchup/p-6001882e.entry.js +9 -0
- package/dist/ketchup/p-610a03d4.js +28 -0
- package/dist/ketchup/{p-d9a1e5a4.entry.js → p-662d2f9b.entry.js} +1 -1
- package/dist/ketchup/{p-d76cd8d6.js → p-68e9379a.js} +1 -1
- package/dist/ketchup/p-773bcc69.entry.js +1 -0
- package/dist/ketchup/{p-caeed3c3.js → p-7bda0684.js} +1 -1
- package/dist/ketchup/p-81996620.entry.js +1 -0
- package/dist/ketchup/p-9d8d5070.entry.js +1 -0
- package/dist/ketchup/{p-8042dcd5.entry.js → p-9e63f56b.entry.js} +1 -1
- package/dist/ketchup/p-9f31a129.entry.js +38 -0
- package/dist/ketchup/p-a9b06bb8.js +1 -0
- package/dist/ketchup/{p-d300948a.entry.js → p-b086727d.entry.js} +1 -1
- package/dist/ketchup/p-b5d3c24d.entry.js +1 -0
- package/dist/ketchup/p-babbffa4.entry.js +1 -0
- package/dist/ketchup/p-c1ade766.entry.js +1 -0
- package/dist/ketchup/{p-9ba8f169.js → p-ccc637ee.js} +1 -1
- package/dist/ketchup/p-d1268ac7.entry.js +1 -0
- package/dist/ketchup/p-d15d1083.entry.js +1 -0
- package/dist/ketchup/p-d5254caf.entry.js +1 -0
- package/dist/ketchup/{p-f51dbf68.js → p-dc18691c.js} +1 -1
- package/dist/ketchup/p-de07d17e.js +1 -0
- package/dist/ketchup/p-df450df9.entry.js +16 -0
- package/dist/ketchup/{p-269a9af8.js → p-e43d4ccc.js} +1 -1
- package/dist/ketchup/p-ea625b2a.entry.js +1 -0
- package/dist/ketchup/{p-81c1d557.entry.js → p-eb37ea7e.entry.js} +1 -1
- package/dist/ketchup/p-f0b882f4.entry.js +1 -0
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +1 -0
- package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +1 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -0
- package/dist/types/components/kup-editor/kup-editor-declarations.d.ts +21 -0
- package/dist/types/components/kup-editor/kup-editor.d.ts +128 -0
- package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.d.ts +1 -1
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -0
- package/dist/types/components.d.ts +149 -2
- package/dist/types/managers/kup-data/kup-data.d.ts +1 -1
- package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +1 -0
- package/dist/types/managers/kup-interact/kup-interact.d.ts +1 -0
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +3 -0
- package/dist/types/managers/kup-manager/kup-manager.d.ts +1 -0
- package/dist/types/managers/kup-toolbar/kup-toolbar-declarations.d.ts +1 -1
- package/package.json +4 -3
- package/dist/ketchup/p-07bed934.entry.js +0 -1
- package/dist/ketchup/p-0f6cb6e4.entry.js +0 -1
- package/dist/ketchup/p-177f8008.entry.js +0 -9
- package/dist/ketchup/p-2ab02da0.entry.js +0 -1
- package/dist/ketchup/p-3f028a71.entry.js +0 -1
- package/dist/ketchup/p-4a18db68.entry.js +0 -39
- package/dist/ketchup/p-4eb6d4e8.entry.js +0 -1
- package/dist/ketchup/p-63031c77.js +0 -1
- package/dist/ketchup/p-71acfd3c.entry.js +0 -1
- package/dist/ketchup/p-753f30d8.entry.js +0 -1
- package/dist/ketchup/p-8c3ad5ef.entry.js +0 -1
- package/dist/ketchup/p-937a322f.js +0 -29
- package/dist/ketchup/p-a2d3aec9.entry.js +0 -1
- package/dist/ketchup/p-b07ffd18.entry.js +0 -16
- package/dist/ketchup/p-b115e1ec.entry.js +0 -1
- package/dist/ketchup/p-b396d0f8.js +0 -1
- package/dist/ketchup/p-c12a9759.entry.js +0 -1
- package/dist/ketchup/p-c23731ca.js +0 -1
- package/dist/ketchup/p-cadeb53d.entry.js +0 -1
- package/dist/ketchup/p-cd9a4274.js +0 -2
- package/dist/ketchup/p-f1cae1e1.entry.js +0 -1
- package/dist/ketchup/p-f417e794.entry.js +0 -1
- package/dist/ketchup/p-f753c13f.entry.js +0 -1
- package/dist/ketchup/p-f7980061.entry.js +0 -1
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
|
|
3
|
+
import Editor from '@toast-ui/editor';
|
|
4
|
+
import { KupEditorEventPayload, KupEditorPreview, KupEditorType } from './kup-editor-declarations';
|
|
5
|
+
import Viewer from '@toast-ui/editor/dist/toastui-editor-viewer';
|
|
6
|
+
export declare class KupEditor {
|
|
7
|
+
#private;
|
|
8
|
+
/**
|
|
9
|
+
* References the root HTML element of the component (<kup-editor>).
|
|
10
|
+
*/
|
|
11
|
+
rootElement: HTMLElement;
|
|
12
|
+
/**
|
|
13
|
+
* The editor instance.
|
|
14
|
+
* @default null
|
|
15
|
+
*/
|
|
16
|
+
editor: Editor;
|
|
17
|
+
/**
|
|
18
|
+
* The editor html element instance.
|
|
19
|
+
* @default null
|
|
20
|
+
*/
|
|
21
|
+
editorRef: HTMLDivElement;
|
|
22
|
+
/**
|
|
23
|
+
* The viewer instance.
|
|
24
|
+
* @default null
|
|
25
|
+
*/
|
|
26
|
+
viewer: Viewer;
|
|
27
|
+
/**
|
|
28
|
+
* When specified, the component will emit the kup-editor-autosave event at regular intervals.
|
|
29
|
+
* @default null
|
|
30
|
+
*/
|
|
31
|
+
autosaveTimer: number;
|
|
32
|
+
/**
|
|
33
|
+
* Sets the height of the component.
|
|
34
|
+
* @default "auto"
|
|
35
|
+
*/
|
|
36
|
+
editorHeight: string;
|
|
37
|
+
/**
|
|
38
|
+
* The editor type.
|
|
39
|
+
* @default 'markdown'
|
|
40
|
+
*/
|
|
41
|
+
initialEditType: KupEditorType;
|
|
42
|
+
/**
|
|
43
|
+
* The initial editor value.
|
|
44
|
+
* @default ''
|
|
45
|
+
*/
|
|
46
|
+
initialValue: string;
|
|
47
|
+
/**
|
|
48
|
+
* Defines whether the editor is disabled or not.
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
isReadOnly: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The editor preview style.
|
|
54
|
+
* @default 'vertical'
|
|
55
|
+
*/
|
|
56
|
+
previewStyle: KupEditorPreview;
|
|
57
|
+
/**
|
|
58
|
+
* Defines whether to show the save button in editor's toolbar or not.
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
showSaveButton: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Defines whether to show the editor's toolbar or not.
|
|
64
|
+
* @default true
|
|
65
|
+
*/
|
|
66
|
+
showToolbar: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Triggered at regular intervals if autosaveTimer prop is initialised.
|
|
69
|
+
*/
|
|
70
|
+
kupAutoSave: EventEmitter<KupEditorEventPayload>;
|
|
71
|
+
/**
|
|
72
|
+
* Triggered when the component is ready.
|
|
73
|
+
*/
|
|
74
|
+
kupReady: EventEmitter<KupEventPayload>;
|
|
75
|
+
/**
|
|
76
|
+
* Triggered when save button is clicked.
|
|
77
|
+
*/
|
|
78
|
+
kupSave: EventEmitter<KupEditorEventPayload>;
|
|
79
|
+
onEditorRefUpdated(): void;
|
|
80
|
+
onEditorUpdate(): void;
|
|
81
|
+
onInitialEditTypeChanged(): void;
|
|
82
|
+
onIsReadOnlyChanged(): void;
|
|
83
|
+
onPreviewStyleChanged(): void;
|
|
84
|
+
onShowSaveButtonChanged(): void;
|
|
85
|
+
onShowToolBarChanged(): void;
|
|
86
|
+
onAutosaveTimerChanged(): void;
|
|
87
|
+
/**
|
|
88
|
+
* Used to retrieve component's props values.
|
|
89
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
90
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
91
|
+
*/
|
|
92
|
+
getProps(descriptions?: boolean): Promise<GenericObject>;
|
|
93
|
+
/**
|
|
94
|
+
* Returns the component's internal value as html.
|
|
95
|
+
*/
|
|
96
|
+
getValueAsHTML(): Promise<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Returns the component's internal value as markdown.
|
|
99
|
+
*/
|
|
100
|
+
getValueAsMarkdown(): Promise<string>;
|
|
101
|
+
/**
|
|
102
|
+
* This method is used to trigger a new render of the component.
|
|
103
|
+
*/
|
|
104
|
+
refresh(): Promise<void>;
|
|
105
|
+
/**
|
|
106
|
+
* Sets the props to the component.
|
|
107
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
108
|
+
*/
|
|
109
|
+
setProps(props: GenericObject): Promise<void>;
|
|
110
|
+
createEditor(): void;
|
|
111
|
+
createViewer(): void;
|
|
112
|
+
createSaveButton(): HTMLElement;
|
|
113
|
+
createDivider(): toastui.ToolbarButton;
|
|
114
|
+
createUnsavedChanges(): HTMLElement;
|
|
115
|
+
updateToolbarVisiblity(): void;
|
|
116
|
+
setAutosaveInterval(): void;
|
|
117
|
+
onEditorSave(): void;
|
|
118
|
+
onEditorAutoSave(): void;
|
|
119
|
+
getToolBarWithSaveButton(includeDefaultItems?: boolean): (string | toastui.ToolbarButton)[];
|
|
120
|
+
getDefaultToolBarItems(): (string | toastui.ToolbarButton)[];
|
|
121
|
+
getSaveAndAutoSaveProps(): KupEditorEventPayload;
|
|
122
|
+
componentWillLoad(): void;
|
|
123
|
+
componentDidLoad(): void;
|
|
124
|
+
componentWillRender(): void;
|
|
125
|
+
componentDidRender(): void;
|
|
126
|
+
render(): any;
|
|
127
|
+
disconnectedCallback(): void;
|
|
128
|
+
}
|
|
@@ -96,6 +96,7 @@ export declare class KupGantt {
|
|
|
96
96
|
* References the root HTML element of the component (<kup-gantt>).
|
|
97
97
|
*/
|
|
98
98
|
rootElement: HTMLElement;
|
|
99
|
+
taskListTrueRef: HTMLKupTaskListElement;
|
|
99
100
|
componentWillLoad(): void;
|
|
100
101
|
loadStates(): void;
|
|
101
102
|
componentDidRender(): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@interactjs/types" />
|
|
1
2
|
import { KupDataCell, KupDataColumn, KupDataNode, KupDataRow } from '../../managers/kup-data/kup-data-declarations';
|
|
2
3
|
import type { PointerEvent } from '@interactjs/types/index';
|
|
3
4
|
import { GenericMap, KupEventPayload } from '../../types/GenericTypes';
|
|
@@ -35,6 +35,7 @@ import { KupDropdownButtonEventPayload } from "./components/kup-dropdown-button/
|
|
|
35
35
|
import { KupEchartClickEventPayload, KupEchartLegendPlacement, KupEchartMaps, KupEchartTitle, KupEchartTypes } from "./components/kup-echart/kup-echart-declarations";
|
|
36
36
|
import { GeoJSON } from "geojson";
|
|
37
37
|
import { XAXisComponentOption, YAXisComponentOption } from "echarts";
|
|
38
|
+
import { KupEditorEventPayload, KupEditorPreview, KupEditorType } from "./components/kup-editor/kup-editor-declarations";
|
|
38
39
|
import { KupFamilyTreeData, KupFamilyTreeEventPayload, KupFamilyTreeLayout, KupFamilyTreeNode } from "./components/kup-family-tree/kup-family-tree-declarations";
|
|
39
40
|
import { KupFormData, KupFormLabelPlacement, KupFormLayout } from "./components/kup-form/kup-form-declarations";
|
|
40
41
|
import { KupBadge } from "./components/kup-badge/kup-badge";
|
|
@@ -83,6 +84,7 @@ export { KupDropdownButtonEventPayload } from "./components/kup-dropdown-button/
|
|
|
83
84
|
export { KupEchartClickEventPayload, KupEchartLegendPlacement, KupEchartMaps, KupEchartTitle, KupEchartTypes } from "./components/kup-echart/kup-echart-declarations";
|
|
84
85
|
export { GeoJSON } from "geojson";
|
|
85
86
|
export { XAXisComponentOption, YAXisComponentOption } from "echarts";
|
|
87
|
+
export { KupEditorEventPayload, KupEditorPreview, KupEditorType } from "./components/kup-editor/kup-editor-declarations";
|
|
86
88
|
export { KupFamilyTreeData, KupFamilyTreeEventPayload, KupFamilyTreeLayout, KupFamilyTreeNode } from "./components/kup-family-tree/kup-family-tree-declarations";
|
|
87
89
|
export { KupFormData, KupFormLabelPlacement, KupFormLayout } from "./components/kup-form/kup-form-declarations";
|
|
88
90
|
export { KupBadge } from "./components/kup-badge/kup-badge";
|
|
@@ -1832,6 +1834,71 @@ export namespace Components {
|
|
|
1832
1834
|
*/
|
|
1833
1835
|
"yAxis": YAXisComponentOption;
|
|
1834
1836
|
}
|
|
1837
|
+
interface KupEditor {
|
|
1838
|
+
/**
|
|
1839
|
+
* When specified, the component will emit the kup-editor-autosave event at regular intervals.
|
|
1840
|
+
* @default null
|
|
1841
|
+
*/
|
|
1842
|
+
"autosaveTimer": number;
|
|
1843
|
+
/**
|
|
1844
|
+
* Sets the height of the component.
|
|
1845
|
+
* @default "auto"
|
|
1846
|
+
*/
|
|
1847
|
+
"editorHeight": string;
|
|
1848
|
+
/**
|
|
1849
|
+
* Used to retrieve component's props values.
|
|
1850
|
+
* @param descriptions - When provided and true, the result will be the list of props with their description.
|
|
1851
|
+
* @returns List of props as object, each key will be a prop.
|
|
1852
|
+
*/
|
|
1853
|
+
"getProps": (descriptions?: boolean) => Promise<GenericObject>;
|
|
1854
|
+
/**
|
|
1855
|
+
* Returns the component's internal value as html.
|
|
1856
|
+
*/
|
|
1857
|
+
"getValueAsHTML": () => Promise<string>;
|
|
1858
|
+
/**
|
|
1859
|
+
* Returns the component's internal value as markdown.
|
|
1860
|
+
*/
|
|
1861
|
+
"getValueAsMarkdown": () => Promise<string>;
|
|
1862
|
+
/**
|
|
1863
|
+
* The editor type.
|
|
1864
|
+
* @default 'markdown'
|
|
1865
|
+
*/
|
|
1866
|
+
"initialEditType": KupEditorType;
|
|
1867
|
+
/**
|
|
1868
|
+
* The initial editor value.
|
|
1869
|
+
* @default ''
|
|
1870
|
+
*/
|
|
1871
|
+
"initialValue": string;
|
|
1872
|
+
/**
|
|
1873
|
+
* Defines whether the editor is disabled or not.
|
|
1874
|
+
* @default false
|
|
1875
|
+
*/
|
|
1876
|
+
"isReadOnly": boolean;
|
|
1877
|
+
/**
|
|
1878
|
+
* The editor preview style.
|
|
1879
|
+
* @default 'vertical'
|
|
1880
|
+
*/
|
|
1881
|
+
"previewStyle": KupEditorPreview;
|
|
1882
|
+
/**
|
|
1883
|
+
* This method is used to trigger a new render of the component.
|
|
1884
|
+
*/
|
|
1885
|
+
"refresh": () => Promise<void>;
|
|
1886
|
+
/**
|
|
1887
|
+
* Sets the props to the component.
|
|
1888
|
+
* @param props - Object containing props that will be set to the component.
|
|
1889
|
+
*/
|
|
1890
|
+
"setProps": (props: GenericObject) => Promise<void>;
|
|
1891
|
+
/**
|
|
1892
|
+
* Defines whether to show the save button in editor's toolbar or not.
|
|
1893
|
+
* @default true
|
|
1894
|
+
*/
|
|
1895
|
+
"showSaveButton": boolean;
|
|
1896
|
+
/**
|
|
1897
|
+
* Defines whether to show the editor's toolbar or not.
|
|
1898
|
+
* @default true
|
|
1899
|
+
*/
|
|
1900
|
+
"showToolbar": boolean;
|
|
1901
|
+
}
|
|
1835
1902
|
interface KupFamilyTree {
|
|
1836
1903
|
/**
|
|
1837
1904
|
* The component will autofit everytime a node is expanded.
|
|
@@ -2212,7 +2279,7 @@ export namespace Components {
|
|
|
2212
2279
|
"rtl": boolean;
|
|
2213
2280
|
"scrollNumber": number;
|
|
2214
2281
|
"svgWidth": number;
|
|
2215
|
-
"
|
|
2282
|
+
"taskListTrueRef": HTMLKupTaskListElement;
|
|
2216
2283
|
"taskListWidth": number;
|
|
2217
2284
|
}
|
|
2218
2285
|
interface KupIframe {
|
|
@@ -3873,6 +3940,10 @@ export interface KupEchartCustomEvent<T> extends CustomEvent<T> {
|
|
|
3873
3940
|
detail: T;
|
|
3874
3941
|
target: HTMLKupEchartElement;
|
|
3875
3942
|
}
|
|
3943
|
+
export interface KupEditorCustomEvent<T> extends CustomEvent<T> {
|
|
3944
|
+
detail: T;
|
|
3945
|
+
target: HTMLKupEditorElement;
|
|
3946
|
+
}
|
|
3876
3947
|
export interface KupFamilyTreeCustomEvent<T> extends CustomEvent<T> {
|
|
3877
3948
|
detail: T;
|
|
3878
3949
|
target: HTMLKupFamilyTreeElement;
|
|
@@ -4392,6 +4463,25 @@ declare global {
|
|
|
4392
4463
|
prototype: HTMLKupEchartElement;
|
|
4393
4464
|
new (): HTMLKupEchartElement;
|
|
4394
4465
|
};
|
|
4466
|
+
interface HTMLKupEditorElementEventMap {
|
|
4467
|
+
"kup-editor-autosave": KupEditorEventPayload;
|
|
4468
|
+
"kup-editor-ready": KupEventPayload;
|
|
4469
|
+
"kup-editor-save": KupEditorEventPayload;
|
|
4470
|
+
}
|
|
4471
|
+
interface HTMLKupEditorElement extends Components.KupEditor, HTMLStencilElement {
|
|
4472
|
+
addEventListener<K extends keyof HTMLKupEditorElementEventMap>(type: K, listener: (this: HTMLKupEditorElement, ev: KupEditorCustomEvent<HTMLKupEditorElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4473
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4474
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4475
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4476
|
+
removeEventListener<K extends keyof HTMLKupEditorElementEventMap>(type: K, listener: (this: HTMLKupEditorElement, ev: KupEditorCustomEvent<HTMLKupEditorElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
4477
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4478
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4479
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4480
|
+
}
|
|
4481
|
+
var HTMLKupEditorElement: {
|
|
4482
|
+
prototype: HTMLKupEditorElement;
|
|
4483
|
+
new (): HTMLKupEditorElement;
|
|
4484
|
+
};
|
|
4395
4485
|
interface HTMLKupFamilyTreeElementEventMap {
|
|
4396
4486
|
"kup-familytree-click": KupFamilyTreeEventPayload;
|
|
4397
4487
|
"kup-familytree-contextmenu": KupFamilyTreeEventPayload;
|
|
@@ -4926,6 +5016,7 @@ declare global {
|
|
|
4926
5016
|
"kup-drawer": HTMLKupDrawerElement;
|
|
4927
5017
|
"kup-dropdown-button": HTMLKupDropdownButtonElement;
|
|
4928
5018
|
"kup-echart": HTMLKupEchartElement;
|
|
5019
|
+
"kup-editor": HTMLKupEditorElement;
|
|
4929
5020
|
"kup-family-tree": HTMLKupFamilyTreeElement;
|
|
4930
5021
|
"kup-form": HTMLKupFormElement;
|
|
4931
5022
|
"kup-gantt": HTMLKupGanttElement;
|
|
@@ -6400,6 +6491,60 @@ declare namespace LocalJSX {
|
|
|
6400
6491
|
*/
|
|
6401
6492
|
"yAxis"?: YAXisComponentOption;
|
|
6402
6493
|
}
|
|
6494
|
+
interface KupEditor {
|
|
6495
|
+
/**
|
|
6496
|
+
* When specified, the component will emit the kup-editor-autosave event at regular intervals.
|
|
6497
|
+
* @default null
|
|
6498
|
+
*/
|
|
6499
|
+
"autosaveTimer"?: number;
|
|
6500
|
+
/**
|
|
6501
|
+
* Sets the height of the component.
|
|
6502
|
+
* @default "auto"
|
|
6503
|
+
*/
|
|
6504
|
+
"editorHeight"?: string;
|
|
6505
|
+
/**
|
|
6506
|
+
* The editor type.
|
|
6507
|
+
* @default 'markdown'
|
|
6508
|
+
*/
|
|
6509
|
+
"initialEditType"?: KupEditorType;
|
|
6510
|
+
/**
|
|
6511
|
+
* The initial editor value.
|
|
6512
|
+
* @default ''
|
|
6513
|
+
*/
|
|
6514
|
+
"initialValue"?: string;
|
|
6515
|
+
/**
|
|
6516
|
+
* Defines whether the editor is disabled or not.
|
|
6517
|
+
* @default false
|
|
6518
|
+
*/
|
|
6519
|
+
"isReadOnly"?: boolean;
|
|
6520
|
+
/**
|
|
6521
|
+
* Triggered at regular intervals if autosaveTimer prop is initialised.
|
|
6522
|
+
*/
|
|
6523
|
+
"onKup-editor-autosave"?: (event: KupEditorCustomEvent<KupEditorEventPayload>) => void;
|
|
6524
|
+
/**
|
|
6525
|
+
* Triggered when the component is ready.
|
|
6526
|
+
*/
|
|
6527
|
+
"onKup-editor-ready"?: (event: KupEditorCustomEvent<KupEventPayload>) => void;
|
|
6528
|
+
/**
|
|
6529
|
+
* Triggered when save button is clicked.
|
|
6530
|
+
*/
|
|
6531
|
+
"onKup-editor-save"?: (event: KupEditorCustomEvent<KupEditorEventPayload>) => void;
|
|
6532
|
+
/**
|
|
6533
|
+
* The editor preview style.
|
|
6534
|
+
* @default 'vertical'
|
|
6535
|
+
*/
|
|
6536
|
+
"previewStyle"?: KupEditorPreview;
|
|
6537
|
+
/**
|
|
6538
|
+
* Defines whether to show the save button in editor's toolbar or not.
|
|
6539
|
+
* @default true
|
|
6540
|
+
*/
|
|
6541
|
+
"showSaveButton"?: boolean;
|
|
6542
|
+
/**
|
|
6543
|
+
* Defines whether to show the editor's toolbar or not.
|
|
6544
|
+
* @default true
|
|
6545
|
+
*/
|
|
6546
|
+
"showToolbar"?: boolean;
|
|
6547
|
+
}
|
|
6403
6548
|
interface KupFamilyTree {
|
|
6404
6549
|
/**
|
|
6405
6550
|
* The component will autofit everytime a node is expanded.
|
|
@@ -6709,7 +6854,7 @@ declare namespace LocalJSX {
|
|
|
6709
6854
|
"rtl"?: boolean;
|
|
6710
6855
|
"scrollNumber"?: number;
|
|
6711
6856
|
"svgWidth"?: number;
|
|
6712
|
-
"
|
|
6857
|
+
"taskListTrueRef"?: HTMLKupTaskListElement;
|
|
6713
6858
|
"taskListWidth"?: number;
|
|
6714
6859
|
}
|
|
6715
6860
|
interface KupIframe {
|
|
@@ -8065,6 +8210,7 @@ declare namespace LocalJSX {
|
|
|
8065
8210
|
"kup-drawer": KupDrawer;
|
|
8066
8211
|
"kup-dropdown-button": KupDropdownButton;
|
|
8067
8212
|
"kup-echart": KupEchart;
|
|
8213
|
+
"kup-editor": KupEditor;
|
|
8068
8214
|
"kup-family-tree": KupFamilyTree;
|
|
8069
8215
|
"kup-form": KupForm;
|
|
8070
8216
|
"kup-gantt": KupGantt;
|
|
@@ -8134,6 +8280,7 @@ declare module "@stencil/core" {
|
|
|
8134
8280
|
"kup-drawer": LocalJSX.KupDrawer & JSXBase.HTMLAttributes<HTMLKupDrawerElement>;
|
|
8135
8281
|
"kup-dropdown-button": LocalJSX.KupDropdownButton & JSXBase.HTMLAttributes<HTMLKupDropdownButtonElement>;
|
|
8136
8282
|
"kup-echart": LocalJSX.KupEchart & JSXBase.HTMLAttributes<HTMLKupEchartElement>;
|
|
8283
|
+
"kup-editor": LocalJSX.KupEditor & JSXBase.HTMLAttributes<HTMLKupEditorElement>;
|
|
8137
8284
|
"kup-family-tree": LocalJSX.KupFamilyTree & JSXBase.HTMLAttributes<HTMLKupFamilyTreeElement>;
|
|
8138
8285
|
"kup-form": LocalJSX.KupForm & JSXBase.HTMLAttributes<HTMLKupFormElement>;
|
|
8139
8286
|
"kup-gantt": LocalJSX.KupGantt & JSXBase.HTMLAttributes<HTMLKupGanttElement>;
|
|
@@ -17,7 +17,7 @@ export declare class KupData {
|
|
|
17
17
|
column: {
|
|
18
18
|
find(dataset: KupDataDataset | KupDataColumn[], filters: Partial<KupDataColumn>): KupDataColumn[];
|
|
19
19
|
hide(dataset: KupDataDataset | KupDataColumn[], columns2hide: string[]): KupDataColumn[];
|
|
20
|
-
new(dataset: KupDataDataset, type: KupDataNewColumnTypes, options: KupDataNewColumnOptions): string | KupDataColumn;
|
|
20
|
+
"new"(dataset: KupDataDataset, type: KupDataNewColumnTypes, options: KupDataNewColumnOptions): string | KupDataColumn;
|
|
21
21
|
};
|
|
22
22
|
node: {
|
|
23
23
|
getDrilldownInfo(nodes: KupDataNode[]): KupDataNodeDrilldownInfo;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@interactjs/types" />
|
|
1
2
|
import type { Interaction } from '@interactjs/core/Interaction';
|
|
2
3
|
import type { ActionMap } from '@interactjs/core/scope';
|
|
3
4
|
import type { DraggableOptions, DropzoneOptions, ListenersArg, Point, RectResolvable, ResizableOptions } from '@interactjs/types/index';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@interactjs/types" />
|
|
1
2
|
import type { Interaction } from '@interactjs/core/Interaction';
|
|
2
3
|
import type { ActionMap } from '@interactjs/core/scope';
|
|
3
4
|
import type { RectResolvable } from '@interactjs/types/index';
|
|
@@ -38,6 +39,7 @@ export interface KupManager {
|
|
|
38
39
|
dates: KupDates;
|
|
39
40
|
debug: KupDebug;
|
|
40
41
|
dynamicPosition: KupDynamicPosition;
|
|
42
|
+
enableExperimentalFeatures: boolean;
|
|
41
43
|
interact: KupInteract;
|
|
42
44
|
language: KupLanguage;
|
|
43
45
|
magicBox: HTMLKupMagicBoxElement;
|
|
@@ -83,6 +85,7 @@ export interface KupManagerInitialization {
|
|
|
83
85
|
autoSetLocalization?: boolean;
|
|
84
86
|
dates?: KupManagerDatesSettings;
|
|
85
87
|
debug?: KupManagerDebugSettings;
|
|
88
|
+
enableExperimentalFeatures?: boolean;
|
|
86
89
|
interact?: KupManagerInteractSettings;
|
|
87
90
|
language?: KupManagerLanguageSettings;
|
|
88
91
|
math?: KupManagerMathSettings;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sme.up/ketchup",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.6.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"smeup",
|
|
6
6
|
"KetchUP",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"@material/form-field": "^14.0.0",
|
|
47
47
|
"@material/ripple": "^14.0.0",
|
|
48
48
|
"@material/textfield": "^14.0.0",
|
|
49
|
+
"@toast-ui/editor": "^2.5.4",
|
|
49
50
|
"d3-shape": "^3.2.0",
|
|
50
51
|
"dayjs": "^1.11.7",
|
|
51
52
|
"echarts": "^5.4.2",
|
|
@@ -58,9 +59,9 @@
|
|
|
58
59
|
"vanilla-picker": "^2.12.1"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
|
-
"@stencil/core": "^4.
|
|
62
|
+
"@stencil/core": "^4.12.0",
|
|
62
63
|
"@stencil/react-output-target": "0.5.3",
|
|
63
|
-
"@stencil/sass": "^3.0.
|
|
64
|
+
"@stencil/sass": "^3.0.9",
|
|
64
65
|
"jest": "^29.7.0",
|
|
65
66
|
"jest-cli": "^29.7.0",
|
|
66
67
|
"jest-html-reporter": "^3.10.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,h as t,d as h}from"./p-cd9a4274.js";import{k as o}from"./p-937a322f.js";import"./p-c23731ca.js";const e=class{constructor(t){i(this,t),this.kupManager=o(),this.config=void 0,this.qlik=void 0,this.appid="",this.app=!1,this.grid=[],this.debug=!1,this.fluid=!1,this.bordered=!1,this.defobjsize="400px",this.divlist=[]}getObjects(i){let t;return new Promise((h=>{i.rows.forEach((i=>{i.columns.forEach((i=>{t=!1,i.noSelections&&(t=i.noSelections),this.app.getObject(i.obj,i.obj,{noInteraction:!1,noSelections:t})}))})),h(!0)}))}doSelection(i){return new Promise((t=>{i.selections&&i.selections.forEach((i=>{this.app.field(i.field).selectValues(i.values,!1,!0)})),t(!0)}))}setRender(i){return new Promise((h=>{this.divlist=[],i.rows.forEach((i=>{let h=[];i.columns.forEach((i=>{let o="qvobject ";this.bordered&&(o+="bordered "),o=o+"width-"+i.colDim+" size-"+i.size,h.push(t("div",""!=i.obj?{id:i.obj,class:o}:{class:o}))})),this.divlist.push(t("div",{class:"kup-qlik-row"},h))})),h(!0)}))}componentWillLoad(){this.kupManager.debug.logLoad(this,!1)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1),this.setRender(this.grid)}render(){let i=null,h=null;return i=this.fluid?{"kup-qlik-container-fluid":!0}:{"kup-qlik-container":!0},h={"--lyo_obj-height":this.defobjsize},t("div",{class:i,style:h},this.divlist)}componentDidRender(){this.debug&&console.log("Grid",this.grid),this.qlik&&(""==this.appid||this.app?this.debug&&console.log("App already open:",this.app):this.app=this.qlik.openApp(this.appid,this.config),this.app&&this.getObjects(this.grid).then((()=>{this.doSelection(this.grid)}))),this.kupManager.debug.logRender(this,!0)}get rootElement(){return h(this)}};e.style=".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-color, #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%}";export{e as kup_qlik}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,f as i,h as o,H as a,d as n}from"./p-cd9a4274.js";import{k as e,g as r,s as c}from"./p-937a322f.js";import{c as p}from"./p-635bb4b3.js";import{F as l}from"./p-269a9af8.js";import"./p-c23731ca.js";import"./p-c634eb82.js";import"./p-b396d0f8.js";const h="snackbar";var u;!function(t){t.actionButton="Set of FButton props to set the action button.",t.closeButton="When true, the hide button will be displayed.",t.customStyle="Custom style of the component.",t.text="Sets the textual content of the snackbar.",t.timeout="Defaults at null, when set the snackbar will automatically disappear after the specified amount of milliseconds."}(u||(u={}));const b=class{constructor(i){t(this,i),this.kupActionClick=s(this,"kup-snackbar-actionclick",6),this.kupTimeoutComplete=s(this,"kup-snackbar-timeoutcomplete",6),this.kupManager=e(),this.visible=!1,this.actionButton=null,this.closeButton=!0,this.customStyle="",this.text="",this.timeout=null}onKupActionClick(){this.hide(),this.kupActionClick.emit({comp:this,id:this.rootElement.id})}onKupTimeoutComplete(){this.kupTimeoutComplete.emit({comp:this,id:this.rootElement.id})}async getProps(t){return r(this,u,t)}async hide(){this.visible=!1}async refresh(){i(this)}async setProps(t){c(this,u,t)}async show(){this.visible=!0}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.timeout&&this.visible&&setTimeout((()=>{this.hide(),this.onKupTimeoutComplete()}),this.timeout),this.kupManager.debug.logRender(this,!0)}render(){return o(a,{"kup-visible":this.visible},o("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),o("div",{id:p},o("div",{class:h},o("div",{class:`${h}__text`},this.text),this.actionButton||this.closeButton?o("div",{class:`${h}__buttons`},this.actionButton?o("div",{class:`${h}__action`},o(l,Object.assign({},this.actionButton,{onClick:()=>this.onKupActionClick()}))):null,this.closeButton?o("div",{class:`${h}__close`},o(l,{icon:"close",onClick:()=>this.hide()})):null):null)))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return n(this)}};b.style=":host{animation:snackbar-show 125ms;bottom:0;box-sizing:border-box;display:block;left:0;outline:none;pointer-events:none;position:fixed;transition:opacity 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, -webkit-transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms;width:100%;z-index:calc(var(--kup-navbar-zindex) + 1)}:host(:not([kup-visible])){display:none}#kup-component{box-sizing:border-box;display:flex;justify-content:center;height:100%;padding:8px;width:100%}.snackbar{align-items:center;background:var(--kup-navbar-background-color);border-radius:5px;box-shadow:var(--kup-box-shadow);color:var(--kup-navbar-color);display:flex;justify-content:space-between;max-width:672px;min-height:48px;min-width:344px}.snackbar__text{padding:14px 16px;pointer-events:all;word-break:break-word}.snackbar__buttons{--kup-button-primary-color:var(--kup-navbar-color);--kup-button-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-button-primary-color-h:var(--kup-navbar-color-h);--kup-button-primary-color-s:var(--kup-navbar-color-s);--kup-button-primary-color-l:var(--kup-navbar-color-l);align-items:center;display:flex;justify-content:flex-end;margin-right:8px;pointer-events:all;width:max-content}.snackbar__close{--kup-button-font-size:11px;margin-left:8px;pointer-events:all}@keyframes snackbar-show{from{transform:scale(0.5);opacity:0}to{transform:scale(1);opacity:1}}:host(.kup-top){bottom:unset;top:var(--kup-navbar-height, 0)}";export{b as kup_snackbar}
|