@sme.up/ketchup 11.0.0-SNAPSHOT-20250205143327 → 11.0.0-SNAPSHOT-20250205160050
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-1ebce571.js → f-cell-058178dc.js} +4 -4
- package/dist/cjs/{f-chip-65b2bdfd.js → f-chip-a97b36ac.js} +1 -1
- package/dist/cjs/{f-object-field-055e8cca.js → f-object-field-4887e74e.js} +2 -2
- package/dist/cjs/{f-paginator-utils-17dbcca2.js → f-paginator-utils-d7196260.js} +1 -1
- package/dist/cjs/{f-text-field-87c9a930.js → f-text-field-e2b84253.js} +6 -2
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ketchup.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_29.cjs.entry.js +122 -21
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- 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 +5 -5
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-dc9310f6.js → kup-data-table-helper-152abe38.js} +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 +5 -5
- package/dist/cjs/kup-input-panel.cjs.entry.js +5 -5
- 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-bf9935c7.js → kup-manager-03d0fd95.js} +43 -22
- 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-object-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-pdf.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-txt.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/kup-card/kup-card.js +5 -2
- package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +3 -0
- package/dist/collection/components/kup-dialog/kup-dialog.css +27 -2
- package/dist/collection/components/kup-dialog/kup-dialog.js +169 -11
- package/dist/collection/f-components/f-text-field/f-text-field.js +5 -1
- package/dist/collection/managers/kup-interact/kup-interact.js +43 -22
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +2 -2
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +2 -2
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +2 -2
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -2
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +3 -3
- package/dist/components/kup-file-upload.js +1 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-htm.js +2 -2
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +2 -2
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +3 -3
- package/dist/components/kup-lazy.js +2 -2
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +4 -4
- package/dist/components/kup-nav-bar.js +2 -2
- package/dist/components/kup-numeric-picker.js +2 -2
- package/dist/components/kup-object-field.js +2 -2
- package/dist/components/kup-pdf.js +2 -2
- package/dist/components/kup-planner.js +2 -2
- package/dist/components/kup-probe.js +2 -2
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +2 -2
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +2 -2
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +2 -2
- package/dist/components/kup-typography-list.js +2 -2
- package/dist/components/kup-typography.js +2 -2
- package/dist/components/{p-700a322b.js → p-09fe5413.js} +43 -22
- package/dist/components/{p-b4f7e6d0.js → p-58510dd6.js} +2 -2
- package/dist/components/{p-9fe00131.js → p-7b195dfe.js} +124 -16
- package/dist/components/{p-47327b2b.js → p-9226b094.js} +2 -2
- package/dist/components/{p-45b84d94.js → p-a83fc16f.js} +2 -2
- package/dist/components/{p-741bddcb.js → p-fcd1ee1f.js} +2 -2
- package/dist/esm/{f-cell-c7bbb5a9.js → f-cell-0cecef2e.js} +4 -4
- package/dist/esm/{f-chip-28f0f666.js → f-chip-474adb94.js} +1 -1
- package/dist/esm/{f-object-field-db698ceb.js → f-object-field-623a12f2.js} +2 -2
- package/dist/esm/{f-paginator-utils-b8c8e0b6.js → f-paginator-utils-ec173eb2.js} +1 -1
- package/dist/esm/{f-text-field-f48cb7e9.js → f-text-field-15e666c0.js} +6 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.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_29.entry.js +122 -21
- package/dist/esm/kup-box.entry.js +7 -7
- 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 +5 -5
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-d4578d59.js → kup-data-table-helper-19df55c1.js} +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 +5 -5
- package/dist/esm/kup-input-panel.entry.js +5 -5
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-a08b1823.js → kup-manager-e4341ce1.js} +43 -22
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-object-field.entry.js +3 -3
- package/dist/esm/kup-pdf.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-txt.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-0c57cfc5.entry.js → p-04c656c8.entry.js} +1 -1
- package/dist/ketchup/{p-24658ca7.entry.js → p-0c190203.entry.js} +1 -1
- package/dist/ketchup/{p-680efa51.entry.js → p-0e4bef2b.entry.js} +1 -1
- package/dist/ketchup/{p-4f9d0919.js → p-13dd83ac.js} +1 -1
- package/dist/ketchup/p-17c4f8e0.entry.js +9 -0
- package/dist/ketchup/p-1bdf871b.js +1 -0
- package/dist/ketchup/{p-d8cca5ee.entry.js → p-1c51707f.entry.js} +1 -1
- package/dist/ketchup/{p-1c6cde19.entry.js → p-2f25581b.entry.js} +1 -1
- package/dist/ketchup/{p-cf03bba4.entry.js → p-39ee82cb.entry.js} +1 -1
- package/dist/ketchup/{p-5c22a877.entry.js → p-3cb9a415.entry.js} +1 -1
- package/dist/ketchup/{p-d4ee5b08.entry.js → p-3f07de9e.entry.js} +1 -1
- package/dist/ketchup/{p-e21bc514.entry.js → p-43646b7c.entry.js} +1 -1
- package/dist/ketchup/{p-2b513e41.entry.js → p-4686d137.entry.js} +1 -1
- package/dist/ketchup/{p-6fdd06a8.entry.js → p-485a0681.entry.js} +1 -1
- package/dist/ketchup/p-4ed54493.js +1 -0
- package/dist/ketchup/{p-26a8754b.entry.js → p-4f371390.entry.js} +1 -1
- package/dist/ketchup/{p-171c5fae.js → p-5417175c.js} +1 -1
- package/dist/ketchup/{p-6fdc73c2.js → p-55470e36.js} +1 -1
- package/dist/ketchup/{p-9d813868.entry.js → p-5f96aca0.entry.js} +1 -1
- package/dist/ketchup/{p-25218b3b.entry.js → p-6559719a.entry.js} +1 -1
- package/dist/ketchup/{p-5ee4d84e.entry.js → p-728b73ad.entry.js} +1 -1
- package/dist/ketchup/{p-27d7d8a7.entry.js → p-753716d6.entry.js} +1 -1
- package/dist/ketchup/{p-5fc94093.entry.js → p-9253017a.entry.js} +1 -1
- package/dist/ketchup/{p-2d229381.entry.js → p-9a146521.entry.js} +1 -1
- package/dist/ketchup/{p-fa7058e5.entry.js → p-9d73aadf.entry.js} +1 -1
- package/dist/ketchup/{p-06360264.entry.js → p-a00333bf.entry.js} +1 -1
- package/dist/ketchup/{p-b7a96594.entry.js → p-a5533a5b.entry.js} +1 -1
- package/dist/ketchup/{p-24111ebd.entry.js → p-a9cba8fa.entry.js} +1 -1
- package/dist/ketchup/{p-3587239e.entry.js → p-afcdf8d0.entry.js} +1 -1
- package/dist/ketchup/{p-6cae6b15.entry.js → p-b3fbf426.entry.js} +1 -1
- package/dist/ketchup/p-bccb0dd8.js +21 -0
- package/dist/ketchup/{p-6fdcb531.entry.js → p-c36bf35a.entry.js} +1 -1
- package/dist/ketchup/{p-d2872e96.entry.js → p-c5e20fe2.entry.js} +1 -1
- package/dist/ketchup/{p-b1528297.entry.js → p-c9f73041.entry.js} +1 -1
- package/dist/ketchup/{p-53e2645c.entry.js → p-cedd66f8.entry.js} +1 -1
- package/dist/ketchup/{p-60b147f3.entry.js → p-d30ae9d4.entry.js} +1 -1
- package/dist/ketchup/{p-742e1ca0.js → p-dcd875f8.js} +1 -1
- package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +3 -0
- package/dist/types/components/kup-dialog/kup-dialog.d.ts +16 -0
- package/dist/types/components.d.ts +30 -0
- package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +20 -1
- package/dist/types/managers/kup-interact/kup-interact.d.ts +7 -3
- package/package.json +1 -1
- package/dist/ketchup/p-03ecb09e.entry.js +0 -9
- package/dist/ketchup/p-25f1e4bf.js +0 -1
- package/dist/ketchup/p-b2ed96d1.js +0 -21
- package/dist/ketchup/p-cef2c364.js +0 -1
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager$1 = require('./kup-manager-
|
|
7
|
-
const fTextField = require('./f-text-field-
|
|
6
|
+
const kupManager$1 = require('./kup-manager-03d0fd95.js');
|
|
7
|
+
const fTextField = require('./f-text-field-e2b84253.js');
|
|
8
8
|
const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
|
|
9
9
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
10
10
|
const fImage = require('./f-image-d22b012f.js');
|
|
11
11
|
const fButton = require('./f-button-c3ae141e.js');
|
|
12
12
|
const fButtonDeclarations = require('./f-button-declarations-76ef9f87.js');
|
|
13
|
-
const fCell = require('./f-cell-
|
|
13
|
+
const fCell = require('./f-cell-058178dc.js');
|
|
14
14
|
const kupDates = require('./kup-dates-bc4cf9d0.js');
|
|
15
|
-
const fChip = require('./f-chip-
|
|
15
|
+
const fChip = require('./f-chip-a97b36ac.js');
|
|
16
16
|
const component = require('./component-a6dd6c14.js');
|
|
17
17
|
const fCheckbox = require('./f-checkbox-59fb7aa5.js');
|
|
18
|
-
const kupDataTableHelper = require('./kup-data-table-helper-
|
|
19
|
-
const fPaginatorUtils = require('./f-paginator-utils-
|
|
20
|
-
require('./f-object-field-
|
|
18
|
+
const kupDataTableHelper = require('./kup-data-table-helper-152abe38.js');
|
|
19
|
+
const fPaginatorUtils = require('./f-paginator-utils-d7196260.js');
|
|
20
|
+
require('./f-object-field-4887e74e.js');
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Props of the kup-autocomplete component.
|
|
@@ -5895,9 +5895,12 @@ const KupCard = class {
|
|
|
5895
5895
|
if (root) {
|
|
5896
5896
|
const card = this.rootElement;
|
|
5897
5897
|
const dragHandle = root.querySelector('#' + kupManager$1.KupCardIds.DRAG_HANDLE);
|
|
5898
|
-
const
|
|
5898
|
+
const isResizable = !!!root.querySelector('.' + kupManager$1.KupCardCSSClasses.DIALOG_UNRESIZABLE);
|
|
5899
5899
|
if (!this.kupManager.interact.isRegistered(card)) {
|
|
5900
|
-
this.kupManager.interact.dialogify(card, dragHandle ? dragHandle : null,
|
|
5900
|
+
this.kupManager.interact.dialogify(card, dragHandle ? dragHandle : null, {
|
|
5901
|
+
isResizable: isResizable,
|
|
5902
|
+
isDraggable: true,
|
|
5903
|
+
});
|
|
5901
5904
|
}
|
|
5902
5905
|
}
|
|
5903
5906
|
}
|
|
@@ -13174,13 +13177,16 @@ var KupDialogProps;
|
|
|
13174
13177
|
KupDialogProps["header"] = "Header options.";
|
|
13175
13178
|
KupDialogProps["modal"] = "Set of options to display the dialog as a modal.";
|
|
13176
13179
|
KupDialogProps["resizable"] = "Sets whether the dialog is resizable or not.";
|
|
13180
|
+
KupDialogProps["anchor"] = "Sets anchor position (\"none\", \"left\", \"top\", \"right\", \"bottom\")";
|
|
13181
|
+
KupDialogProps["minSizeY"] = "The min height of the dialog.";
|
|
13182
|
+
KupDialogProps["minSizeX"] = "The min width of the dialog.";
|
|
13177
13183
|
KupDialogProps["sizeX"] = "The width of the dialog, defaults to auto. Accepts any valid CSS format (px, %, vw, etc.).";
|
|
13178
13184
|
KupDialogProps["sizeY"] = "The height of the dialog, defaults to auto. Accepts any valid CSS format (px, %, vh, etc.).";
|
|
13179
13185
|
KupDialogProps["maxSizeY"] = "The max height of the dialog, defaults to 90dvh.";
|
|
13180
13186
|
KupDialogProps["maxSizeX"] = "The max width of the dialog, defaults to 90dvw.";
|
|
13181
13187
|
})(KupDialogProps || (KupDialogProps = {}));
|
|
13182
13188
|
|
|
13183
|
-
const kupDialogCss = ".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}:host{--kup_dialogheader_text_color:var(\n --kup-dialogheader-text-color,\n var(--kup-text-secondary)\n );--kup_dialog_background_color:var(\n --kup-dialog-background-color,\n var(--kup-layer-0)\n );--kup_dialog_header_background_color:var(\n --kup-dialog-header-background-color,\n var(--kup-layer-1)\n );--kup_dialog_header_height:var(\n --kup-dialog-header-height,\n var(--kup-space-09)\n );--kup_dialog_content_max_height:var(--kup-dialog-content-max-height, 85dvh);box-sizing:border-box;display:block;height:var(--kup_dialog_height);left:var(--kup_dialog_left, -100%);min-height:var(--
|
|
13189
|
+
const kupDialogCss = ".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}:host{--kup_dialogheader_text_color:var(\n --kup-dialogheader-text-color,\n var(--kup-text-secondary)\n );--kup_dialog_background_color:var(\n --kup-dialog-background-color,\n var(--kup-layer-0)\n );--kup_dialog_header_background_color:var(\n --kup-dialog-header-background-color,\n var(--kup-layer-1)\n );--kup_dialog_header_height:var(\n --kup-dialog-header-height,\n var(--kup-space-09)\n );--kup_dialog_content_max_height:var(--kup-dialog-content-max-height, 85dvh);box-sizing:border-box;display:block;height:var(--kup_dialog_height);left:var(--kup_dialog_left, -100%);min-height:var(--kup_dialog_min_height);min-width:var(--kup_dialog_min_width);max-width:var(--kup_dialog_max_width);max-height:var(--kup_dialog_max_height);position:absolute;top:var(--kup_dialog_top, -100%);transition:opacity 0.25s ease-in;width:var(--kup_dialog_width);-webkit-box-shadow:rgba(0, 0, 0, 0.3) 0 1px 3px;-moz-box-shadow:rgba(0, 0, 0, 0.3) 0 1px 3px;box-shadow:rgba(0, 0, 0, 0.3) 0 1px 3px}#kup-component{height:100%;width:100%}:host([fade-in]){opacity:0}:host([fade-in]) ::slotted{opacity:0}:host([data-anchor=none]){inset:0}:host([data-anchor=left]){inset:0 auto 0 0;width:50%;height:100%}:host([data-anchor=top]){inset:0 0 auto 0;height:50%}:host([data-anchor=right]){inset:0 0 0 auto;width:50%}:host([data-anchor=bottom]){inset:auto 0 0 0;height:50%}.header{color:var(--kup_dialogheader_text_color);display:flex;flex-direction:row;height:var(--kup_dialog_header_height);position:relative;width:100%;min-height:var(--kup-space-09);background-color:var(--kup_dialog_header_background_color)}.header__title{padding:var(--kup-space-05);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.header__close.f-image{--kup-icon-color:var(--kup_dialogheader_text_color);cursor:pointer;margin-right:0;transition:opacity 0.25s;position:absolute;right:var(--kup-space-05)}.header__close.f-image:hover{opacity:0.5}.content{height:calc(100% - var(--kup_dialog_header_height) - var(--kup-space-05) * 2);padding:var(--kup-space-05);overflow:auto;user-select:text;background-color:var(--kup_dialog_background_color);max-height:var(--kup_dialog_content_max_height)}";
|
|
13184
13190
|
const KupDialogStyle0 = kupDialogCss;
|
|
13185
13191
|
|
|
13186
13192
|
var __classPrivateFieldGet$6 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
@@ -13199,7 +13205,7 @@ var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) |
|
|
|
13199
13205
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
13200
13206
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
13201
13207
|
};
|
|
13202
|
-
var _KupDialog_instances, _KupDialog_header, _KupDialog_kupManager, _KupDialog_recalcSafeguard, _KupDialog_disconnectedCallback;
|
|
13208
|
+
var _KupDialog_instances, _KupDialog_header, _KupDialog_kupManager, _KupDialog_recalcSafeguard, _KupDialog_disconnectedCallback, _KupDialog_getMinMaxDimensions, _KupDialog_onResize, _KupDialog_dialogify, _KupDialog_undialogify, _KupDialog_getEdgeOptions, _KupDialog_getStyles;
|
|
13203
13209
|
const KupDialog = class {
|
|
13204
13210
|
constructor(hostRef) {
|
|
13205
13211
|
index.registerInstance(this, hostRef);
|
|
@@ -13217,6 +13223,9 @@ const KupDialog = class {
|
|
|
13217
13223
|
this.header = { icons: { close: true } };
|
|
13218
13224
|
this.modal = { closeOnBackdropClick: true };
|
|
13219
13225
|
this.resizable = true;
|
|
13226
|
+
this.anchor = 'none';
|
|
13227
|
+
this.minSizeX = '20dvw';
|
|
13228
|
+
this.minSizeY = '20dvh';
|
|
13220
13229
|
this.sizeX = 'auto';
|
|
13221
13230
|
this.sizeY = 'auto';
|
|
13222
13231
|
this.maxSizeX = '90dvw';
|
|
@@ -13295,8 +13304,8 @@ const KupDialog = class {
|
|
|
13295
13304
|
}
|
|
13296
13305
|
componentDidLoad() {
|
|
13297
13306
|
var _a;
|
|
13298
|
-
__classPrivateFieldGet$6(this,
|
|
13299
|
-
if ((_a = this.autoCenter) === null || _a === void 0 ? void 0 : _a.onReady) {
|
|
13307
|
+
__classPrivateFieldGet$6(this, _KupDialog_instances, "m", _KupDialog_dialogify).call(this);
|
|
13308
|
+
if (((_a = this.autoCenter) === null || _a === void 0 ? void 0 : _a.onReady) && this.anchor == 'none') {
|
|
13300
13309
|
this.recalcPosition();
|
|
13301
13310
|
}
|
|
13302
13311
|
else {
|
|
@@ -13315,6 +13324,12 @@ const KupDialog = class {
|
|
|
13315
13324
|
});
|
|
13316
13325
|
__classPrivateFieldGet$6(this, _KupDialog_kupManager, "f").debug.logLoad(this, true);
|
|
13317
13326
|
}
|
|
13327
|
+
componentDidUpdate() {
|
|
13328
|
+
// unregister dialog
|
|
13329
|
+
__classPrivateFieldGet$6(this, _KupDialog_instances, "m", _KupDialog_undialogify).call(this);
|
|
13330
|
+
// register it again
|
|
13331
|
+
__classPrivateFieldGet$6(this, _KupDialog_instances, "m", _KupDialog_dialogify).call(this);
|
|
13332
|
+
}
|
|
13318
13333
|
componentWillRender() {
|
|
13319
13334
|
__classPrivateFieldGet$6(this, _KupDialog_kupManager, "f").debug.logRender(this, false);
|
|
13320
13335
|
}
|
|
@@ -13322,18 +13337,13 @@ const KupDialog = class {
|
|
|
13322
13337
|
__classPrivateFieldGet$6(this, _KupDialog_kupManager, "f").debug.logRender(this, true);
|
|
13323
13338
|
}
|
|
13324
13339
|
render() {
|
|
13325
|
-
var _a;
|
|
13326
|
-
|
|
13327
|
-
'--kup_dialog_height': this.sizeY ? this.sizeY : 'auto',
|
|
13328
|
-
'--kup_dialog_width': this.sizeX ? this.sizeX : 'auto',
|
|
13329
|
-
'--kup_dialog_max_width': this.maxSizeX ? this.maxSizeX : '90dvw',
|
|
13330
|
-
'--kup_dialog_max_height': this.maxSizeY ? this.maxSizeY : '90dvh',
|
|
13331
|
-
};
|
|
13340
|
+
var _a, _b;
|
|
13341
|
+
let style = __classPrivateFieldGet$6(this, _KupDialog_instances, "m", _KupDialog_getStyles).call(this);
|
|
13332
13342
|
const headerSlot = this.rootElement.querySelector('[slot="header"]');
|
|
13333
13343
|
if (headerSlot) {
|
|
13334
13344
|
__classPrivateFieldSet$2(this, _KupDialog_header, headerSlot, "f");
|
|
13335
13345
|
}
|
|
13336
|
-
return (index.h(index.Host, { key: '
|
|
13346
|
+
return (index.h(index.Host, { key: '6b77e120901ad4af2375f3f39aa278645820735e', "fade-in": true, style: style, "data-anchor": ((_a = this.anchor) === null || _a === void 0 ? void 0 : _a.toString()) || 'none' }, index.h("style", { key: 'd8c4a1d878c71cf48259c2a749a18863b04bee2f' }, __classPrivateFieldGet$6(this, _KupDialog_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: 'ee15ebb743fe59fc3e4a926eac8e21953b223d29', id: GenericVariables.componentWrapperId }, this.header ? (index.h("div", { class: "header", ref: (el) => (__classPrivateFieldSet$2(this, _KupDialog_header, el, "f")) }, this.header.title ? (index.h("div", { class: "header__title" }, this.header.title)) : null, ((_b = this.header.icons) === null || _b === void 0 ? void 0 : _b.close) ? (index.h(fImage.FImage, { onClick: () => this.close(), sizeX: "1.25em", sizeY: "100%", resource: "clear", wrapperClass: "header__close" })) : null)) : headerSlot ? (index.h("slot", { name: "header" })) : null, index.h("div", { key: '57fca041982e0a1f47479ce0ccc1369917b0c984', class: "content" }, index.h("slot", { key: 'a0397c07bb34449de093d0290ef4f981d5c70109', name: "content" })))));
|
|
13337
13347
|
}
|
|
13338
13348
|
disconnectedCallback() {
|
|
13339
13349
|
__classPrivateFieldGet$6(this, _KupDialog_instances, "m", _KupDialog_disconnectedCallback).call(this);
|
|
@@ -13345,6 +13355,97 @@ _KupDialog_header = new WeakMap(), _KupDialog_kupManager = new WeakMap(), _KupDi
|
|
|
13345
13355
|
__classPrivateFieldGet$6(this, _KupDialog_kupManager, "f").interact.hideModalBackdrop();
|
|
13346
13356
|
}
|
|
13347
13357
|
__classPrivateFieldGet$6(this, _KupDialog_kupManager, "f").theme.unregister(this);
|
|
13358
|
+
}, _KupDialog_getMinMaxDimensions = function _KupDialog_getMinMaxDimensions(element) {
|
|
13359
|
+
const minWidth = getComputedStyle(element).minWidth.replace('px', '');
|
|
13360
|
+
const minHeight = getComputedStyle(element).minHeight.replace('px', '');
|
|
13361
|
+
const maxWidth = getComputedStyle(element).maxWidth.replace('px', '');
|
|
13362
|
+
const maxHeight = getComputedStyle(element).maxHeight.replace('px', '');
|
|
13363
|
+
return {
|
|
13364
|
+
min: {
|
|
13365
|
+
width: parseFloat(minWidth),
|
|
13366
|
+
height: parseFloat(minHeight),
|
|
13367
|
+
},
|
|
13368
|
+
max: {
|
|
13369
|
+
width: parseFloat(maxWidth),
|
|
13370
|
+
height: parseFloat(maxHeight),
|
|
13371
|
+
},
|
|
13372
|
+
};
|
|
13373
|
+
}, _KupDialog_onResize = function _KupDialog_onResize(e) {
|
|
13374
|
+
let { width, height } = e.rect;
|
|
13375
|
+
const target = e.target;
|
|
13376
|
+
const dim = __classPrivateFieldGet$6(this, _KupDialog_instances, "m", _KupDialog_getMinMaxDimensions).call(this, this.rootElement);
|
|
13377
|
+
const isDetatched = this.anchor == 'none';
|
|
13378
|
+
const isHorizontalShiftAllowed = width >= dim.min.width - 1 &&
|
|
13379
|
+
width <= dim.max.width + 1 &&
|
|
13380
|
+
isDetatched;
|
|
13381
|
+
const isVerticalShiftAllowed = height >= dim.min.height - 1 &&
|
|
13382
|
+
height <= dim.max.height + 1 &&
|
|
13383
|
+
isDetatched;
|
|
13384
|
+
if (e.edges.left && isHorizontalShiftAllowed) {
|
|
13385
|
+
target.style.left = `${parseFloat(target.style.left || '0') + e.deltaRect.left}px`;
|
|
13386
|
+
}
|
|
13387
|
+
if (e.edges.top && isVerticalShiftAllowed) {
|
|
13388
|
+
target.style.top = `${parseFloat(target.style.top || '0') + e.deltaRect.top}px`;
|
|
13389
|
+
}
|
|
13390
|
+
if (e.edges.right && isHorizontalShiftAllowed) {
|
|
13391
|
+
target.style.right = `${parseFloat(target.style.right || '0') - e.deltaRect.right}px`;
|
|
13392
|
+
}
|
|
13393
|
+
if (e.edges.bottom && isVerticalShiftAllowed) {
|
|
13394
|
+
target.style.bottom = `${parseFloat(target.style.bottom || '0') - e.deltaRect.bottom}px`;
|
|
13395
|
+
}
|
|
13396
|
+
}, _KupDialog_dialogify = function _KupDialog_dialogify() {
|
|
13397
|
+
const isDetatched = this.anchor == 'none';
|
|
13398
|
+
__classPrivateFieldGet$6(this, _KupDialog_kupManager, "f").interact.dialogify(this.rootElement, __classPrivateFieldGet$6(this, _KupDialog_header, "f") ? __classPrivateFieldGet$6(this, _KupDialog_header, "f") : null, {
|
|
13399
|
+
isResizable: this.resizable || !isDetatched,
|
|
13400
|
+
isDraggable: isDetatched,
|
|
13401
|
+
onResize: __classPrivateFieldGet$6(this, _KupDialog_instances, "m", _KupDialog_onResize).bind(this),
|
|
13402
|
+
resizeConstraints: __classPrivateFieldGet$6(this, _KupDialog_instances, "m", _KupDialog_getMinMaxDimensions).call(this, this.rootElement),
|
|
13403
|
+
edges: __classPrivateFieldGet$6(this, _KupDialog_instances, "m", _KupDialog_getEdgeOptions).call(this),
|
|
13404
|
+
});
|
|
13405
|
+
}, _KupDialog_undialogify = function _KupDialog_undialogify() {
|
|
13406
|
+
__classPrivateFieldGet$6(this, _KupDialog_kupManager, "f").interact.undialogify(this.rootElement);
|
|
13407
|
+
}, _KupDialog_getEdgeOptions = function _KupDialog_getEdgeOptions() {
|
|
13408
|
+
switch (this.anchor) {
|
|
13409
|
+
case 'none':
|
|
13410
|
+
return { left: true, top: true, right: true, bottom: true };
|
|
13411
|
+
case 'left':
|
|
13412
|
+
return { left: false, top: false, right: true, bottom: false };
|
|
13413
|
+
case 'top':
|
|
13414
|
+
return { left: false, top: false, right: false, bottom: true };
|
|
13415
|
+
case 'right':
|
|
13416
|
+
return { left: true, top: false, right: false, bottom: false };
|
|
13417
|
+
case 'bottom':
|
|
13418
|
+
return { left: false, top: true, right: false, bottom: false };
|
|
13419
|
+
}
|
|
13420
|
+
}, _KupDialog_getStyles = function _KupDialog_getStyles() {
|
|
13421
|
+
const minHeight = '--kup_dialog_min_height';
|
|
13422
|
+
const minWidth = '--kup_dialog_min_width';
|
|
13423
|
+
const height = '--kup_dialog_height';
|
|
13424
|
+
const width = '--kup_dialog_width';
|
|
13425
|
+
const maxHeight = '--kup_dialog_max_height';
|
|
13426
|
+
const maxWidth = '--kup_dialog_max_width';
|
|
13427
|
+
const styles = {};
|
|
13428
|
+
if (this.anchor == 'none') {
|
|
13429
|
+
styles[minHeight] = this.minSizeY ? this.minSizeY : '20dvh';
|
|
13430
|
+
styles[minWidth] = this.minSizeX ? this.minSizeX : '20dvw';
|
|
13431
|
+
styles[height] = this.sizeY ? this.sizeY : 'auto';
|
|
13432
|
+
styles[width] = this.sizeX ? this.sizeX : 'auto';
|
|
13433
|
+
styles[maxHeight] = this.maxSizeY ? this.maxSizeY : '90dvh';
|
|
13434
|
+
styles[maxWidth] = this.maxSizeX ? this.maxSizeX : '90dvw';
|
|
13435
|
+
}
|
|
13436
|
+
if (this.anchor == 'left' || this.anchor == 'right') {
|
|
13437
|
+
styles[minHeight] = '100dvh';
|
|
13438
|
+
styles[minWidth] = this.minSizeX ? this.minSizeX : '20dvw';
|
|
13439
|
+
styles[maxHeight] = this.maxSizeY ? this.maxSizeY : '100dvh';
|
|
13440
|
+
styles[maxWidth] = this.maxSizeX ? this.maxSizeX : '80dvw';
|
|
13441
|
+
}
|
|
13442
|
+
if (this.anchor == 'top' || this.anchor == 'bottom') {
|
|
13443
|
+
styles[minHeight] = this.minSizeY ? this.minSizeY : '20dvh';
|
|
13444
|
+
styles[minWidth] = '100dvw';
|
|
13445
|
+
styles[maxHeight] = this.maxSizeY ? this.maxSizeY : '80dvh';
|
|
13446
|
+
styles[maxWidth] = this.maxSizeX ? this.maxSizeX : '100dvw';
|
|
13447
|
+
}
|
|
13448
|
+
return styles;
|
|
13348
13449
|
};
|
|
13349
13450
|
KupDialog.style = KupDialogStyle0;
|
|
13350
13451
|
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
7
|
-
const kupDataTableHelper = require('./kup-data-table-helper-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
|
+
const kupDataTableHelper = require('./kup-data-table-helper-152abe38.js');
|
|
8
8
|
const fImage = require('./f-image-d22b012f.js');
|
|
9
|
-
const fChip = require('./f-chip-
|
|
9
|
+
const fChip = require('./f-chip-a97b36ac.js');
|
|
10
10
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
11
|
-
const fCell = require('./f-cell-
|
|
12
|
-
const fPaginatorUtils = require('./f-paginator-utils-
|
|
11
|
+
const fCell = require('./f-cell-058178dc.js');
|
|
12
|
+
const fPaginatorUtils = require('./f-paginator-utils-d7196260.js');
|
|
13
13
|
const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
|
|
14
14
|
require('./kup-dates-bc4cf9d0.js');
|
|
15
15
|
require('./f-button-c3ae141e.js');
|
|
16
16
|
require('./f-button-declarations-76ef9f87.js');
|
|
17
17
|
require('./f-checkbox-59fb7aa5.js');
|
|
18
|
-
require('./f-object-field-
|
|
19
|
-
require('./f-text-field-
|
|
18
|
+
require('./f-object-field-4887e74e.js');
|
|
19
|
+
require('./f-text-field-e2b84253.js');
|
|
20
20
|
require('./component-a6dd6c14.js');
|
|
21
21
|
|
|
22
22
|
/**
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index$4 = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const fButton = require('./f-button-c3ae141e.js');
|
|
9
|
-
const fChip = require('./f-chip-
|
|
9
|
+
const fChip = require('./f-chip-a97b36ac.js');
|
|
10
10
|
const kupDates = require('./kup-dates-bc4cf9d0.js');
|
|
11
11
|
require('./f-button-declarations-76ef9f87.js');
|
|
12
12
|
require('./f-image-d22b012f.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-bc4cf9d0.js');
|
|
9
9
|
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const fButton = require('./f-button-c3ae141e.js');
|
|
9
|
-
const fCell = require('./f-cell-
|
|
9
|
+
const fCell = require('./f-cell-058178dc.js');
|
|
10
10
|
require('./kup-dates-bc4cf9d0.js');
|
|
11
11
|
require('./f-button-declarations-76ef9f87.js');
|
|
12
12
|
require('./f-image-d22b012f.js');
|
|
13
13
|
require('./f-checkbox-59fb7aa5.js');
|
|
14
|
-
require('./f-chip-
|
|
15
|
-
require('./f-object-field-
|
|
16
|
-
require('./f-text-field-
|
|
14
|
+
require('./f-chip-a97b36ac.js');
|
|
15
|
+
require('./f-object-field-4887e74e.js');
|
|
16
|
+
require('./f-text-field-e2b84253.js');
|
|
17
17
|
|
|
18
18
|
const kupCellCss = ".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}:host{display:block;height:fit-content;width:100%}#kup-component{height:fit-content;width:100%}";
|
|
19
19
|
const KupCellStyle0 = kupCellCss;
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
6
|
const fButton = require('./f-button-c3ae141e.js');
|
|
7
7
|
const fCheckbox = require('./f-checkbox-59fb7aa5.js');
|
|
8
|
-
const fTextField = require('./f-text-field-
|
|
8
|
+
const fTextField = require('./f-text-field-e2b84253.js');
|
|
9
9
|
const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
|
|
10
|
-
const kupManager = require('./kup-manager-
|
|
10
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
11
11
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
12
12
|
require('./f-button-declarations-76ef9f87.js');
|
|
13
13
|
require('./f-image-d22b012f.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-bc4cf9d0.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-bc4cf9d0.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const kupDates = require('./kup-dates-bc4cf9d0.js');
|
|
9
9
|
|
|
@@ -6,7 +6,7 @@ const index = require('./index-e8aa3c73.js');
|
|
|
6
6
|
const fButton = require('./f-button-c3ae141e.js');
|
|
7
7
|
const fButtonDeclarations = require('./f-button-declarations-76ef9f87.js');
|
|
8
8
|
const fImage = require('./f-image-d22b012f.js');
|
|
9
|
-
const kupManager = require('./kup-manager-
|
|
9
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
10
10
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
11
11
|
require('./kup-dates-bc4cf9d0.js');
|
|
12
12
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-bc4cf9d0.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-bc4cf9d0.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
7
|
require('./kup-dates-bc4cf9d0.js');
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const fImage = require('./f-image-d22b012f.js');
|
|
9
9
|
const fButton = require('./f-button-c3ae141e.js');
|
|
10
10
|
const fButtonDeclarations = require('./f-button-declarations-76ef9f87.js');
|
|
11
|
-
const fCell = require('./f-cell-
|
|
11
|
+
const fCell = require('./f-cell-058178dc.js');
|
|
12
12
|
const component = require('./component-a6dd6c14.js');
|
|
13
13
|
require('./kup-dates-bc4cf9d0.js');
|
|
14
14
|
require('./f-checkbox-59fb7aa5.js');
|
|
15
|
-
require('./f-chip-
|
|
16
|
-
require('./f-object-field-
|
|
17
|
-
require('./f-text-field-
|
|
15
|
+
require('./f-chip-a97b36ac.js');
|
|
16
|
+
require('./f-object-field-4887e74e.js');
|
|
17
|
+
require('./f-text-field-e2b84253.js');
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Props of the kup-image-list component.
|
|
@@ -4,17 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
6
|
const fButton = require('./f-button-c3ae141e.js');
|
|
7
|
-
const fCell = require('./f-cell-
|
|
8
|
-
const kupManager = require('./kup-manager-
|
|
7
|
+
const fCell = require('./f-cell-058178dc.js');
|
|
8
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
9
9
|
const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
|
|
10
10
|
const fTypography = require('./f-typography-271f5037.js');
|
|
11
11
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
12
12
|
require('./f-button-declarations-76ef9f87.js');
|
|
13
13
|
require('./f-image-d22b012f.js');
|
|
14
14
|
require('./f-checkbox-59fb7aa5.js');
|
|
15
|
-
require('./f-chip-
|
|
16
|
-
require('./f-object-field-
|
|
17
|
-
require('./f-text-field-
|
|
15
|
+
require('./f-chip-a97b36ac.js');
|
|
16
|
+
require('./f-object-field-4887e74e.js');
|
|
17
|
+
require('./f-text-field-e2b84253.js');
|
|
18
18
|
require('./kup-dates-bc4cf9d0.js');
|
|
19
19
|
require('./component-a6dd6c14.js');
|
|
20
20
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-bc4cf9d0.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
7
|
const fButtonDeclarations = require('./f-button-declarations-76ef9f87.js');
|
|
8
8
|
const fImage = require('./f-image-d22b012f.js');
|
|
9
9
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
@@ -1732,10 +1732,11 @@ class KupInteract {
|
|
|
1732
1732
|
* This method gives the element dialog-like features, by activating moving on drag and, optionally, the resize.
|
|
1733
1733
|
* @param {HTMLElement} el - Dialog element.
|
|
1734
1734
|
* @param {HTMLElement} handleEl - Element that must be dragged in order to trigger movement. When not provided, dragging anywhere on "el" will move it.
|
|
1735
|
-
* @param {
|
|
1735
|
+
* @param {KupDialogifyOptions} options - Sets the options for dialogify.
|
|
1736
1736
|
* @param {RectResolvable<[number, number, Interaction<keyof ActionMap>]>} restrictContainer - When present, it will set the constraint of "el": it can't be moved outside this container.
|
|
1737
1737
|
*/
|
|
1738
|
-
dialogify(el, handleEl,
|
|
1738
|
+
dialogify(el, handleEl, options, restrictContainer) {
|
|
1739
|
+
var _a;
|
|
1739
1740
|
el.setAttribute(kupDialogAttribute, '');
|
|
1740
1741
|
el.style.zIndex = (this.zIndex++).toString();
|
|
1741
1742
|
const callbacks = {
|
|
@@ -1744,34 +1745,54 @@ class KupInteract {
|
|
|
1744
1745
|
el.style.zIndex = (dom$g.ketchup.interact.zIndex++).toString();
|
|
1745
1746
|
},
|
|
1746
1747
|
};
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1748
|
+
if (options === null || options === void 0 ? void 0 : options.isDraggable) {
|
|
1749
|
+
this.draggable(el, {
|
|
1750
|
+
allowFrom: handleEl ? handleEl : null,
|
|
1751
|
+
modifiers: [
|
|
1752
|
+
interact.modifiers.restrictRect({
|
|
1753
|
+
restriction: restrictContainer
|
|
1754
|
+
? restrictContainer
|
|
1755
|
+
: dom$g.ketchup.interact.restrictContainer,
|
|
1756
|
+
endOnly: true,
|
|
1757
|
+
}),
|
|
1758
|
+
],
|
|
1759
|
+
}, null, exports.KupDragEffect.MOVE, callbacks);
|
|
1760
|
+
}
|
|
1761
|
+
if (options === null || options === void 0 ? void 0 : options.isResizable) {
|
|
1759
1762
|
el.classList.add(kupDialogResizableClass);
|
|
1760
1763
|
this.resizable(el, {
|
|
1761
|
-
edges:
|
|
1762
|
-
left: true,
|
|
1763
|
-
right: true,
|
|
1764
|
-
bottom: true,
|
|
1765
|
-
top: false,
|
|
1766
|
-
},
|
|
1764
|
+
edges: options.edges,
|
|
1767
1765
|
modifiers: [
|
|
1768
|
-
interact.modifiers.restrictSize({
|
|
1766
|
+
interact.modifiers.restrictSize((_a = options === null || options === void 0 ? void 0 : options.resizeConstraints) !== null && _a !== void 0 ? _a : {
|
|
1769
1767
|
min: { width: 100, height: 100 },
|
|
1770
1768
|
}),
|
|
1771
1769
|
],
|
|
1772
|
-
},
|
|
1770
|
+
}, {
|
|
1771
|
+
move(e) {
|
|
1772
|
+
if (options.onResize) {
|
|
1773
|
+
options.onResize(e);
|
|
1774
|
+
}
|
|
1775
|
+
},
|
|
1776
|
+
}, (options === null || options === void 0 ? void 0 : options.onResize) ? false : true, true);
|
|
1773
1777
|
}
|
|
1774
1778
|
}
|
|
1779
|
+
/**
|
|
1780
|
+
* Undialogify element
|
|
1781
|
+
*/
|
|
1782
|
+
undialogify(el) {
|
|
1783
|
+
// unregister dialog
|
|
1784
|
+
this.unregister([el]);
|
|
1785
|
+
// reset Interact.js properties to prevent switch to a wrong position when changing anchor
|
|
1786
|
+
el.style.removeProperty('left');
|
|
1787
|
+
el.style.removeProperty('top');
|
|
1788
|
+
el.style.removeProperty('right');
|
|
1789
|
+
el.style.removeProperty('bottom');
|
|
1790
|
+
el.style.removeProperty('width');
|
|
1791
|
+
el.style.removeProperty('height');
|
|
1792
|
+
el.style.removeProperty('transform');
|
|
1793
|
+
el.removeAttribute('data-x');
|
|
1794
|
+
el.removeAttribute('data-y');
|
|
1795
|
+
}
|
|
1775
1796
|
/**
|
|
1776
1797
|
* Hides the modal's backdrop.
|
|
1777
1798
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-bc4cf9d0.js');
|
|
9
9
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
|
-
const fTextField = require('./f-text-field-
|
|
8
|
+
const fTextField = require('./f-text-field-e2b84253.js');
|
|
9
9
|
const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
|
|
10
10
|
require('./kup-dates-bc4cf9d0.js');
|
|
11
11
|
require('./f-image-d22b012f.js');
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const fObjectField = require('./f-object-field-
|
|
7
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const fObjectField = require('./f-object-field-4887e74e.js');
|
|
7
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
8
8
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
9
9
|
require('./f-button-c3ae141e.js');
|
|
10
10
|
require('./f-button-declarations-76ef9f87.js');
|
|
11
11
|
require('./f-image-d22b012f.js');
|
|
12
|
-
require('./f-text-field-
|
|
12
|
+
require('./f-text-field-e2b84253.js');
|
|
13
13
|
require('./kup-dates-bc4cf9d0.js');
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-03d0fd95.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const kupDates = require('./kup-dates-bc4cf9d0.js');
|
|
9
9
|
|