@progress/kendo-themes-html 7.0.2-dev.4 → 7.0.2
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/context-menu/tests/context-menu-in-window.js +45 -31
- package/dist/cjs/dialog/tests/dialog-in-window.js +32 -18
- package/dist/cjs/editor/tests/editor-find-replace.js +86 -72
- package/dist/cjs/editor/tests/editor-image-editor.js +48 -34
- package/dist/cjs/editor/tests/editor-table-wizard.js +115 -101
- package/dist/cjs/editor/tests/editor-view-source.js +47 -33
- package/dist/cjs/fab/fab-item.js +1 -0
- package/dist/cjs/fab/templates/icon-fab.js +4426 -0
- package/dist/cjs/fab/templates/icon-text-fab.js +4427 -0
- package/dist/cjs/fab/templates/text-fab.js +4426 -0
- package/dist/cjs/fab/tests/fab-items.js +51 -113
- package/dist/cjs/fab/tests/fab-position.js +73 -20
- package/dist/cjs/fab/tests/{fab-size.js → fab-size-rounded.js} +89 -93
- package/dist/cjs/fab/tests/fab-states.js +67 -14
- package/dist/cjs/fab/tests/fab.js +82 -48
- package/dist/cjs/filemanager/tests/filemanager-dialogs.js +35 -19
- package/dist/cjs/form/tests/form-field-inputs-rtl.js +137 -115
- package/dist/cjs/form/tests/form-field-inputs.js +151 -129
- package/dist/cjs/gantt/tests/gantt-editing-popup-general.js +434 -420
- package/dist/cjs/gantt/tests/gantt-editing-popup-other.js +332 -318
- package/dist/cjs/gantt/tests/gantt-editing-popup-predecessors.js +442 -428
- package/dist/cjs/gantt/tests/gantt-editing-popup-resources.js +485 -471
- package/dist/cjs/gantt/tests/gantt-editing-popup-successors.js +442 -428
- package/dist/cjs/grid/tests/grid-column-resizing-actions.js +140 -126
- package/dist/cjs/grid/tests/grid-editing-popup.js +375 -361
- package/dist/cjs/index.js +1935 -1659
- package/dist/cjs/multiselecttree/multiselecttree.spec.js +712 -18
- package/dist/cjs/multiselecttree/templates/multiselecttree-adaptive.js +5837 -0
- package/dist/cjs/multiselecttree/templates/multiselecttree-arrow-button.js +5837 -0
- package/dist/cjs/multiselecttree/templates/multiselecttree-filtering.js +5968 -0
- package/dist/cjs/multiselecttree/templates/multiselecttree-normal.js +5831 -0
- package/dist/cjs/multiselecttree/templates/multiselecttree-popup.js +5855 -0
- package/dist/cjs/multiselecttree/templates/multiselecttree-value.js +5869 -0
- package/dist/cjs/multiselecttree/tests/multiselecttree-adaptive.js +5984 -0
- package/dist/cjs/multiselecttree/tests/multiselecttree-flat.js +887 -147
- package/dist/cjs/multiselecttree/tests/multiselecttree-opened.js +1283 -937
- package/dist/cjs/multiselecttree/tests/multiselecttree-outline.js +887 -147
- package/dist/cjs/multiselecttree/tests/{multiselecttree.js → multiselecttree-size-rounded.js} +865 -150
- package/dist/cjs/multiselecttree/tests/multiselecttree-solid.js +6048 -0
- package/dist/cjs/notification/index.js +51 -1
- package/dist/cjs/notification/templates/icon-notification-closable.js +4389 -0
- package/dist/cjs/notification/templates/icon-notification.js +4368 -0
- package/dist/cjs/notification/templates/notification-closable.js +4388 -0
- package/dist/cjs/notification/templates/notification-normal.js +4367 -0
- package/dist/cjs/notification/tests/notification-angular-colors.js +4404 -0
- package/dist/cjs/notification/tests/notification-angular.js +60 -34
- package/dist/cjs/notification/tests/notification-custom-angular.js +48 -20
- package/dist/cjs/notification/tests/notification-jquery-colors.js +4441 -0
- package/dist/cjs/notification/tests/notification-jquery.js +63 -37
- package/dist/cjs/pdf-viewer/tests/pdf-viewer-blank-page.js +457 -441
- package/dist/cjs/scheduler/tests/scheduler-edit-dialog.js +530 -516
- package/dist/cjs/scheduler/tests/scheduler-editing-weekly.js +544 -530
- package/dist/cjs/spreadsheet/tests/spreadsheet-data-validation.js +194 -180
- package/dist/cjs/spreadsheet/tests/spreadsheet-file-dialogs.js +235 -205
- package/dist/cjs/spreadsheet/tests/spreadsheet-find-replace-dialog.js +169 -155
- package/dist/cjs/spreadsheet/tests/spreadsheet-format-dialogs.js +471 -457
- package/dist/cjs/spreadsheet/tests/spreadsheet-formula-dialog.js +167 -153
- package/dist/cjs/spreadsheet/tests/spreadsheet-insert-dialogs.js +267 -237
- package/dist/cjs/spreadsheet/tests/spreadsheet-print.js +243 -229
- package/dist/cjs/spreadsheet/tests/spreadsheet-sheets-bar.js +123 -109
- package/dist/cjs/treelist/tests/treelist-editing-popup.js +317 -303
- package/dist/cjs/upload/templates/upload-batch.js +4846 -0
- package/dist/cjs/{multiselecttree/tests/multiselecttree-size.js → upload/templates/upload-chunk.js} +396 -768
- package/dist/cjs/upload/templates/upload-normal.js +4761 -0
- package/dist/cjs/upload/tests/upload-rtl.js +67 -49
- package/dist/cjs/upload/tests/upload-states.js +4782 -0
- package/dist/cjs/upload/tests/upload.js +62 -36
- package/dist/cjs/upload/upload.spec.js +1 -1
- package/dist/cjs/window/templates/window-normal.js +4546 -0
- package/dist/cjs/window/tests/window-action-buttons.js +30 -16
- package/dist/cjs/window/tests/window-rtl.js +23 -9
- package/dist/cjs/window/tests/window-theme-colors.js +22 -9
- package/dist/cjs/window/tests/window.js +23 -9
- package/dist/esm/context-menu/tests/context-menu-in-window.js +43 -29
- package/dist/esm/dialog/tests/dialog-in-window.js +30 -16
- package/dist/esm/editor/tests/editor-find-replace.js +78 -64
- package/dist/esm/editor/tests/editor-image-editor.js +41 -27
- package/dist/esm/editor/tests/editor-table-wizard.js +110 -96
- package/dist/esm/editor/tests/editor-view-source.js +46 -32
- package/dist/esm/fab/fab-item.js +1 -0
- package/dist/esm/fab/templates/icon-fab.js +4410 -0
- package/dist/esm/fab/templates/icon-text-fab.js +4411 -0
- package/dist/esm/fab/templates/text-fab.js +4410 -0
- package/dist/esm/fab/tests/fab-items.js +49 -111
- package/dist/esm/fab/tests/fab-position.js +71 -18
- package/dist/esm/fab/tests/{fab-size.js → fab-size-rounded.js} +85 -89
- package/dist/esm/fab/tests/fab-states.js +64 -11
- package/dist/esm/fab/tests/fab.js +80 -46
- package/dist/esm/filemanager/tests/filemanager-dialogs.js +35 -19
- package/dist/esm/form/tests/form-field-inputs-rtl.js +137 -115
- package/dist/esm/form/tests/form-field-inputs.js +151 -129
- package/dist/esm/gantt/tests/gantt-editing-popup-general.js +381 -367
- package/dist/esm/gantt/tests/gantt-editing-popup-other.js +290 -276
- package/dist/esm/gantt/tests/gantt-editing-popup-predecessors.js +386 -372
- package/dist/esm/gantt/tests/gantt-editing-popup-resources.js +419 -405
- package/dist/esm/gantt/tests/gantt-editing-popup-successors.js +386 -372
- package/dist/esm/grid/tests/grid-column-resizing-actions.js +117 -103
- package/dist/esm/grid/tests/grid-editing-popup.js +328 -314
- package/dist/esm/index.js +1935 -1659
- package/dist/esm/multiselecttree/multiselecttree.spec.js +712 -18
- package/dist/esm/multiselecttree/templates/multiselecttree-adaptive.js +5821 -0
- package/dist/esm/multiselecttree/templates/multiselecttree-arrow-button.js +5821 -0
- package/dist/esm/multiselecttree/templates/multiselecttree-filtering.js +5952 -0
- package/dist/esm/multiselecttree/templates/multiselecttree-normal.js +5815 -0
- package/dist/esm/multiselecttree/templates/multiselecttree-popup.js +5839 -0
- package/dist/esm/multiselecttree/templates/multiselecttree-value.js +5853 -0
- package/dist/esm/multiselecttree/tests/multiselecttree-adaptive.js +5968 -0
- package/dist/esm/multiselecttree/tests/multiselecttree-flat.js +887 -147
- package/dist/esm/multiselecttree/tests/multiselecttree-opened.js +1337 -991
- package/dist/esm/multiselecttree/tests/multiselecttree-outline.js +887 -147
- package/dist/esm/multiselecttree/tests/{multiselecttree.js → multiselecttree-size-rounded.js} +861 -146
- package/dist/esm/multiselecttree/tests/multiselecttree-solid.js +6032 -0
- package/dist/esm/notification/index.js +51 -1
- package/dist/esm/notification/templates/icon-notification-closable.js +4373 -0
- package/dist/esm/notification/templates/icon-notification.js +4352 -0
- package/dist/esm/notification/templates/notification-closable.js +4372 -0
- package/dist/esm/notification/templates/notification-normal.js +4351 -0
- package/dist/esm/notification/tests/notification-angular-colors.js +4388 -0
- package/dist/esm/notification/tests/notification-angular.js +58 -32
- package/dist/esm/notification/tests/notification-custom-angular.js +46 -18
- package/dist/esm/notification/tests/notification-jquery-colors.js +4425 -0
- package/dist/esm/notification/tests/notification-jquery.js +61 -35
- package/dist/esm/pdf-viewer/tests/pdf-viewer-blank-page.js +457 -441
- package/dist/esm/scheduler/tests/scheduler-edit-dialog.js +466 -452
- package/dist/esm/scheduler/tests/scheduler-editing-weekly.js +479 -465
- package/dist/esm/spreadsheet/tests/spreadsheet-data-validation.js +179 -165
- package/dist/esm/spreadsheet/tests/spreadsheet-file-dialogs.js +215 -185
- package/dist/esm/spreadsheet/tests/spreadsheet-find-replace-dialog.js +155 -141
- package/dist/esm/spreadsheet/tests/spreadsheet-format-dialogs.js +409 -395
- package/dist/esm/spreadsheet/tests/spreadsheet-formula-dialog.js +153 -139
- package/dist/esm/spreadsheet/tests/spreadsheet-insert-dialogs.js +253 -223
- package/dist/esm/spreadsheet/tests/spreadsheet-print.js +218 -204
- package/dist/esm/spreadsheet/tests/spreadsheet-sheets-bar.js +108 -94
- package/dist/esm/treelist/tests/treelist-editing-popup.js +275 -261
- package/dist/esm/upload/templates/upload-batch.js +4830 -0
- package/dist/esm/{multiselecttree/tests/multiselecttree-size.js → upload/templates/upload-chunk.js} +392 -764
- package/dist/esm/upload/templates/upload-normal.js +4745 -0
- package/dist/esm/upload/tests/upload-rtl.js +67 -49
- package/dist/esm/upload/tests/upload-states.js +4766 -0
- package/dist/esm/upload/tests/upload.js +62 -36
- package/dist/esm/upload/upload.spec.js +1 -1
- package/dist/esm/window/templates/window-normal.js +4530 -0
- package/dist/esm/window/tests/window-action-buttons.js +29 -15
- package/dist/esm/window/tests/window-rtl.js +22 -8
- package/dist/esm/window/tests/window-theme-colors.js +22 -9
- package/dist/esm/window/tests/window.js +22 -8
- package/dist/types/fab/fab-item.d.ts +4 -1
- package/dist/types/fab/index.d.ts +3 -0
- package/dist/types/fab/templates/icon-fab.d.ts +1 -0
- package/dist/types/fab/templates/icon-text-fab.d.ts +1 -0
- package/dist/types/fab/templates/text-fab.d.ts +1 -0
- package/dist/types/multiselecttree/index.d.ts +6 -0
- package/dist/types/multiselecttree/multiselecttree.spec.d.ts +3 -0
- package/dist/types/multiselecttree/templates/multiselecttree-adaptive.d.ts +1 -0
- package/dist/types/multiselecttree/templates/multiselecttree-arrow-button.d.ts +1 -0
- package/dist/types/multiselecttree/templates/multiselecttree-filtering.d.ts +1 -0
- package/dist/types/multiselecttree/templates/multiselecttree-normal.d.ts +1 -0
- package/dist/types/multiselecttree/templates/multiselecttree-popup.d.ts +1 -0
- package/dist/types/multiselecttree/templates/multiselecttree-value.d.ts +1 -0
- package/dist/types/multiselecttree/tests/multiselecttree-solid.d.ts +2 -0
- package/dist/types/notification/index.d.ts +4 -0
- package/dist/types/notification/templates/icon-notification-closable.d.ts +1 -0
- package/dist/types/notification/templates/icon-notification.d.ts +1 -0
- package/dist/types/notification/templates/notification-closable.d.ts +1 -0
- package/dist/types/notification/templates/notification-normal.d.ts +1 -0
- package/dist/types/notification/tests/notification-angular-colors.d.ts +2 -0
- package/dist/types/notification/tests/notification-jquery-colors.d.ts +2 -0
- package/dist/types/upload/index.d.ts +3 -0
- package/dist/types/upload/templates/upload-batch.d.ts +1 -0
- package/dist/types/upload/templates/upload-chunk.d.ts +1 -0
- package/dist/types/upload/templates/upload-normal.d.ts +1 -0
- package/dist/types/upload/tests/upload-states.d.ts +2 -0
- package/dist/types/window/index.d.ts +1 -0
- package/dist/types/window/templates/window-normal.d.ts +1 -0
- package/package.json +2 -2
- package/src/context-menu/tests/context-menu-in-window.tsx +3 -3
- package/src/dialog/tests/dialog-in-window.tsx +3 -3
- package/src/editor/tests/editor-find-replace.tsx +5 -5
- package/src/editor/tests/editor-image-editor.tsx +3 -3
- package/src/editor/tests/editor-table-wizard.tsx +7 -7
- package/src/editor/tests/editor-view-source.tsx +3 -3
- package/src/fab/fab-item.tsx +2 -0
- package/src/fab/index.ts +3 -0
- package/src/fab/templates/icon-fab.tsx +7 -0
- package/src/fab/templates/icon-text-fab.tsx +8 -0
- package/src/fab/templates/text-fab.tsx +7 -0
- package/src/fab/tests/fab-items.tsx +57 -127
- package/src/fab/tests/fab-position.tsx +9 -9
- package/src/fab/tests/fab-size-rounded.tsx +35 -0
- package/src/fab/tests/fab-states.tsx +2 -2
- package/src/fab/tests/fab.tsx +14 -110
- package/src/filemanager/tests/filemanager-dialogs.tsx +2 -2
- package/src/form/tests/form-field-inputs-rtl.tsx +5 -5
- package/src/form/tests/form-field-inputs.tsx +5 -5
- package/src/gantt/tests/gantt-editing-popup-general.tsx +3 -3
- package/src/gantt/tests/gantt-editing-popup-other.tsx +3 -3
- package/src/gantt/tests/gantt-editing-popup-predecessors.tsx +3 -3
- package/src/gantt/tests/gantt-editing-popup-resources.tsx +3 -3
- package/src/gantt/tests/gantt-editing-popup-successors.tsx +3 -3
- package/src/grid/tests/grid-column-resizing-actions.tsx +3 -3
- package/src/grid/tests/grid-editing-popup.tsx +3 -3
- package/src/multiselecttree/index.ts +6 -0
- package/src/multiselecttree/multiselecttree.spec.tsx +37 -0
- package/src/multiselecttree/templates/multiselecttree-adaptive.tsx +8 -0
- package/src/multiselecttree/templates/multiselecttree-arrow-button.tsx +8 -0
- package/src/multiselecttree/templates/multiselecttree-filtering.tsx +47 -0
- package/src/multiselecttree/templates/multiselecttree-normal.tsx +3 -0
- package/src/multiselecttree/templates/multiselecttree-popup.tsx +36 -0
- package/src/multiselecttree/templates/multiselecttree-value.tsx +12 -0
- package/src/multiselecttree/tests/multiselecttree-adaptive.tsx +33 -0
- package/src/multiselecttree/tests/multiselecttree-flat.tsx +32 -126
- package/src/multiselecttree/tests/multiselecttree-opened.tsx +29 -90
- package/src/multiselecttree/tests/multiselecttree-outline.tsx +32 -126
- package/src/multiselecttree/tests/multiselecttree-size-rounded.tsx +38 -0
- package/src/multiselecttree/tests/multiselecttree-solid.tsx +79 -0
- package/src/notification/index.tsx +4 -0
- package/src/notification/templates/icon-notification-closable.tsx +10 -0
- package/src/notification/templates/icon-notification.tsx +9 -0
- package/src/notification/templates/notification-closable.tsx +9 -0
- package/src/notification/templates/notification-normal.tsx +8 -0
- package/src/notification/tests/notification-angular-colors.tsx +28 -0
- package/src/notification/tests/notification-angular.tsx +10 -95
- package/src/notification/tests/notification-custom-angular.tsx +9 -9
- package/src/notification/tests/notification-jquery-colors.tsx +30 -0
- package/src/notification/tests/notification-jquery.tsx +10 -95
- package/src/pdf-viewer/tests/pdf-viewer-blank-page.tsx +2 -2
- package/src/scheduler/tests/scheduler-edit-dialog.tsx +3 -3
- package/src/scheduler/tests/scheduler-editing-weekly.tsx +3 -3
- package/src/spreadsheet/tests/spreadsheet-data-validation.tsx +5 -5
- package/src/spreadsheet/tests/spreadsheet-file-dialogs.tsx +9 -9
- package/src/spreadsheet/tests/spreadsheet-find-replace-dialog.tsx +3 -3
- package/src/spreadsheet/tests/spreadsheet-format-dialogs.tsx +5 -5
- package/src/spreadsheet/tests/spreadsheet-formula-dialog.tsx +3 -3
- package/src/spreadsheet/tests/spreadsheet-insert-dialogs.tsx +13 -13
- package/src/spreadsheet/tests/spreadsheet-print.tsx +5 -5
- package/src/spreadsheet/tests/spreadsheet-sheets-bar.tsx +5 -5
- package/src/treelist/tests/treelist-editing-popup.tsx +3 -3
- package/src/upload/index.ts +3 -0
- package/src/upload/templates/upload-batch.tsx +14 -0
- package/src/upload/templates/upload-chunk.tsx +12 -0
- package/src/upload/templates/upload-normal.tsx +7 -0
- package/src/upload/tests/upload-rtl.tsx +35 -48
- package/src/upload/tests/upload-states.tsx +29 -0
- package/src/upload/tests/upload.tsx +34 -39
- package/src/upload/upload.spec.tsx +1 -1
- package/src/window/index.ts +1 -0
- package/src/window/templates/window-normal.tsx +11 -0
- package/src/window/tests/window-action-buttons.tsx +9 -9
- package/src/window/tests/window-rtl.tsx +6 -8
- package/src/window/tests/window-theme-colors.tsx +6 -18
- package/src/window/tests/window.tsx +6 -6
- package/src/fab/tests/fab-size.tsx +0 -109
- package/src/multiselecttree/tests/multiselecttree-size.tsx +0 -50
- package/src/multiselecttree/tests/multiselecttree.tsx +0 -175
- /package/dist/types/fab/tests/{fab-size.d.ts → fab-size-rounded.d.ts} +0 -0
- /package/dist/types/multiselecttree/tests/{multiselecttree-size.d.ts → multiselecttree-adaptive.d.ts} +0 -0
- /package/dist/types/multiselecttree/tests/{multiselecttree.d.ts → multiselecttree-size-rounded.d.ts} +0 -0
|
@@ -4531,32 +4531,46 @@ Window.options = options6;
|
|
|
4531
4531
|
Window.className = WINDOW_CLASSNAME;
|
|
4532
4532
|
Window.defaultProps = defaultProps6;
|
|
4533
4533
|
|
|
4534
|
-
// src/window/
|
|
4534
|
+
// src/window/templates/window-normal.tsx
|
|
4535
4535
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
4536
|
+
var WindowNormal = (props) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
4537
|
+
Window,
|
|
4538
|
+
{
|
|
4539
|
+
title: "Title",
|
|
4540
|
+
actions: ["window-minimize", "window", "x"],
|
|
4541
|
+
children: [
|
|
4542
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, { children: "Content" })
|
|
4543
|
+
],
|
|
4544
|
+
...props
|
|
4545
|
+
}
|
|
4546
|
+
);
|
|
4547
|
+
|
|
4548
|
+
// src/window/tests/window-action-buttons.tsx
|
|
4549
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
4536
4550
|
var style = `
|
|
4537
4551
|
.k-window {
|
|
4538
4552
|
position: relative;
|
|
4539
4553
|
width: 300px;
|
|
4540
4554
|
}
|
|
4541
4555
|
`;
|
|
4542
|
-
var window_action_buttons_default = () => /* @__PURE__ */ (0,
|
|
4543
|
-
/* @__PURE__ */ (0,
|
|
4544
|
-
/* @__PURE__ */ (0,
|
|
4545
|
-
/* @__PURE__ */ (0,
|
|
4546
|
-
/* @__PURE__ */ (0,
|
|
4547
|
-
/* @__PURE__ */ (0,
|
|
4556
|
+
var window_action_buttons_default = () => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
4557
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("style", { children: style }),
|
|
4558
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
|
|
4559
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WindowNormal, { actionButtonsAlign: "start", actionButtons: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
4560
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Button, { children: "Cancel" }),
|
|
4561
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Button, { themeColor: "primary", children: "Update" })
|
|
4548
4562
|
] }), children: "Action Buttons at start position" }),
|
|
4549
|
-
/* @__PURE__ */ (0,
|
|
4550
|
-
/* @__PURE__ */ (0,
|
|
4551
|
-
/* @__PURE__ */ (0,
|
|
4563
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WindowNormal, { actionButtonsAlign: "center", actionButtons: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
4564
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Button, { children: "Cancel" }),
|
|
4565
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Button, { themeColor: "primary", children: "Update" })
|
|
4552
4566
|
] }), children: "Action Buttons at center position" }),
|
|
4553
|
-
/* @__PURE__ */ (0,
|
|
4554
|
-
/* @__PURE__ */ (0,
|
|
4555
|
-
/* @__PURE__ */ (0,
|
|
4567
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WindowNormal, { actionButtonsAlign: "end", actionButtons: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
4568
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Button, { children: "Cancel" }),
|
|
4569
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Button, { themeColor: "primary", children: "Update" })
|
|
4556
4570
|
] }), children: "Action Buttons at end position" }),
|
|
4557
|
-
/* @__PURE__ */ (0,
|
|
4558
|
-
/* @__PURE__ */ (0,
|
|
4559
|
-
/* @__PURE__ */ (0,
|
|
4571
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WindowNormal, { actionButtonsAlign: "stretched", actionButtons: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
4572
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Button, { children: "Cancel" }),
|
|
4573
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Button, { themeColor: "primary", children: "Update" })
|
|
4560
4574
|
] }), children: "Action Buttons with stretched position" })
|
|
4561
4575
|
] })
|
|
4562
4576
|
] });
|
|
@@ -4531,20 +4531,34 @@ Window.options = options6;
|
|
|
4531
4531
|
Window.className = WINDOW_CLASSNAME;
|
|
4532
4532
|
Window.defaultProps = defaultProps6;
|
|
4533
4533
|
|
|
4534
|
-
// src/window/
|
|
4534
|
+
// src/window/templates/window-normal.tsx
|
|
4535
4535
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
4536
|
+
var WindowNormal = (props) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
4537
|
+
Window,
|
|
4538
|
+
{
|
|
4539
|
+
title: "Title",
|
|
4540
|
+
actions: ["window-minimize", "window", "x"],
|
|
4541
|
+
children: [
|
|
4542
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, { children: "Content" })
|
|
4543
|
+
],
|
|
4544
|
+
...props
|
|
4545
|
+
}
|
|
4546
|
+
);
|
|
4547
|
+
|
|
4548
|
+
// src/window/tests/window-rtl.tsx
|
|
4549
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
4536
4550
|
var style = `
|
|
4537
4551
|
.k-window {
|
|
4538
4552
|
position: relative;
|
|
4539
4553
|
}
|
|
4540
4554
|
`;
|
|
4541
|
-
var window_rtl_default = () => /* @__PURE__ */ (0,
|
|
4542
|
-
/* @__PURE__ */ (0,
|
|
4543
|
-
/* @__PURE__ */ (0,
|
|
4544
|
-
/* @__PURE__ */ (0,
|
|
4545
|
-
/* @__PURE__ */ (0,
|
|
4546
|
-
/* @__PURE__ */ (0,
|
|
4547
|
-
/* @__PURE__ */ (0,
|
|
4548
|
-
/* @__PURE__ */ (0,
|
|
4555
|
+
var window_rtl_default = () => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
4556
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("style", { children: style }),
|
|
4557
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2 k-rtl", children: [
|
|
4558
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WindowNormal, { children: "Window content" }) }),
|
|
4559
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WindowNormal, { title: "", children: "Window with no title specified" }) }),
|
|
4560
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WindowNormal, { title: "", actions: void 0, children: "Window with empty title and no actions" }) }),
|
|
4561
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WindowNormal, { title: void 0, actions: void 0, children: "Window without a title" }) }),
|
|
4562
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WindowNormal, { title: "Window minimized", minimized: true, children: "Window content" }) })
|
|
4549
4563
|
] })
|
|
4550
4564
|
] });
|
|
@@ -4531,19 +4531,32 @@ Window.options = options6;
|
|
|
4531
4531
|
Window.className = WINDOW_CLASSNAME;
|
|
4532
4532
|
Window.defaultProps = defaultProps6;
|
|
4533
4533
|
|
|
4534
|
-
// src/window/
|
|
4534
|
+
// src/window/templates/window-normal.tsx
|
|
4535
4535
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
4536
|
+
var WindowNormal = (props) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
4537
|
+
Window,
|
|
4538
|
+
{
|
|
4539
|
+
title: "Title",
|
|
4540
|
+
actions: ["window-minimize", "window", "x"],
|
|
4541
|
+
children: [
|
|
4542
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, { children: "Content" })
|
|
4543
|
+
],
|
|
4544
|
+
...props
|
|
4545
|
+
}
|
|
4546
|
+
);
|
|
4547
|
+
|
|
4548
|
+
// src/window/tests/window-theme-colors.tsx
|
|
4549
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
4536
4550
|
var style = `
|
|
4537
4551
|
.k-window {
|
|
4538
4552
|
position: relative;
|
|
4539
4553
|
}
|
|
4540
4554
|
`;
|
|
4541
|
-
var window_theme_colors_default = () => /* @__PURE__ */ (0,
|
|
4542
|
-
/* @__PURE__ */ (0,
|
|
4543
|
-
/* @__PURE__ */ (0,
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
] })
|
|
4555
|
+
var window_theme_colors_default = () => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
4556
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("style", { children: style }),
|
|
4557
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [void 0, ...Window.options.themeColor].map((color) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(WindowNormal, { themeColor: color, children: [
|
|
4558
|
+
"Window with ",
|
|
4559
|
+
color ? color : "no",
|
|
4560
|
+
" theme color"
|
|
4561
|
+
] }) })) })
|
|
4549
4562
|
] });
|
|
@@ -4531,20 +4531,34 @@ Window.options = options6;
|
|
|
4531
4531
|
Window.className = WINDOW_CLASSNAME;
|
|
4532
4532
|
Window.defaultProps = defaultProps6;
|
|
4533
4533
|
|
|
4534
|
-
// src/window/
|
|
4534
|
+
// src/window/templates/window-normal.tsx
|
|
4535
4535
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
4536
|
+
var WindowNormal = (props) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
4537
|
+
Window,
|
|
4538
|
+
{
|
|
4539
|
+
title: "Title",
|
|
4540
|
+
actions: ["window-minimize", "window", "x"],
|
|
4541
|
+
children: [
|
|
4542
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, { children: "Content" })
|
|
4543
|
+
],
|
|
4544
|
+
...props
|
|
4545
|
+
}
|
|
4546
|
+
);
|
|
4547
|
+
|
|
4548
|
+
// src/window/tests/window.tsx
|
|
4549
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
4536
4550
|
var style = `
|
|
4537
4551
|
.k-window {
|
|
4538
4552
|
position: relative;
|
|
4539
4553
|
}
|
|
4540
4554
|
`;
|
|
4541
|
-
var window_default = () => /* @__PURE__ */ (0,
|
|
4542
|
-
/* @__PURE__ */ (0,
|
|
4543
|
-
/* @__PURE__ */ (0,
|
|
4544
|
-
/* @__PURE__ */ (0,
|
|
4545
|
-
/* @__PURE__ */ (0,
|
|
4546
|
-
/* @__PURE__ */ (0,
|
|
4547
|
-
/* @__PURE__ */ (0,
|
|
4548
|
-
/* @__PURE__ */ (0,
|
|
4555
|
+
var window_default = () => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
4556
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("style", { children: style }),
|
|
4557
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
|
|
4558
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WindowNormal, { children: "Window content" }) }),
|
|
4559
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WindowNormal, { title: "", children: "Window with no title specified" }) }),
|
|
4560
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WindowNormal, { title: "", actions: void 0, children: "Window with empty title and no actions" }) }),
|
|
4561
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WindowNormal, { title: void 0, actions: void 0, children: "Window without a title" }) }),
|
|
4562
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WindowNormal, { title: "Window minimized", minimized: true, children: "Window content" }) })
|
|
4549
4563
|
] })
|
|
4550
4564
|
] });
|
|
@@ -4512,8 +4512,22 @@ Window.options = options6;
|
|
|
4512
4512
|
Window.className = WINDOW_CLASSNAME;
|
|
4513
4513
|
Window.defaultProps = defaultProps6;
|
|
4514
4514
|
|
|
4515
|
+
// src/window/templates/window-normal.tsx
|
|
4516
|
+
import { Fragment as Fragment6, jsx as jsx10 } from "react/jsx-runtime";
|
|
4517
|
+
var WindowNormal = (props) => /* @__PURE__ */ jsx10(
|
|
4518
|
+
Window,
|
|
4519
|
+
{
|
|
4520
|
+
title: "Title",
|
|
4521
|
+
actions: ["window-minimize", "window", "x"],
|
|
4522
|
+
children: [
|
|
4523
|
+
/* @__PURE__ */ jsx10(Fragment6, { children: "Content" })
|
|
4524
|
+
],
|
|
4525
|
+
...props
|
|
4526
|
+
}
|
|
4527
|
+
);
|
|
4528
|
+
|
|
4515
4529
|
// src/menu/menu-item.spec.tsx
|
|
4516
|
-
import { Fragment as
|
|
4530
|
+
import { Fragment as Fragment7, jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
4517
4531
|
var MENUITEM_CLASSNAME = `k-menu-item`;
|
|
4518
4532
|
var states7 = [
|
|
4519
4533
|
States.hover,
|
|
@@ -4541,7 +4555,7 @@ var MenuItem = (props) => {
|
|
|
4541
4555
|
children,
|
|
4542
4556
|
...other
|
|
4543
4557
|
} = props;
|
|
4544
|
-
const contentTemplate = /* @__PURE__ */
|
|
4558
|
+
const contentTemplate = /* @__PURE__ */ jsx11(Fragment7, {});
|
|
4545
4559
|
if (children) {
|
|
4546
4560
|
children.forEach((child) => {
|
|
4547
4561
|
const component = child.type;
|
|
@@ -4583,9 +4597,9 @@ var MenuItem = (props) => {
|
|
|
4583
4597
|
})
|
|
4584
4598
|
),
|
|
4585
4599
|
children: [
|
|
4586
|
-
icon && /* @__PURE__ */
|
|
4587
|
-
/* @__PURE__ */
|
|
4588
|
-
showArrow && /* @__PURE__ */
|
|
4600
|
+
icon && /* @__PURE__ */ jsx11(Icon, { className: "k-menu-link-icon", icon }),
|
|
4601
|
+
/* @__PURE__ */ jsx11("span", { className: "k-menu-link-text", children: text }),
|
|
4602
|
+
showArrow && /* @__PURE__ */ jsx11("span", { className: "k-menu-expand-arrow", children: /* @__PURE__ */ jsx11(Icon, { icon: expandArrowName }) })
|
|
4589
4603
|
]
|
|
4590
4604
|
}
|
|
4591
4605
|
),
|
|
@@ -4601,7 +4615,7 @@ MenuItem.defaultProps = defaultProps7;
|
|
|
4601
4615
|
var menu_item_spec_default = MenuItem;
|
|
4602
4616
|
|
|
4603
4617
|
// src/menu/menu-separator.spec.tsx
|
|
4604
|
-
import { jsx as
|
|
4618
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
4605
4619
|
var SEPARATOR_CLASSNAME = `k-separator`;
|
|
4606
4620
|
var defaultProps8 = {
|
|
4607
4621
|
orientation: "horizontal"
|
|
@@ -4611,7 +4625,7 @@ var MenuSeparator = (props) => {
|
|
|
4611
4625
|
orientation = defaultProps8.orientation,
|
|
4612
4626
|
...other
|
|
4613
4627
|
} = props;
|
|
4614
|
-
return /* @__PURE__ */
|
|
4628
|
+
return /* @__PURE__ */ jsx12(
|
|
4615
4629
|
"li",
|
|
4616
4630
|
{
|
|
4617
4631
|
...other,
|
|
@@ -4629,10 +4643,10 @@ var MenuSeparator = (props) => {
|
|
|
4629
4643
|
var menu_separator_spec_default = MenuSeparator;
|
|
4630
4644
|
|
|
4631
4645
|
// src/menu/menu-item-content.tsx
|
|
4632
|
-
import { Fragment as
|
|
4646
|
+
import { Fragment as Fragment8, jsx as jsx13 } from "react/jsx-runtime";
|
|
4633
4647
|
|
|
4634
4648
|
// src/menu/menu-list.spec.tsx
|
|
4635
|
-
import { jsx as
|
|
4649
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
4636
4650
|
import { createElement } from "react";
|
|
4637
4651
|
var MENULIST_CLASSNAME = `k-menu-group`;
|
|
4638
4652
|
var states8 = [];
|
|
@@ -4660,7 +4674,7 @@ var MenuList = (props) => {
|
|
|
4660
4674
|
);
|
|
4661
4675
|
} else if (child.type === menu_separator_spec_default) {
|
|
4662
4676
|
listChildren.push(
|
|
4663
|
-
/* @__PURE__ */
|
|
4677
|
+
/* @__PURE__ */ jsx14(menu_separator_spec_default, {})
|
|
4664
4678
|
);
|
|
4665
4679
|
} else {
|
|
4666
4680
|
listChildren.push(child);
|
|
@@ -4668,7 +4682,7 @@ var MenuList = (props) => {
|
|
|
4668
4682
|
});
|
|
4669
4683
|
}
|
|
4670
4684
|
}
|
|
4671
|
-
return /* @__PURE__ */
|
|
4685
|
+
return /* @__PURE__ */ jsx14(
|
|
4672
4686
|
"ul",
|
|
4673
4687
|
{
|
|
4674
4688
|
...other,
|
|
@@ -4689,7 +4703,7 @@ MenuList.className = MENULIST_CLASSNAME;
|
|
|
4689
4703
|
MenuList.defaultProps = defaultProps9;
|
|
4690
4704
|
|
|
4691
4705
|
// src/animation-container/animation-container.spec.tsx
|
|
4692
|
-
import { jsx as
|
|
4706
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
4693
4707
|
var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
|
|
4694
4708
|
var states9 = [];
|
|
4695
4709
|
var options9 = {};
|
|
@@ -4703,7 +4717,7 @@ var AnimationContainer = (props) => {
|
|
|
4703
4717
|
offset,
|
|
4704
4718
|
...other
|
|
4705
4719
|
} = props;
|
|
4706
|
-
return /* @__PURE__ */
|
|
4720
|
+
return /* @__PURE__ */ jsx15(
|
|
4707
4721
|
"div",
|
|
4708
4722
|
{
|
|
4709
4723
|
...other,
|
|
@@ -4715,7 +4729,7 @@ var AnimationContainer = (props) => {
|
|
|
4715
4729
|
["k-animation-container-fixed"]: positionMode === "fixed"
|
|
4716
4730
|
}
|
|
4717
4731
|
),
|
|
4718
|
-
children: /* @__PURE__ */
|
|
4732
|
+
children: /* @__PURE__ */ jsx15("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
|
|
4719
4733
|
}
|
|
4720
4734
|
);
|
|
4721
4735
|
};
|
|
@@ -4725,7 +4739,7 @@ AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
|
|
|
4725
4739
|
AnimationContainer.defaultProps = defaultProps10;
|
|
4726
4740
|
|
|
4727
4741
|
// src/popup/popup.spec.tsx
|
|
4728
|
-
import { jsx as
|
|
4742
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
4729
4743
|
var POPUP_CLASSNAME = `k-popup`;
|
|
4730
4744
|
var states10 = [];
|
|
4731
4745
|
var options10 = {};
|
|
@@ -4738,12 +4752,12 @@ var Popup = (props) => {
|
|
|
4738
4752
|
positionMode,
|
|
4739
4753
|
...other
|
|
4740
4754
|
} = props;
|
|
4741
|
-
return /* @__PURE__ */
|
|
4755
|
+
return /* @__PURE__ */ jsx16(
|
|
4742
4756
|
AnimationContainer,
|
|
4743
4757
|
{
|
|
4744
4758
|
positionMode,
|
|
4745
4759
|
offset,
|
|
4746
|
-
children: /* @__PURE__ */
|
|
4760
|
+
children: /* @__PURE__ */ jsx16("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
|
|
4747
4761
|
}
|
|
4748
4762
|
);
|
|
4749
4763
|
};
|
|
@@ -4753,7 +4767,7 @@ Popup.className = POPUP_CLASSNAME;
|
|
|
4753
4767
|
Popup.defaultProps = defaultProps11;
|
|
4754
4768
|
|
|
4755
4769
|
// src/context-menu/tests/context-menu-in-window.tsx
|
|
4756
|
-
import { Fragment as
|
|
4770
|
+
import { Fragment as Fragment9, jsx as jsx17, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
4757
4771
|
var styles = `
|
|
4758
4772
|
#test-area {
|
|
4759
4773
|
height: 300px;
|
|
@@ -4770,17 +4784,17 @@ var styles = `
|
|
|
4770
4784
|
position: relative;
|
|
4771
4785
|
}
|
|
4772
4786
|
`;
|
|
4773
|
-
var context_menu_in_window_default = () => /* @__PURE__ */ jsxs4(
|
|
4774
|
-
/* @__PURE__ */
|
|
4775
|
-
/* @__PURE__ */
|
|
4776
|
-
/* @__PURE__ */
|
|
4777
|
-
/* @__PURE__ */
|
|
4778
|
-
/* @__PURE__ */
|
|
4779
|
-
/* @__PURE__ */
|
|
4780
|
-
/* @__PURE__ */
|
|
4781
|
-
/* @__PURE__ */
|
|
4782
|
-
/* @__PURE__ */
|
|
4783
|
-
/* @__PURE__ */
|
|
4787
|
+
var context_menu_in_window_default = () => /* @__PURE__ */ jsxs4(Fragment9, { children: [
|
|
4788
|
+
/* @__PURE__ */ jsx17("style", { children: styles }),
|
|
4789
|
+
/* @__PURE__ */ jsx17("div", { id: "test-area", className: "k-d-grid", children: /* @__PURE__ */ jsxs4("section", { children: [
|
|
4790
|
+
/* @__PURE__ */ jsx17(WindowNormal, { title: "Window", children: "Target" }),
|
|
4791
|
+
/* @__PURE__ */ jsx17(Popup, { className: "k-menu-popup", children: /* @__PURE__ */ jsxs4(MenuList, { className: "k-context-menu", children: [
|
|
4792
|
+
/* @__PURE__ */ jsx17(MenuItem, { text: "Item 1", showArrow: true }),
|
|
4793
|
+
/* @__PURE__ */ jsx17(MenuItem, { text: "Item 2", showArrow: true }),
|
|
4794
|
+
/* @__PURE__ */ jsx17(MenuItem, { text: "Item 3", showArrow: true }),
|
|
4795
|
+
/* @__PURE__ */ jsx17(MenuItem, { text: "Item 4", showArrow: true }),
|
|
4796
|
+
/* @__PURE__ */ jsx17(MenuItem, { text: "Item 5", showArrow: true }),
|
|
4797
|
+
/* @__PURE__ */ jsx17(MenuItem, { text: "Item 6", showArrow: true })
|
|
4784
4798
|
] }) })
|
|
4785
4799
|
] }) })
|
|
4786
4800
|
] });
|
|
@@ -4512,8 +4512,22 @@ Window.options = options6;
|
|
|
4512
4512
|
Window.className = WINDOW_CLASSNAME;
|
|
4513
4513
|
Window.defaultProps = defaultProps6;
|
|
4514
4514
|
|
|
4515
|
+
// src/window/templates/window-normal.tsx
|
|
4516
|
+
import { Fragment as Fragment6, jsx as jsx10 } from "react/jsx-runtime";
|
|
4517
|
+
var WindowNormal = (props) => /* @__PURE__ */ jsx10(
|
|
4518
|
+
Window,
|
|
4519
|
+
{
|
|
4520
|
+
title: "Title",
|
|
4521
|
+
actions: ["window-minimize", "window", "x"],
|
|
4522
|
+
children: [
|
|
4523
|
+
/* @__PURE__ */ jsx10(Fragment6, { children: "Content" })
|
|
4524
|
+
],
|
|
4525
|
+
...props
|
|
4526
|
+
}
|
|
4527
|
+
);
|
|
4528
|
+
|
|
4515
4529
|
// src/dialog/dialog.spec.tsx
|
|
4516
|
-
import { Fragment as
|
|
4530
|
+
import { Fragment as Fragment7, jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
4517
4531
|
var DIALOG_CLASSNAME = `k-dialog`;
|
|
4518
4532
|
var states7 = [];
|
|
4519
4533
|
var options7 = {
|
|
@@ -4545,13 +4559,13 @@ var Dialog = (props) => {
|
|
|
4545
4559
|
),
|
|
4546
4560
|
children: [
|
|
4547
4561
|
(title !== void 0 || actions) && /* @__PURE__ */ jsxs3("div", { className: "k-window-titlebar k-dialog-titlebar", children: [
|
|
4548
|
-
title !== void 0 && /* @__PURE__ */
|
|
4549
|
-
actions && /* @__PURE__ */
|
|
4550
|
-
(actionName) => /* @__PURE__ */
|
|
4562
|
+
title !== void 0 && /* @__PURE__ */ jsx11("span", { className: "k-window-title k-dialog-title", children: title }),
|
|
4563
|
+
actions && /* @__PURE__ */ jsx11(Fragment7, { children: /* @__PURE__ */ jsx11("div", { className: "k-window-titlebar-actions k-dialog-titlebar-actions", children: actions.map(
|
|
4564
|
+
(actionName) => /* @__PURE__ */ jsx11(Button, { icon: actionName, fillMode: "flat", className: "k-window-titlebar-action k-dialog-titlebar-action" }, actionName)
|
|
4551
4565
|
) }) })
|
|
4552
4566
|
] }),
|
|
4553
|
-
/* @__PURE__ */
|
|
4554
|
-
actionButtons && /* @__PURE__ */
|
|
4567
|
+
/* @__PURE__ */ jsx11("div", { className: "k-window-content k-dialog-content", children: props.children }),
|
|
4568
|
+
actionButtons && /* @__PURE__ */ jsx11(ActionButtons, { alignment: actionButtonsAlign, className: "k-window-actions k-dialog-actions", children: actionButtons })
|
|
4555
4569
|
]
|
|
4556
4570
|
}
|
|
4557
4571
|
);
|
|
@@ -4563,17 +4577,17 @@ Dialog.defaultProps = defaultProps7;
|
|
|
4563
4577
|
var dialog_spec_default = Dialog;
|
|
4564
4578
|
|
|
4565
4579
|
// src/dialog/templates/dialog-normal.tsx
|
|
4566
|
-
import { Fragment as
|
|
4580
|
+
import { Fragment as Fragment8, jsx as jsx12 } from "react/jsx-runtime";
|
|
4567
4581
|
|
|
4568
4582
|
// src/dialog/templates/dialog-modal.tsx
|
|
4569
|
-
import { Fragment as
|
|
4570
|
-
var DialogModal = ({ children, ...other }) => /* @__PURE__ */
|
|
4571
|
-
/* @__PURE__ */
|
|
4572
|
-
/* @__PURE__ */
|
|
4583
|
+
import { Fragment as Fragment9, jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
4584
|
+
var DialogModal = ({ children, ...other }) => /* @__PURE__ */ jsx13(Fragment9, { children: /* @__PURE__ */ jsxs4("div", { className: "k-dialog-wrapper", children: [
|
|
4585
|
+
/* @__PURE__ */ jsx13("div", { className: "k-overlay" }),
|
|
4586
|
+
/* @__PURE__ */ jsx13(dialog_spec_default, { ...other, children })
|
|
4573
4587
|
] }) });
|
|
4574
4588
|
|
|
4575
4589
|
// src/dialog/tests/dialog-in-window.tsx
|
|
4576
|
-
import { Fragment as
|
|
4590
|
+
import { Fragment as Fragment10, jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
4577
4591
|
var styles = `
|
|
4578
4592
|
#test-area {
|
|
4579
4593
|
width: 500px;
|
|
@@ -4589,11 +4603,11 @@ var styles = `
|
|
|
4589
4603
|
height: 200px;
|
|
4590
4604
|
}
|
|
4591
4605
|
`;
|
|
4592
|
-
var dialog_in_window_default = () => /* @__PURE__ */ jsxs5(
|
|
4593
|
-
/* @__PURE__ */
|
|
4594
|
-
/* @__PURE__ */
|
|
4606
|
+
var dialog_in_window_default = () => /* @__PURE__ */ jsxs5(Fragment10, { children: [
|
|
4607
|
+
/* @__PURE__ */ jsx14("style", { children: styles }),
|
|
4608
|
+
/* @__PURE__ */ jsx14("div", { id: "test-area", className: "k-d-grid k-grid-cols-1", children: /* @__PURE__ */ jsx14("section", { children: /* @__PURE__ */ jsxs5(WindowNormal, { title: "Window with dialog", className: "k-window-wrapper", children: [
|
|
4595
4609
|
"Window content",
|
|
4596
|
-
/* @__PURE__ */
|
|
4610
|
+
/* @__PURE__ */ jsx14(DialogModal, { title: "Dialog in window", actions: ["x"], children: "Dialog content" })
|
|
4597
4611
|
] }) }) })
|
|
4598
4612
|
] });
|
|
4599
4613
|
export {
|