@progress/kendo-themes-html 7.1.1-dev.0 → 7.2.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/action-sheet/tests/action-sheet-data-table.js +2 -0
- package/dist/cjs/autocomplete/tests/autocomplete-prefix-suffix.js +863 -778
- package/dist/cjs/combobox/tests/combobox-prefix-suffix.js +863 -778
- package/dist/cjs/dropdowngrid/dropdowngrid.spec.js +2 -0
- package/dist/cjs/dropdowngrid/templates/dropdowngrid-adaptive.js +2 -0
- package/dist/cjs/dropdowngrid/templates/dropdowngrid-normal.js +2 -0
- package/dist/cjs/dropdowngrid/templates/dropdowngrid-popup.js +2 -0
- package/dist/cjs/dropdowngrid/templates/dropdowngrid-prefix.js +2 -0
- package/dist/cjs/dropdowngrid/templates/dropdowngrid-suffix.js +2 -0
- package/dist/cjs/dropdowngrid/tests/dropdowngrid-adaptive.js +2 -0
- package/dist/cjs/dropdowngrid/tests/dropdowngrid-flat.js +2 -0
- package/dist/cjs/dropdowngrid/tests/dropdowngrid-opened.js +2 -0
- package/dist/cjs/dropdowngrid/tests/dropdowngrid-outline.js +2 -0
- package/dist/cjs/dropdowngrid/tests/dropdowngrid-prefix-suffix.js +2 -0
- package/dist/cjs/dropdowngrid/tests/dropdowngrid-size-rounded.js +2 -0
- package/dist/cjs/dropdowngrid/tests/dropdowngrid-solid.js +2 -0
- package/dist/cjs/filemanager/templates/filemanager-grid-preview.js +2 -0
- package/dist/cjs/filemanager/templates/filemanager-grid.js +2 -0
- package/dist/cjs/filemanager/tests/filemanager-gridview-preview.js +763 -678
- package/dist/cjs/filemanager/tests/filemanager-gridview.js +2 -0
- package/dist/cjs/filemanager/tests/filemanager-listview-preview.js +717 -632
- package/dist/cjs/form/tests/form-field-dropdowns.js +862 -777
- package/dist/cjs/grid/grid-container.spec.js +46 -0
- package/dist/cjs/grid/grid-content.spec.js +46 -0
- package/dist/cjs/grid/grid-footer-table.spec.js +283 -0
- package/dist/cjs/grid/grid-footer.spec.js +46 -0
- package/dist/cjs/grid/grid-grouping-header.spec.js +57 -0
- package/dist/cjs/grid/grid-header-cell.spec.js +4446 -0
- package/dist/cjs/grid/grid-header-table.spec.js +283 -0
- package/dist/cjs/grid/grid-header.spec.js +46 -0
- package/dist/cjs/grid/grid-pager.spec.js +6058 -0
- package/dist/cjs/grid/grid-table.spec.js +283 -0
- package/dist/cjs/grid/grid-toolbar.spec.js +7876 -0
- package/dist/cjs/grid/grid.spec.js +120 -0
- package/dist/cjs/grid/tests/grid-adaptive-pager.js +2740 -380
- package/dist/cjs/grid/tests/grid-adaptive-search.js +1745 -1203
- package/dist/cjs/grid/tests/grid-angular.js +3787 -1267
- package/dist/cjs/grid/tests/grid-column-menu-angular.js +4095 -115
- package/dist/cjs/grid/tests/grid-column-menu-blazor.js +4095 -116
- package/dist/cjs/grid/tests/grid-column-reordering-actions.js +1484 -1280
- package/dist/cjs/grid/tests/grid-column-reordering.js +1489 -1285
- package/dist/cjs/grid/tests/grid-column-resizing-actions.js +2119 -1915
- package/dist/cjs/grid/tests/grid-editing-custom-editor.js +1107 -869
- package/dist/cjs/grid/tests/grid-editing-inline-angular.js +1972 -1218
- package/dist/cjs/grid/tests/grid-editing-inline-blazor.js +1959 -1201
- package/dist/cjs/grid/tests/grid-editing.js +1391 -635
- package/dist/cjs/grid/tests/grid-filter-menu-angular.js +4092 -100
- package/dist/cjs/grid/tests/grid-filter-menu-blazor.js +4089 -101
- package/dist/cjs/grid/tests/grid-filter-row-angular.js +1327 -576
- package/dist/cjs/grid/tests/grid-filter-row-blazor.js +1313 -554
- package/dist/cjs/grid/tests/grid-filter-row.js +1496 -59
- package/dist/cjs/grid/tests/grid-grouping-actions.js +1450 -1246
- package/dist/cjs/grid/tests/grid-grouping-blazor.js +4162 -141
- package/dist/cjs/grid/tests/grid-grouping-detail-template.js +4297 -288
- package/dist/cjs/grid/tests/grid-grouping.js +2725 -1934
- package/dist/cjs/grid/tests/grid-hierarchy.js +4333 -43
- package/dist/cjs/grid/tests/grid-locked-columns-rtl.js +4365 -207
- package/dist/cjs/grid/tests/grid-locked-columns.js +4563 -424
- package/dist/cjs/grid/tests/grid-long-titles.js +4315 -124
- package/dist/cjs/grid/tests/grid-multicolumn-headers.js +4407 -135
- package/dist/cjs/grid/tests/grid-no-records.js +8627 -48
- package/dist/cjs/grid/tests/grid-pager.js +3120 -550
- package/dist/cjs/grid/tests/grid-react-basic.js +8500 -128
- package/dist/cjs/grid/tests/grid-react.js +4516 -190
- package/dist/cjs/grid/tests/grid-row-reordering.js +1711 -1499
- package/dist/cjs/grid/tests/grid-rows-resizing.js +2066 -1308
- package/dist/cjs/grid/tests/grid-rows-states.js +8369 -105
- package/dist/cjs/grid/tests/grid-rtl-angular.js +3987 -1430
- package/dist/cjs/grid/tests/grid-rtl.js +4028 -1469
- package/dist/cjs/grid/tests/grid-selection-aggregates.js +3318 -742
- package/dist/cjs/grid/tests/grid-size-sm-comp-sm.js +2038 -1537
- package/dist/cjs/grid/tests/grid-size-sm.js +1447 -946
- package/dist/cjs/grid/tests/grid-sticky-columns-rtl.js +4118 -1505
- package/dist/cjs/grid/tests/grid-sticky-columns.js +4445 -177
- package/dist/cjs/grid/tests/grid-sticky-multicolumn-headers.js +8571 -53
- package/dist/cjs/grid/tests/grid-toolbar.js +1896 -1349
- package/dist/cjs/grid/tests/grid-virtualization.js +8968 -450
- package/dist/cjs/grid/tests/grid.js +4055 -1496
- package/dist/cjs/index.js +2442 -2148
- package/dist/cjs/multiselect/templates/multiselect-prefix.js +838 -753
- package/dist/cjs/multiselect/templates/multiselect-suffix.js +838 -753
- package/dist/cjs/multiselect/tests/multiselect-adaptive.js +844 -759
- package/dist/cjs/multiselect/tests/multiselect-flat.js +868 -783
- package/dist/cjs/multiselect/tests/multiselect-grouping.js +844 -759
- package/dist/cjs/multiselect/tests/multiselect-opened.js +846 -761
- package/dist/cjs/multiselect/tests/multiselect-outline.js +868 -783
- package/dist/cjs/multiselect/tests/multiselect-prefix-suffix.js +875 -790
- package/dist/cjs/multiselect/tests/multiselect-size-rounded.js +847 -762
- package/dist/cjs/multiselect/tests/multiselect-solid.js +868 -783
- package/dist/cjs/scheduler/tests/scheduler-edit-dialog.js +877 -792
- package/dist/cjs/scheduler/tests/scheduler-editing-weekly.js +891 -806
- package/dist/cjs/table/table-th.js +2 -0
- package/dist/cjs/table/templates/data-table-normal.js +2 -0
- package/dist/cjs/table/templates/table-list-virtualization.js +2 -0
- package/dist/cjs/table/templates/table-list.js +2 -0
- package/dist/cjs/table/templates/table-native.js +2 -0
- package/dist/cjs/table/tests/table-data-sizes.js +2 -0
- package/dist/cjs/table/tests/table-list-jquery.js +2 -0
- package/dist/cjs/table/tests/table-list-sizes.js +2 -0
- package/dist/cjs/table/tests/table-list-virtual.js +2 -0
- package/dist/cjs/table/tests/table-native-sizes.js +2 -0
- package/dist/cjs/table/tests/table-native-states.js +2 -0
- package/dist/esm/action-sheet/tests/action-sheet-data-table.js +2 -0
- package/dist/esm/autocomplete/tests/autocomplete-prefix-suffix.js +863 -778
- package/dist/esm/combobox/tests/combobox-prefix-suffix.js +863 -778
- package/dist/esm/dropdowngrid/dropdowngrid.spec.js +2 -0
- package/dist/esm/dropdowngrid/templates/dropdowngrid-adaptive.js +2 -0
- package/dist/esm/dropdowngrid/templates/dropdowngrid-normal.js +2 -0
- package/dist/esm/dropdowngrid/templates/dropdowngrid-popup.js +2 -0
- package/dist/esm/dropdowngrid/templates/dropdowngrid-prefix.js +2 -0
- package/dist/esm/dropdowngrid/templates/dropdowngrid-suffix.js +2 -0
- package/dist/esm/dropdowngrid/tests/dropdowngrid-adaptive.js +2 -0
- package/dist/esm/dropdowngrid/tests/dropdowngrid-flat.js +2 -0
- package/dist/esm/dropdowngrid/tests/dropdowngrid-opened.js +2 -0
- package/dist/esm/dropdowngrid/tests/dropdowngrid-outline.js +2 -0
- package/dist/esm/dropdowngrid/tests/dropdowngrid-prefix-suffix.js +2 -0
- package/dist/esm/dropdowngrid/tests/dropdowngrid-size-rounded.js +2 -0
- package/dist/esm/dropdowngrid/tests/dropdowngrid-solid.js +2 -0
- package/dist/esm/filemanager/templates/filemanager-grid-preview.js +2 -0
- package/dist/esm/filemanager/templates/filemanager-grid.js +2 -0
- package/dist/esm/filemanager/tests/filemanager-gridview-preview.js +763 -678
- package/dist/esm/filemanager/tests/filemanager-gridview.js +2 -0
- package/dist/esm/filemanager/tests/filemanager-listview-preview.js +717 -632
- package/dist/esm/form/tests/form-field-dropdowns.js +862 -777
- package/dist/esm/grid/grid-container.spec.js +24 -0
- package/dist/esm/grid/grid-content.spec.js +24 -0
- package/dist/esm/grid/grid-footer-table.spec.js +261 -0
- package/dist/esm/grid/grid-footer.spec.js +24 -0
- package/dist/esm/grid/grid-grouping-header.spec.js +35 -0
- package/dist/esm/grid/grid-header-cell.spec.js +4430 -0
- package/dist/esm/grid/grid-header-table.spec.js +261 -0
- package/dist/esm/grid/grid-header.spec.js +24 -0
- package/dist/esm/grid/grid-pager.spec.js +6042 -0
- package/dist/esm/grid/grid-table.spec.js +261 -0
- package/dist/esm/grid/grid-toolbar.spec.js +7860 -0
- package/dist/esm/grid/grid.spec.js +98 -0
- package/dist/esm/grid/tests/grid-adaptive-pager.js +2740 -380
- package/dist/esm/grid/tests/grid-adaptive-search.js +1865 -1323
- package/dist/esm/grid/tests/grid-angular.js +3831 -1311
- package/dist/esm/grid/tests/grid-column-menu-angular.js +4095 -115
- package/dist/esm/grid/tests/grid-column-menu-blazor.js +4095 -116
- package/dist/esm/grid/tests/grid-column-reordering-actions.js +2314 -2110
- package/dist/esm/grid/tests/grid-column-reordering.js +2320 -2116
- package/dist/esm/grid/tests/grid-column-resizing-actions.js +2863 -2659
- package/dist/esm/grid/tests/grid-editing-custom-editor.js +1107 -869
- package/dist/esm/grid/tests/grid-editing-inline-angular.js +1905 -1151
- package/dist/esm/grid/tests/grid-editing-inline-blazor.js +1914 -1156
- package/dist/esm/grid/tests/grid-editing.js +1391 -635
- package/dist/esm/grid/tests/grid-filter-menu-angular.js +4092 -100
- package/dist/esm/grid/tests/grid-filter-menu-blazor.js +4089 -101
- package/dist/esm/grid/tests/grid-filter-row-angular.js +1327 -576
- package/dist/esm/grid/tests/grid-filter-row-blazor.js +1313 -554
- package/dist/esm/grid/tests/grid-filter-row.js +1496 -59
- package/dist/esm/grid/tests/grid-grouping-actions.js +2280 -2076
- package/dist/esm/grid/tests/grid-grouping-blazor.js +4162 -141
- package/dist/esm/grid/tests/grid-grouping-detail-template.js +4297 -288
- package/dist/esm/grid/tests/grid-grouping.js +2679 -1888
- package/dist/esm/grid/tests/grid-hierarchy.js +4333 -43
- package/dist/esm/grid/tests/grid-locked-columns-rtl.js +4366 -208
- package/dist/esm/grid/tests/grid-locked-columns.js +4564 -425
- package/dist/esm/grid/tests/grid-long-titles.js +4316 -125
- package/dist/esm/grid/tests/grid-multicolumn-headers.js +4407 -135
- package/dist/esm/grid/tests/grid-no-records.js +8632 -49
- package/dist/esm/grid/tests/grid-pager.js +3139 -569
- package/dist/esm/grid/tests/grid-react-basic.js +8506 -128
- package/dist/esm/grid/tests/grid-react.js +4516 -190
- package/dist/esm/grid/tests/grid-row-reordering.js +1385 -1173
- package/dist/esm/grid/tests/grid-rows-resizing.js +2145 -1387
- package/dist/esm/grid/tests/grid-rows-states.js +8375 -105
- package/dist/esm/grid/tests/grid-rtl-angular.js +3974 -1417
- package/dist/esm/grid/tests/grid-rtl.js +4022 -1463
- package/dist/esm/grid/tests/grid-selection-aggregates.js +3143 -567
- package/dist/esm/grid/tests/grid-size-sm-comp-sm.js +2100 -1599
- package/dist/esm/grid/tests/grid-size-sm.js +1513 -1012
- package/dist/esm/grid/tests/grid-sticky-columns-rtl.js +4113 -1500
- package/dist/esm/grid/tests/grid-sticky-columns.js +4445 -177
- package/dist/esm/grid/tests/grid-sticky-multicolumn-headers.js +8576 -54
- package/dist/esm/grid/tests/grid-toolbar.js +1906 -1359
- package/dist/esm/grid/tests/grid-virtualization.js +8975 -451
- package/dist/esm/grid/tests/grid.js +4052 -1493
- package/dist/esm/index.js +2442 -2148
- package/dist/esm/multiselect/templates/multiselect-prefix.js +838 -753
- package/dist/esm/multiselect/templates/multiselect-suffix.js +838 -753
- package/dist/esm/multiselect/tests/multiselect-adaptive.js +844 -759
- package/dist/esm/multiselect/tests/multiselect-flat.js +868 -783
- package/dist/esm/multiselect/tests/multiselect-grouping.js +844 -759
- package/dist/esm/multiselect/tests/multiselect-opened.js +846 -761
- package/dist/esm/multiselect/tests/multiselect-outline.js +868 -783
- package/dist/esm/multiselect/tests/multiselect-prefix-suffix.js +875 -790
- package/dist/esm/multiselect/tests/multiselect-size-rounded.js +847 -762
- package/dist/esm/multiselect/tests/multiselect-solid.js +868 -783
- package/dist/esm/scheduler/tests/scheduler-edit-dialog.js +877 -792
- package/dist/esm/scheduler/tests/scheduler-editing-weekly.js +891 -806
- package/dist/esm/table/table-th.js +2 -0
- package/dist/esm/table/templates/data-table-normal.js +2 -0
- package/dist/esm/table/templates/table-list-virtualization.js +2 -0
- package/dist/esm/table/templates/table-list.js +2 -0
- package/dist/esm/table/templates/table-native.js +2 -0
- package/dist/esm/table/tests/table-data-sizes.js +2 -0
- package/dist/esm/table/tests/table-list-jquery.js +2 -0
- package/dist/esm/table/tests/table-list-sizes.js +2 -0
- package/dist/esm/table/tests/table-list-virtual.js +2 -0
- package/dist/esm/table/tests/table-native-sizes.js +2 -0
- package/dist/esm/table/tests/table-native-states.js +2 -0
- package/dist/types/grid/grid-container.spec.d.ts +1 -0
- package/dist/types/grid/grid-content.spec.d.ts +1 -0
- package/dist/types/grid/grid-footer-table.spec.d.ts +3 -0
- package/dist/types/grid/grid-footer.spec.d.ts +1 -0
- package/dist/types/grid/grid-grouping-header.spec.d.ts +5 -0
- package/dist/types/grid/grid-header-cell.spec.d.ts +17 -0
- package/dist/types/grid/grid-header-table.spec.d.ts +3 -0
- package/dist/types/grid/grid-header.spec.d.ts +1 -0
- package/dist/types/grid/grid-pager.spec.d.ts +2 -0
- package/dist/types/grid/grid-table.spec.d.ts +3 -0
- package/dist/types/grid/grid-toolbar.spec.d.ts +2 -0
- package/dist/types/grid/grid.spec.d.ts +28 -0
- package/dist/types/grid/index.d.ts +12 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/table/table-th.d.ts +1 -0
- package/package.json +2 -2
- package/src/grid/grid-container.spec.tsx +17 -0
- package/src/grid/grid-content.spec.tsx +16 -0
- package/src/grid/grid-footer-table.spec.tsx +20 -0
- package/src/grid/grid-footer.spec.tsx +17 -0
- package/src/grid/grid-grouping-header.spec.tsx +33 -0
- package/src/grid/grid-header-cell.spec.tsx +104 -0
- package/src/grid/grid-header-table.spec.tsx +20 -0
- package/src/grid/grid-header.spec.tsx +19 -0
- package/src/grid/grid-pager.spec.tsx +19 -0
- package/src/grid/grid-table.spec.tsx +20 -0
- package/src/grid/grid-toolbar.spec.tsx +19 -0
- package/src/grid/grid.spec.tsx +67 -0
- package/src/grid/index.ts +12 -0
- package/src/grid/tests/grid-adaptive-pager.tsx +9 -7
- package/src/grid/tests/grid-adaptive-search.tsx +11 -9
- package/src/grid/tests/grid-angular.tsx +154 -237
- package/src/grid/tests/grid-column-menu-angular.tsx +150 -181
- package/src/grid/tests/grid-column-menu-blazor.tsx +121 -189
- package/src/grid/tests/grid-column-reordering-actions.tsx +60 -97
- package/src/grid/tests/grid-column-reordering.tsx +60 -99
- package/src/grid/tests/grid-column-resizing-actions.tsx +60 -97
- package/src/grid/tests/grid-editing-custom-editor.tsx +168 -201
- package/src/grid/tests/grid-editing-inline-angular.tsx +132 -140
- package/src/grid/tests/grid-editing-inline-blazor.tsx +97 -118
- package/src/grid/tests/grid-editing.tsx +133 -163
- package/src/grid/tests/grid-filter-menu-angular.tsx +171 -174
- package/src/grid/tests/grid-filter-menu-blazor.tsx +114 -171
- package/src/grid/tests/grid-filter-row-angular.tsx +171 -182
- package/src/grid/tests/grid-filter-row-blazor.tsx +116 -153
- package/src/grid/tests/grid-filter-row.tsx +110 -109
- package/src/grid/tests/grid-grouping-actions.tsx +60 -98
- package/src/grid/tests/grid-grouping-blazor.tsx +162 -241
- package/src/grid/tests/grid-grouping-detail-template.tsx +383 -375
- package/src/grid/tests/grid-grouping.tsx +195 -293
- package/src/grid/tests/grid-hierarchy.tsx +82 -93
- package/src/grid/tests/grid-locked-columns-rtl.tsx +224 -312
- package/src/grid/tests/grid-locked-columns.tsx +414 -572
- package/src/grid/tests/grid-long-titles.tsx +122 -210
- package/src/grid/tests/grid-multicolumn-headers.tsx +114 -208
- package/src/grid/tests/grid-no-records.tsx +60 -82
- package/src/grid/tests/grid-pager.tsx +144 -197
- package/src/grid/tests/grid-react-basic.tsx +138 -172
- package/src/grid/tests/grid-react.tsx +224 -235
- package/src/grid/tests/grid-row-reordering.tsx +69 -104
- package/src/grid/tests/grid-rows-resizing.tsx +130 -159
- package/src/grid/tests/grid-rows-states.tsx +106 -104
- package/src/grid/tests/grid-rtl-angular.tsx +114 -168
- package/src/grid/tests/grid-rtl.tsx +104 -149
- package/src/grid/tests/grid-selection-aggregates.tsx +96 -115
- package/src/grid/tests/grid-size-sm-comp-sm.tsx +239 -323
- package/src/grid/tests/grid-size-sm.tsx +239 -326
- package/src/grid/tests/grid-sticky-columns-rtl.tsx +112 -140
- package/src/grid/tests/grid-sticky-columns.tsx +208 -312
- package/src/grid/tests/grid-sticky-multicolumn-headers.tsx +52 -159
- package/src/grid/tests/grid-toolbar.tsx +43 -43
- package/src/grid/tests/grid-virtualization.tsx +614 -758
- package/src/grid/tests/grid.tsx +141 -196
- package/src/index.ts +1 -1
- package/src/table/table-th.tsx +3 -0
|
@@ -4902,109 +4902,267 @@ Searchbox.defaultProps = defaultProps12;
|
|
|
4902
4902
|
// src/searchbox/templates/searchbox-normal.tsx
|
|
4903
4903
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
4904
4904
|
|
|
4905
|
-
// src/
|
|
4906
|
-
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
4907
|
-
var
|
|
4908
|
-
var states13 = [
|
|
4909
|
-
States.disabled
|
|
4910
|
-
];
|
|
4905
|
+
// src/grid/grid.spec.tsx
|
|
4906
|
+
import { jsx as jsx23, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
4907
|
+
var GRID_CLASSNAME = "k-grid";
|
|
4908
|
+
var states13 = [];
|
|
4911
4909
|
var options12 = {
|
|
4912
|
-
|
|
4910
|
+
size: [Size.small, Size.medium, Size.large]
|
|
4913
4911
|
};
|
|
4914
4912
|
var defaultProps13 = {
|
|
4915
|
-
|
|
4913
|
+
size: Size.medium,
|
|
4914
|
+
pagerPosition: "bottom"
|
|
4916
4915
|
};
|
|
4917
|
-
var
|
|
4916
|
+
var Grid = (props) => {
|
|
4918
4917
|
const {
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4918
|
+
size = defaultProps13.size,
|
|
4919
|
+
toolbar,
|
|
4920
|
+
pager,
|
|
4921
|
+
pagerPosition,
|
|
4922
|
+
groupingHeader,
|
|
4923
|
+
_renderAriaRoot,
|
|
4922
4924
|
...other
|
|
4923
4925
|
} = props;
|
|
4924
|
-
return /* @__PURE__ */
|
|
4926
|
+
return /* @__PURE__ */ jsxs4(
|
|
4925
4927
|
"div",
|
|
4926
4928
|
{
|
|
4927
4929
|
...other,
|
|
4928
4930
|
className: classNames(
|
|
4929
4931
|
props.className,
|
|
4930
|
-
|
|
4931
|
-
optionClassNames(
|
|
4932
|
-
fillMode
|
|
4933
|
-
}),
|
|
4934
|
-
stateClassNames(BUTTONGROUP_CLASSNAME, {
|
|
4935
|
-
disabled
|
|
4936
|
-
}),
|
|
4937
|
-
{
|
|
4938
|
-
[`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
|
|
4939
|
-
}
|
|
4932
|
+
GRID_CLASSNAME,
|
|
4933
|
+
optionClassNames(GRID_CLASSNAME, { size })
|
|
4940
4934
|
),
|
|
4941
|
-
children:
|
|
4935
|
+
children: [
|
|
4936
|
+
toolbar,
|
|
4937
|
+
pagerPosition === "top" && pager,
|
|
4938
|
+
groupingHeader,
|
|
4939
|
+
props.children && _renderAriaRoot ? /* @__PURE__ */ jsx23("div", { className: "k-grid-aria-root", children: props.children }) : props.children,
|
|
4940
|
+
pagerPosition === "bottom" && pager
|
|
4941
|
+
]
|
|
4942
4942
|
}
|
|
4943
4943
|
);
|
|
4944
4944
|
};
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4945
|
+
Grid.states = states13;
|
|
4946
|
+
Grid.options = options12;
|
|
4947
|
+
Grid.className = GRID_CLASSNAME;
|
|
4948
|
+
Grid.defaultProps = defaultProps13;
|
|
4949
4949
|
|
|
4950
|
-
// src/
|
|
4951
|
-
import { jsx as jsx24
|
|
4950
|
+
// src/grid/grid-header.spec.tsx
|
|
4951
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
4952
4952
|
|
|
4953
|
-
// src/
|
|
4953
|
+
// src/grid/grid-grouping-header.spec.tsx
|
|
4954
4954
|
import { jsx as jsx25, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
4955
4955
|
|
|
4956
|
-
// src/
|
|
4957
|
-
import { jsx as jsx26
|
|
4956
|
+
// src/table/data-table.spec.tsx
|
|
4957
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
4958
|
+
var DATATABLE_CLASSNAME = `k-data-table`;
|
|
4959
|
+
var states14 = [];
|
|
4960
|
+
var options13 = {
|
|
4961
|
+
size: [Size.small, Size.medium, Size.large]
|
|
4962
|
+
};
|
|
4963
|
+
var defaultProps14 = {
|
|
4964
|
+
size: Size.medium
|
|
4965
|
+
};
|
|
4966
|
+
var DataTable = (props) => {
|
|
4967
|
+
const {
|
|
4968
|
+
size = defaultProps14.size,
|
|
4969
|
+
...other
|
|
4970
|
+
} = props;
|
|
4971
|
+
return /* @__PURE__ */ jsx26(
|
|
4972
|
+
"div",
|
|
4973
|
+
{
|
|
4974
|
+
...other,
|
|
4975
|
+
className: classNames(
|
|
4976
|
+
props.className,
|
|
4977
|
+
DATATABLE_CLASSNAME,
|
|
4978
|
+
optionClassNames("k-table", {
|
|
4979
|
+
size
|
|
4980
|
+
})
|
|
4981
|
+
),
|
|
4982
|
+
children: props.children
|
|
4983
|
+
}
|
|
4984
|
+
);
|
|
4985
|
+
};
|
|
4986
|
+
DataTable.states = states14;
|
|
4987
|
+
DataTable.options = options13;
|
|
4988
|
+
DataTable.className = DATATABLE_CLASSNAME;
|
|
4989
|
+
DataTable.defaultProps = defaultProps14;
|
|
4958
4990
|
|
|
4959
|
-
// src/
|
|
4960
|
-
import { jsx as jsx27
|
|
4991
|
+
// src/table/table-header.tsx
|
|
4992
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
4961
4993
|
|
|
4962
|
-
// src/
|
|
4963
|
-
import { jsx as jsx28
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4994
|
+
// src/table/table-body.tsx
|
|
4995
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
4996
|
+
|
|
4997
|
+
// src/table/table-footer.tsx
|
|
4998
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
4999
|
+
|
|
5000
|
+
// src/table/table.spec.tsx
|
|
5001
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
5002
|
+
var TABLE_CLASSNAME = `k-table`;
|
|
5003
|
+
var states15 = [];
|
|
5004
|
+
var options14 = {
|
|
5005
|
+
size: [Size.small, Size.medium, Size.large]
|
|
5006
|
+
};
|
|
5007
|
+
var defaultProps15 = {};
|
|
5008
|
+
var Table = (props) => {
|
|
4968
5009
|
const {
|
|
4969
|
-
|
|
4970
|
-
iconName,
|
|
5010
|
+
size,
|
|
4971
5011
|
...other
|
|
4972
5012
|
} = props;
|
|
4973
|
-
return /* @__PURE__ */
|
|
4974
|
-
"
|
|
5013
|
+
return /* @__PURE__ */ jsx30(
|
|
5014
|
+
"table",
|
|
4975
5015
|
{
|
|
4976
5016
|
...other,
|
|
4977
5017
|
className: classNames(
|
|
4978
5018
|
props.className,
|
|
4979
|
-
|
|
5019
|
+
TABLE_CLASSNAME,
|
|
5020
|
+
optionClassNames(TABLE_CLASSNAME, {
|
|
5021
|
+
size
|
|
5022
|
+
})
|
|
5023
|
+
),
|
|
5024
|
+
children: props.children
|
|
5025
|
+
}
|
|
5026
|
+
);
|
|
5027
|
+
};
|
|
5028
|
+
Table.states = states15;
|
|
5029
|
+
Table.options = options14;
|
|
5030
|
+
Table.className = TABLE_CLASSNAME;
|
|
5031
|
+
Table.defaultProps = defaultProps15;
|
|
5032
|
+
|
|
5033
|
+
// src/table/table-list.spec.tsx
|
|
5034
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
5035
|
+
var TABLELIST_CLASSNAME = `k-table-list`;
|
|
5036
|
+
var states16 = [];
|
|
5037
|
+
var options15 = {
|
|
5038
|
+
size: [Size.small, Size.medium, Size.large]
|
|
5039
|
+
};
|
|
5040
|
+
var defaultProps16 = {};
|
|
5041
|
+
var TableList = (props) => {
|
|
5042
|
+
const {
|
|
5043
|
+
size,
|
|
5044
|
+
virtualization,
|
|
5045
|
+
...other
|
|
5046
|
+
} = props;
|
|
5047
|
+
return /* @__PURE__ */ jsx31(
|
|
5048
|
+
"ul",
|
|
5049
|
+
{
|
|
5050
|
+
...other,
|
|
5051
|
+
className: classNames(
|
|
5052
|
+
props.className,
|
|
5053
|
+
"k-table",
|
|
5054
|
+
TABLELIST_CLASSNAME,
|
|
5055
|
+
optionClassNames(TABLELIST_CLASSNAME, {
|
|
5056
|
+
size
|
|
5057
|
+
}),
|
|
4980
5058
|
{
|
|
4981
|
-
"k-
|
|
4982
|
-
"k-no-color": !color
|
|
5059
|
+
"k-virtual-table": virtualization
|
|
4983
5060
|
}
|
|
4984
5061
|
),
|
|
4985
|
-
children:
|
|
4986
|
-
iconName && /* @__PURE__ */ jsx28(Icon, { icon: iconName, className: "k-color-preview-icon" }),
|
|
4987
|
-
/* @__PURE__ */ jsx28(
|
|
4988
|
-
"span",
|
|
4989
|
-
{
|
|
4990
|
-
className: "k-color-preview-mask",
|
|
4991
|
-
style: { backgroundColor: color }
|
|
4992
|
-
}
|
|
4993
|
-
)
|
|
4994
|
-
]
|
|
5062
|
+
children: props.children
|
|
4995
5063
|
}
|
|
4996
5064
|
);
|
|
4997
5065
|
};
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5066
|
+
TableList.states = states16;
|
|
5067
|
+
TableList.options = options15;
|
|
5068
|
+
TableList.className = TABLELIST_CLASSNAME;
|
|
5069
|
+
TableList.defaultProps = defaultProps16;
|
|
5070
|
+
|
|
5071
|
+
// src/table/table-thead.tsx
|
|
5072
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
5073
|
+
|
|
5074
|
+
// src/table/table-tbody.tsx
|
|
5075
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
5076
|
+
|
|
5077
|
+
// src/table/table-tfoot.tsx
|
|
5078
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
5079
|
+
|
|
5080
|
+
// src/table/table-row.tsx
|
|
5081
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
5082
|
+
var states17 = [
|
|
5083
|
+
States.hover,
|
|
5084
|
+
States.focus,
|
|
5085
|
+
States.selected,
|
|
5086
|
+
States.disabled
|
|
5087
|
+
];
|
|
5088
|
+
|
|
5089
|
+
// src/table/table-list-row.tsx
|
|
5090
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
5091
|
+
var states18 = [
|
|
5092
|
+
States.hover,
|
|
5093
|
+
States.focus,
|
|
5094
|
+
States.selected,
|
|
5095
|
+
States.disabled
|
|
5096
|
+
];
|
|
5097
|
+
|
|
5098
|
+
// src/table/table-th.tsx
|
|
5099
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
5100
|
+
|
|
5101
|
+
// src/table/table-list-th.tsx
|
|
5102
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
5103
|
+
|
|
5104
|
+
// src/table/table-td.tsx
|
|
5105
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
5106
|
+
|
|
5107
|
+
// src/table/table-list-td.tsx
|
|
5108
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
5109
|
+
|
|
5110
|
+
// src/table/table-group-header.tsx
|
|
5111
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
5112
|
+
|
|
5113
|
+
// src/table/table-group-sticky-header.tsx
|
|
5114
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
5115
|
+
|
|
5116
|
+
// src/table/table-group-row.tsx
|
|
5117
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
5118
|
+
|
|
5119
|
+
// src/table/table-list-group-row.tsx
|
|
5120
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
5121
|
+
|
|
5122
|
+
// src/table/templates/table-list.tsx
|
|
5123
|
+
import { jsx as jsx45, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
5124
|
+
|
|
5125
|
+
// src/table/templates/table-list-virtualization.tsx
|
|
5126
|
+
import { jsx as jsx46, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
5127
|
+
|
|
5128
|
+
// src/table/templates/data-table-normal.tsx
|
|
5129
|
+
import { jsx as jsx47, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
5130
|
+
|
|
5131
|
+
// src/table/templates/table-native.tsx
|
|
5132
|
+
import { jsx as jsx48, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
5133
|
+
|
|
5134
|
+
// src/grid/grid-header-table.spec.tsx
|
|
5135
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
5136
|
+
|
|
5137
|
+
// src/grid/grid-header-cell.spec.tsx
|
|
5138
|
+
import { jsx as jsx50, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
5139
|
+
var states19 = [
|
|
5140
|
+
States.hover,
|
|
5141
|
+
States.focus,
|
|
5142
|
+
States.active
|
|
5143
|
+
];
|
|
5144
|
+
|
|
5145
|
+
// src/grid/grid-container.spec.tsx
|
|
5146
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
5147
|
+
|
|
5148
|
+
// src/grid/grid-content.spec.tsx
|
|
5149
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
5150
|
+
|
|
5151
|
+
// src/grid/grid-table.spec.tsx
|
|
5152
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
5153
|
+
|
|
5154
|
+
// src/grid/grid-footer.spec.tsx
|
|
5155
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
5156
|
+
|
|
5157
|
+
// src/grid/grid-footer-table.spec.tsx
|
|
5158
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
5001
5159
|
|
|
5002
5160
|
// src/animation-container/animation-container.spec.tsx
|
|
5003
|
-
import { jsx as
|
|
5161
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
5004
5162
|
var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
|
|
5005
|
-
var
|
|
5006
|
-
var
|
|
5007
|
-
var
|
|
5163
|
+
var states20 = [];
|
|
5164
|
+
var options16 = {};
|
|
5165
|
+
var defaultProps17 = {
|
|
5008
5166
|
positionMode: "absolute"
|
|
5009
5167
|
};
|
|
5010
5168
|
var AnimationContainer = (props) => {
|
|
@@ -5014,7 +5172,7 @@ var AnimationContainer = (props) => {
|
|
|
5014
5172
|
offset,
|
|
5015
5173
|
...other
|
|
5016
5174
|
} = props;
|
|
5017
|
-
return /* @__PURE__ */
|
|
5175
|
+
return /* @__PURE__ */ jsx56(
|
|
5018
5176
|
"div",
|
|
5019
5177
|
{
|
|
5020
5178
|
...other,
|
|
@@ -5026,21 +5184,21 @@ var AnimationContainer = (props) => {
|
|
|
5026
5184
|
["k-animation-container-fixed"]: positionMode === "fixed"
|
|
5027
5185
|
}
|
|
5028
5186
|
),
|
|
5029
|
-
children: /* @__PURE__ */
|
|
5187
|
+
children: /* @__PURE__ */ jsx56("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
|
|
5030
5188
|
}
|
|
5031
5189
|
);
|
|
5032
5190
|
};
|
|
5033
|
-
AnimationContainer.states =
|
|
5034
|
-
AnimationContainer.options =
|
|
5191
|
+
AnimationContainer.states = states20;
|
|
5192
|
+
AnimationContainer.options = options16;
|
|
5035
5193
|
AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
|
|
5036
|
-
AnimationContainer.defaultProps =
|
|
5194
|
+
AnimationContainer.defaultProps = defaultProps17;
|
|
5037
5195
|
|
|
5038
5196
|
// src/popup/popup.spec.tsx
|
|
5039
|
-
import { jsx as
|
|
5197
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
5040
5198
|
var POPUP_CLASSNAME = `k-popup`;
|
|
5041
|
-
var
|
|
5042
|
-
var
|
|
5043
|
-
var
|
|
5199
|
+
var states21 = [];
|
|
5200
|
+
var options17 = {};
|
|
5201
|
+
var defaultProps18 = {
|
|
5044
5202
|
positionMode: "absolute"
|
|
5045
5203
|
};
|
|
5046
5204
|
var Popup = (props) => {
|
|
@@ -5049,44 +5207,49 @@ var Popup = (props) => {
|
|
|
5049
5207
|
positionMode,
|
|
5050
5208
|
...other
|
|
5051
5209
|
} = props;
|
|
5052
|
-
return /* @__PURE__ */
|
|
5210
|
+
return /* @__PURE__ */ jsx57(
|
|
5053
5211
|
AnimationContainer,
|
|
5054
5212
|
{
|
|
5055
5213
|
positionMode,
|
|
5056
5214
|
offset,
|
|
5057
|
-
children: /* @__PURE__ */
|
|
5215
|
+
children: /* @__PURE__ */ jsx57("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
|
|
5058
5216
|
}
|
|
5059
5217
|
);
|
|
5060
5218
|
};
|
|
5061
|
-
Popup.states =
|
|
5062
|
-
Popup.options =
|
|
5219
|
+
Popup.states = states21;
|
|
5220
|
+
Popup.options = options17;
|
|
5063
5221
|
Popup.className = POPUP_CLASSNAME;
|
|
5064
|
-
Popup.defaultProps =
|
|
5222
|
+
Popup.defaultProps = defaultProps18;
|
|
5065
5223
|
|
|
5066
|
-
// src/
|
|
5067
|
-
import { Fragment as Fragment10, jsx as
|
|
5068
|
-
var
|
|
5069
|
-
var
|
|
5224
|
+
// src/dropdownlist/dropdownlist.spec.tsx
|
|
5225
|
+
import { Fragment as Fragment10, jsx as jsx58, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
5226
|
+
var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
|
|
5227
|
+
var states22 = [
|
|
5070
5228
|
States.hover,
|
|
5071
5229
|
States.focus,
|
|
5072
5230
|
States.valid,
|
|
5073
5231
|
States.invalid,
|
|
5074
5232
|
States.required,
|
|
5075
|
-
States.disabled
|
|
5233
|
+
States.disabled,
|
|
5234
|
+
States.loading,
|
|
5235
|
+
States.readonly
|
|
5076
5236
|
];
|
|
5077
|
-
var
|
|
5237
|
+
var options18 = {
|
|
5078
5238
|
size: [Size.small, Size.medium, Size.large],
|
|
5079
5239
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
5080
5240
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
5081
5241
|
};
|
|
5082
|
-
var
|
|
5242
|
+
var defaultProps19 = {
|
|
5243
|
+
showValue: true,
|
|
5083
5244
|
arrowIconName: "caret-alt-down",
|
|
5084
|
-
size:
|
|
5085
|
-
rounded:
|
|
5086
|
-
fillMode:
|
|
5245
|
+
size: Size.medium,
|
|
5246
|
+
rounded: Roundness.medium,
|
|
5247
|
+
fillMode: FillMode.solid
|
|
5087
5248
|
};
|
|
5088
|
-
var
|
|
5249
|
+
var DropdownList = (props) => {
|
|
5089
5250
|
const {
|
|
5251
|
+
valueIconName,
|
|
5252
|
+
arrowIconName = defaultProps19.arrowIconName,
|
|
5090
5253
|
prefix,
|
|
5091
5254
|
suffix,
|
|
5092
5255
|
value,
|
|
@@ -5099,15 +5262,16 @@ var ColorPicker = (props) => {
|
|
|
5099
5262
|
valid,
|
|
5100
5263
|
invalid,
|
|
5101
5264
|
required,
|
|
5265
|
+
loading,
|
|
5102
5266
|
disabled,
|
|
5103
|
-
|
|
5104
|
-
|
|
5267
|
+
readonly,
|
|
5268
|
+
showValue = defaultProps19.showValue,
|
|
5105
5269
|
popup,
|
|
5106
5270
|
opened,
|
|
5107
5271
|
...other
|
|
5108
5272
|
} = props;
|
|
5109
|
-
return /* @__PURE__ */
|
|
5110
|
-
/* @__PURE__ */
|
|
5273
|
+
return /* @__PURE__ */ jsxs11(Fragment10, { children: [
|
|
5274
|
+
/* @__PURE__ */ jsxs11(
|
|
5111
5275
|
Picker,
|
|
5112
5276
|
{
|
|
5113
5277
|
...other,
|
|
@@ -5119,572 +5283,181 @@ var ColorPicker = (props) => {
|
|
|
5119
5283
|
valid,
|
|
5120
5284
|
invalid,
|
|
5121
5285
|
required,
|
|
5286
|
+
loading,
|
|
5122
5287
|
disabled,
|
|
5288
|
+
readonly,
|
|
5123
5289
|
className: classNames(
|
|
5124
5290
|
props.className,
|
|
5125
|
-
|
|
5126
|
-
|
|
5291
|
+
DROPDOWNLIST_CLASSNAME,
|
|
5292
|
+
{
|
|
5293
|
+
"k-icon-picker": !showValue && valueIconName
|
|
5294
|
+
}
|
|
5127
5295
|
),
|
|
5128
5296
|
children: [
|
|
5129
|
-
/* @__PURE__ */
|
|
5130
|
-
/* @__PURE__ */
|
|
5297
|
+
/* @__PURE__ */ jsx58(InputPrefix, { children: prefix }),
|
|
5298
|
+
/* @__PURE__ */ jsx58(
|
|
5131
5299
|
InputInnerSpan,
|
|
5132
5300
|
{
|
|
5133
5301
|
placeholder,
|
|
5134
5302
|
value,
|
|
5135
|
-
showValue
|
|
5136
|
-
valueIcon: /* @__PURE__ */ jsx31(
|
|
5137
|
-
ColorPreview,
|
|
5138
|
-
{
|
|
5139
|
-
className: "k-value-icon",
|
|
5140
|
-
color: value,
|
|
5141
|
-
iconName: valueIconName
|
|
5142
|
-
}
|
|
5143
|
-
),
|
|
5303
|
+
showValue,
|
|
5144
5304
|
valueIconName
|
|
5145
5305
|
}
|
|
5146
5306
|
),
|
|
5147
|
-
/* @__PURE__ */
|
|
5148
|
-
|
|
5307
|
+
/* @__PURE__ */ jsx58(
|
|
5308
|
+
InputValidationIcon,
|
|
5309
|
+
{
|
|
5310
|
+
valid,
|
|
5311
|
+
invalid,
|
|
5312
|
+
loading,
|
|
5313
|
+
disabled
|
|
5314
|
+
}
|
|
5315
|
+
),
|
|
5316
|
+
/* @__PURE__ */ jsx58(
|
|
5317
|
+
InputLoadingIcon,
|
|
5318
|
+
{
|
|
5319
|
+
loading,
|
|
5320
|
+
disabled
|
|
5321
|
+
}
|
|
5322
|
+
),
|
|
5323
|
+
/* @__PURE__ */ jsx58(InputSuffix, { children: suffix }),
|
|
5324
|
+
/* @__PURE__ */ jsx58(
|
|
5149
5325
|
Button,
|
|
5150
5326
|
{
|
|
5151
5327
|
className: "k-input-button",
|
|
5152
5328
|
icon: arrowIconName,
|
|
5153
5329
|
rounded: null,
|
|
5154
|
-
size,
|
|
5155
|
-
fillMode
|
|
5330
|
+
size: props.size,
|
|
5331
|
+
fillMode: props.fillMode
|
|
5156
5332
|
}
|
|
5157
5333
|
)
|
|
5158
5334
|
]
|
|
5159
5335
|
}
|
|
5160
5336
|
),
|
|
5161
|
-
opened && popup && /* @__PURE__ */
|
|
5337
|
+
opened && popup && /* @__PURE__ */ jsx58(Popup, { className: "k-list-container k-dropdownlist-popup", children: popup })
|
|
5162
5338
|
] });
|
|
5163
5339
|
};
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5340
|
+
DropdownList.states = states22;
|
|
5341
|
+
DropdownList.options = options18;
|
|
5342
|
+
DropdownList.className = DROPDOWNLIST_CLASSNAME;
|
|
5343
|
+
DropdownList.defaultProps = defaultProps19;
|
|
5168
5344
|
|
|
5169
|
-
// src/
|
|
5170
|
-
import { jsx as
|
|
5345
|
+
// src/dropdownlist/templates/dropdownlist-normal.tsx
|
|
5346
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
5171
5347
|
|
|
5172
|
-
// src/
|
|
5173
|
-
import { jsx as
|
|
5174
|
-
var
|
|
5175
|
-
var
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5348
|
+
// src/nodata/nodata.tsx
|
|
5349
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
5350
|
+
var className10 = `k-nodata`;
|
|
5351
|
+
var NoData = (props) => /* @__PURE__ */ jsx60("span", { className: classNames(className10, props.className), children: props.children });
|
|
5352
|
+
|
|
5353
|
+
// src/list/list.spec.tsx
|
|
5354
|
+
import { jsx as jsx61, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
5355
|
+
var LIST_CLASSNAME = `k-list`;
|
|
5356
|
+
var states23 = [];
|
|
5357
|
+
var options19 = {
|
|
5358
|
+
size: [Size.small, Size.medium, Size.large]
|
|
5180
5359
|
};
|
|
5181
|
-
var
|
|
5360
|
+
var defaultProps20 = {
|
|
5361
|
+
size: Size.medium
|
|
5362
|
+
};
|
|
5363
|
+
var List = (props) => {
|
|
5182
5364
|
const {
|
|
5183
|
-
|
|
5184
|
-
|
|
5365
|
+
size = defaultProps20.size,
|
|
5366
|
+
virtualization,
|
|
5367
|
+
children,
|
|
5368
|
+
optionLabel,
|
|
5185
5369
|
...other
|
|
5186
5370
|
} = props;
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
}
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
};
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
disabled = defaultProps18.disabled,
|
|
5235
|
-
handlePosition = defaultProps18.handlePosition,
|
|
5236
|
-
showButtons = defaultProps18.showButtons,
|
|
5237
|
-
showTicks = defaultProps18.showTicks,
|
|
5238
|
-
hover,
|
|
5239
|
-
focus,
|
|
5240
|
-
active,
|
|
5241
|
-
trackStyle,
|
|
5242
|
-
dir
|
|
5243
|
-
} = props;
|
|
5244
|
-
let iconIncrease;
|
|
5245
|
-
let iconDecrease;
|
|
5246
|
-
if (orientation === "horizontal") {
|
|
5247
|
-
iconIncrease = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
|
|
5248
|
-
iconDecrease = dir === "rtl" ? "caret-alt-right" : "caret-alt-left";
|
|
5249
|
-
} else if (orientation === "vertical") {
|
|
5250
|
-
iconIncrease = "caret-alt-up";
|
|
5251
|
-
iconDecrease = "caret-alt-down";
|
|
5252
|
-
}
|
|
5253
|
-
return /* @__PURE__ */ jsxs10("div", { className: classNames(
|
|
5254
|
-
SLIDER_CLASSNAME,
|
|
5255
|
-
props.className,
|
|
5256
|
-
stateClassNames(SLIDER_CLASSNAME, {
|
|
5257
|
-
readonly,
|
|
5258
|
-
disabled
|
|
5259
|
-
}),
|
|
5260
|
-
{
|
|
5261
|
-
[`k-slider-${orientation}`]: orientation,
|
|
5262
|
-
"k-colorgradient-slider": type === "gradient",
|
|
5263
|
-
"k-range-slider": type === "range"
|
|
5264
|
-
}
|
|
5265
|
-
), dir, children: [
|
|
5266
|
-
showButtons && /* @__PURE__ */ jsx34(Button, { className: "k-button-decrease", rounded: "full", icon: iconDecrease }),
|
|
5267
|
-
/* @__PURE__ */ jsxs10("div", { className: "k-slider-track-wrap", children: [
|
|
5268
|
-
showTicks && /* @__PURE__ */ jsx34("ul", { className: "k-reset k-slider-items", children: props.children }),
|
|
5269
|
-
/* @__PURE__ */ jsxs10("div", { className: "k-slider-track", style: trackStyle, children: [
|
|
5270
|
-
/* @__PURE__ */ jsx34("div", { className: "k-slider-selection" }),
|
|
5271
|
-
type === "range" && /* @__PURE__ */ jsx34("span", { className: classNames(
|
|
5272
|
-
"k-draghandle",
|
|
5273
|
-
"k-draghandle-start",
|
|
5274
|
-
stateClassNames(SLIDER_CLASSNAME, {
|
|
5275
|
-
hover,
|
|
5276
|
-
focus,
|
|
5277
|
-
active
|
|
5278
|
-
})
|
|
5279
|
-
) }),
|
|
5280
|
-
/* @__PURE__ */ jsx34("span", { className: classNames(
|
|
5281
|
-
"k-draghandle",
|
|
5282
|
-
`k-draghandle-${handlePosition}`,
|
|
5283
|
-
stateClassNames(SLIDER_CLASSNAME, {
|
|
5284
|
-
hover,
|
|
5285
|
-
focus,
|
|
5286
|
-
active
|
|
5287
|
-
})
|
|
5288
|
-
) })
|
|
5289
|
-
] })
|
|
5290
|
-
] }),
|
|
5291
|
-
showButtons && /* @__PURE__ */ jsx34(Button, { className: "k-button-increase", rounded: "full", icon: iconIncrease })
|
|
5292
|
-
] });
|
|
5293
|
-
};
|
|
5294
|
-
Slider.states = states19;
|
|
5295
|
-
Slider.options = options18;
|
|
5296
|
-
Slider.className = SLIDER_CLASSNAME;
|
|
5297
|
-
Slider.defaultProps = defaultProps18;
|
|
5298
|
-
|
|
5299
|
-
// src/slider/slider-tick.tsx
|
|
5300
|
-
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
5301
|
-
var SLIDER_TICK_CLASSNAME = "k-tick";
|
|
5302
|
-
var states20 = [];
|
|
5303
|
-
var options19 = {};
|
|
5304
|
-
var defaultProps19 = {
|
|
5305
|
-
label: false
|
|
5306
|
-
};
|
|
5307
|
-
var SliderTick = (props) => {
|
|
5308
|
-
const {
|
|
5309
|
-
style,
|
|
5310
|
-
label = defaultProps19.label,
|
|
5311
|
-
orientation,
|
|
5312
|
-
large,
|
|
5313
|
-
text
|
|
5314
|
-
} = props;
|
|
5315
|
-
return /* @__PURE__ */ jsx35("li", { className: classNames(
|
|
5316
|
-
props.className,
|
|
5317
|
-
SLIDER_TICK_CLASSNAME,
|
|
5318
|
-
{
|
|
5319
|
-
[`k-tick-${orientation}`]: orientation,
|
|
5320
|
-
"k-tick-large": large
|
|
5321
|
-
}
|
|
5322
|
-
), style, children: label && /* @__PURE__ */ jsx35("span", { className: "k-label", children: text }) });
|
|
5323
|
-
};
|
|
5324
|
-
SliderTick.states = states20;
|
|
5325
|
-
SliderTick.options = options19;
|
|
5326
|
-
SliderTick.className = SLIDER_TICK_CLASSNAME;
|
|
5327
|
-
SliderTick.defaultProps = defaultProps19;
|
|
5328
|
-
|
|
5329
|
-
// src/slider/templates/slider-normal.tsx
|
|
5330
|
-
import { Fragment as Fragment11, jsx as jsx36, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
5331
|
-
|
|
5332
|
-
// src/slider/templates/slider-vertical.tsx
|
|
5333
|
-
import { Fragment as Fragment12, jsx as jsx37, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
5334
|
-
|
|
5335
|
-
// src/slider/templates/slider-range.tsx
|
|
5336
|
-
import { Fragment as Fragment13, jsx as jsx38, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
5337
|
-
|
|
5338
|
-
// src/slider/templates/slider-range-vertical.tsx
|
|
5339
|
-
import { Fragment as Fragment14, jsx as jsx39, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
5340
|
-
|
|
5341
|
-
// src/slider/templates/slider-gradient.tsx
|
|
5342
|
-
import { Fragment as Fragment15, jsx as jsx40, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
5343
|
-
|
|
5344
|
-
// src/slider/templates/slider-gradient-vertical.tsx
|
|
5345
|
-
import { Fragment as Fragment16, jsx as jsx41, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
5346
|
-
var SliderGradientVertical = (props) => /* @__PURE__ */ jsx41(
|
|
5347
|
-
Slider,
|
|
5348
|
-
{
|
|
5349
|
-
type: "gradient",
|
|
5350
|
-
orientation: "vertical",
|
|
5351
|
-
showButtons: false,
|
|
5352
|
-
showTicks: false,
|
|
5353
|
-
children: /* @__PURE__ */ jsxs16(Fragment16, { children: [
|
|
5354
|
-
/* @__PURE__ */ jsx41(SliderTick, { label: true, large: true, text: "0" }),
|
|
5355
|
-
/* @__PURE__ */ jsx41(SliderTick, {}),
|
|
5356
|
-
/* @__PURE__ */ jsx41(SliderTick, {}),
|
|
5357
|
-
/* @__PURE__ */ jsx41(SliderTick, {}),
|
|
5358
|
-
/* @__PURE__ */ jsx41(SliderTick, {}),
|
|
5359
|
-
/* @__PURE__ */ jsx41(SliderTick, { label: true, large: true, text: "5" }),
|
|
5360
|
-
/* @__PURE__ */ jsx41(SliderTick, {}),
|
|
5361
|
-
/* @__PURE__ */ jsx41(SliderTick, {}),
|
|
5362
|
-
/* @__PURE__ */ jsx41(SliderTick, {}),
|
|
5363
|
-
/* @__PURE__ */ jsx41(SliderTick, {}),
|
|
5364
|
-
/* @__PURE__ */ jsx41(SliderTick, { label: true, large: true, text: "10" })
|
|
5365
|
-
] }),
|
|
5366
|
-
...props
|
|
5371
|
+
let listHeader;
|
|
5372
|
+
let listGroup;
|
|
5373
|
+
let listContent;
|
|
5374
|
+
const listChildren = [];
|
|
5375
|
+
if (children) {
|
|
5376
|
+
children.map((child, index) => {
|
|
5377
|
+
if (child.type === ListGroup) {
|
|
5378
|
+
if (child.props.root === true) {
|
|
5379
|
+
listHeader = child.props.label;
|
|
5380
|
+
child.props.children.map((optChild, index2) => {
|
|
5381
|
+
listChildren.push(
|
|
5382
|
+
/* @__PURE__ */ jsx61(
|
|
5383
|
+
ListItem,
|
|
5384
|
+
{
|
|
5385
|
+
...optChild.props
|
|
5386
|
+
},
|
|
5387
|
+
`optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
5388
|
+
)
|
|
5389
|
+
);
|
|
5390
|
+
});
|
|
5391
|
+
} else {
|
|
5392
|
+
child.props.children.forEach((optChild, index2) => {
|
|
5393
|
+
let groupLabel = "";
|
|
5394
|
+
if (index2 === 0) {
|
|
5395
|
+
groupLabel = child.props.label;
|
|
5396
|
+
}
|
|
5397
|
+
listChildren.push(
|
|
5398
|
+
/* @__PURE__ */ jsx61(
|
|
5399
|
+
ListItem,
|
|
5400
|
+
{
|
|
5401
|
+
className: index2 === 0 ? "k-first" : "",
|
|
5402
|
+
...optChild.props,
|
|
5403
|
+
groupLabel
|
|
5404
|
+
},
|
|
5405
|
+
`groupLabel-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
5406
|
+
)
|
|
5407
|
+
);
|
|
5408
|
+
});
|
|
5409
|
+
}
|
|
5410
|
+
listGroup = /* @__PURE__ */ jsx61(ListGroup, { label: listHeader, virtualization, children: listChildren });
|
|
5411
|
+
} else if (child.type === ListItem) {
|
|
5412
|
+
listChildren.push(/* @__PURE__ */ jsx61(ListItem, { ...child.props }, `${child.type}-${index}`));
|
|
5413
|
+
listContent = /* @__PURE__ */ jsx61(ListContent, { virtualization, children: listChildren });
|
|
5414
|
+
}
|
|
5415
|
+
});
|
|
5416
|
+
} else {
|
|
5417
|
+
listContent = /* @__PURE__ */ jsx61(NoData, { children: "No data found." });
|
|
5367
5418
|
}
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
// src/spinbutton/spinbutton.spec.tsx
|
|
5371
|
-
import { jsx as jsx42, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
5372
|
-
var SPINBUTTON_CLASSNAME = `k-spin-button`;
|
|
5373
|
-
var states21 = [];
|
|
5374
|
-
var options20 = {
|
|
5375
|
-
size: [Size.small, Size.medium, Size.large],
|
|
5376
|
-
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
|
|
5377
|
-
};
|
|
5378
|
-
var defaultProps20 = {
|
|
5379
|
-
size: Size.medium,
|
|
5380
|
-
fillMode: FillMode.solid
|
|
5381
|
-
};
|
|
5382
|
-
var SpinButton = (props) => {
|
|
5383
|
-
const {
|
|
5384
|
-
size = defaultProps20.size,
|
|
5385
|
-
fillMode = defaultProps20.fillMode,
|
|
5386
|
-
...other
|
|
5387
|
-
} = props;
|
|
5388
|
-
return /* @__PURE__ */ jsxs17(
|
|
5389
|
-
"span",
|
|
5419
|
+
return /* @__PURE__ */ jsxs12(
|
|
5420
|
+
"div",
|
|
5390
5421
|
{
|
|
5391
5422
|
...other,
|
|
5392
5423
|
className: classNames(
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
{
|
|
5410
|
-
className: "k-spinner-decrease",
|
|
5411
|
-
icon: "caret-alt-down",
|
|
5412
|
-
rounded: null,
|
|
5413
|
-
size,
|
|
5414
|
-
fillMode
|
|
5415
|
-
}
|
|
5416
|
-
)
|
|
5417
|
-
]
|
|
5418
|
-
}
|
|
5419
|
-
);
|
|
5420
|
-
};
|
|
5421
|
-
SpinButton.states = states21;
|
|
5422
|
-
SpinButton.options = options20;
|
|
5423
|
-
SpinButton.className = SPINBUTTON_CLASSNAME;
|
|
5424
|
-
SpinButton.defaultProps = defaultProps20;
|
|
5425
|
-
|
|
5426
|
-
// src/numerictextbox/numerictextbox.spec.tsx
|
|
5427
|
-
import { Fragment as Fragment17, jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
5428
|
-
var NUMERICTEXTBOX_CLASSNAME = `k-numerictextbox`;
|
|
5429
|
-
var states22 = [
|
|
5430
|
-
States.hover,
|
|
5431
|
-
States.focus,
|
|
5432
|
-
States.valid,
|
|
5433
|
-
States.invalid,
|
|
5434
|
-
States.loading,
|
|
5435
|
-
States.required,
|
|
5436
|
-
States.disabled,
|
|
5437
|
-
States.readonly
|
|
5438
|
-
];
|
|
5439
|
-
var options21 = {
|
|
5440
|
-
size: [Size.small, Size.medium, Size.large],
|
|
5441
|
-
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
5442
|
-
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
5443
|
-
};
|
|
5444
|
-
var defaultProps21 = {
|
|
5445
|
-
showSpinButton: true,
|
|
5446
|
-
showClearButton: true,
|
|
5447
|
-
size: Input.defaultProps.size,
|
|
5448
|
-
rounded: Input.defaultProps.rounded,
|
|
5449
|
-
fillMode: Input.defaultProps.fillMode
|
|
5450
|
-
};
|
|
5451
|
-
var NumericTextbox = (props) => {
|
|
5452
|
-
const {
|
|
5453
|
-
prefix,
|
|
5454
|
-
suffix,
|
|
5455
|
-
value,
|
|
5456
|
-
placeholder,
|
|
5457
|
-
size,
|
|
5458
|
-
rounded,
|
|
5459
|
-
fillMode,
|
|
5460
|
-
hover,
|
|
5461
|
-
focus,
|
|
5462
|
-
valid,
|
|
5463
|
-
invalid,
|
|
5464
|
-
required,
|
|
5465
|
-
loading,
|
|
5466
|
-
disabled,
|
|
5467
|
-
readonly,
|
|
5468
|
-
showClearButton = defaultProps21.showClearButton,
|
|
5469
|
-
showSpinButton = defaultProps21.showSpinButton,
|
|
5470
|
-
...other
|
|
5471
|
-
} = props;
|
|
5472
|
-
return /* @__PURE__ */ jsxs18(
|
|
5473
|
-
Input,
|
|
5474
|
-
{
|
|
5475
|
-
...other,
|
|
5476
|
-
size,
|
|
5477
|
-
rounded,
|
|
5478
|
-
fillMode,
|
|
5479
|
-
hover,
|
|
5480
|
-
focus,
|
|
5481
|
-
valid,
|
|
5482
|
-
invalid,
|
|
5483
|
-
required,
|
|
5484
|
-
loading,
|
|
5485
|
-
disabled,
|
|
5486
|
-
readonly,
|
|
5487
|
-
className: classNames(props.className, NUMERICTEXTBOX_CLASSNAME),
|
|
5488
|
-
children: [
|
|
5489
|
-
prefix && /* @__PURE__ */ jsxs18(Fragment17, { children: [
|
|
5490
|
-
/* @__PURE__ */ jsx43(InputPrefix, { children: prefix }),
|
|
5491
|
-
/* @__PURE__ */ jsx43(InputSeparator, {})
|
|
5492
|
-
] }),
|
|
5493
|
-
/* @__PURE__ */ jsx43(InputInnerInput, { placeholder, value }),
|
|
5494
|
-
/* @__PURE__ */ jsx43(
|
|
5495
|
-
InputValidationIcon,
|
|
5496
|
-
{
|
|
5497
|
-
valid,
|
|
5498
|
-
invalid,
|
|
5499
|
-
loading,
|
|
5500
|
-
disabled
|
|
5501
|
-
}
|
|
5502
|
-
),
|
|
5503
|
-
/* @__PURE__ */ jsx43(
|
|
5504
|
-
InputLoadingIcon,
|
|
5505
|
-
{
|
|
5506
|
-
loading,
|
|
5507
|
-
disabled
|
|
5508
|
-
}
|
|
5509
|
-
),
|
|
5510
|
-
showClearButton && /* @__PURE__ */ jsx43(
|
|
5511
|
-
InputClearValue,
|
|
5512
|
-
{
|
|
5513
|
-
loading,
|
|
5514
|
-
disabled,
|
|
5515
|
-
readonly,
|
|
5516
|
-
value
|
|
5517
|
-
}
|
|
5518
|
-
),
|
|
5519
|
-
suffix && /* @__PURE__ */ jsxs18(Fragment17, { children: [
|
|
5520
|
-
/* @__PURE__ */ jsx43(InputSeparator, {}),
|
|
5521
|
-
/* @__PURE__ */ jsx43(InputSuffix, { children: suffix })
|
|
5522
|
-
] }),
|
|
5523
|
-
showSpinButton && /* @__PURE__ */ jsx43(
|
|
5524
|
-
SpinButton,
|
|
5525
|
-
{
|
|
5526
|
-
className: "k-input-spinner",
|
|
5527
|
-
size,
|
|
5528
|
-
fillMode
|
|
5529
|
-
}
|
|
5530
|
-
)
|
|
5531
|
-
]
|
|
5532
|
-
}
|
|
5533
|
-
);
|
|
5534
|
-
};
|
|
5535
|
-
NumericTextbox.states = states22;
|
|
5536
|
-
NumericTextbox.options = options21;
|
|
5537
|
-
NumericTextbox.className = NUMERICTEXTBOX_CLASSNAME;
|
|
5538
|
-
NumericTextbox.defaultProps = defaultProps21;
|
|
5539
|
-
|
|
5540
|
-
// src/numerictextbox/templates/numerictextbox-normal.tsx
|
|
5541
|
-
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
5542
|
-
|
|
5543
|
-
// src/dropdownlist/dropdownlist.spec.tsx
|
|
5544
|
-
import { Fragment as Fragment18, jsx as jsx45, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5545
|
-
var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
|
|
5546
|
-
var states23 = [
|
|
5547
|
-
States.hover,
|
|
5548
|
-
States.focus,
|
|
5549
|
-
States.valid,
|
|
5550
|
-
States.invalid,
|
|
5551
|
-
States.required,
|
|
5552
|
-
States.disabled,
|
|
5553
|
-
States.loading,
|
|
5554
|
-
States.readonly
|
|
5555
|
-
];
|
|
5556
|
-
var options22 = {
|
|
5557
|
-
size: [Size.small, Size.medium, Size.large],
|
|
5558
|
-
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
5559
|
-
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
5560
|
-
};
|
|
5561
|
-
var defaultProps22 = {
|
|
5562
|
-
showValue: true,
|
|
5563
|
-
arrowIconName: "caret-alt-down",
|
|
5564
|
-
size: Size.medium,
|
|
5565
|
-
rounded: Roundness.medium,
|
|
5566
|
-
fillMode: FillMode.solid
|
|
5567
|
-
};
|
|
5568
|
-
var DropdownList = (props) => {
|
|
5569
|
-
const {
|
|
5570
|
-
valueIconName,
|
|
5571
|
-
arrowIconName = defaultProps22.arrowIconName,
|
|
5572
|
-
prefix,
|
|
5573
|
-
suffix,
|
|
5574
|
-
value,
|
|
5575
|
-
placeholder,
|
|
5576
|
-
size,
|
|
5577
|
-
rounded,
|
|
5578
|
-
fillMode,
|
|
5579
|
-
hover,
|
|
5580
|
-
focus,
|
|
5581
|
-
valid,
|
|
5582
|
-
invalid,
|
|
5583
|
-
required,
|
|
5584
|
-
loading,
|
|
5585
|
-
disabled,
|
|
5586
|
-
readonly,
|
|
5587
|
-
showValue = defaultProps22.showValue,
|
|
5588
|
-
popup,
|
|
5589
|
-
opened,
|
|
5590
|
-
...other
|
|
5591
|
-
} = props;
|
|
5592
|
-
return /* @__PURE__ */ jsxs19(Fragment18, { children: [
|
|
5593
|
-
/* @__PURE__ */ jsxs19(
|
|
5594
|
-
Picker,
|
|
5595
|
-
{
|
|
5596
|
-
...other,
|
|
5597
|
-
size,
|
|
5598
|
-
rounded,
|
|
5599
|
-
fillMode,
|
|
5600
|
-
hover,
|
|
5601
|
-
focus,
|
|
5602
|
-
valid,
|
|
5603
|
-
invalid,
|
|
5604
|
-
required,
|
|
5605
|
-
loading,
|
|
5606
|
-
disabled,
|
|
5607
|
-
readonly,
|
|
5608
|
-
className: classNames(
|
|
5609
|
-
props.className,
|
|
5610
|
-
DROPDOWNLIST_CLASSNAME,
|
|
5611
|
-
{
|
|
5612
|
-
"k-icon-picker": !showValue && valueIconName
|
|
5613
|
-
}
|
|
5614
|
-
),
|
|
5615
|
-
children: [
|
|
5616
|
-
/* @__PURE__ */ jsx45(InputPrefix, { children: prefix }),
|
|
5617
|
-
/* @__PURE__ */ jsx45(
|
|
5618
|
-
InputInnerSpan,
|
|
5619
|
-
{
|
|
5620
|
-
placeholder,
|
|
5621
|
-
value,
|
|
5622
|
-
showValue,
|
|
5623
|
-
valueIconName
|
|
5624
|
-
}
|
|
5625
|
-
),
|
|
5626
|
-
/* @__PURE__ */ jsx45(
|
|
5627
|
-
InputValidationIcon,
|
|
5628
|
-
{
|
|
5629
|
-
valid,
|
|
5630
|
-
invalid,
|
|
5631
|
-
loading,
|
|
5632
|
-
disabled
|
|
5633
|
-
}
|
|
5634
|
-
),
|
|
5635
|
-
/* @__PURE__ */ jsx45(
|
|
5636
|
-
InputLoadingIcon,
|
|
5637
|
-
{
|
|
5638
|
-
loading,
|
|
5639
|
-
disabled
|
|
5640
|
-
}
|
|
5641
|
-
),
|
|
5642
|
-
/* @__PURE__ */ jsx45(InputSuffix, { children: suffix }),
|
|
5643
|
-
/* @__PURE__ */ jsx45(
|
|
5644
|
-
Button,
|
|
5645
|
-
{
|
|
5646
|
-
className: "k-input-button",
|
|
5647
|
-
icon: arrowIconName,
|
|
5648
|
-
rounded: null,
|
|
5649
|
-
size: props.size,
|
|
5650
|
-
fillMode: props.fillMode
|
|
5651
|
-
}
|
|
5652
|
-
)
|
|
5653
|
-
]
|
|
5654
|
-
}
|
|
5655
|
-
),
|
|
5656
|
-
opened && popup && /* @__PURE__ */ jsx45(Popup, { className: "k-list-container k-dropdownlist-popup", children: popup })
|
|
5657
|
-
] });
|
|
5424
|
+
props.className,
|
|
5425
|
+
LIST_CLASSNAME,
|
|
5426
|
+
optionClassNames(LIST_CLASSNAME, {
|
|
5427
|
+
size
|
|
5428
|
+
}),
|
|
5429
|
+
{
|
|
5430
|
+
["k-virtual-list"]: virtualization
|
|
5431
|
+
}
|
|
5432
|
+
),
|
|
5433
|
+
children: [
|
|
5434
|
+
optionLabel,
|
|
5435
|
+
listGroup,
|
|
5436
|
+
listContent
|
|
5437
|
+
]
|
|
5438
|
+
}
|
|
5439
|
+
);
|
|
5658
5440
|
};
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
// src/dropdownlist/templates/dropdownlist-normal.tsx
|
|
5665
|
-
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
5666
|
-
|
|
5667
|
-
// src/nodata/nodata.tsx
|
|
5668
|
-
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
5669
|
-
var className10 = `k-nodata`;
|
|
5670
|
-
var NoData = (props) => /* @__PURE__ */ jsx47("span", { className: classNames(className10, props.className), children: props.children });
|
|
5441
|
+
List.states = states23;
|
|
5442
|
+
List.options = options19;
|
|
5443
|
+
List.className = LIST_CLASSNAME;
|
|
5444
|
+
List.defaultProps = defaultProps20;
|
|
5671
5445
|
|
|
5672
|
-
// src/list/list.spec.tsx
|
|
5673
|
-
import { jsx as
|
|
5674
|
-
var
|
|
5446
|
+
// src/list/list-angular.spec.tsx
|
|
5447
|
+
import { jsx as jsx62, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
5448
|
+
var LISTANGULAR_CLASSNAME = `k-list`;
|
|
5675
5449
|
var states24 = [];
|
|
5676
|
-
var
|
|
5450
|
+
var options20 = {
|
|
5677
5451
|
size: [Size.small, Size.medium, Size.large]
|
|
5678
5452
|
};
|
|
5679
|
-
var
|
|
5453
|
+
var defaultProps21 = {
|
|
5680
5454
|
size: Size.medium
|
|
5681
5455
|
};
|
|
5682
|
-
var
|
|
5456
|
+
var ListAngular = (props) => {
|
|
5683
5457
|
const {
|
|
5684
|
-
size =
|
|
5458
|
+
size = defaultProps21.size,
|
|
5685
5459
|
virtualization,
|
|
5686
5460
|
children,
|
|
5687
|
-
optionLabel,
|
|
5688
5461
|
...other
|
|
5689
5462
|
} = props;
|
|
5690
5463
|
let listHeader;
|
|
@@ -5698,7 +5471,7 @@ var List = (props) => {
|
|
|
5698
5471
|
listHeader = child.props.label;
|
|
5699
5472
|
child.props.children.map((optChild, index2) => {
|
|
5700
5473
|
listChildren.push(
|
|
5701
|
-
/* @__PURE__ */
|
|
5474
|
+
/* @__PURE__ */ jsx62(
|
|
5702
5475
|
ListItem,
|
|
5703
5476
|
{
|
|
5704
5477
|
...optChild.props
|
|
@@ -5708,457 +5481,1211 @@ var List = (props) => {
|
|
|
5708
5481
|
);
|
|
5709
5482
|
});
|
|
5710
5483
|
} else {
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5484
|
+
listChildren.push(
|
|
5485
|
+
/* @__PURE__ */ jsx62(
|
|
5486
|
+
ListGroupItem,
|
|
5487
|
+
{
|
|
5488
|
+
...child.props,
|
|
5489
|
+
children: child.props.label
|
|
5490
|
+
},
|
|
5491
|
+
`listChild-${index}`
|
|
5492
|
+
)
|
|
5493
|
+
);
|
|
5494
|
+
child.props.children.map((optChild, index2) => {
|
|
5716
5495
|
listChildren.push(
|
|
5717
|
-
/* @__PURE__ */
|
|
5496
|
+
/* @__PURE__ */ jsx62(
|
|
5718
5497
|
ListItem,
|
|
5719
5498
|
{
|
|
5720
|
-
|
|
5721
|
-
...optChild.props,
|
|
5722
|
-
groupLabel
|
|
5499
|
+
...optChild.props
|
|
5723
5500
|
},
|
|
5724
|
-
`
|
|
5501
|
+
`fwOptChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
5725
5502
|
)
|
|
5726
5503
|
);
|
|
5727
5504
|
});
|
|
5728
5505
|
}
|
|
5729
|
-
listGroup = /* @__PURE__ */
|
|
5506
|
+
listGroup = /* @__PURE__ */ jsx62(ListGroup, { label: listHeader, virtualization, children: listChildren });
|
|
5730
5507
|
} else if (child.type === ListItem) {
|
|
5731
|
-
listChildren.push(/* @__PURE__ */
|
|
5732
|
-
listContent = /* @__PURE__ */
|
|
5508
|
+
listChildren.push(/* @__PURE__ */ jsx62(ListItem, { ...child.props }, `${child.type}-${index}`));
|
|
5509
|
+
listContent = /* @__PURE__ */ jsx62(ListContent, { virtualization, children: listChildren });
|
|
5733
5510
|
}
|
|
5734
5511
|
});
|
|
5735
5512
|
} else {
|
|
5736
|
-
listContent = /* @__PURE__ */
|
|
5513
|
+
listContent = /* @__PURE__ */ jsx62(NoData, { children: "No data found." });
|
|
5737
5514
|
}
|
|
5738
|
-
return /* @__PURE__ */
|
|
5515
|
+
return /* @__PURE__ */ jsxs13(
|
|
5516
|
+
"div",
|
|
5517
|
+
{
|
|
5518
|
+
...other,
|
|
5519
|
+
className: classNames(
|
|
5520
|
+
props.className,
|
|
5521
|
+
LISTANGULAR_CLASSNAME,
|
|
5522
|
+
optionClassNames(LISTANGULAR_CLASSNAME, {
|
|
5523
|
+
size
|
|
5524
|
+
}),
|
|
5525
|
+
{
|
|
5526
|
+
["k-virtual-list"]: virtualization
|
|
5527
|
+
}
|
|
5528
|
+
),
|
|
5529
|
+
children: [
|
|
5530
|
+
listGroup,
|
|
5531
|
+
listContent
|
|
5532
|
+
]
|
|
5533
|
+
}
|
|
5534
|
+
);
|
|
5535
|
+
};
|
|
5536
|
+
ListAngular.states = states24;
|
|
5537
|
+
ListAngular.options = options20;
|
|
5538
|
+
ListAngular.className = LISTANGULAR_CLASSNAME;
|
|
5539
|
+
ListAngular.defaultProps = defaultProps21;
|
|
5540
|
+
|
|
5541
|
+
// src/checkbox/checkbox.spec.tsx
|
|
5542
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
5543
|
+
var CHECKBOX_CLASSNAME = `k-checkbox`;
|
|
5544
|
+
var states25 = [
|
|
5545
|
+
States.hover,
|
|
5546
|
+
States.focus,
|
|
5547
|
+
States.valid,
|
|
5548
|
+
States.invalid,
|
|
5549
|
+
States.required,
|
|
5550
|
+
States.disabled,
|
|
5551
|
+
States.checked,
|
|
5552
|
+
States.indeterminate
|
|
5553
|
+
];
|
|
5554
|
+
var options21 = {
|
|
5555
|
+
size: [Size.small, Size.medium, Size.large],
|
|
5556
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
|
|
5557
|
+
};
|
|
5558
|
+
var defaultProps22 = {
|
|
5559
|
+
size: Size.medium,
|
|
5560
|
+
rounded: Roundness.medium
|
|
5561
|
+
};
|
|
5562
|
+
var Checkbox = (props) => {
|
|
5563
|
+
const {
|
|
5564
|
+
id,
|
|
5565
|
+
checked,
|
|
5566
|
+
indeterminate,
|
|
5567
|
+
hover,
|
|
5568
|
+
focus,
|
|
5569
|
+
disabled,
|
|
5570
|
+
invalid,
|
|
5571
|
+
valid,
|
|
5572
|
+
required,
|
|
5573
|
+
size = defaultProps22.size,
|
|
5574
|
+
rounded = defaultProps22.rounded,
|
|
5575
|
+
...other
|
|
5576
|
+
} = props;
|
|
5577
|
+
return /* @__PURE__ */ jsx63("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ jsx63(
|
|
5578
|
+
"input",
|
|
5579
|
+
{
|
|
5580
|
+
...other,
|
|
5581
|
+
id,
|
|
5582
|
+
type: "checkbox",
|
|
5583
|
+
checked,
|
|
5584
|
+
required,
|
|
5585
|
+
className: classNames(
|
|
5586
|
+
props.className,
|
|
5587
|
+
CHECKBOX_CLASSNAME,
|
|
5588
|
+
optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
|
|
5589
|
+
stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
|
|
5590
|
+
)
|
|
5591
|
+
}
|
|
5592
|
+
) });
|
|
5593
|
+
};
|
|
5594
|
+
Checkbox.states = states25;
|
|
5595
|
+
Checkbox.options = options21;
|
|
5596
|
+
Checkbox.className = CHECKBOX_CLASSNAME;
|
|
5597
|
+
Checkbox.defaultProps = defaultProps22;
|
|
5598
|
+
|
|
5599
|
+
// src/checkbox/checkbox-group.spec.tsx
|
|
5600
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
5601
|
+
var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
|
|
5602
|
+
var states26 = [];
|
|
5603
|
+
var options22 = {};
|
|
5604
|
+
var defaultProps23 = {
|
|
5605
|
+
layout: "vertical"
|
|
5606
|
+
};
|
|
5607
|
+
var CheckboxGroup = (props) => {
|
|
5608
|
+
const {
|
|
5609
|
+
layout = defaultProps23.layout,
|
|
5610
|
+
...other
|
|
5611
|
+
} = props;
|
|
5612
|
+
return /* @__PURE__ */ jsx64(
|
|
5613
|
+
"ul",
|
|
5614
|
+
{
|
|
5615
|
+
...other,
|
|
5616
|
+
className: classNames(
|
|
5617
|
+
props.className,
|
|
5618
|
+
CHECKBOXGROUP_CLASSNAME,
|
|
5619
|
+
{
|
|
5620
|
+
[`k-list-${layout}`]: layout
|
|
5621
|
+
}
|
|
5622
|
+
),
|
|
5623
|
+
children: props.children
|
|
5624
|
+
}
|
|
5625
|
+
);
|
|
5626
|
+
};
|
|
5627
|
+
CheckboxGroup.states = states26;
|
|
5628
|
+
CheckboxGroup.options = options22;
|
|
5629
|
+
CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
|
|
5630
|
+
CheckboxGroup.defaultProps = defaultProps23;
|
|
5631
|
+
|
|
5632
|
+
// src/checkbox/checkbox-item.spec.tsx
|
|
5633
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
5634
|
+
var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
|
|
5635
|
+
var states27 = [];
|
|
5636
|
+
var options23 = {};
|
|
5637
|
+
var defaultProps24 = {};
|
|
5638
|
+
var CheckboxItem = (props) => {
|
|
5639
|
+
const {
|
|
5640
|
+
...other
|
|
5641
|
+
} = props;
|
|
5642
|
+
return /* @__PURE__ */ jsx65(
|
|
5643
|
+
"li",
|
|
5644
|
+
{
|
|
5645
|
+
...other,
|
|
5646
|
+
className: classNames(
|
|
5647
|
+
props.className,
|
|
5648
|
+
CHECKBOXITEM_CLASSNAME
|
|
5649
|
+
),
|
|
5650
|
+
children: props.children
|
|
5651
|
+
}
|
|
5652
|
+
);
|
|
5653
|
+
};
|
|
5654
|
+
CheckboxItem.states = states27;
|
|
5655
|
+
CheckboxItem.options = options23;
|
|
5656
|
+
CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
|
|
5657
|
+
CheckboxItem.defaultProps = defaultProps24;
|
|
5658
|
+
|
|
5659
|
+
// src/checkbox/templates/checkbox-with-label-after.tsx
|
|
5660
|
+
import { Fragment as Fragment11, jsx as jsx66, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
5661
|
+
|
|
5662
|
+
// src/checkbox/templates/checkbox-with-label-before.tsx
|
|
5663
|
+
import { Fragment as Fragment12, jsx as jsx67, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
5664
|
+
|
|
5665
|
+
// src/checkbox/templates/checkbox-normal.tsx
|
|
5666
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
5667
|
+
|
|
5668
|
+
// src/list/list-item.spec.tsx
|
|
5669
|
+
import { jsx as jsx69, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
5670
|
+
var LISTITEM_CLASSNAME = `k-list-item`;
|
|
5671
|
+
var states28 = [
|
|
5672
|
+
States.hover,
|
|
5673
|
+
States.focus,
|
|
5674
|
+
States.selected,
|
|
5675
|
+
States.disabled
|
|
5676
|
+
];
|
|
5677
|
+
var options24 = {};
|
|
5678
|
+
var defaultProps25 = {};
|
|
5679
|
+
var ListItem = (props) => {
|
|
5680
|
+
const {
|
|
5681
|
+
text,
|
|
5682
|
+
groupLabel,
|
|
5683
|
+
showIcon,
|
|
5684
|
+
iconName,
|
|
5685
|
+
showCheckbox,
|
|
5686
|
+
checked,
|
|
5687
|
+
hover,
|
|
5688
|
+
focus,
|
|
5689
|
+
selected,
|
|
5690
|
+
disabled,
|
|
5691
|
+
...other
|
|
5692
|
+
} = props;
|
|
5693
|
+
const textOrChildren = text ? text : props.children;
|
|
5694
|
+
return /* @__PURE__ */ jsxs16(
|
|
5695
|
+
"li",
|
|
5696
|
+
{
|
|
5697
|
+
...other,
|
|
5698
|
+
className: classNames(
|
|
5699
|
+
props.className,
|
|
5700
|
+
LISTITEM_CLASSNAME,
|
|
5701
|
+
stateClassNames(LISTITEM_CLASSNAME, {
|
|
5702
|
+
hover,
|
|
5703
|
+
focus,
|
|
5704
|
+
disabled,
|
|
5705
|
+
selected
|
|
5706
|
+
})
|
|
5707
|
+
),
|
|
5708
|
+
children: [
|
|
5709
|
+
showCheckbox && /* @__PURE__ */ jsx69(Checkbox, { checked }),
|
|
5710
|
+
showIcon && /* @__PURE__ */ jsx69(Icon, { icon: iconName }),
|
|
5711
|
+
/* @__PURE__ */ jsx69("span", { className: "k-list-item-text", children: textOrChildren }),
|
|
5712
|
+
groupLabel && groupLabel !== "" && /* @__PURE__ */ jsx69("div", { className: "k-list-item-group-label", children: groupLabel })
|
|
5713
|
+
]
|
|
5714
|
+
}
|
|
5715
|
+
);
|
|
5716
|
+
};
|
|
5717
|
+
ListItem.states = states28;
|
|
5718
|
+
ListItem.options = options24;
|
|
5719
|
+
ListItem.className = LISTITEM_CLASSNAME;
|
|
5720
|
+
ListItem.defaultProps = defaultProps25;
|
|
5721
|
+
|
|
5722
|
+
// src/list/list-content.tsx
|
|
5723
|
+
import { jsx as jsx70, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
5724
|
+
var className11 = `k-list-content`;
|
|
5725
|
+
var ListContent = (props) => {
|
|
5726
|
+
const {
|
|
5727
|
+
virtualization
|
|
5728
|
+
} = props;
|
|
5729
|
+
return /* @__PURE__ */ jsxs17("div", { className: classNames(className11, props.className), children: [
|
|
5730
|
+
/* @__PURE__ */ jsx70("ul", { className: classNames("k-list-ul"), children: props.children }),
|
|
5731
|
+
virtualization && /* @__PURE__ */ jsx70("div", { className: "k-height-container", children: /* @__PURE__ */ jsx70("div", {}) })
|
|
5732
|
+
] });
|
|
5733
|
+
};
|
|
5734
|
+
|
|
5735
|
+
// src/list/list-header.tsx
|
|
5736
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
5737
|
+
var className12 = `k-list-group-sticky-header`;
|
|
5738
|
+
var ListHeader = (props) => /* @__PURE__ */ jsx71("div", { className: classNames(className12, props.className), children: /* @__PURE__ */ jsx71("div", { className: "k-list-header-text", children: props.children }) });
|
|
5739
|
+
|
|
5740
|
+
// src/list/list-group.tsx
|
|
5741
|
+
import { Fragment as Fragment13, jsx as jsx72, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
5742
|
+
var ListGroup = (props) => {
|
|
5743
|
+
const {
|
|
5744
|
+
virtualization,
|
|
5745
|
+
label
|
|
5746
|
+
} = props;
|
|
5747
|
+
return /* @__PURE__ */ jsxs18(Fragment13, { children: [
|
|
5748
|
+
label && /* @__PURE__ */ jsx72(ListHeader, { children: label }),
|
|
5749
|
+
props.children && /* @__PURE__ */ jsx72(ListContent, { virtualization, children: props.children })
|
|
5750
|
+
] });
|
|
5751
|
+
};
|
|
5752
|
+
|
|
5753
|
+
// src/list/list-group-item.tsx
|
|
5754
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
5755
|
+
var className13 = `k-list-group-item`;
|
|
5756
|
+
var ListGroupItem = (props) => /* @__PURE__ */ jsx73("li", { className: classNames(className13, props.className), children: /* @__PURE__ */ jsx73("span", { className: "k-list-item-text", children: props.children }) });
|
|
5757
|
+
|
|
5758
|
+
// src/list/list-option-label.tsx
|
|
5759
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
5760
|
+
var LIST_OPTIONLABEL_CLASSNAME = `k-list-optionlabel`;
|
|
5761
|
+
var states29 = [
|
|
5762
|
+
States.hover,
|
|
5763
|
+
States.focus,
|
|
5764
|
+
States.selected,
|
|
5765
|
+
States.disabled
|
|
5766
|
+
];
|
|
5767
|
+
var options25 = {};
|
|
5768
|
+
var defaultProps26 = {};
|
|
5769
|
+
var ListOptionLabel = (props) => {
|
|
5770
|
+
const {
|
|
5771
|
+
text,
|
|
5772
|
+
hover,
|
|
5773
|
+
focus,
|
|
5774
|
+
selected,
|
|
5775
|
+
disabled,
|
|
5776
|
+
...other
|
|
5777
|
+
} = props;
|
|
5778
|
+
return /* @__PURE__ */ jsx74(
|
|
5739
5779
|
"div",
|
|
5740
5780
|
{
|
|
5741
5781
|
...other,
|
|
5742
5782
|
className: classNames(
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
}
|
|
5783
|
+
LIST_OPTIONLABEL_CLASSNAME,
|
|
5784
|
+
stateClassNames(LIST_OPTIONLABEL_CLASSNAME, {
|
|
5785
|
+
hover,
|
|
5786
|
+
focus,
|
|
5787
|
+
selected,
|
|
5788
|
+
disabled
|
|
5789
|
+
})
|
|
5751
5790
|
),
|
|
5752
|
-
children:
|
|
5753
|
-
optionLabel,
|
|
5754
|
-
listGroup,
|
|
5755
|
-
listContent
|
|
5756
|
-
]
|
|
5791
|
+
children: text
|
|
5757
5792
|
}
|
|
5758
5793
|
);
|
|
5759
5794
|
};
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5795
|
+
ListOptionLabel.states = states29;
|
|
5796
|
+
ListOptionLabel.options = options25;
|
|
5797
|
+
ListOptionLabel.className = LIST_OPTIONLABEL_CLASSNAME;
|
|
5798
|
+
ListOptionLabel.defaultProps = defaultProps26;
|
|
5764
5799
|
|
|
5765
|
-
// src/list/list-
|
|
5766
|
-
import { jsx as
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5800
|
+
// src/list/templates/list-normal.tsx
|
|
5801
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
5802
|
+
|
|
5803
|
+
// src/list/templates/list-virtualization.tsx
|
|
5804
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
5805
|
+
|
|
5806
|
+
// src/list/templates/list-grouping.tsx
|
|
5807
|
+
import { jsx as jsx77, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5808
|
+
|
|
5809
|
+
// src/list/templates/list-virualization-grouping.tsx
|
|
5810
|
+
import { jsx as jsx78, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5811
|
+
|
|
5812
|
+
// src/list/templates/list-virtualization-angular.tsx
|
|
5813
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
5814
|
+
|
|
5815
|
+
// src/list/templates/list-grouping-angular.tsx
|
|
5816
|
+
import { jsx as jsx80, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
5817
|
+
|
|
5818
|
+
// src/list/templates/list-virualization-grouping-angular.tsx
|
|
5819
|
+
import { jsx as jsx81, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5820
|
+
|
|
5821
|
+
// src/dropdownlist/templates/dropdownlist-popup.tsx
|
|
5822
|
+
import { jsx as jsx82, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
5823
|
+
|
|
5824
|
+
// src/dropdownlist/templates/dropdownlist-filtering.tsx
|
|
5825
|
+
import { Fragment as Fragment14, jsx as jsx83, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5826
|
+
|
|
5827
|
+
// src/dropdownlist/templates/dropdownlist-grouping.tsx
|
|
5828
|
+
import { jsx as jsx84, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5829
|
+
|
|
5830
|
+
// src/dropdownlist/templates/dropdownlist-grouping-filtering.tsx
|
|
5831
|
+
import { Fragment as Fragment15, jsx as jsx85, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5832
|
+
|
|
5833
|
+
// src/spinbutton/spinbutton.spec.tsx
|
|
5834
|
+
import { jsx as jsx86, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5835
|
+
var SPINBUTTON_CLASSNAME = `k-spin-button`;
|
|
5836
|
+
var states30 = [];
|
|
5837
|
+
var options26 = {
|
|
5838
|
+
size: [Size.small, Size.medium, Size.large],
|
|
5839
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
|
|
5771
5840
|
};
|
|
5772
|
-
var
|
|
5773
|
-
size: Size.medium
|
|
5841
|
+
var defaultProps27 = {
|
|
5842
|
+
size: Size.medium,
|
|
5843
|
+
fillMode: FillMode.solid
|
|
5774
5844
|
};
|
|
5775
|
-
var
|
|
5845
|
+
var SpinButton = (props) => {
|
|
5776
5846
|
const {
|
|
5777
|
-
size =
|
|
5778
|
-
|
|
5779
|
-
children,
|
|
5847
|
+
size = defaultProps27.size,
|
|
5848
|
+
fillMode = defaultProps27.fillMode,
|
|
5780
5849
|
...other
|
|
5781
5850
|
} = props;
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
let listContent;
|
|
5785
|
-
const listChildren = [];
|
|
5786
|
-
if (children) {
|
|
5787
|
-
children.map((child, index) => {
|
|
5788
|
-
if (child.type === ListGroup) {
|
|
5789
|
-
if (child.props.root === true) {
|
|
5790
|
-
listHeader = child.props.label;
|
|
5791
|
-
child.props.children.map((optChild, index2) => {
|
|
5792
|
-
listChildren.push(
|
|
5793
|
-
/* @__PURE__ */ jsx49(
|
|
5794
|
-
ListItem,
|
|
5795
|
-
{
|
|
5796
|
-
...optChild.props
|
|
5797
|
-
},
|
|
5798
|
-
`optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
5799
|
-
)
|
|
5800
|
-
);
|
|
5801
|
-
});
|
|
5802
|
-
} else {
|
|
5803
|
-
listChildren.push(
|
|
5804
|
-
/* @__PURE__ */ jsx49(
|
|
5805
|
-
ListGroupItem,
|
|
5806
|
-
{
|
|
5807
|
-
...child.props,
|
|
5808
|
-
children: child.props.label
|
|
5809
|
-
},
|
|
5810
|
-
`listChild-${index}`
|
|
5811
|
-
)
|
|
5812
|
-
);
|
|
5813
|
-
child.props.children.map((optChild, index2) => {
|
|
5814
|
-
listChildren.push(
|
|
5815
|
-
/* @__PURE__ */ jsx49(
|
|
5816
|
-
ListItem,
|
|
5817
|
-
{
|
|
5818
|
-
...optChild.props
|
|
5819
|
-
},
|
|
5820
|
-
`fwOptChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
5821
|
-
)
|
|
5822
|
-
);
|
|
5823
|
-
});
|
|
5824
|
-
}
|
|
5825
|
-
listGroup = /* @__PURE__ */ jsx49(ListGroup, { label: listHeader, virtualization, children: listChildren });
|
|
5826
|
-
} else if (child.type === ListItem) {
|
|
5827
|
-
listChildren.push(/* @__PURE__ */ jsx49(ListItem, { ...child.props }, `${child.type}-${index}`));
|
|
5828
|
-
listContent = /* @__PURE__ */ jsx49(ListContent, { virtualization, children: listChildren });
|
|
5829
|
-
}
|
|
5830
|
-
});
|
|
5831
|
-
} else {
|
|
5832
|
-
listContent = /* @__PURE__ */ jsx49(NoData, { children: "No data found." });
|
|
5833
|
-
}
|
|
5834
|
-
return /* @__PURE__ */ jsxs21(
|
|
5835
|
-
"div",
|
|
5851
|
+
return /* @__PURE__ */ jsxs27(
|
|
5852
|
+
"span",
|
|
5836
5853
|
{
|
|
5837
5854
|
...other,
|
|
5838
5855
|
className: classNames(
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
optionClassNames(LISTANGULAR_CLASSNAME, {
|
|
5842
|
-
size
|
|
5843
|
-
}),
|
|
5844
|
-
{
|
|
5845
|
-
["k-virtual-list"]: virtualization
|
|
5846
|
-
}
|
|
5856
|
+
SPINBUTTON_CLASSNAME,
|
|
5857
|
+
props.className
|
|
5847
5858
|
),
|
|
5848
5859
|
children: [
|
|
5849
|
-
|
|
5850
|
-
|
|
5860
|
+
/* @__PURE__ */ jsx86(
|
|
5861
|
+
Button,
|
|
5862
|
+
{
|
|
5863
|
+
className: "k-spinner-increase",
|
|
5864
|
+
icon: "caret-alt-up",
|
|
5865
|
+
rounded: null,
|
|
5866
|
+
size,
|
|
5867
|
+
fillMode
|
|
5868
|
+
}
|
|
5869
|
+
),
|
|
5870
|
+
/* @__PURE__ */ jsx86(
|
|
5871
|
+
Button,
|
|
5872
|
+
{
|
|
5873
|
+
className: "k-spinner-decrease",
|
|
5874
|
+
icon: "caret-alt-down",
|
|
5875
|
+
rounded: null,
|
|
5876
|
+
size,
|
|
5877
|
+
fillMode
|
|
5878
|
+
}
|
|
5879
|
+
)
|
|
5851
5880
|
]
|
|
5852
5881
|
}
|
|
5853
5882
|
);
|
|
5854
5883
|
};
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5884
|
+
SpinButton.states = states30;
|
|
5885
|
+
SpinButton.options = options26;
|
|
5886
|
+
SpinButton.className = SPINBUTTON_CLASSNAME;
|
|
5887
|
+
SpinButton.defaultProps = defaultProps27;
|
|
5859
5888
|
|
|
5860
|
-
// src/
|
|
5861
|
-
import { jsx as
|
|
5862
|
-
var
|
|
5863
|
-
var
|
|
5889
|
+
// src/numerictextbox/numerictextbox.spec.tsx
|
|
5890
|
+
import { Fragment as Fragment16, jsx as jsx87, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5891
|
+
var NUMERICTEXTBOX_CLASSNAME = `k-numerictextbox`;
|
|
5892
|
+
var states31 = [
|
|
5864
5893
|
States.hover,
|
|
5865
5894
|
States.focus,
|
|
5866
5895
|
States.valid,
|
|
5867
5896
|
States.invalid,
|
|
5897
|
+
States.loading,
|
|
5868
5898
|
States.required,
|
|
5869
5899
|
States.disabled,
|
|
5870
|
-
States.
|
|
5871
|
-
States.indeterminate
|
|
5900
|
+
States.readonly
|
|
5872
5901
|
];
|
|
5873
|
-
var
|
|
5902
|
+
var options27 = {
|
|
5874
5903
|
size: [Size.small, Size.medium, Size.large],
|
|
5875
|
-
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
|
|
5904
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
5905
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
5876
5906
|
};
|
|
5877
|
-
var
|
|
5878
|
-
|
|
5879
|
-
|
|
5907
|
+
var defaultProps28 = {
|
|
5908
|
+
showSpinButton: true,
|
|
5909
|
+
showClearButton: true,
|
|
5910
|
+
size: Input.defaultProps.size,
|
|
5911
|
+
rounded: Input.defaultProps.rounded,
|
|
5912
|
+
fillMode: Input.defaultProps.fillMode
|
|
5880
5913
|
};
|
|
5881
|
-
var
|
|
5914
|
+
var NumericTextbox = (props) => {
|
|
5882
5915
|
const {
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5916
|
+
prefix,
|
|
5917
|
+
suffix,
|
|
5918
|
+
value,
|
|
5919
|
+
placeholder,
|
|
5920
|
+
size,
|
|
5921
|
+
rounded,
|
|
5922
|
+
fillMode,
|
|
5886
5923
|
hover,
|
|
5887
5924
|
focus,
|
|
5888
|
-
disabled,
|
|
5889
|
-
invalid,
|
|
5890
5925
|
valid,
|
|
5926
|
+
invalid,
|
|
5891
5927
|
required,
|
|
5892
|
-
|
|
5893
|
-
|
|
5928
|
+
loading,
|
|
5929
|
+
disabled,
|
|
5930
|
+
readonly,
|
|
5931
|
+
showClearButton = defaultProps28.showClearButton,
|
|
5932
|
+
showSpinButton = defaultProps28.showSpinButton,
|
|
5894
5933
|
...other
|
|
5895
5934
|
} = props;
|
|
5896
|
-
return /* @__PURE__ */
|
|
5897
|
-
|
|
5935
|
+
return /* @__PURE__ */ jsxs28(
|
|
5936
|
+
Input,
|
|
5898
5937
|
{
|
|
5899
5938
|
...other,
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5939
|
+
size,
|
|
5940
|
+
rounded,
|
|
5941
|
+
fillMode,
|
|
5942
|
+
hover,
|
|
5943
|
+
focus,
|
|
5944
|
+
valid,
|
|
5945
|
+
invalid,
|
|
5903
5946
|
required,
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5947
|
+
loading,
|
|
5948
|
+
disabled,
|
|
5949
|
+
readonly,
|
|
5950
|
+
className: classNames(props.className, NUMERICTEXTBOX_CLASSNAME),
|
|
5951
|
+
children: [
|
|
5952
|
+
prefix && /* @__PURE__ */ jsxs28(Fragment16, { children: [
|
|
5953
|
+
/* @__PURE__ */ jsx87(InputPrefix, { children: prefix }),
|
|
5954
|
+
/* @__PURE__ */ jsx87(InputSeparator, {})
|
|
5955
|
+
] }),
|
|
5956
|
+
/* @__PURE__ */ jsx87(InputInnerInput, { placeholder, value }),
|
|
5957
|
+
/* @__PURE__ */ jsx87(
|
|
5958
|
+
InputValidationIcon,
|
|
5959
|
+
{
|
|
5960
|
+
valid,
|
|
5961
|
+
invalid,
|
|
5962
|
+
loading,
|
|
5963
|
+
disabled
|
|
5964
|
+
}
|
|
5965
|
+
),
|
|
5966
|
+
/* @__PURE__ */ jsx87(
|
|
5967
|
+
InputLoadingIcon,
|
|
5968
|
+
{
|
|
5969
|
+
loading,
|
|
5970
|
+
disabled
|
|
5971
|
+
}
|
|
5972
|
+
),
|
|
5973
|
+
showClearButton && /* @__PURE__ */ jsx87(
|
|
5974
|
+
InputClearValue,
|
|
5975
|
+
{
|
|
5976
|
+
loading,
|
|
5977
|
+
disabled,
|
|
5978
|
+
readonly,
|
|
5979
|
+
value
|
|
5980
|
+
}
|
|
5981
|
+
),
|
|
5982
|
+
suffix && /* @__PURE__ */ jsxs28(Fragment16, { children: [
|
|
5983
|
+
/* @__PURE__ */ jsx87(InputSeparator, {}),
|
|
5984
|
+
/* @__PURE__ */ jsx87(InputSuffix, { children: suffix })
|
|
5985
|
+
] }),
|
|
5986
|
+
showSpinButton && /* @__PURE__ */ jsx87(
|
|
5987
|
+
SpinButton,
|
|
5988
|
+
{
|
|
5989
|
+
className: "k-input-spinner",
|
|
5990
|
+
size,
|
|
5991
|
+
fillMode
|
|
5992
|
+
}
|
|
5993
|
+
)
|
|
5994
|
+
]
|
|
5910
5995
|
}
|
|
5911
|
-
)
|
|
5996
|
+
);
|
|
5912
5997
|
};
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5998
|
+
NumericTextbox.states = states31;
|
|
5999
|
+
NumericTextbox.options = options27;
|
|
6000
|
+
NumericTextbox.className = NUMERICTEXTBOX_CLASSNAME;
|
|
6001
|
+
NumericTextbox.defaultProps = defaultProps28;
|
|
5917
6002
|
|
|
5918
|
-
// src/
|
|
5919
|
-
import { jsx as
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
6003
|
+
// src/numerictextbox/templates/numerictextbox-normal.tsx
|
|
6004
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
6005
|
+
|
|
6006
|
+
// src/numerictextbox/templates/numerictextbox-prefix.tsx
|
|
6007
|
+
import { Fragment as Fragment17, jsx as jsx89 } from "react/jsx-runtime";
|
|
6008
|
+
|
|
6009
|
+
// src/numerictextbox/templates/numerictextbox-suffix.tsx
|
|
6010
|
+
import { Fragment as Fragment18, jsx as jsx90 } from "react/jsx-runtime";
|
|
6011
|
+
|
|
6012
|
+
// src/pager/pager.spec.tsx
|
|
6013
|
+
import { jsx as jsx91, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6014
|
+
var PAGER_CLASSNAME = `k-pager`;
|
|
6015
|
+
var states32 = [
|
|
6016
|
+
States.focus,
|
|
6017
|
+
States.disabled
|
|
6018
|
+
];
|
|
6019
|
+
var options28 = {
|
|
6020
|
+
size: [Size.small, Size.medium, Size.large]
|
|
6021
|
+
};
|
|
6022
|
+
var defaultProps29 = {
|
|
6023
|
+
size: Size.medium,
|
|
6024
|
+
adaptive: false,
|
|
6025
|
+
itemsPerPage: true,
|
|
6026
|
+
type: "numeric",
|
|
6027
|
+
pageSizes: true,
|
|
6028
|
+
refresh: true,
|
|
6029
|
+
info: true
|
|
5925
6030
|
};
|
|
5926
|
-
var
|
|
6031
|
+
var Pager = (props) => {
|
|
5927
6032
|
const {
|
|
5928
|
-
|
|
6033
|
+
size = defaultProps29.size,
|
|
6034
|
+
adaptive = defaultProps29.adaptive,
|
|
6035
|
+
itemsPerPage = defaultProps29.itemsPerPage,
|
|
6036
|
+
type = defaultProps29.type,
|
|
6037
|
+
pageSizes = defaultProps29.pageSizes,
|
|
6038
|
+
refresh = defaultProps29.refresh,
|
|
6039
|
+
info = defaultProps29.info,
|
|
6040
|
+
focus,
|
|
6041
|
+
disabled,
|
|
6042
|
+
dir,
|
|
5929
6043
|
...other
|
|
5930
6044
|
} = props;
|
|
5931
|
-
return /* @__PURE__ */
|
|
5932
|
-
"
|
|
6045
|
+
return /* @__PURE__ */ jsxs29(
|
|
6046
|
+
"div",
|
|
5933
6047
|
{
|
|
6048
|
+
dir,
|
|
5934
6049
|
...other,
|
|
5935
6050
|
className: classNames(
|
|
5936
6051
|
props.className,
|
|
5937
|
-
|
|
5938
|
-
{
|
|
5939
|
-
|
|
5940
|
-
}
|
|
6052
|
+
PAGER_CLASSNAME,
|
|
6053
|
+
optionClassNames(PAGER_CLASSNAME, {
|
|
6054
|
+
size
|
|
6055
|
+
}),
|
|
6056
|
+
stateClassNames(PAGER_CLASSNAME, {
|
|
6057
|
+
focus,
|
|
6058
|
+
disabled
|
|
6059
|
+
})
|
|
5941
6060
|
),
|
|
5942
|
-
children:
|
|
6061
|
+
children: [
|
|
6062
|
+
/* @__PURE__ */ jsxs29(
|
|
6063
|
+
"div",
|
|
6064
|
+
{
|
|
6065
|
+
className: classNames(
|
|
6066
|
+
"k-pager-numbers-wrap"
|
|
6067
|
+
),
|
|
6068
|
+
children: [
|
|
6069
|
+
/* @__PURE__ */ jsx91(
|
|
6070
|
+
Button,
|
|
6071
|
+
{
|
|
6072
|
+
className: classNames(
|
|
6073
|
+
"k-pager-nav",
|
|
6074
|
+
"k-pager-first"
|
|
6075
|
+
),
|
|
6076
|
+
disabled: true,
|
|
6077
|
+
fillMode: "flat",
|
|
6078
|
+
size,
|
|
6079
|
+
rounded: null,
|
|
6080
|
+
icon: dir === "rtl" ? "caret-alt-to-right" : "caret-alt-to-left"
|
|
6081
|
+
}
|
|
6082
|
+
),
|
|
6083
|
+
/* @__PURE__ */ jsx91(
|
|
6084
|
+
Button,
|
|
6085
|
+
{
|
|
6086
|
+
className: classNames(
|
|
6087
|
+
"k-pager-nav"
|
|
6088
|
+
),
|
|
6089
|
+
disabled: true,
|
|
6090
|
+
fillMode: "flat",
|
|
6091
|
+
size,
|
|
6092
|
+
rounded: null,
|
|
6093
|
+
icon: dir === "rtl" ? "caret-alt-right" : "caret-alt-left"
|
|
6094
|
+
}
|
|
6095
|
+
),
|
|
6096
|
+
type === "numeric" && !adaptive && /* @__PURE__ */ jsxs29(
|
|
6097
|
+
"div",
|
|
6098
|
+
{
|
|
6099
|
+
className: classNames(
|
|
6100
|
+
"k-pager-numbers"
|
|
6101
|
+
),
|
|
6102
|
+
children: [
|
|
6103
|
+
/* @__PURE__ */ jsx91(
|
|
6104
|
+
Button,
|
|
6105
|
+
{
|
|
6106
|
+
selected: true,
|
|
6107
|
+
fillMode: "flat",
|
|
6108
|
+
themeColor: "primary",
|
|
6109
|
+
size,
|
|
6110
|
+
rounded: null,
|
|
6111
|
+
children: "1"
|
|
6112
|
+
}
|
|
6113
|
+
),
|
|
6114
|
+
/* @__PURE__ */ jsx91(
|
|
6115
|
+
Button,
|
|
6116
|
+
{
|
|
6117
|
+
fillMode: "flat",
|
|
6118
|
+
themeColor: "primary",
|
|
6119
|
+
size,
|
|
6120
|
+
rounded: null,
|
|
6121
|
+
children: "2"
|
|
6122
|
+
}
|
|
6123
|
+
),
|
|
6124
|
+
/* @__PURE__ */ jsx91(
|
|
6125
|
+
Button,
|
|
6126
|
+
{
|
|
6127
|
+
fillMode: "flat",
|
|
6128
|
+
themeColor: "primary",
|
|
6129
|
+
size,
|
|
6130
|
+
rounded: null,
|
|
6131
|
+
children: "3"
|
|
6132
|
+
}
|
|
6133
|
+
),
|
|
6134
|
+
/* @__PURE__ */ jsx91(
|
|
6135
|
+
Button,
|
|
6136
|
+
{
|
|
6137
|
+
fillMode: "flat",
|
|
6138
|
+
themeColor: "primary",
|
|
6139
|
+
size,
|
|
6140
|
+
rounded: null,
|
|
6141
|
+
children: "4"
|
|
6142
|
+
}
|
|
6143
|
+
),
|
|
6144
|
+
/* @__PURE__ */ jsx91(
|
|
6145
|
+
Button,
|
|
6146
|
+
{
|
|
6147
|
+
fillMode: "flat",
|
|
6148
|
+
themeColor: "primary",
|
|
6149
|
+
size,
|
|
6150
|
+
rounded: null,
|
|
6151
|
+
children: "5"
|
|
6152
|
+
}
|
|
6153
|
+
),
|
|
6154
|
+
/* @__PURE__ */ jsx91(
|
|
6155
|
+
Button,
|
|
6156
|
+
{
|
|
6157
|
+
fillMode: "flat",
|
|
6158
|
+
themeColor: "primary",
|
|
6159
|
+
size,
|
|
6160
|
+
rounded: null,
|
|
6161
|
+
children: "6"
|
|
6162
|
+
}
|
|
6163
|
+
)
|
|
6164
|
+
]
|
|
6165
|
+
}
|
|
6166
|
+
),
|
|
6167
|
+
type === "numeric" && /* @__PURE__ */ jsx91(
|
|
6168
|
+
"select",
|
|
6169
|
+
{
|
|
6170
|
+
className: classNames(
|
|
6171
|
+
"k-picker",
|
|
6172
|
+
"k-picker-solid",
|
|
6173
|
+
"k-dropdown-list",
|
|
6174
|
+
"k-dropdown",
|
|
6175
|
+
"k-rounded-md",
|
|
6176
|
+
optionClassNames("k-picker", {
|
|
6177
|
+
size
|
|
6178
|
+
}),
|
|
6179
|
+
{
|
|
6180
|
+
["k-hidden"]: !adaptive
|
|
6181
|
+
}
|
|
6182
|
+
),
|
|
6183
|
+
children: /* @__PURE__ */ jsx91("option", { children: "99" })
|
|
6184
|
+
}
|
|
6185
|
+
),
|
|
6186
|
+
type === "input" && /* @__PURE__ */ jsxs29(
|
|
6187
|
+
"span",
|
|
6188
|
+
{
|
|
6189
|
+
className: classNames(
|
|
6190
|
+
"k-pager-input"
|
|
6191
|
+
),
|
|
6192
|
+
children: [
|
|
6193
|
+
!adaptive && /* @__PURE__ */ jsx91("span", { children: "Page" }),
|
|
6194
|
+
/* @__PURE__ */ jsx91(NumericTextbox, { value: "999", size, showSpinButton: false, showClearButton: false }),
|
|
6195
|
+
!adaptive && /* @__PURE__ */ jsx91("span", { children: "of 8" })
|
|
6196
|
+
]
|
|
6197
|
+
}
|
|
6198
|
+
),
|
|
6199
|
+
/* @__PURE__ */ jsx91(
|
|
6200
|
+
Button,
|
|
6201
|
+
{
|
|
6202
|
+
className: classNames(
|
|
6203
|
+
"k-pager-nav"
|
|
6204
|
+
),
|
|
6205
|
+
fillMode: "flat",
|
|
6206
|
+
size,
|
|
6207
|
+
rounded: null,
|
|
6208
|
+
icon: dir === "rtl" ? "caret-alt-left" : "caret-alt-right"
|
|
6209
|
+
}
|
|
6210
|
+
),
|
|
6211
|
+
/* @__PURE__ */ jsx91(
|
|
6212
|
+
Button,
|
|
6213
|
+
{
|
|
6214
|
+
className: classNames(
|
|
6215
|
+
"k-pager-nav",
|
|
6216
|
+
"k-pager-last"
|
|
6217
|
+
),
|
|
6218
|
+
fillMode: "flat",
|
|
6219
|
+
size,
|
|
6220
|
+
rounded: null,
|
|
6221
|
+
icon: dir === "rtl" ? "caret-alt-to-left" : "caret-alt-to-right"
|
|
6222
|
+
}
|
|
6223
|
+
)
|
|
6224
|
+
]
|
|
6225
|
+
}
|
|
6226
|
+
),
|
|
6227
|
+
pageSizes && /* @__PURE__ */ jsxs29(
|
|
6228
|
+
"span",
|
|
6229
|
+
{
|
|
6230
|
+
className: classNames(
|
|
6231
|
+
"k-pager-sizes"
|
|
6232
|
+
),
|
|
6233
|
+
children: [
|
|
6234
|
+
/* @__PURE__ */ jsx91(DropdownList, { value: "99", size }),
|
|
6235
|
+
itemsPerPage && /* @__PURE__ */ jsx91("span", { children: "items per page" })
|
|
6236
|
+
]
|
|
6237
|
+
}
|
|
6238
|
+
),
|
|
6239
|
+
refresh && /* @__PURE__ */ jsx91(
|
|
6240
|
+
Button,
|
|
6241
|
+
{
|
|
6242
|
+
className: classNames(
|
|
6243
|
+
"k-pager-refresh"
|
|
6244
|
+
),
|
|
6245
|
+
fillMode: "flat",
|
|
6246
|
+
size,
|
|
6247
|
+
rounded: null,
|
|
6248
|
+
icon: "arrow-rotate-cw"
|
|
6249
|
+
}
|
|
6250
|
+
),
|
|
6251
|
+
info && /* @__PURE__ */ jsx91(
|
|
6252
|
+
"span",
|
|
6253
|
+
{
|
|
6254
|
+
className: classNames(
|
|
6255
|
+
"k-pager-info"
|
|
6256
|
+
),
|
|
6257
|
+
children: "1 - 20 of 91 items"
|
|
6258
|
+
}
|
|
6259
|
+
)
|
|
6260
|
+
]
|
|
5943
6261
|
}
|
|
5944
6262
|
);
|
|
5945
6263
|
};
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
6264
|
+
Pager.states = states32;
|
|
6265
|
+
Pager.options = options28;
|
|
6266
|
+
Pager.className = PAGER_CLASSNAME;
|
|
6267
|
+
Pager.defaultProps = defaultProps29;
|
|
5950
6268
|
|
|
5951
|
-
// src/
|
|
5952
|
-
import { jsx as
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
6269
|
+
// src/pager/templates/pager-normal.tsx
|
|
6270
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
6271
|
+
|
|
6272
|
+
// src/pager/templates/pager-input.tsx
|
|
6273
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
6274
|
+
|
|
6275
|
+
// src/pager/templates/pager-adaptive.tsx
|
|
6276
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
6277
|
+
|
|
6278
|
+
// src/pager/templates/pager-adaptive-input.tsx
|
|
6279
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
6280
|
+
|
|
6281
|
+
// src/grid/grid-pager.spec.tsx
|
|
6282
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
6283
|
+
|
|
6284
|
+
// src/button-group/button-group.spec.tsx
|
|
6285
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
6286
|
+
var BUTTONGROUP_CLASSNAME = `k-button-group`;
|
|
6287
|
+
var states33 = [
|
|
6288
|
+
States.disabled
|
|
6289
|
+
];
|
|
6290
|
+
var options29 = {
|
|
6291
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
|
|
6292
|
+
};
|
|
6293
|
+
var defaultProps30 = {
|
|
6294
|
+
fillMode: FillMode.solid
|
|
6295
|
+
};
|
|
6296
|
+
var ButtonGroup = (props) => {
|
|
5958
6297
|
const {
|
|
6298
|
+
fillMode = defaultProps30.fillMode,
|
|
6299
|
+
disabled,
|
|
6300
|
+
stretched,
|
|
5959
6301
|
...other
|
|
5960
6302
|
} = props;
|
|
5961
|
-
return /* @__PURE__ */
|
|
5962
|
-
"
|
|
6303
|
+
return /* @__PURE__ */ jsx97(
|
|
6304
|
+
"div",
|
|
5963
6305
|
{
|
|
5964
6306
|
...other,
|
|
5965
6307
|
className: classNames(
|
|
5966
6308
|
props.className,
|
|
5967
|
-
|
|
6309
|
+
BUTTONGROUP_CLASSNAME,
|
|
6310
|
+
optionClassNames(BUTTONGROUP_CLASSNAME, {
|
|
6311
|
+
fillMode
|
|
6312
|
+
}),
|
|
6313
|
+
stateClassNames(BUTTONGROUP_CLASSNAME, {
|
|
6314
|
+
disabled
|
|
6315
|
+
}),
|
|
6316
|
+
{
|
|
6317
|
+
[`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
|
|
6318
|
+
}
|
|
5968
6319
|
),
|
|
5969
6320
|
children: props.children
|
|
5970
6321
|
}
|
|
5971
6322
|
);
|
|
5972
6323
|
};
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
6324
|
+
ButtonGroup.states = states33;
|
|
6325
|
+
ButtonGroup.options = options29;
|
|
6326
|
+
ButtonGroup.className = BUTTONGROUP_CLASSNAME;
|
|
6327
|
+
ButtonGroup.defaultProps = defaultProps30;
|
|
5977
6328
|
|
|
5978
|
-
// src/
|
|
5979
|
-
import {
|
|
6329
|
+
// src/button-group/templates/icon-button-group.tsx
|
|
6330
|
+
import { jsx as jsx98, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
5980
6331
|
|
|
5981
|
-
// src/
|
|
5982
|
-
import {
|
|
6332
|
+
// src/button-group/templates/icon-text-button-group.tsx
|
|
6333
|
+
import { jsx as jsx99, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
5983
6334
|
|
|
5984
|
-
// src/
|
|
5985
|
-
import { jsx as
|
|
6335
|
+
// src/button-group/templates/text-button-group.tsx
|
|
6336
|
+
import { jsx as jsx100, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
5986
6337
|
|
|
5987
|
-
// src/
|
|
5988
|
-
import { jsx as
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
var options28 = {};
|
|
5997
|
-
var defaultProps28 = {};
|
|
5998
|
-
var ListItem = (props) => {
|
|
6338
|
+
// src/button-group/templates/mixed-button-group.tsx
|
|
6339
|
+
import { jsx as jsx101, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6340
|
+
|
|
6341
|
+
// src/color-preview/color-preview.tsx
|
|
6342
|
+
import { jsx as jsx102, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6343
|
+
var COLORPREVIEW_CLASSNAME = `k-color-preview`;
|
|
6344
|
+
var states34 = [];
|
|
6345
|
+
var options30 = {};
|
|
6346
|
+
var ColorPreview = (props) => {
|
|
5999
6347
|
const {
|
|
6000
|
-
|
|
6001
|
-
groupLabel,
|
|
6002
|
-
showIcon,
|
|
6348
|
+
color,
|
|
6003
6349
|
iconName,
|
|
6004
|
-
showCheckbox,
|
|
6005
|
-
checked,
|
|
6006
|
-
hover,
|
|
6007
|
-
focus,
|
|
6008
|
-
selected,
|
|
6009
|
-
disabled,
|
|
6010
6350
|
...other
|
|
6011
6351
|
} = props;
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
"li",
|
|
6352
|
+
return /* @__PURE__ */ jsxs34(
|
|
6353
|
+
"span",
|
|
6015
6354
|
{
|
|
6016
6355
|
...other,
|
|
6017
6356
|
className: classNames(
|
|
6018
6357
|
props.className,
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
selected
|
|
6025
|
-
})
|
|
6358
|
+
COLORPREVIEW_CLASSNAME,
|
|
6359
|
+
{
|
|
6360
|
+
"k-icon-color-preview": iconName,
|
|
6361
|
+
"k-no-color": !color
|
|
6362
|
+
}
|
|
6026
6363
|
),
|
|
6027
6364
|
children: [
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6365
|
+
iconName && /* @__PURE__ */ jsx102(Icon, { icon: iconName, className: "k-color-preview-icon" }),
|
|
6366
|
+
/* @__PURE__ */ jsx102(
|
|
6367
|
+
"span",
|
|
6368
|
+
{
|
|
6369
|
+
className: "k-color-preview-mask",
|
|
6370
|
+
style: { backgroundColor: color }
|
|
6371
|
+
}
|
|
6372
|
+
)
|
|
6032
6373
|
]
|
|
6033
6374
|
}
|
|
6034
6375
|
);
|
|
6035
6376
|
};
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
ListItem.defaultProps = defaultProps28;
|
|
6377
|
+
ColorPreview.states = states34;
|
|
6378
|
+
ColorPreview.options = options30;
|
|
6379
|
+
ColorPreview.className = COLORPREVIEW_CLASSNAME;
|
|
6040
6380
|
|
|
6041
|
-
// src/
|
|
6042
|
-
import { jsx as
|
|
6043
|
-
var
|
|
6044
|
-
var
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6381
|
+
// src/colorpicker/colorpicker.spec.tsx
|
|
6382
|
+
import { Fragment as Fragment19, jsx as jsx103, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6383
|
+
var COLORPICKER_CLASSNAME = `k-colorpicker`;
|
|
6384
|
+
var states35 = [
|
|
6385
|
+
States.hover,
|
|
6386
|
+
States.focus,
|
|
6387
|
+
States.valid,
|
|
6388
|
+
States.invalid,
|
|
6389
|
+
States.required,
|
|
6390
|
+
States.disabled
|
|
6391
|
+
];
|
|
6392
|
+
var options31 = {
|
|
6393
|
+
size: [Size.small, Size.medium, Size.large],
|
|
6394
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
6395
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
6052
6396
|
};
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
import { Fragment as Fragment21, jsx as jsx59, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6061
|
-
var ListGroup = (props) => {
|
|
6397
|
+
var defaultProps31 = {
|
|
6398
|
+
arrowIconName: "caret-alt-down",
|
|
6399
|
+
size: Picker.defaultProps.size,
|
|
6400
|
+
rounded: Picker.defaultProps.rounded,
|
|
6401
|
+
fillMode: Picker.defaultProps.fillMode
|
|
6402
|
+
};
|
|
6403
|
+
var ColorPicker = (props) => {
|
|
6062
6404
|
const {
|
|
6063
|
-
|
|
6064
|
-
|
|
6405
|
+
prefix,
|
|
6406
|
+
suffix,
|
|
6407
|
+
value,
|
|
6408
|
+
placeholder,
|
|
6409
|
+
size,
|
|
6410
|
+
rounded,
|
|
6411
|
+
fillMode,
|
|
6412
|
+
hover,
|
|
6413
|
+
focus,
|
|
6414
|
+
valid,
|
|
6415
|
+
invalid,
|
|
6416
|
+
required,
|
|
6417
|
+
disabled,
|
|
6418
|
+
valueIconName,
|
|
6419
|
+
arrowIconName = defaultProps31.arrowIconName,
|
|
6420
|
+
popup,
|
|
6421
|
+
opened,
|
|
6422
|
+
...other
|
|
6065
6423
|
} = props;
|
|
6066
|
-
return /* @__PURE__ */
|
|
6067
|
-
|
|
6068
|
-
|
|
6424
|
+
return /* @__PURE__ */ jsxs35(Fragment19, { children: [
|
|
6425
|
+
/* @__PURE__ */ jsxs35(
|
|
6426
|
+
Picker,
|
|
6427
|
+
{
|
|
6428
|
+
...other,
|
|
6429
|
+
size,
|
|
6430
|
+
rounded,
|
|
6431
|
+
fillMode,
|
|
6432
|
+
hover,
|
|
6433
|
+
focus,
|
|
6434
|
+
valid,
|
|
6435
|
+
invalid,
|
|
6436
|
+
required,
|
|
6437
|
+
disabled,
|
|
6438
|
+
className: classNames(
|
|
6439
|
+
props.className,
|
|
6440
|
+
COLORPICKER_CLASSNAME,
|
|
6441
|
+
"k-icon-picker"
|
|
6442
|
+
),
|
|
6443
|
+
children: [
|
|
6444
|
+
/* @__PURE__ */ jsx103(InputPrefix, { children: prefix }),
|
|
6445
|
+
/* @__PURE__ */ jsx103(
|
|
6446
|
+
InputInnerSpan,
|
|
6447
|
+
{
|
|
6448
|
+
placeholder,
|
|
6449
|
+
value,
|
|
6450
|
+
showValue: false,
|
|
6451
|
+
valueIcon: /* @__PURE__ */ jsx103(
|
|
6452
|
+
ColorPreview,
|
|
6453
|
+
{
|
|
6454
|
+
className: "k-value-icon",
|
|
6455
|
+
color: value,
|
|
6456
|
+
iconName: valueIconName
|
|
6457
|
+
}
|
|
6458
|
+
),
|
|
6459
|
+
valueIconName
|
|
6460
|
+
}
|
|
6461
|
+
),
|
|
6462
|
+
/* @__PURE__ */ jsx103(InputSuffix, { children: suffix }),
|
|
6463
|
+
/* @__PURE__ */ jsx103(
|
|
6464
|
+
Button,
|
|
6465
|
+
{
|
|
6466
|
+
className: "k-input-button",
|
|
6467
|
+
icon: arrowIconName,
|
|
6468
|
+
rounded: null,
|
|
6469
|
+
size,
|
|
6470
|
+
fillMode
|
|
6471
|
+
}
|
|
6472
|
+
)
|
|
6473
|
+
]
|
|
6474
|
+
}
|
|
6475
|
+
),
|
|
6476
|
+
opened && popup && /* @__PURE__ */ jsx103(Popup, { className: "k-color-picker-popup", children: popup })
|
|
6069
6477
|
] });
|
|
6070
6478
|
};
|
|
6479
|
+
ColorPicker.states = states35;
|
|
6480
|
+
ColorPicker.options = options31;
|
|
6481
|
+
ColorPicker.className = COLORPICKER_CLASSNAME;
|
|
6482
|
+
ColorPicker.defaultProps = defaultProps31;
|
|
6071
6483
|
|
|
6072
|
-
// src/
|
|
6073
|
-
import { jsx as
|
|
6074
|
-
var className13 = `k-list-group-item`;
|
|
6075
|
-
var ListGroupItem = (props) => /* @__PURE__ */ jsx60("li", { className: classNames(className13, props.className), children: /* @__PURE__ */ jsx60("span", { className: "k-list-item-text", children: props.children }) });
|
|
6484
|
+
// src/colorpicker/templates/colorpicker-normal.tsx
|
|
6485
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
|
6076
6486
|
|
|
6077
|
-
// src/
|
|
6078
|
-
import { jsx as
|
|
6079
|
-
var
|
|
6080
|
-
var
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
var
|
|
6087
|
-
var defaultProps29 = {};
|
|
6088
|
-
var ListOptionLabel = (props) => {
|
|
6487
|
+
// src/action-buttons/action-buttons.spec.tsx
|
|
6488
|
+
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
6489
|
+
var ACTIONBUTTONS_CLASSNAME = `k-actions`;
|
|
6490
|
+
var states36 = [];
|
|
6491
|
+
var options32 = {};
|
|
6492
|
+
var defaultProps32 = {
|
|
6493
|
+
alignment: "start",
|
|
6494
|
+
orientation: "horizontal"
|
|
6495
|
+
};
|
|
6496
|
+
var ActionButtons = (props) => {
|
|
6089
6497
|
const {
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
focus,
|
|
6093
|
-
selected,
|
|
6094
|
-
disabled,
|
|
6498
|
+
alignment = defaultProps32.alignment,
|
|
6499
|
+
orientation = defaultProps32.orientation,
|
|
6095
6500
|
...other
|
|
6096
6501
|
} = props;
|
|
6097
|
-
return /* @__PURE__ */
|
|
6502
|
+
return /* @__PURE__ */ jsx105(
|
|
6098
6503
|
"div",
|
|
6099
6504
|
{
|
|
6100
6505
|
...other,
|
|
6101
6506
|
className: classNames(
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
})
|
|
6507
|
+
ACTIONBUTTONS_CLASSNAME,
|
|
6508
|
+
{
|
|
6509
|
+
[`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
|
|
6510
|
+
[`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
|
|
6511
|
+
},
|
|
6512
|
+
props.className
|
|
6109
6513
|
),
|
|
6110
|
-
children:
|
|
6514
|
+
children: props.children
|
|
6111
6515
|
}
|
|
6112
6516
|
);
|
|
6113
6517
|
};
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
// src/list/templates/list-normal.tsx
|
|
6120
|
-
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
6121
|
-
|
|
6122
|
-
// src/list/templates/list-virtualization.tsx
|
|
6123
|
-
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
6124
|
-
|
|
6125
|
-
// src/list/templates/list-grouping.tsx
|
|
6126
|
-
import { jsx as jsx64, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6127
|
-
|
|
6128
|
-
// src/list/templates/list-virualization-grouping.tsx
|
|
6129
|
-
import { jsx as jsx65, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6130
|
-
|
|
6131
|
-
// src/list/templates/list-virtualization-angular.tsx
|
|
6132
|
-
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
6518
|
+
ActionButtons.states = states36;
|
|
6519
|
+
ActionButtons.options = options32;
|
|
6520
|
+
ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
|
|
6521
|
+
ActionButtons.defaultProps = defaultProps32;
|
|
6522
|
+
var action_buttons_spec_default = ActionButtons;
|
|
6133
6523
|
|
|
6134
|
-
// src/
|
|
6135
|
-
import { jsx as
|
|
6524
|
+
// src/slider/slider.spec.tsx
|
|
6525
|
+
import { jsx as jsx106, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6526
|
+
var SLIDER_CLASSNAME = "k-slider";
|
|
6527
|
+
var states37 = [
|
|
6528
|
+
States.hover,
|
|
6529
|
+
States.focus,
|
|
6530
|
+
States.active,
|
|
6531
|
+
States.disabled,
|
|
6532
|
+
States.readonly
|
|
6533
|
+
];
|
|
6534
|
+
var options33 = {};
|
|
6535
|
+
var defaultProps33 = {
|
|
6536
|
+
type: "single",
|
|
6537
|
+
orientation: "horizontal",
|
|
6538
|
+
readonly: false,
|
|
6539
|
+
disabled: false,
|
|
6540
|
+
handlePosition: "end",
|
|
6541
|
+
showButtons: true,
|
|
6542
|
+
showTicks: true
|
|
6543
|
+
};
|
|
6544
|
+
var Slider = (props) => {
|
|
6545
|
+
const {
|
|
6546
|
+
type = defaultProps33.type,
|
|
6547
|
+
orientation = defaultProps33.orientation,
|
|
6548
|
+
readonly = defaultProps33.readonly,
|
|
6549
|
+
disabled = defaultProps33.disabled,
|
|
6550
|
+
handlePosition = defaultProps33.handlePosition,
|
|
6551
|
+
showButtons = defaultProps33.showButtons,
|
|
6552
|
+
showTicks = defaultProps33.showTicks,
|
|
6553
|
+
hover,
|
|
6554
|
+
focus,
|
|
6555
|
+
active,
|
|
6556
|
+
trackStyle,
|
|
6557
|
+
dir
|
|
6558
|
+
} = props;
|
|
6559
|
+
let iconIncrease;
|
|
6560
|
+
let iconDecrease;
|
|
6561
|
+
if (orientation === "horizontal") {
|
|
6562
|
+
iconIncrease = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
|
|
6563
|
+
iconDecrease = dir === "rtl" ? "caret-alt-right" : "caret-alt-left";
|
|
6564
|
+
} else if (orientation === "vertical") {
|
|
6565
|
+
iconIncrease = "caret-alt-up";
|
|
6566
|
+
iconDecrease = "caret-alt-down";
|
|
6567
|
+
}
|
|
6568
|
+
return /* @__PURE__ */ jsxs36("div", { className: classNames(
|
|
6569
|
+
SLIDER_CLASSNAME,
|
|
6570
|
+
props.className,
|
|
6571
|
+
stateClassNames(SLIDER_CLASSNAME, {
|
|
6572
|
+
readonly,
|
|
6573
|
+
disabled
|
|
6574
|
+
}),
|
|
6575
|
+
{
|
|
6576
|
+
[`k-slider-${orientation}`]: orientation,
|
|
6577
|
+
"k-colorgradient-slider": type === "gradient",
|
|
6578
|
+
"k-range-slider": type === "range"
|
|
6579
|
+
}
|
|
6580
|
+
), dir, children: [
|
|
6581
|
+
showButtons && /* @__PURE__ */ jsx106(Button, { className: "k-button-decrease", rounded: "full", icon: iconDecrease }),
|
|
6582
|
+
/* @__PURE__ */ jsxs36("div", { className: "k-slider-track-wrap", children: [
|
|
6583
|
+
showTicks && /* @__PURE__ */ jsx106("ul", { className: "k-reset k-slider-items", children: props.children }),
|
|
6584
|
+
/* @__PURE__ */ jsxs36("div", { className: "k-slider-track", style: trackStyle, children: [
|
|
6585
|
+
/* @__PURE__ */ jsx106("div", { className: "k-slider-selection" }),
|
|
6586
|
+
type === "range" && /* @__PURE__ */ jsx106("span", { className: classNames(
|
|
6587
|
+
"k-draghandle",
|
|
6588
|
+
"k-draghandle-start",
|
|
6589
|
+
stateClassNames(SLIDER_CLASSNAME, {
|
|
6590
|
+
hover,
|
|
6591
|
+
focus,
|
|
6592
|
+
active
|
|
6593
|
+
})
|
|
6594
|
+
) }),
|
|
6595
|
+
/* @__PURE__ */ jsx106("span", { className: classNames(
|
|
6596
|
+
"k-draghandle",
|
|
6597
|
+
`k-draghandle-${handlePosition}`,
|
|
6598
|
+
stateClassNames(SLIDER_CLASSNAME, {
|
|
6599
|
+
hover,
|
|
6600
|
+
focus,
|
|
6601
|
+
active
|
|
6602
|
+
})
|
|
6603
|
+
) })
|
|
6604
|
+
] })
|
|
6605
|
+
] }),
|
|
6606
|
+
showButtons && /* @__PURE__ */ jsx106(Button, { className: "k-button-increase", rounded: "full", icon: iconIncrease })
|
|
6607
|
+
] });
|
|
6608
|
+
};
|
|
6609
|
+
Slider.states = states37;
|
|
6610
|
+
Slider.options = options33;
|
|
6611
|
+
Slider.className = SLIDER_CLASSNAME;
|
|
6612
|
+
Slider.defaultProps = defaultProps33;
|
|
6136
6613
|
|
|
6137
|
-
// src/
|
|
6138
|
-
import { jsx as
|
|
6614
|
+
// src/slider/slider-tick.tsx
|
|
6615
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
6616
|
+
var SLIDER_TICK_CLASSNAME = "k-tick";
|
|
6617
|
+
var states38 = [];
|
|
6618
|
+
var options34 = {};
|
|
6619
|
+
var defaultProps34 = {
|
|
6620
|
+
label: false
|
|
6621
|
+
};
|
|
6622
|
+
var SliderTick = (props) => {
|
|
6623
|
+
const {
|
|
6624
|
+
style,
|
|
6625
|
+
label = defaultProps34.label,
|
|
6626
|
+
orientation,
|
|
6627
|
+
large,
|
|
6628
|
+
text
|
|
6629
|
+
} = props;
|
|
6630
|
+
return /* @__PURE__ */ jsx107("li", { className: classNames(
|
|
6631
|
+
props.className,
|
|
6632
|
+
SLIDER_TICK_CLASSNAME,
|
|
6633
|
+
{
|
|
6634
|
+
[`k-tick-${orientation}`]: orientation,
|
|
6635
|
+
"k-tick-large": large
|
|
6636
|
+
}
|
|
6637
|
+
), style, children: label && /* @__PURE__ */ jsx107("span", { className: "k-label", children: text }) });
|
|
6638
|
+
};
|
|
6639
|
+
SliderTick.states = states38;
|
|
6640
|
+
SliderTick.options = options34;
|
|
6641
|
+
SliderTick.className = SLIDER_TICK_CLASSNAME;
|
|
6642
|
+
SliderTick.defaultProps = defaultProps34;
|
|
6139
6643
|
|
|
6140
|
-
// src/
|
|
6141
|
-
import { jsx as
|
|
6644
|
+
// src/slider/templates/slider-normal.tsx
|
|
6645
|
+
import { Fragment as Fragment20, jsx as jsx108, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6142
6646
|
|
|
6143
|
-
// src/
|
|
6144
|
-
import { Fragment as
|
|
6647
|
+
// src/slider/templates/slider-vertical.tsx
|
|
6648
|
+
import { Fragment as Fragment21, jsx as jsx109, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
6145
6649
|
|
|
6146
|
-
// src/
|
|
6147
|
-
import { jsx as
|
|
6650
|
+
// src/slider/templates/slider-range.tsx
|
|
6651
|
+
import { Fragment as Fragment22, jsx as jsx110, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
6148
6652
|
|
|
6149
|
-
// src/
|
|
6150
|
-
import { Fragment as Fragment23, jsx as
|
|
6653
|
+
// src/slider/templates/slider-range-vertical.tsx
|
|
6654
|
+
import { Fragment as Fragment23, jsx as jsx111, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
6151
6655
|
|
|
6152
|
-
// src/
|
|
6153
|
-
import { Fragment as Fragment24, jsx as
|
|
6656
|
+
// src/slider/templates/slider-gradient.tsx
|
|
6657
|
+
import { Fragment as Fragment24, jsx as jsx112, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
6154
6658
|
|
|
6155
|
-
// src/
|
|
6156
|
-
import { Fragment as Fragment25, jsx as
|
|
6659
|
+
// src/slider/templates/slider-gradient-vertical.tsx
|
|
6660
|
+
import { Fragment as Fragment25, jsx as jsx113, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
6661
|
+
var SliderGradientVertical = (props) => /* @__PURE__ */ jsx113(
|
|
6662
|
+
Slider,
|
|
6663
|
+
{
|
|
6664
|
+
type: "gradient",
|
|
6665
|
+
orientation: "vertical",
|
|
6666
|
+
showButtons: false,
|
|
6667
|
+
showTicks: false,
|
|
6668
|
+
children: /* @__PURE__ */ jsxs42(Fragment25, { children: [
|
|
6669
|
+
/* @__PURE__ */ jsx113(SliderTick, { label: true, large: true, text: "0" }),
|
|
6670
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6671
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6672
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6673
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6674
|
+
/* @__PURE__ */ jsx113(SliderTick, { label: true, large: true, text: "5" }),
|
|
6675
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6676
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6677
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6678
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6679
|
+
/* @__PURE__ */ jsx113(SliderTick, { label: true, large: true, text: "10" })
|
|
6680
|
+
] }),
|
|
6681
|
+
...props
|
|
6682
|
+
}
|
|
6683
|
+
);
|
|
6157
6684
|
|
|
6158
6685
|
// src/textbox/textbox.spec.tsx
|
|
6159
|
-
import { Fragment as Fragment26, jsx as
|
|
6686
|
+
import { Fragment as Fragment26, jsx as jsx114, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
6160
6687
|
var TEXTBOX_CLASSNAME = `k-textbox`;
|
|
6161
|
-
var
|
|
6688
|
+
var states39 = [
|
|
6162
6689
|
States.hover,
|
|
6163
6690
|
States.focus,
|
|
6164
6691
|
States.valid,
|
|
@@ -6168,12 +6695,12 @@ var states31 = [
|
|
|
6168
6695
|
States.loading,
|
|
6169
6696
|
States.readonly
|
|
6170
6697
|
];
|
|
6171
|
-
var
|
|
6698
|
+
var options35 = {
|
|
6172
6699
|
size: [Size.small, Size.medium, Size.large],
|
|
6173
6700
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
6174
6701
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
6175
6702
|
};
|
|
6176
|
-
var
|
|
6703
|
+
var defaultProps35 = {
|
|
6177
6704
|
showClearButton: true,
|
|
6178
6705
|
size: Input.defaultProps.size,
|
|
6179
6706
|
rounded: Input.defaultProps.rounded,
|
|
@@ -6196,10 +6723,10 @@ var Textbox = (props) => {
|
|
|
6196
6723
|
loading,
|
|
6197
6724
|
disabled,
|
|
6198
6725
|
readonly,
|
|
6199
|
-
showClearButton =
|
|
6726
|
+
showClearButton = defaultProps35.showClearButton,
|
|
6200
6727
|
...other
|
|
6201
6728
|
} = props;
|
|
6202
|
-
return /* @__PURE__ */
|
|
6729
|
+
return /* @__PURE__ */ jsxs43(
|
|
6203
6730
|
Input,
|
|
6204
6731
|
{
|
|
6205
6732
|
...other,
|
|
@@ -6216,12 +6743,12 @@ var Textbox = (props) => {
|
|
|
6216
6743
|
readonly,
|
|
6217
6744
|
className: classNames(props.className, TEXTBOX_CLASSNAME),
|
|
6218
6745
|
children: [
|
|
6219
|
-
prefix && /* @__PURE__ */
|
|
6220
|
-
/* @__PURE__ */
|
|
6221
|
-
/* @__PURE__ */
|
|
6746
|
+
prefix && /* @__PURE__ */ jsxs43(Fragment26, { children: [
|
|
6747
|
+
/* @__PURE__ */ jsx114(InputPrefix, { children: prefix }),
|
|
6748
|
+
/* @__PURE__ */ jsx114(InputSeparator, {})
|
|
6222
6749
|
] }),
|
|
6223
|
-
/* @__PURE__ */
|
|
6224
|
-
/* @__PURE__ */
|
|
6750
|
+
/* @__PURE__ */ jsx114(InputInnerInput, { placeholder, value }),
|
|
6751
|
+
/* @__PURE__ */ jsx114(
|
|
6225
6752
|
InputValidationIcon,
|
|
6226
6753
|
{
|
|
6227
6754
|
valid,
|
|
@@ -6230,14 +6757,14 @@ var Textbox = (props) => {
|
|
|
6230
6757
|
disabled
|
|
6231
6758
|
}
|
|
6232
6759
|
),
|
|
6233
|
-
/* @__PURE__ */
|
|
6760
|
+
/* @__PURE__ */ jsx114(
|
|
6234
6761
|
InputLoadingIcon,
|
|
6235
6762
|
{
|
|
6236
6763
|
loading,
|
|
6237
6764
|
disabled
|
|
6238
6765
|
}
|
|
6239
6766
|
),
|
|
6240
|
-
showClearButton && /* @__PURE__ */
|
|
6767
|
+
showClearButton && /* @__PURE__ */ jsx114(
|
|
6241
6768
|
InputClearValue,
|
|
6242
6769
|
{
|
|
6243
6770
|
loading,
|
|
@@ -6246,162 +6773,162 @@ var Textbox = (props) => {
|
|
|
6246
6773
|
value
|
|
6247
6774
|
}
|
|
6248
6775
|
),
|
|
6249
|
-
suffix && /* @__PURE__ */
|
|
6250
|
-
/* @__PURE__ */
|
|
6251
|
-
/* @__PURE__ */
|
|
6776
|
+
suffix && /* @__PURE__ */ jsxs43(Fragment26, { children: [
|
|
6777
|
+
/* @__PURE__ */ jsx114(InputSeparator, {}),
|
|
6778
|
+
/* @__PURE__ */ jsx114(InputSuffix, { children: suffix })
|
|
6252
6779
|
] })
|
|
6253
6780
|
]
|
|
6254
6781
|
}
|
|
6255
6782
|
);
|
|
6256
6783
|
};
|
|
6257
|
-
Textbox.states =
|
|
6258
|
-
Textbox.options =
|
|
6784
|
+
Textbox.states = states39;
|
|
6785
|
+
Textbox.options = options35;
|
|
6259
6786
|
Textbox.className = TEXTBOX_CLASSNAME;
|
|
6260
|
-
Textbox.defaultProps =
|
|
6787
|
+
Textbox.defaultProps = defaultProps35;
|
|
6261
6788
|
|
|
6262
6789
|
// src/textbox/templates/textbox-normal.tsx
|
|
6263
|
-
import { jsx as
|
|
6790
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
6264
6791
|
|
|
6265
6792
|
// src/textbox/templates/textbox-prefix.tsx
|
|
6266
|
-
import { Fragment as Fragment27, jsx as
|
|
6793
|
+
import { Fragment as Fragment27, jsx as jsx116 } from "react/jsx-runtime";
|
|
6267
6794
|
|
|
6268
6795
|
// src/textbox/templates/textbox-suffix.tsx
|
|
6269
|
-
import { Fragment as Fragment28, jsx as
|
|
6796
|
+
import { Fragment as Fragment28, jsx as jsx117 } from "react/jsx-runtime";
|
|
6270
6797
|
|
|
6271
6798
|
// src/colorgradient/color-input.tsx
|
|
6272
|
-
import { Fragment as Fragment29, jsx as
|
|
6799
|
+
import { Fragment as Fragment29, jsx as jsx118, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
6273
6800
|
var COLOR_INPUT_CLASSNAME = "k-colorgradient-inputs";
|
|
6274
|
-
var
|
|
6275
|
-
var
|
|
6276
|
-
var
|
|
6801
|
+
var states40 = [];
|
|
6802
|
+
var options36 = {};
|
|
6803
|
+
var defaultProps36 = {
|
|
6277
6804
|
mode: "rgba"
|
|
6278
6805
|
};
|
|
6279
6806
|
var ColorInput = (props) => {
|
|
6280
6807
|
const {
|
|
6281
|
-
mode =
|
|
6808
|
+
mode = defaultProps36.mode
|
|
6282
6809
|
} = props;
|
|
6283
|
-
return /* @__PURE__ */
|
|
6284
|
-
/* @__PURE__ */
|
|
6285
|
-
mode === "rgba" && /* @__PURE__ */
|
|
6286
|
-
/* @__PURE__ */
|
|
6287
|
-
/* @__PURE__ */
|
|
6288
|
-
/* @__PURE__ */
|
|
6810
|
+
return /* @__PURE__ */ jsxs44("div", { className: classNames(COLOR_INPUT_CLASSNAME, "k-hstack"), children: [
|
|
6811
|
+
/* @__PURE__ */ jsx118("div", { className: "k-vstack", children: /* @__PURE__ */ jsx118(Button, { fillMode: "flat", icon: "caret-alt-expand", className: "k-colorgradient-toggle-mode" }) }),
|
|
6812
|
+
mode === "rgba" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
|
|
6813
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6814
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6815
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "R" })
|
|
6289
6816
|
] }),
|
|
6290
|
-
/* @__PURE__ */
|
|
6291
|
-
/* @__PURE__ */
|
|
6292
|
-
/* @__PURE__ */
|
|
6817
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6818
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6819
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "G" })
|
|
6293
6820
|
] }),
|
|
6294
|
-
/* @__PURE__ */
|
|
6295
|
-
/* @__PURE__ */
|
|
6296
|
-
/* @__PURE__ */
|
|
6821
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6822
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6823
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "B" })
|
|
6297
6824
|
] }),
|
|
6298
|
-
/* @__PURE__ */
|
|
6299
|
-
/* @__PURE__ */
|
|
6300
|
-
/* @__PURE__ */
|
|
6825
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6826
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "1.00" }),
|
|
6827
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "A" })
|
|
6301
6828
|
] })
|
|
6302
6829
|
] }),
|
|
6303
|
-
mode === "rgb" && /* @__PURE__ */
|
|
6304
|
-
/* @__PURE__ */
|
|
6305
|
-
/* @__PURE__ */
|
|
6306
|
-
/* @__PURE__ */
|
|
6830
|
+
mode === "rgb" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
|
|
6831
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6832
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6833
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "R" })
|
|
6307
6834
|
] }),
|
|
6308
|
-
/* @__PURE__ */
|
|
6309
|
-
/* @__PURE__ */
|
|
6310
|
-
/* @__PURE__ */
|
|
6835
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6836
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6837
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "G" })
|
|
6311
6838
|
] }),
|
|
6312
|
-
/* @__PURE__ */
|
|
6313
|
-
/* @__PURE__ */
|
|
6314
|
-
/* @__PURE__ */
|
|
6839
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6840
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6841
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "B" })
|
|
6315
6842
|
] })
|
|
6316
6843
|
] }),
|
|
6317
|
-
mode === "hsva" && /* @__PURE__ */
|
|
6318
|
-
/* @__PURE__ */
|
|
6319
|
-
/* @__PURE__ */
|
|
6320
|
-
/* @__PURE__ */
|
|
6844
|
+
mode === "hsva" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
|
|
6845
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6846
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6847
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "H" })
|
|
6321
6848
|
] }),
|
|
6322
|
-
/* @__PURE__ */
|
|
6323
|
-
/* @__PURE__ */
|
|
6324
|
-
/* @__PURE__ */
|
|
6849
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6850
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6851
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "S" })
|
|
6325
6852
|
] }),
|
|
6326
|
-
/* @__PURE__ */
|
|
6327
|
-
/* @__PURE__ */
|
|
6328
|
-
/* @__PURE__ */
|
|
6853
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6854
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6855
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "V" })
|
|
6329
6856
|
] }),
|
|
6330
|
-
/* @__PURE__ */
|
|
6331
|
-
/* @__PURE__ */
|
|
6332
|
-
/* @__PURE__ */
|
|
6857
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6858
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "1.00" }),
|
|
6859
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "A" })
|
|
6333
6860
|
] })
|
|
6334
6861
|
] }),
|
|
6335
|
-
mode === "hsv" && /* @__PURE__ */
|
|
6336
|
-
/* @__PURE__ */
|
|
6337
|
-
/* @__PURE__ */
|
|
6338
|
-
/* @__PURE__ */
|
|
6862
|
+
mode === "hsv" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
|
|
6863
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6864
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6865
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "H" })
|
|
6339
6866
|
] }),
|
|
6340
|
-
/* @__PURE__ */
|
|
6341
|
-
/* @__PURE__ */
|
|
6342
|
-
/* @__PURE__ */
|
|
6867
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6868
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6869
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "S" })
|
|
6343
6870
|
] }),
|
|
6344
|
-
/* @__PURE__ */
|
|
6345
|
-
/* @__PURE__ */
|
|
6346
|
-
/* @__PURE__ */
|
|
6871
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6872
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6873
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "V" })
|
|
6347
6874
|
] })
|
|
6348
6875
|
] }),
|
|
6349
|
-
mode === "hex" && /* @__PURE__ */
|
|
6350
|
-
/* @__PURE__ */
|
|
6351
|
-
/* @__PURE__ */
|
|
6876
|
+
mode === "hex" && /* @__PURE__ */ jsx118(Fragment29, { children: /* @__PURE__ */ jsxs44("div", { className: "k-vstack k-flex-1", children: [
|
|
6877
|
+
/* @__PURE__ */ jsx118(Textbox, { showClearButton: false, value: "#b88484AA", className: "k-hex-value" }),
|
|
6878
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "HEX" })
|
|
6352
6879
|
] }) })
|
|
6353
6880
|
] });
|
|
6354
6881
|
};
|
|
6355
|
-
ColorInput.states =
|
|
6356
|
-
ColorInput.options =
|
|
6882
|
+
ColorInput.states = states40;
|
|
6883
|
+
ColorInput.options = options36;
|
|
6357
6884
|
ColorInput.className = COLOR_INPUT_CLASSNAME;
|
|
6358
|
-
ColorInput.defaultProps =
|
|
6885
|
+
ColorInput.defaultProps = defaultProps36;
|
|
6359
6886
|
|
|
6360
6887
|
// src/colorgradient/color-contrast.tsx
|
|
6361
|
-
import { jsx as
|
|
6888
|
+
import { jsx as jsx119, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
6362
6889
|
var COLOR_CONTRAST_CLASSNAME = "k-colorgradient-color-contrast";
|
|
6363
|
-
var
|
|
6364
|
-
var
|
|
6365
|
-
var
|
|
6366
|
-
var ColorContrast = () => /* @__PURE__ */
|
|
6367
|
-
/* @__PURE__ */
|
|
6368
|
-
/* @__PURE__ */
|
|
6369
|
-
/* @__PURE__ */
|
|
6370
|
-
/* @__PURE__ */
|
|
6371
|
-
/* @__PURE__ */
|
|
6890
|
+
var states41 = [];
|
|
6891
|
+
var options37 = {};
|
|
6892
|
+
var defaultProps37 = {};
|
|
6893
|
+
var ColorContrast = () => /* @__PURE__ */ jsxs45("div", { className: classNames(COLOR_CONTRAST_CLASSNAME, "k-vbox"), children: [
|
|
6894
|
+
/* @__PURE__ */ jsxs45("div", { className: "k-contrast-ratio", children: [
|
|
6895
|
+
/* @__PURE__ */ jsx119("span", { className: "k-contrast-ratio-text", children: "Contrast ratio: 7.1" }),
|
|
6896
|
+
/* @__PURE__ */ jsxs45("span", { className: "k-contrast-validation !k-text-success", children: [
|
|
6897
|
+
/* @__PURE__ */ jsx119(Icon, { icon: "check" }),
|
|
6898
|
+
/* @__PURE__ */ jsx119(Icon, { icon: "check" })
|
|
6372
6899
|
] })
|
|
6373
6900
|
] }),
|
|
6374
|
-
/* @__PURE__ */
|
|
6375
|
-
/* @__PURE__ */
|
|
6376
|
-
/* @__PURE__ */
|
|
6901
|
+
/* @__PURE__ */ jsxs45("div", { children: [
|
|
6902
|
+
/* @__PURE__ */ jsx119("span", { children: "AA: 4.5" }),
|
|
6903
|
+
/* @__PURE__ */ jsxs45("span", { className: "k-contrast-validation !k-text-success", children: [
|
|
6377
6904
|
"Pass",
|
|
6378
|
-
/* @__PURE__ */
|
|
6905
|
+
/* @__PURE__ */ jsx119(Icon, { icon: "check" })
|
|
6379
6906
|
] })
|
|
6380
6907
|
] }),
|
|
6381
|
-
/* @__PURE__ */
|
|
6382
|
-
/* @__PURE__ */
|
|
6383
|
-
/* @__PURE__ */
|
|
6908
|
+
/* @__PURE__ */ jsxs45("div", { children: [
|
|
6909
|
+
/* @__PURE__ */ jsx119("span", { children: "AAA: 7.0" }),
|
|
6910
|
+
/* @__PURE__ */ jsxs45("span", { className: "k-contrast-validation !k-text-error", children: [
|
|
6384
6911
|
"Fail",
|
|
6385
|
-
/* @__PURE__ */
|
|
6912
|
+
/* @__PURE__ */ jsx119(Icon, { icon: "x" })
|
|
6386
6913
|
] })
|
|
6387
6914
|
] })
|
|
6388
6915
|
] });
|
|
6389
|
-
ColorContrast.states =
|
|
6390
|
-
ColorContrast.options =
|
|
6916
|
+
ColorContrast.states = states41;
|
|
6917
|
+
ColorContrast.options = options37;
|
|
6391
6918
|
ColorContrast.className = COLOR_CONTRAST_CLASSNAME;
|
|
6392
|
-
ColorContrast.defaultProps =
|
|
6919
|
+
ColorContrast.defaultProps = defaultProps37;
|
|
6393
6920
|
|
|
6394
6921
|
// src/colorgradient/color-gradient.spec.tsx
|
|
6395
|
-
import { jsx as
|
|
6922
|
+
import { jsx as jsx120, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
6396
6923
|
var COLOR_GRADIENT_CLASSNAME = "k-colorgradient";
|
|
6397
|
-
var
|
|
6924
|
+
var states42 = [
|
|
6398
6925
|
States.hover,
|
|
6399
6926
|
States.focus,
|
|
6400
6927
|
States.readonly,
|
|
6401
6928
|
States.disabled
|
|
6402
6929
|
];
|
|
6403
|
-
var
|
|
6404
|
-
var
|
|
6930
|
+
var options38 = {};
|
|
6931
|
+
var defaultProps38 = {
|
|
6405
6932
|
mode: "rgba",
|
|
6406
6933
|
readonly: false,
|
|
6407
6934
|
disabled: false,
|
|
@@ -6412,20 +6939,20 @@ var defaultProps33 = {
|
|
|
6412
6939
|
};
|
|
6413
6940
|
var ColorGradient = (props) => {
|
|
6414
6941
|
const {
|
|
6415
|
-
mode =
|
|
6416
|
-
readonly =
|
|
6417
|
-
disabled =
|
|
6942
|
+
mode = defaultProps38.mode,
|
|
6943
|
+
readonly = defaultProps38.readonly,
|
|
6944
|
+
disabled = defaultProps38.disabled,
|
|
6418
6945
|
dir,
|
|
6419
|
-
contrast =
|
|
6946
|
+
contrast = defaultProps38.contrast,
|
|
6420
6947
|
hover,
|
|
6421
6948
|
focus,
|
|
6422
6949
|
hoverHandle,
|
|
6423
6950
|
focusHandle,
|
|
6424
|
-
gradientStyle =
|
|
6425
|
-
dragHandleStyle =
|
|
6426
|
-
alphaStyle =
|
|
6951
|
+
gradientStyle = defaultProps38.gradientStyle,
|
|
6952
|
+
dragHandleStyle = defaultProps38.dragHandleStyle,
|
|
6953
|
+
alphaStyle = defaultProps38.alphaStyle
|
|
6427
6954
|
} = props;
|
|
6428
|
-
return /* @__PURE__ */
|
|
6955
|
+
return /* @__PURE__ */ jsxs46("div", { className: classNames(
|
|
6429
6956
|
props.className,
|
|
6430
6957
|
COLOR_GRADIENT_CLASSNAME,
|
|
6431
6958
|
stateClassNames(COLOR_GRADIENT_CLASSNAME, {
|
|
@@ -6435,8 +6962,8 @@ var ColorGradient = (props) => {
|
|
|
6435
6962
|
disabled
|
|
6436
6963
|
})
|
|
6437
6964
|
), dir, children: [
|
|
6438
|
-
/* @__PURE__ */
|
|
6439
|
-
/* @__PURE__ */
|
|
6965
|
+
/* @__PURE__ */ jsxs46("div", { className: "k-colorgradient-canvas k-hstack", children: [
|
|
6966
|
+
/* @__PURE__ */ jsx120("div", { className: "k-hsv-rectangle", style: gradientStyle, children: /* @__PURE__ */ jsx120("div", { className: "k-hsv-gradient", children: /* @__PURE__ */ jsx120("div", { className: classNames(
|
|
6440
6967
|
"k-hsv-draghandle",
|
|
6441
6968
|
"k-draghandle",
|
|
6442
6969
|
{
|
|
@@ -6444,39 +6971,39 @@ var ColorGradient = (props) => {
|
|
|
6444
6971
|
"k-focus": focusHandle
|
|
6445
6972
|
}
|
|
6446
6973
|
), style: dragHandleStyle }) }) }),
|
|
6447
|
-
/* @__PURE__ */
|
|
6448
|
-
/* @__PURE__ */
|
|
6449
|
-
mode !== "rgb" && mode !== "hsv" && /* @__PURE__ */
|
|
6974
|
+
/* @__PURE__ */ jsxs46("div", { className: "k-hsv-controls k-hstack", children: [
|
|
6975
|
+
/* @__PURE__ */ jsx120(SliderGradientVertical, { className: "k-hue-slider", hover: hoverHandle, focus: focusHandle }),
|
|
6976
|
+
mode !== "rgb" && mode !== "hsv" && /* @__PURE__ */ jsx120(SliderGradientVertical, { className: "k-alpha-slider", hover: hoverHandle, focus: focusHandle, trackStyle: alphaStyle })
|
|
6450
6977
|
] })
|
|
6451
6978
|
] }),
|
|
6452
|
-
/* @__PURE__ */
|
|
6453
|
-
contrast && /* @__PURE__ */
|
|
6979
|
+
/* @__PURE__ */ jsx120(ColorInput, { mode: props.mode }),
|
|
6980
|
+
contrast && /* @__PURE__ */ jsx120(ColorContrast, {})
|
|
6454
6981
|
] });
|
|
6455
6982
|
};
|
|
6456
|
-
ColorGradient.states =
|
|
6457
|
-
ColorGradient.options =
|
|
6983
|
+
ColorGradient.states = states42;
|
|
6984
|
+
ColorGradient.options = options38;
|
|
6458
6985
|
ColorGradient.className = COLOR_GRADIENT_CLASSNAME;
|
|
6459
|
-
ColorGradient.defaultProps =
|
|
6986
|
+
ColorGradient.defaultProps = defaultProps38;
|
|
6460
6987
|
|
|
6461
6988
|
// src/colorgradient/templates/colorgradient-normal.tsx
|
|
6462
|
-
import { jsx as
|
|
6989
|
+
import { jsx as jsx121 } from "react/jsx-runtime";
|
|
6463
6990
|
|
|
6464
6991
|
// src/colorgradient/templates/colorgradient-contrast.tsx
|
|
6465
|
-
import { jsx as
|
|
6992
|
+
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
6466
6993
|
|
|
6467
6994
|
// src/colorpalette/colorpalette-row.tsx
|
|
6468
|
-
import { jsx as
|
|
6469
|
-
var ColorPaletteRow = (props) => /* @__PURE__ */
|
|
6995
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
6996
|
+
var ColorPaletteRow = (props) => /* @__PURE__ */ jsx123("tr", { children: props.children });
|
|
6470
6997
|
|
|
6471
6998
|
// src/colorpalette/colorpalette-tile.tsx
|
|
6472
|
-
import { jsx as
|
|
6999
|
+
import { jsx as jsx124 } from "react/jsx-runtime";
|
|
6473
7000
|
var COLORPALETTETILE_CLASSNAME = `k-colorpalette-tile`;
|
|
6474
|
-
var
|
|
7001
|
+
var states43 = [
|
|
6475
7002
|
States.hover,
|
|
6476
7003
|
States.focus,
|
|
6477
7004
|
States.selected
|
|
6478
7005
|
];
|
|
6479
|
-
var
|
|
7006
|
+
var options39 = {};
|
|
6480
7007
|
var ColorPaletteTile = (props) => {
|
|
6481
7008
|
const {
|
|
6482
7009
|
color,
|
|
@@ -6491,7 +7018,7 @@ var ColorPaletteTile = (props) => {
|
|
|
6491
7018
|
"width": tileSize ? tileSize + "px" : "",
|
|
6492
7019
|
"height": tileSize ? tileSize + "px" : ""
|
|
6493
7020
|
};
|
|
6494
|
-
return /* @__PURE__ */
|
|
7021
|
+
return /* @__PURE__ */ jsx124(
|
|
6495
7022
|
"td",
|
|
6496
7023
|
{
|
|
6497
7024
|
...other,
|
|
@@ -6508,24 +7035,24 @@ var ColorPaletteTile = (props) => {
|
|
|
6508
7035
|
}
|
|
6509
7036
|
);
|
|
6510
7037
|
};
|
|
6511
|
-
ColorPaletteTile.states =
|
|
6512
|
-
ColorPaletteTile.options =
|
|
7038
|
+
ColorPaletteTile.states = states43;
|
|
7039
|
+
ColorPaletteTile.options = options39;
|
|
6513
7040
|
ColorPaletteTile.className = COLORPALETTETILE_CLASSNAME;
|
|
6514
7041
|
|
|
6515
7042
|
// src/colorpalette/colorpalette.spec.tsx
|
|
6516
|
-
import { jsx as
|
|
7043
|
+
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
6517
7044
|
var COLORPALETTE_CLASSNAME = `k-colorpalette`;
|
|
6518
|
-
var
|
|
7045
|
+
var states44 = [
|
|
6519
7046
|
States.disabled
|
|
6520
7047
|
];
|
|
6521
|
-
var
|
|
6522
|
-
var
|
|
7048
|
+
var options40 = {};
|
|
7049
|
+
var defaultProps39 = {
|
|
6523
7050
|
columns: 10
|
|
6524
7051
|
};
|
|
6525
7052
|
var ColorPalette = (props) => {
|
|
6526
7053
|
const {
|
|
6527
7054
|
palette,
|
|
6528
|
-
columns =
|
|
7055
|
+
columns = defaultProps39.columns,
|
|
6529
7056
|
tileSize,
|
|
6530
7057
|
disabled,
|
|
6531
7058
|
...other
|
|
@@ -6538,14 +7065,14 @@ var ColorPalette = (props) => {
|
|
|
6538
7065
|
Array.from({ length: Math.ceil(colors.length / cols) }, (_, i) => {
|
|
6539
7066
|
const items = [];
|
|
6540
7067
|
colors.slice(i * cols, (i + 1) * cols).map((color) => {
|
|
6541
|
-
items.push(/* @__PURE__ */
|
|
7068
|
+
items.push(/* @__PURE__ */ jsx125(ColorPaletteTile, { color, tileSize }));
|
|
6542
7069
|
});
|
|
6543
|
-
const row = /* @__PURE__ */
|
|
7070
|
+
const row = /* @__PURE__ */ jsx125(ColorPaletteRow, { children: items });
|
|
6544
7071
|
newChildren.push(row);
|
|
6545
7072
|
});
|
|
6546
7073
|
}
|
|
6547
7074
|
}
|
|
6548
|
-
return /* @__PURE__ */
|
|
7075
|
+
return /* @__PURE__ */ jsx125(
|
|
6549
7076
|
"div",
|
|
6550
7077
|
{
|
|
6551
7078
|
...other,
|
|
@@ -6556,17 +7083,17 @@ var ColorPalette = (props) => {
|
|
|
6556
7083
|
disabled
|
|
6557
7084
|
})
|
|
6558
7085
|
),
|
|
6559
|
-
children: /* @__PURE__ */
|
|
7086
|
+
children: /* @__PURE__ */ jsx125("table", { className: "k-colorpalette-table", children: newChildren.length > 0 ? newChildren : props.children })
|
|
6560
7087
|
}
|
|
6561
7088
|
);
|
|
6562
7089
|
};
|
|
6563
|
-
ColorPalette.states =
|
|
6564
|
-
ColorPalette.options =
|
|
7090
|
+
ColorPalette.states = states44;
|
|
7091
|
+
ColorPalette.options = options40;
|
|
6565
7092
|
ColorPalette.className = COLORPALETTE_CLASSNAME;
|
|
6566
|
-
ColorPalette.defaultProps =
|
|
7093
|
+
ColorPalette.defaultProps = defaultProps39;
|
|
6567
7094
|
|
|
6568
7095
|
// src/colorpalette/templates/colorpalette-normal.tsx
|
|
6569
|
-
import { jsx as
|
|
7096
|
+
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
6570
7097
|
|
|
6571
7098
|
// src/colorpalette/colorpalette-presets.tsx
|
|
6572
7099
|
var PALETTEPRESETS = {
|
|
@@ -6621,84 +7148,84 @@ var PALETTEPRESETS = {
|
|
|
6621
7148
|
};
|
|
6622
7149
|
|
|
6623
7150
|
// src/coloreditor/color-editor.spec.tsx
|
|
6624
|
-
import { jsx as
|
|
7151
|
+
import { jsx as jsx127, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
6625
7152
|
var COLOREDITOR_CLASSNAME = "k-coloreditor";
|
|
6626
|
-
var
|
|
7153
|
+
var states45 = [
|
|
6627
7154
|
States.focus
|
|
6628
7155
|
];
|
|
6629
|
-
var
|
|
6630
|
-
var
|
|
7156
|
+
var options41 = {};
|
|
7157
|
+
var defaultProps40 = {
|
|
6631
7158
|
view: "gradient",
|
|
6632
7159
|
currentColor: "fuchsia",
|
|
6633
7160
|
palette: PALETTEPRESETS.office
|
|
6634
7161
|
};
|
|
6635
7162
|
var ColorEditor = (props) => {
|
|
6636
7163
|
const {
|
|
6637
|
-
view =
|
|
7164
|
+
view = defaultProps40.view,
|
|
6638
7165
|
color,
|
|
6639
|
-
currentColor =
|
|
7166
|
+
currentColor = defaultProps40.currentColor,
|
|
6640
7167
|
focus,
|
|
6641
7168
|
focusView,
|
|
6642
7169
|
dir,
|
|
6643
7170
|
group,
|
|
6644
|
-
palette =
|
|
7171
|
+
palette = defaultProps40.palette
|
|
6645
7172
|
} = props;
|
|
6646
|
-
return /* @__PURE__ */
|
|
7173
|
+
return /* @__PURE__ */ jsxs47("div", { className: classNames(
|
|
6647
7174
|
props.className,
|
|
6648
7175
|
"k-flatcolorpicker",
|
|
6649
7176
|
COLOREDITOR_CLASSNAME,
|
|
6650
7177
|
stateClassNames(COLOREDITOR_CLASSNAME, { focus })
|
|
6651
7178
|
), dir, children: [
|
|
6652
|
-
/* @__PURE__ */
|
|
6653
|
-
/* @__PURE__ */
|
|
6654
|
-
/* @__PURE__ */
|
|
6655
|
-
/* @__PURE__ */
|
|
7179
|
+
/* @__PURE__ */ jsxs47("div", { className: "k-coloreditor-header k-hstack", children: [
|
|
7180
|
+
/* @__PURE__ */ jsx127("div", { className: "k-coloreditor-header-actions k-hstack", children: group && /* @__PURE__ */ jsxs47(ButtonGroup, { children: [
|
|
7181
|
+
/* @__PURE__ */ jsx127(Button, { fillMode: "flat", icon: "droplet-slider", selected: view === "gradient" }),
|
|
7182
|
+
/* @__PURE__ */ jsx127(Button, { fillMode: "flat", icon: "palette", selected: view === "palette" })
|
|
6656
7183
|
] }) }),
|
|
6657
|
-
/* @__PURE__ */
|
|
6658
|
-
/* @__PURE__ */
|
|
6659
|
-
/* @__PURE__ */
|
|
6660
|
-
/* @__PURE__ */
|
|
6661
|
-
/* @__PURE__ */
|
|
6662
|
-
/* @__PURE__ */
|
|
7184
|
+
/* @__PURE__ */ jsx127("div", { className: "k-spacer" }),
|
|
7185
|
+
/* @__PURE__ */ jsxs47("div", { className: "k-coloreditor-header-actions k-hstack", children: [
|
|
7186
|
+
/* @__PURE__ */ jsx127(Button, { fillMode: "flat", icon: "droplet-slash" }),
|
|
7187
|
+
/* @__PURE__ */ jsxs47("div", { className: "k-coloreditor-preview k-vstack", children: [
|
|
7188
|
+
/* @__PURE__ */ jsx127(ColorPreview, { className: "k-coloreditor-preview-color", color }),
|
|
7189
|
+
/* @__PURE__ */ jsx127(ColorPreview, { className: "k-coloreditor-current-color", color: currentColor })
|
|
6663
7190
|
] })
|
|
6664
7191
|
] })
|
|
6665
7192
|
] }),
|
|
6666
|
-
/* @__PURE__ */
|
|
6667
|
-
/* @__PURE__ */
|
|
6668
|
-
/* @__PURE__ */
|
|
6669
|
-
/* @__PURE__ */
|
|
7193
|
+
/* @__PURE__ */ jsx127("div", { className: "k-coloreditor-views k-vstack", children: view === "gradient" ? /* @__PURE__ */ jsx127(ColorGradient, { focus: focusView }) : /* @__PURE__ */ jsx127(ColorPalette, { palette }) }),
|
|
7194
|
+
/* @__PURE__ */ jsxs47(ActionButtons, { className: "k-coloreditor-footer", alignment: "end", children: [
|
|
7195
|
+
/* @__PURE__ */ jsx127(Button, { className: "k-coloreditor-cancel", children: "Cancel" }),
|
|
7196
|
+
/* @__PURE__ */ jsx127(Button, { themeColor: "primary", className: "k-coloreditor-apply", children: "Apply" })
|
|
6670
7197
|
] })
|
|
6671
7198
|
] });
|
|
6672
7199
|
};
|
|
6673
|
-
ColorEditor.states =
|
|
6674
|
-
ColorEditor.options =
|
|
7200
|
+
ColorEditor.states = states45;
|
|
7201
|
+
ColorEditor.options = options41;
|
|
6675
7202
|
ColorEditor.className = COLOREDITOR_CLASSNAME;
|
|
6676
|
-
ColorEditor.defaultProps =
|
|
7203
|
+
ColorEditor.defaultProps = defaultProps40;
|
|
6677
7204
|
|
|
6678
7205
|
// src/coloreditor/templates/coloreditor-normal.tsx
|
|
6679
|
-
import { jsx as
|
|
7206
|
+
import { jsx as jsx128 } from "react/jsx-runtime";
|
|
6680
7207
|
|
|
6681
7208
|
// src/coloreditor/templates/coloreditor-palette.tsx
|
|
6682
|
-
import { jsx as
|
|
7209
|
+
import { jsx as jsx129 } from "react/jsx-runtime";
|
|
6683
7210
|
|
|
6684
7211
|
// src/coloreditor/templates/coloreditor-group.tsx
|
|
6685
|
-
import { jsx as
|
|
7212
|
+
import { jsx as jsx130 } from "react/jsx-runtime";
|
|
6686
7213
|
|
|
6687
7214
|
// src/coloreditor/templates/coloreditor-palette-group.tsx
|
|
6688
|
-
import { jsx as
|
|
7215
|
+
import { jsx as jsx131 } from "react/jsx-runtime";
|
|
6689
7216
|
|
|
6690
7217
|
// src/colorpicker/templates/colorpicker-popup-gradient.tsx
|
|
6691
|
-
import { jsx as
|
|
7218
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
|
6692
7219
|
|
|
6693
7220
|
// src/colorpicker/templates/colorpicker-popup-palette.tsx
|
|
6694
|
-
import { jsx as
|
|
7221
|
+
import { jsx as jsx133 } from "react/jsx-runtime";
|
|
6695
7222
|
|
|
6696
7223
|
// src/action-sheet/action-sheet.spec.tsx
|
|
6697
|
-
import { Fragment as Fragment30, jsx as
|
|
7224
|
+
import { Fragment as Fragment30, jsx as jsx134, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
6698
7225
|
var ACTIONSHEET_CLASSNAME = `k-actionsheet`;
|
|
6699
|
-
var
|
|
6700
|
-
var
|
|
6701
|
-
var
|
|
7226
|
+
var states46 = [];
|
|
7227
|
+
var options42 = {};
|
|
7228
|
+
var defaultProps41 = {
|
|
6702
7229
|
side: "bottom",
|
|
6703
7230
|
fullscreen: false,
|
|
6704
7231
|
adaptive: false,
|
|
@@ -6711,14 +7238,14 @@ var ActionSheet = (props) => {
|
|
|
6711
7238
|
header,
|
|
6712
7239
|
footer,
|
|
6713
7240
|
actions,
|
|
6714
|
-
side =
|
|
6715
|
-
fullscreen =
|
|
6716
|
-
adaptive =
|
|
6717
|
-
overlay =
|
|
7241
|
+
side = defaultProps41.side,
|
|
7242
|
+
fullscreen = defaultProps41.fullscreen,
|
|
7243
|
+
adaptive = defaultProps41.adaptive,
|
|
7244
|
+
overlay = defaultProps41.overlay,
|
|
6718
7245
|
...other
|
|
6719
7246
|
} = props;
|
|
6720
|
-
const _ActionSheetHeader = title ? /* @__PURE__ */
|
|
6721
|
-
const _ActionSheetFooter = actions ? /* @__PURE__ */
|
|
7247
|
+
const _ActionSheetHeader = title ? /* @__PURE__ */ jsx134(ActionSheetHeader, { title }) : header ? header : Array.isArray(children) && children.find((child) => child.type === ActionSheetHeader);
|
|
7248
|
+
const _ActionSheetFooter = actions ? /* @__PURE__ */ jsx134(ActionSheetFooter, { className: "k-actions", actions }) : footer ? typeof footer === "string" ? /* @__PURE__ */ jsx134(ActionSheetFooter, { children: footer }) : footer : Array.isArray(children) && children.find((child) => child.type === ActionSheetFooter);
|
|
6722
7249
|
const _ActionSheetContent = Array.isArray(children) ? children.filter((child) => {
|
|
6723
7250
|
switch (child.type) {
|
|
6724
7251
|
case ActionSheetHeader:
|
|
@@ -6728,10 +7255,10 @@ var ActionSheet = (props) => {
|
|
|
6728
7255
|
return true;
|
|
6729
7256
|
}
|
|
6730
7257
|
return true;
|
|
6731
|
-
}) : children.type === ActionSheetItems ? children : /* @__PURE__ */
|
|
6732
|
-
return /* @__PURE__ */
|
|
6733
|
-
overlay && /* @__PURE__ */
|
|
6734
|
-
/* @__PURE__ */
|
|
7258
|
+
}) : children.type === ActionSheetItems ? children : /* @__PURE__ */ jsx134(Fragment30, {});
|
|
7259
|
+
return /* @__PURE__ */ jsxs48("div", { className: "k-actionsheet-container", children: [
|
|
7260
|
+
overlay && /* @__PURE__ */ jsx134("div", { className: "k-overlay" }),
|
|
7261
|
+
/* @__PURE__ */ jsx134(
|
|
6735
7262
|
AnimationContainer,
|
|
6736
7263
|
{
|
|
6737
7264
|
animationStyle: {
|
|
@@ -6741,7 +7268,7 @@ var ActionSheet = (props) => {
|
|
|
6741
7268
|
[`${side === "top" || side === "bottom" ? "width" : null}`]: "100%",
|
|
6742
7269
|
[`${side === "left" || side === "right" ? "height" : null}`]: "100%"
|
|
6743
7270
|
},
|
|
6744
|
-
children: /* @__PURE__ */
|
|
7271
|
+
children: /* @__PURE__ */ jsx134(
|
|
6745
7272
|
"div",
|
|
6746
7273
|
{
|
|
6747
7274
|
...other,
|
|
@@ -6754,9 +7281,9 @@ var ActionSheet = (props) => {
|
|
|
6754
7281
|
"k-adaptive-actionsheet": adaptive
|
|
6755
7282
|
}
|
|
6756
7283
|
),
|
|
6757
|
-
children: /* @__PURE__ */
|
|
7284
|
+
children: /* @__PURE__ */ jsxs48(Fragment30, { children: [
|
|
6758
7285
|
_ActionSheetHeader,
|
|
6759
|
-
/* @__PURE__ */
|
|
7286
|
+
/* @__PURE__ */ jsx134("div", { className: classNames(
|
|
6760
7287
|
"k-actionsheet-content",
|
|
6761
7288
|
{
|
|
6762
7289
|
"!k-overflow-hidden": adaptive
|
|
@@ -6770,13 +7297,13 @@ var ActionSheet = (props) => {
|
|
|
6770
7297
|
)
|
|
6771
7298
|
] });
|
|
6772
7299
|
};
|
|
6773
|
-
ActionSheet.states =
|
|
6774
|
-
ActionSheet.options =
|
|
7300
|
+
ActionSheet.states = states46;
|
|
7301
|
+
ActionSheet.options = options42;
|
|
6775
7302
|
ActionSheet.className = ACTIONSHEET_CLASSNAME;
|
|
6776
|
-
ActionSheet.defaultProps =
|
|
7303
|
+
ActionSheet.defaultProps = defaultProps41;
|
|
6777
7304
|
|
|
6778
7305
|
// src/action-sheet/actionsheet-header.tsx
|
|
6779
|
-
import { Fragment as Fragment31, jsx as
|
|
7306
|
+
import { Fragment as Fragment31, jsx as jsx135, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
6780
7307
|
var ACTIONSHEETHEADER_CLASSNAME = `k-actionsheet-titlebar`;
|
|
6781
7308
|
var ActionSheetHeader = (props) => {
|
|
6782
7309
|
const {
|
|
@@ -6786,7 +7313,7 @@ var ActionSheetHeader = (props) => {
|
|
|
6786
7313
|
filter,
|
|
6787
7314
|
...other
|
|
6788
7315
|
} = props;
|
|
6789
|
-
return /* @__PURE__ */
|
|
7316
|
+
return /* @__PURE__ */ jsx135(
|
|
6790
7317
|
"div",
|
|
6791
7318
|
{
|
|
6792
7319
|
...other,
|
|
@@ -6794,30 +7321,30 @@ var ActionSheetHeader = (props) => {
|
|
|
6794
7321
|
props.className,
|
|
6795
7322
|
ACTIONSHEETHEADER_CLASSNAME
|
|
6796
7323
|
),
|
|
6797
|
-
children: /* @__PURE__ */
|
|
6798
|
-
/* @__PURE__ */
|
|
6799
|
-
!props.children && (title || subTitle) && /* @__PURE__ */
|
|
6800
|
-
title !== "" && /* @__PURE__ */
|
|
6801
|
-
subTitle !== "" && /* @__PURE__ */
|
|
7324
|
+
children: /* @__PURE__ */ jsxs49(Fragment31, { children: [
|
|
7325
|
+
/* @__PURE__ */ jsxs49("div", { className: "k-actionsheet-titlebar-group k-hbox", children: [
|
|
7326
|
+
!props.children && (title || subTitle) && /* @__PURE__ */ jsx135(Fragment31, { children: /* @__PURE__ */ jsxs49("div", { className: "k-actionsheet-title", children: [
|
|
7327
|
+
title !== "" && /* @__PURE__ */ jsx135("div", { className: "k-text-center", children: title }),
|
|
7328
|
+
subTitle !== "" && /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-subtitle k-text-center", children: subTitle })
|
|
6802
7329
|
] }) }),
|
|
6803
|
-
props.children && /* @__PURE__ */
|
|
6804
|
-
actions && /* @__PURE__ */
|
|
7330
|
+
props.children && /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-title", children: props.children }),
|
|
7331
|
+
actions && /* @__PURE__ */ jsx135(Fragment31, { children: /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-actions", children: actions.map((actionName) => /* @__PURE__ */ jsx135(Button, { icon: actionName, size: "large", fillMode: "flat" }, actionName)) }) })
|
|
6805
7332
|
] }),
|
|
6806
|
-
filter && /* @__PURE__ */
|
|
7333
|
+
filter && /* @__PURE__ */ jsx135(Fragment31, { children: /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter", children: /* @__PURE__ */ jsx135(Searchbox, { placeholder: "Filter", size: "large" }) }) })
|
|
6807
7334
|
] })
|
|
6808
7335
|
}
|
|
6809
7336
|
);
|
|
6810
7337
|
};
|
|
6811
7338
|
|
|
6812
7339
|
// src/action-sheet/actionsheet-footer.tsx
|
|
6813
|
-
import { Fragment as Fragment32, jsx as
|
|
7340
|
+
import { Fragment as Fragment32, jsx as jsx136, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
6814
7341
|
var ACTIONSHEETFOOTER_CLASSNAME = `k-actionsheet-footer`;
|
|
6815
7342
|
var ActionSheetFooter = (props) => {
|
|
6816
7343
|
const {
|
|
6817
7344
|
actions,
|
|
6818
7345
|
...other
|
|
6819
7346
|
} = props;
|
|
6820
|
-
return /* @__PURE__ */
|
|
7347
|
+
return /* @__PURE__ */ jsx136(
|
|
6821
7348
|
action_buttons_spec_default,
|
|
6822
7349
|
{
|
|
6823
7350
|
...other,
|
|
@@ -6826,17 +7353,17 @@ var ActionSheetFooter = (props) => {
|
|
|
6826
7353
|
ACTIONSHEETFOOTER_CLASSNAME
|
|
6827
7354
|
),
|
|
6828
7355
|
alignment: "stretched",
|
|
6829
|
-
children: /* @__PURE__ */
|
|
7356
|
+
children: /* @__PURE__ */ jsxs50(Fragment32, { children: [
|
|
6830
7357
|
actions && actions.map((action, index) => {
|
|
6831
7358
|
if (action === "|") {
|
|
6832
|
-
return /* @__PURE__ */
|
|
7359
|
+
return /* @__PURE__ */ jsx136("span", { className: "k-separator" }, index);
|
|
6833
7360
|
}
|
|
6834
7361
|
if (action === " ") {
|
|
6835
|
-
return /* @__PURE__ */
|
|
7362
|
+
return /* @__PURE__ */ jsx136("span", { className: "k-spacer" }, index);
|
|
6836
7363
|
}
|
|
6837
7364
|
const importantFlag = action.startsWith("!");
|
|
6838
7365
|
const actionName = importantFlag ? action.substring(1) : action;
|
|
6839
|
-
return /* @__PURE__ */
|
|
7366
|
+
return /* @__PURE__ */ jsx136(Button, { text: actionName, size: "large", themeColor: importantFlag ? "primary" : "base" }, index);
|
|
6840
7367
|
}),
|
|
6841
7368
|
!actions && props.children
|
|
6842
7369
|
] })
|
|
@@ -6845,12 +7372,12 @@ var ActionSheetFooter = (props) => {
|
|
|
6845
7372
|
};
|
|
6846
7373
|
|
|
6847
7374
|
// src/action-sheet/actionsheet-items.tsx
|
|
6848
|
-
import { jsx as
|
|
7375
|
+
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
6849
7376
|
var ActionSheetItems = (props) => {
|
|
6850
7377
|
const {
|
|
6851
7378
|
...other
|
|
6852
7379
|
} = props;
|
|
6853
|
-
return /* @__PURE__ */
|
|
7380
|
+
return /* @__PURE__ */ jsx137(
|
|
6854
7381
|
"div",
|
|
6855
7382
|
{
|
|
6856
7383
|
...other,
|
|
@@ -6864,8 +7391,8 @@ var ActionSheetItems = (props) => {
|
|
|
6864
7391
|
};
|
|
6865
7392
|
|
|
6866
7393
|
// src/action-sheet/actionsheet-item.tsx
|
|
6867
|
-
import { Fragment as Fragment33, jsx as
|
|
6868
|
-
var
|
|
7394
|
+
import { Fragment as Fragment33, jsx as jsx138, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
7395
|
+
var states47 = [
|
|
6869
7396
|
States.hover,
|
|
6870
7397
|
States.focus,
|
|
6871
7398
|
States.selected,
|
|
@@ -6873,9 +7400,9 @@ var states39 = [
|
|
|
6873
7400
|
];
|
|
6874
7401
|
|
|
6875
7402
|
// src/combobox/combobox.spec.tsx
|
|
6876
|
-
import { Fragment as Fragment34, jsx as
|
|
7403
|
+
import { Fragment as Fragment34, jsx as jsx139, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
6877
7404
|
var COMBOBOX_CLASSNAME = `k-combobox`;
|
|
6878
|
-
var
|
|
7405
|
+
var states48 = [
|
|
6879
7406
|
States.hover,
|
|
6880
7407
|
States.focus,
|
|
6881
7408
|
States.valid,
|
|
@@ -6885,12 +7412,12 @@ var states40 = [
|
|
|
6885
7412
|
States.disabled,
|
|
6886
7413
|
States.readonly
|
|
6887
7414
|
];
|
|
6888
|
-
var
|
|
7415
|
+
var defaultProps42 = {
|
|
6889
7416
|
size: Input.defaultProps.size,
|
|
6890
7417
|
rounded: Input.defaultProps.rounded,
|
|
6891
7418
|
fillMode: Input.defaultProps.fillMode
|
|
6892
7419
|
};
|
|
6893
|
-
var
|
|
7420
|
+
var options43 = {
|
|
6894
7421
|
size: [Size.small, Size.medium, Size.large],
|
|
6895
7422
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
6896
7423
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
@@ -6918,8 +7445,8 @@ var Combobox = (props) => {
|
|
|
6918
7445
|
adaptiveSettings,
|
|
6919
7446
|
...other
|
|
6920
7447
|
} = props;
|
|
6921
|
-
return /* @__PURE__ */
|
|
6922
|
-
/* @__PURE__ */
|
|
7448
|
+
return /* @__PURE__ */ jsxs52(Fragment34, { children: [
|
|
7449
|
+
/* @__PURE__ */ jsxs52(
|
|
6923
7450
|
Input,
|
|
6924
7451
|
{
|
|
6925
7452
|
...other,
|
|
@@ -6936,12 +7463,12 @@ var Combobox = (props) => {
|
|
|
6936
7463
|
readonly,
|
|
6937
7464
|
className: classNames(props.className, COMBOBOX_CLASSNAME),
|
|
6938
7465
|
children: [
|
|
6939
|
-
prefix && /* @__PURE__ */
|
|
6940
|
-
/* @__PURE__ */
|
|
6941
|
-
/* @__PURE__ */
|
|
7466
|
+
prefix && /* @__PURE__ */ jsxs52(Fragment34, { children: [
|
|
7467
|
+
/* @__PURE__ */ jsx139(InputPrefix, { children: prefix }),
|
|
7468
|
+
/* @__PURE__ */ jsx139(InputSeparator, {})
|
|
6942
7469
|
] }),
|
|
6943
|
-
/* @__PURE__ */
|
|
6944
|
-
/* @__PURE__ */
|
|
7470
|
+
/* @__PURE__ */ jsx139(InputInnerInput, { placeholder, value }),
|
|
7471
|
+
/* @__PURE__ */ jsx139(
|
|
6945
7472
|
InputValidationIcon,
|
|
6946
7473
|
{
|
|
6947
7474
|
valid,
|
|
@@ -6950,14 +7477,14 @@ var Combobox = (props) => {
|
|
|
6950
7477
|
disabled
|
|
6951
7478
|
}
|
|
6952
7479
|
),
|
|
6953
|
-
/* @__PURE__ */
|
|
7480
|
+
/* @__PURE__ */ jsx139(
|
|
6954
7481
|
InputLoadingIcon,
|
|
6955
7482
|
{
|
|
6956
7483
|
loading,
|
|
6957
7484
|
disabled
|
|
6958
7485
|
}
|
|
6959
7486
|
),
|
|
6960
|
-
/* @__PURE__ */
|
|
7487
|
+
/* @__PURE__ */ jsx139(
|
|
6961
7488
|
InputClearValue,
|
|
6962
7489
|
{
|
|
6963
7490
|
loading,
|
|
@@ -6966,11 +7493,11 @@ var Combobox = (props) => {
|
|
|
6966
7493
|
value
|
|
6967
7494
|
}
|
|
6968
7495
|
),
|
|
6969
|
-
suffix && /* @__PURE__ */
|
|
6970
|
-
/* @__PURE__ */
|
|
6971
|
-
/* @__PURE__ */
|
|
7496
|
+
suffix && /* @__PURE__ */ jsxs52(Fragment34, { children: [
|
|
7497
|
+
/* @__PURE__ */ jsx139(InputSeparator, {}),
|
|
7498
|
+
/* @__PURE__ */ jsx139(InputSuffix, { children: suffix })
|
|
6972
7499
|
] }),
|
|
6973
|
-
/* @__PURE__ */
|
|
7500
|
+
/* @__PURE__ */ jsx139(
|
|
6974
7501
|
Button,
|
|
6975
7502
|
{
|
|
6976
7503
|
className: "k-input-button",
|
|
@@ -6983,9 +7510,9 @@ var Combobox = (props) => {
|
|
|
6983
7510
|
]
|
|
6984
7511
|
}
|
|
6985
7512
|
),
|
|
6986
|
-
opened && popup && /* @__PURE__ */
|
|
6987
|
-
adaptive && /* @__PURE__ */
|
|
6988
|
-
/* @__PURE__ */
|
|
7513
|
+
opened && popup && /* @__PURE__ */ jsx139(Popup, { className: "k-list-container k-combobox-popup", children: popup }),
|
|
7514
|
+
adaptive && /* @__PURE__ */ jsxs52(ActionSheet, { adaptive: true, ...adaptiveSettings, children: [
|
|
7515
|
+
/* @__PURE__ */ jsx139(
|
|
6989
7516
|
ActionSheetHeader,
|
|
6990
7517
|
{
|
|
6991
7518
|
actions: ["x"],
|
|
@@ -6993,48 +7520,48 @@ var Combobox = (props) => {
|
|
|
6993
7520
|
title: "Select Item"
|
|
6994
7521
|
}
|
|
6995
7522
|
),
|
|
6996
|
-
/* @__PURE__ */
|
|
6997
|
-
/* @__PURE__ */
|
|
6998
|
-
/* @__PURE__ */
|
|
6999
|
-
/* @__PURE__ */
|
|
7523
|
+
/* @__PURE__ */ jsx139("div", { className: "k-list-container", children: /* @__PURE__ */ jsxs52(List, { size: "large", children: [
|
|
7524
|
+
/* @__PURE__ */ jsx139(ListItem, { text: "List item" }),
|
|
7525
|
+
/* @__PURE__ */ jsx139(ListItem, { text: "List item" }),
|
|
7526
|
+
/* @__PURE__ */ jsx139(ListItem, { text: "List item" })
|
|
7000
7527
|
] }) })
|
|
7001
7528
|
] })
|
|
7002
7529
|
] });
|
|
7003
7530
|
};
|
|
7004
|
-
Combobox.states =
|
|
7005
|
-
Combobox.options =
|
|
7531
|
+
Combobox.states = states48;
|
|
7532
|
+
Combobox.options = options43;
|
|
7006
7533
|
Combobox.className = COMBOBOX_CLASSNAME;
|
|
7007
|
-
Combobox.defaultProps =
|
|
7534
|
+
Combobox.defaultProps = defaultProps42;
|
|
7008
7535
|
|
|
7009
7536
|
// src/combobox/templates/combobox-normal.tsx
|
|
7010
|
-
import { jsx as
|
|
7537
|
+
import { jsx as jsx140 } from "react/jsx-runtime";
|
|
7011
7538
|
|
|
7012
7539
|
// src/combobox/templates/combobox-popup.tsx
|
|
7013
|
-
import { jsx as
|
|
7540
|
+
import { jsx as jsx141, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
7014
7541
|
|
|
7015
7542
|
// src/combobox/templates/combobox-grouping.tsx
|
|
7016
|
-
import { jsx as
|
|
7543
|
+
import { jsx as jsx142, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
7017
7544
|
|
|
7018
7545
|
// src/combobox/templates/combobox-adaptive.tsx
|
|
7019
|
-
import { jsx as
|
|
7546
|
+
import { jsx as jsx143 } from "react/jsx-runtime";
|
|
7020
7547
|
|
|
7021
7548
|
// src/combobox/templates/combobox-prefix.tsx
|
|
7022
|
-
import { Fragment as Fragment35, jsx as
|
|
7549
|
+
import { Fragment as Fragment35, jsx as jsx144 } from "react/jsx-runtime";
|
|
7023
7550
|
|
|
7024
7551
|
// src/combobox/templates/combobox-suffix.tsx
|
|
7025
|
-
import { Fragment as Fragment36, jsx as
|
|
7552
|
+
import { Fragment as Fragment36, jsx as jsx145 } from "react/jsx-runtime";
|
|
7026
7553
|
|
|
7027
7554
|
// src/menu-button/menu-button.spec.tsx
|
|
7028
|
-
import { Fragment as Fragment37, jsx as
|
|
7555
|
+
import { Fragment as Fragment37, jsx as jsx146, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
7029
7556
|
var MENUBUTTON_CLASSNAME = `k-menu-button`;
|
|
7030
|
-
var
|
|
7557
|
+
var states49 = [
|
|
7031
7558
|
States.hover,
|
|
7032
7559
|
States.focus,
|
|
7033
7560
|
States.active,
|
|
7034
7561
|
States.selected,
|
|
7035
7562
|
States.disabled
|
|
7036
7563
|
];
|
|
7037
|
-
var
|
|
7564
|
+
var options44 = {
|
|
7038
7565
|
size: [Size.small, Size.medium, Size.large],
|
|
7039
7566
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
7040
7567
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
|
|
@@ -7052,7 +7579,7 @@ var options39 = {
|
|
|
7052
7579
|
ThemeColor.inverse
|
|
7053
7580
|
]
|
|
7054
7581
|
};
|
|
7055
|
-
var
|
|
7582
|
+
var defaultProps43 = {
|
|
7056
7583
|
size: Size.medium,
|
|
7057
7584
|
rounded: Roundness.medium,
|
|
7058
7585
|
fillMode: FillMode.solid,
|
|
@@ -7062,10 +7589,10 @@ var defaultProps38 = {
|
|
|
7062
7589
|
};
|
|
7063
7590
|
var MenuButton = (props) => {
|
|
7064
7591
|
const {
|
|
7065
|
-
size =
|
|
7066
|
-
rounded =
|
|
7067
|
-
fillMode =
|
|
7068
|
-
themeColor =
|
|
7592
|
+
size = defaultProps43.size,
|
|
7593
|
+
rounded = defaultProps43.rounded,
|
|
7594
|
+
fillMode = defaultProps43.fillMode,
|
|
7595
|
+
themeColor = defaultProps43.themeColor,
|
|
7069
7596
|
hover,
|
|
7070
7597
|
focus,
|
|
7071
7598
|
active,
|
|
@@ -7073,14 +7600,14 @@ var MenuButton = (props) => {
|
|
|
7073
7600
|
disabled,
|
|
7074
7601
|
icon,
|
|
7075
7602
|
text,
|
|
7076
|
-
showArrow =
|
|
7077
|
-
arrowIconName =
|
|
7603
|
+
showArrow = defaultProps43.showArrow,
|
|
7604
|
+
arrowIconName = defaultProps43.arrowIconName,
|
|
7078
7605
|
popup,
|
|
7079
7606
|
opened,
|
|
7080
7607
|
...other
|
|
7081
7608
|
} = props;
|
|
7082
|
-
return /* @__PURE__ */
|
|
7083
|
-
/* @__PURE__ */
|
|
7609
|
+
return /* @__PURE__ */ jsxs55(Fragment37, { children: [
|
|
7610
|
+
/* @__PURE__ */ jsx146(
|
|
7084
7611
|
Button,
|
|
7085
7612
|
{
|
|
7086
7613
|
...other,
|
|
@@ -7103,35 +7630,35 @@ var MenuButton = (props) => {
|
|
|
7103
7630
|
arrowIconName
|
|
7104
7631
|
}
|
|
7105
7632
|
),
|
|
7106
|
-
opened && popup && /* @__PURE__ */
|
|
7633
|
+
opened && popup && /* @__PURE__ */ jsx146(Popup, { className: "k-menu-popup", children: popup })
|
|
7107
7634
|
] });
|
|
7108
7635
|
};
|
|
7109
|
-
MenuButton.states =
|
|
7110
|
-
MenuButton.options =
|
|
7636
|
+
MenuButton.states = states49;
|
|
7637
|
+
MenuButton.options = options44;
|
|
7111
7638
|
MenuButton.className = MENUBUTTON_CLASSNAME;
|
|
7112
|
-
MenuButton.defaultProps =
|
|
7639
|
+
MenuButton.defaultProps = defaultProps43;
|
|
7113
7640
|
|
|
7114
7641
|
// src/menu-button/templates/icon-menu-button.tsx
|
|
7115
|
-
import { jsx as
|
|
7642
|
+
import { jsx as jsx147 } from "react/jsx-runtime";
|
|
7116
7643
|
|
|
7117
7644
|
// src/menu-button/templates/icon-text-menu-button.tsx
|
|
7118
|
-
import { jsx as
|
|
7645
|
+
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
7119
7646
|
|
|
7120
7647
|
// src/menu-button/templates/text-menu-button.tsx
|
|
7121
|
-
import { jsx as
|
|
7648
|
+
import { jsx as jsx149 } from "react/jsx-runtime";
|
|
7122
7649
|
|
|
7123
7650
|
// src/menu/menu-item.spec.tsx
|
|
7124
|
-
import { Fragment as Fragment38, jsx as
|
|
7651
|
+
import { Fragment as Fragment38, jsx as jsx150, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
7125
7652
|
var MENUITEM_CLASSNAME = `k-menu-item`;
|
|
7126
|
-
var
|
|
7653
|
+
var states50 = [
|
|
7127
7654
|
States.hover,
|
|
7128
7655
|
States.focus,
|
|
7129
7656
|
States.active,
|
|
7130
7657
|
States.selected,
|
|
7131
7658
|
States.disabled
|
|
7132
7659
|
];
|
|
7133
|
-
var
|
|
7134
|
-
var
|
|
7660
|
+
var options45 = {};
|
|
7661
|
+
var defaultProps44 = {
|
|
7135
7662
|
dir: "ltr"
|
|
7136
7663
|
};
|
|
7137
7664
|
var MenuItem = (props) => {
|
|
@@ -7145,11 +7672,11 @@ var MenuItem = (props) => {
|
|
|
7145
7672
|
text,
|
|
7146
7673
|
showArrow,
|
|
7147
7674
|
arrowIconName,
|
|
7148
|
-
dir =
|
|
7675
|
+
dir = defaultProps44.dir,
|
|
7149
7676
|
children,
|
|
7150
7677
|
...other
|
|
7151
7678
|
} = props;
|
|
7152
|
-
const contentTemplate = /* @__PURE__ */
|
|
7679
|
+
const contentTemplate = /* @__PURE__ */ jsx150(Fragment38, {});
|
|
7153
7680
|
if (children) {
|
|
7154
7681
|
children.forEach((child) => {
|
|
7155
7682
|
const component = child.type;
|
|
@@ -7163,7 +7690,7 @@ var MenuItem = (props) => {
|
|
|
7163
7690
|
if (!expandArrowName) {
|
|
7164
7691
|
expandArrowName = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
|
|
7165
7692
|
}
|
|
7166
|
-
return /* @__PURE__ */
|
|
7693
|
+
return /* @__PURE__ */ jsxs56(
|
|
7167
7694
|
"li",
|
|
7168
7695
|
{
|
|
7169
7696
|
...other,
|
|
@@ -7178,7 +7705,7 @@ var MenuItem = (props) => {
|
|
|
7178
7705
|
})
|
|
7179
7706
|
),
|
|
7180
7707
|
children: [
|
|
7181
|
-
/* @__PURE__ */
|
|
7708
|
+
/* @__PURE__ */ jsxs56(
|
|
7182
7709
|
"span",
|
|
7183
7710
|
{
|
|
7184
7711
|
className: classNames(
|
|
@@ -7191,9 +7718,9 @@ var MenuItem = (props) => {
|
|
|
7191
7718
|
})
|
|
7192
7719
|
),
|
|
7193
7720
|
children: [
|
|
7194
|
-
icon && /* @__PURE__ */
|
|
7195
|
-
/* @__PURE__ */
|
|
7196
|
-
showArrow && /* @__PURE__ */
|
|
7721
|
+
icon && /* @__PURE__ */ jsx150(Icon, { className: "k-menu-link-icon", icon }),
|
|
7722
|
+
/* @__PURE__ */ jsx150("span", { className: "k-menu-link-text", children: text }),
|
|
7723
|
+
showArrow && /* @__PURE__ */ jsx150("span", { className: "k-menu-expand-arrow", children: /* @__PURE__ */ jsx150(Icon, { icon: expandArrowName }) })
|
|
7197
7724
|
]
|
|
7198
7725
|
}
|
|
7199
7726
|
),
|
|
@@ -7202,24 +7729,24 @@ var MenuItem = (props) => {
|
|
|
7202
7729
|
}
|
|
7203
7730
|
);
|
|
7204
7731
|
};
|
|
7205
|
-
MenuItem.states =
|
|
7206
|
-
MenuItem.options =
|
|
7732
|
+
MenuItem.states = states50;
|
|
7733
|
+
MenuItem.options = options45;
|
|
7207
7734
|
MenuItem.className = MENUITEM_CLASSNAME;
|
|
7208
|
-
MenuItem.defaultProps =
|
|
7735
|
+
MenuItem.defaultProps = defaultProps44;
|
|
7209
7736
|
var menu_item_spec_default = MenuItem;
|
|
7210
7737
|
|
|
7211
7738
|
// src/menu/menu-separator.spec.tsx
|
|
7212
|
-
import { jsx as
|
|
7739
|
+
import { jsx as jsx151 } from "react/jsx-runtime";
|
|
7213
7740
|
var SEPARATOR_CLASSNAME = `k-separator`;
|
|
7214
|
-
var
|
|
7741
|
+
var defaultProps45 = {
|
|
7215
7742
|
orientation: "horizontal"
|
|
7216
7743
|
};
|
|
7217
7744
|
var MenuSeparator = (props) => {
|
|
7218
7745
|
const {
|
|
7219
|
-
orientation =
|
|
7746
|
+
orientation = defaultProps45.orientation,
|
|
7220
7747
|
...other
|
|
7221
7748
|
} = props;
|
|
7222
|
-
return /* @__PURE__ */
|
|
7749
|
+
return /* @__PURE__ */ jsx151(
|
|
7223
7750
|
"li",
|
|
7224
7751
|
{
|
|
7225
7752
|
...other,
|
|
@@ -7237,25 +7764,25 @@ var MenuSeparator = (props) => {
|
|
|
7237
7764
|
var menu_separator_spec_default = MenuSeparator;
|
|
7238
7765
|
|
|
7239
7766
|
// src/menu/menu-item-content.tsx
|
|
7240
|
-
import { Fragment as Fragment39, jsx as
|
|
7767
|
+
import { Fragment as Fragment39, jsx as jsx152 } from "react/jsx-runtime";
|
|
7241
7768
|
|
|
7242
7769
|
// src/menu/menu-list.spec.tsx
|
|
7243
|
-
import { jsx as
|
|
7770
|
+
import { jsx as jsx153 } from "react/jsx-runtime";
|
|
7244
7771
|
import { createElement } from "react";
|
|
7245
7772
|
var MENULIST_CLASSNAME = `k-menu-group`;
|
|
7246
|
-
var
|
|
7247
|
-
var
|
|
7773
|
+
var states51 = [];
|
|
7774
|
+
var options46 = {
|
|
7248
7775
|
size: [Size.small, Size.medium, Size.large]
|
|
7249
7776
|
};
|
|
7250
|
-
var
|
|
7777
|
+
var defaultProps46 = {
|
|
7251
7778
|
size: Size.medium,
|
|
7252
7779
|
dir: "ltr"
|
|
7253
7780
|
};
|
|
7254
7781
|
var MenuList = (props) => {
|
|
7255
7782
|
const {
|
|
7256
7783
|
children,
|
|
7257
|
-
size =
|
|
7258
|
-
dir =
|
|
7784
|
+
size = defaultProps46.size,
|
|
7785
|
+
dir = defaultProps46.dir,
|
|
7259
7786
|
...other
|
|
7260
7787
|
} = props;
|
|
7261
7788
|
const listChildren = [];
|
|
@@ -7268,7 +7795,7 @@ var MenuList = (props) => {
|
|
|
7268
7795
|
);
|
|
7269
7796
|
} else if (child.type === menu_separator_spec_default) {
|
|
7270
7797
|
listChildren.push(
|
|
7271
|
-
/* @__PURE__ */
|
|
7798
|
+
/* @__PURE__ */ jsx153(menu_separator_spec_default, {})
|
|
7272
7799
|
);
|
|
7273
7800
|
} else {
|
|
7274
7801
|
listChildren.push(child);
|
|
@@ -7276,7 +7803,7 @@ var MenuList = (props) => {
|
|
|
7276
7803
|
});
|
|
7277
7804
|
}
|
|
7278
7805
|
}
|
|
7279
|
-
return /* @__PURE__ */
|
|
7806
|
+
return /* @__PURE__ */ jsx153(
|
|
7280
7807
|
"ul",
|
|
7281
7808
|
{
|
|
7282
7809
|
...other,
|
|
@@ -7291,25 +7818,25 @@ var MenuList = (props) => {
|
|
|
7291
7818
|
}
|
|
7292
7819
|
);
|
|
7293
7820
|
};
|
|
7294
|
-
MenuList.states =
|
|
7295
|
-
MenuList.options =
|
|
7821
|
+
MenuList.states = states51;
|
|
7822
|
+
MenuList.options = options46;
|
|
7296
7823
|
MenuList.className = MENULIST_CLASSNAME;
|
|
7297
|
-
MenuList.defaultProps =
|
|
7824
|
+
MenuList.defaultProps = defaultProps46;
|
|
7298
7825
|
|
|
7299
7826
|
// src/menu-button/templates/menu-button-popup.tsx
|
|
7300
|
-
import { jsx as
|
|
7827
|
+
import { jsx as jsx154, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
7301
7828
|
|
|
7302
7829
|
// src/split-button/split-button.spec.tsx
|
|
7303
|
-
import { Fragment as Fragment40, jsx as
|
|
7830
|
+
import { Fragment as Fragment40, jsx as jsx155, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
7304
7831
|
var SPLITBUTTON_CLASSNAME = `k-split-button`;
|
|
7305
|
-
var
|
|
7832
|
+
var states52 = [
|
|
7306
7833
|
States.hover,
|
|
7307
7834
|
States.focus,
|
|
7308
7835
|
States.active,
|
|
7309
7836
|
States.selected,
|
|
7310
7837
|
States.disabled
|
|
7311
7838
|
];
|
|
7312
|
-
var
|
|
7839
|
+
var options47 = {
|
|
7313
7840
|
size: [Size.small, Size.medium, Size.large],
|
|
7314
7841
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
7315
7842
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
|
|
@@ -7327,7 +7854,7 @@ var options42 = {
|
|
|
7327
7854
|
ThemeColor.inverse
|
|
7328
7855
|
]
|
|
7329
7856
|
};
|
|
7330
|
-
var
|
|
7857
|
+
var defaultProps47 = {
|
|
7331
7858
|
size: Size.medium,
|
|
7332
7859
|
rounded: Roundness.medium,
|
|
7333
7860
|
fillMode: FillMode.solid,
|
|
@@ -7336,10 +7863,10 @@ var defaultProps42 = {
|
|
|
7336
7863
|
};
|
|
7337
7864
|
var SplitButton = (props) => {
|
|
7338
7865
|
const {
|
|
7339
|
-
size =
|
|
7340
|
-
rounded =
|
|
7341
|
-
fillMode =
|
|
7342
|
-
themeColor =
|
|
7866
|
+
size = defaultProps47.size,
|
|
7867
|
+
rounded = defaultProps47.rounded,
|
|
7868
|
+
fillMode = defaultProps47.fillMode,
|
|
7869
|
+
themeColor = defaultProps47.themeColor,
|
|
7343
7870
|
hover,
|
|
7344
7871
|
focus,
|
|
7345
7872
|
active,
|
|
@@ -7347,13 +7874,13 @@ var SplitButton = (props) => {
|
|
|
7347
7874
|
disabled,
|
|
7348
7875
|
icon,
|
|
7349
7876
|
text,
|
|
7350
|
-
arrowIconName =
|
|
7877
|
+
arrowIconName = defaultProps47.arrowIconName,
|
|
7351
7878
|
popup,
|
|
7352
7879
|
opened,
|
|
7353
7880
|
...other
|
|
7354
7881
|
} = props;
|
|
7355
|
-
return /* @__PURE__ */
|
|
7356
|
-
/* @__PURE__ */
|
|
7882
|
+
return /* @__PURE__ */ jsxs58(Fragment40, { children: [
|
|
7883
|
+
/* @__PURE__ */ jsxs58(
|
|
7357
7884
|
"div",
|
|
7358
7885
|
{
|
|
7359
7886
|
...other,
|
|
@@ -7366,7 +7893,7 @@ var SplitButton = (props) => {
|
|
|
7366
7893
|
})
|
|
7367
7894
|
),
|
|
7368
7895
|
children: [
|
|
7369
|
-
/* @__PURE__ */
|
|
7896
|
+
/* @__PURE__ */ jsx155(
|
|
7370
7897
|
Button,
|
|
7371
7898
|
{
|
|
7372
7899
|
text,
|
|
@@ -7383,7 +7910,7 @@ var SplitButton = (props) => {
|
|
|
7383
7910
|
children: props.children
|
|
7384
7911
|
}
|
|
7385
7912
|
),
|
|
7386
|
-
/* @__PURE__ */
|
|
7913
|
+
/* @__PURE__ */ jsx155(
|
|
7387
7914
|
Button,
|
|
7388
7915
|
{
|
|
7389
7916
|
className: "k-split-button-arrow",
|
|
@@ -7397,30 +7924,30 @@ var SplitButton = (props) => {
|
|
|
7397
7924
|
]
|
|
7398
7925
|
}
|
|
7399
7926
|
),
|
|
7400
|
-
opened && popup && /* @__PURE__ */
|
|
7927
|
+
opened && popup && /* @__PURE__ */ jsx155(Popup, { className: "k-menu-popup", children: popup })
|
|
7401
7928
|
] });
|
|
7402
7929
|
};
|
|
7403
|
-
SplitButton.states =
|
|
7404
|
-
SplitButton.options =
|
|
7930
|
+
SplitButton.states = states52;
|
|
7931
|
+
SplitButton.options = options47;
|
|
7405
7932
|
SplitButton.className = SPLITBUTTON_CLASSNAME;
|
|
7406
|
-
SplitButton.defaultProps =
|
|
7933
|
+
SplitButton.defaultProps = defaultProps47;
|
|
7407
7934
|
var split_button_spec_default = SplitButton;
|
|
7408
7935
|
|
|
7409
7936
|
// src/toolbar/toolbar.spec.tsx
|
|
7410
|
-
import { jsx as
|
|
7937
|
+
import { jsx as jsx156 } from "react/jsx-runtime";
|
|
7411
7938
|
var TOOLBAR_CLASSNAME = `k-toolbar`;
|
|
7412
|
-
var
|
|
7939
|
+
var states53 = [
|
|
7413
7940
|
States.focus
|
|
7414
7941
|
];
|
|
7415
|
-
var
|
|
7942
|
+
var options48 = {
|
|
7416
7943
|
size: [Size.small, Size.medium, Size.large]
|
|
7417
7944
|
};
|
|
7418
|
-
var
|
|
7945
|
+
var defaultProps48 = {
|
|
7419
7946
|
size: Size.medium
|
|
7420
7947
|
};
|
|
7421
7948
|
var Toolbar = (props) => {
|
|
7422
7949
|
const {
|
|
7423
|
-
size =
|
|
7950
|
+
size = defaultProps48.size,
|
|
7424
7951
|
focus,
|
|
7425
7952
|
resizable,
|
|
7426
7953
|
...other
|
|
@@ -7430,7 +7957,7 @@ var Toolbar = (props) => {
|
|
|
7430
7957
|
const tempToolbarChildren = [];
|
|
7431
7958
|
if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
|
|
7432
7959
|
tempToolbarChildren.push(
|
|
7433
|
-
/* @__PURE__ */
|
|
7960
|
+
/* @__PURE__ */ jsx156(
|
|
7434
7961
|
Button,
|
|
7435
7962
|
{
|
|
7436
7963
|
...child.props,
|
|
@@ -7441,7 +7968,7 @@ var Toolbar = (props) => {
|
|
|
7441
7968
|
);
|
|
7442
7969
|
} else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
|
|
7443
7970
|
tempToolbarChildren.push(
|
|
7444
|
-
/* @__PURE__ */
|
|
7971
|
+
/* @__PURE__ */ jsx156(
|
|
7445
7972
|
Button,
|
|
7446
7973
|
{
|
|
7447
7974
|
...child.props,
|
|
@@ -7452,7 +7979,7 @@ var Toolbar = (props) => {
|
|
|
7452
7979
|
);
|
|
7453
7980
|
} else if (child.type === Button) {
|
|
7454
7981
|
tempToolbarChildren.push(
|
|
7455
|
-
/* @__PURE__ */
|
|
7982
|
+
/* @__PURE__ */ jsx156(
|
|
7456
7983
|
Button,
|
|
7457
7984
|
{
|
|
7458
7985
|
...child.props,
|
|
@@ -7463,7 +7990,7 @@ var Toolbar = (props) => {
|
|
|
7463
7990
|
);
|
|
7464
7991
|
} else if (child.type === MenuButton) {
|
|
7465
7992
|
tempToolbarChildren.push(
|
|
7466
|
-
/* @__PURE__ */
|
|
7993
|
+
/* @__PURE__ */ jsx156(
|
|
7467
7994
|
MenuButton,
|
|
7468
7995
|
{
|
|
7469
7996
|
...child.props,
|
|
@@ -7474,7 +8001,7 @@ var Toolbar = (props) => {
|
|
|
7474
8001
|
);
|
|
7475
8002
|
} else if (child.type === split_button_spec_default) {
|
|
7476
8003
|
tempToolbarChildren.push(
|
|
7477
|
-
/* @__PURE__ */
|
|
8004
|
+
/* @__PURE__ */ jsx156(
|
|
7478
8005
|
split_button_spec_default,
|
|
7479
8006
|
{
|
|
7480
8007
|
...child.props,
|
|
@@ -7488,7 +8015,7 @@ var Toolbar = (props) => {
|
|
|
7488
8015
|
const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
|
|
7489
8016
|
childrenArray.forEach((button, bindex) => {
|
|
7490
8017
|
buttonGroupItems.push(
|
|
7491
|
-
/* @__PURE__ */
|
|
8018
|
+
/* @__PURE__ */ jsx156(
|
|
7492
8019
|
Button,
|
|
7493
8020
|
{
|
|
7494
8021
|
...button.props,
|
|
@@ -7499,7 +8026,7 @@ var Toolbar = (props) => {
|
|
|
7499
8026
|
);
|
|
7500
8027
|
});
|
|
7501
8028
|
tempToolbarChildren.push(
|
|
7502
|
-
/* @__PURE__ */
|
|
8029
|
+
/* @__PURE__ */ jsx156(
|
|
7503
8030
|
ButtonGroup,
|
|
7504
8031
|
{
|
|
7505
8032
|
...child.props,
|
|
@@ -7511,7 +8038,7 @@ var Toolbar = (props) => {
|
|
|
7511
8038
|
);
|
|
7512
8039
|
} else if (child.type === Combobox) {
|
|
7513
8040
|
tempToolbarChildren.push(
|
|
7514
|
-
/* @__PURE__ */
|
|
8041
|
+
/* @__PURE__ */ jsx156(
|
|
7515
8042
|
Combobox,
|
|
7516
8043
|
{
|
|
7517
8044
|
...child.props,
|
|
@@ -7522,7 +8049,7 @@ var Toolbar = (props) => {
|
|
|
7522
8049
|
);
|
|
7523
8050
|
} else if (child.type === DropdownList) {
|
|
7524
8051
|
tempToolbarChildren.push(
|
|
7525
|
-
/* @__PURE__ */
|
|
8052
|
+
/* @__PURE__ */ jsx156(
|
|
7526
8053
|
DropdownList,
|
|
7527
8054
|
{
|
|
7528
8055
|
...child.props,
|
|
@@ -7533,7 +8060,7 @@ var Toolbar = (props) => {
|
|
|
7533
8060
|
);
|
|
7534
8061
|
} else if (child.type === ColorPicker) {
|
|
7535
8062
|
tempToolbarChildren.push(
|
|
7536
|
-
/* @__PURE__ */
|
|
8063
|
+
/* @__PURE__ */ jsx156(
|
|
7537
8064
|
ColorPicker,
|
|
7538
8065
|
{
|
|
7539
8066
|
...child.props,
|
|
@@ -7555,7 +8082,7 @@ var Toolbar = (props) => {
|
|
|
7555
8082
|
addUniqueToolClass(child, index);
|
|
7556
8083
|
});
|
|
7557
8084
|
}
|
|
7558
|
-
return /* @__PURE__ */
|
|
8085
|
+
return /* @__PURE__ */ jsx156(
|
|
7559
8086
|
"div",
|
|
7560
8087
|
{
|
|
7561
8088
|
...other,
|
|
@@ -7576,26 +8103,26 @@ var Toolbar = (props) => {
|
|
|
7576
8103
|
}
|
|
7577
8104
|
);
|
|
7578
8105
|
};
|
|
7579
|
-
Toolbar.states =
|
|
7580
|
-
Toolbar.options =
|
|
8106
|
+
Toolbar.states = states53;
|
|
8107
|
+
Toolbar.options = options48;
|
|
7581
8108
|
Toolbar.className = TOOLBAR_CLASSNAME;
|
|
7582
|
-
Toolbar.defaultProps =
|
|
8109
|
+
Toolbar.defaultProps = defaultProps48;
|
|
7583
8110
|
|
|
7584
8111
|
// src/toolbar/toolbar-angular.spec.tsx
|
|
7585
|
-
import { jsx as
|
|
8112
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
7586
8113
|
var TOOLBARANGULAR_CLASSNAME = `k-toolbar`;
|
|
7587
|
-
var
|
|
8114
|
+
var states54 = [
|
|
7588
8115
|
States.focus
|
|
7589
8116
|
];
|
|
7590
|
-
var
|
|
8117
|
+
var options49 = {
|
|
7591
8118
|
size: [Size.small, Size.medium, Size.large]
|
|
7592
8119
|
};
|
|
7593
|
-
var
|
|
8120
|
+
var defaultProps49 = {
|
|
7594
8121
|
size: Size.medium
|
|
7595
8122
|
};
|
|
7596
8123
|
var ToolbarAngular = (props) => {
|
|
7597
8124
|
const {
|
|
7598
|
-
size =
|
|
8125
|
+
size = defaultProps49.size,
|
|
7599
8126
|
focus,
|
|
7600
8127
|
resizable,
|
|
7601
8128
|
...other
|
|
@@ -7605,7 +8132,7 @@ var ToolbarAngular = (props) => {
|
|
|
7605
8132
|
const tempToolbarChildren = [];
|
|
7606
8133
|
if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
|
|
7607
8134
|
tempToolbarChildren.push(
|
|
7608
|
-
/* @__PURE__ */
|
|
8135
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
7609
8136
|
Button,
|
|
7610
8137
|
{
|
|
7611
8138
|
...child.props,
|
|
@@ -7616,7 +8143,7 @@ var ToolbarAngular = (props) => {
|
|
|
7616
8143
|
);
|
|
7617
8144
|
} else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
|
|
7618
8145
|
tempToolbarChildren.push(
|
|
7619
|
-
/* @__PURE__ */
|
|
8146
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
7620
8147
|
Button,
|
|
7621
8148
|
{
|
|
7622
8149
|
...child.props,
|
|
@@ -7627,7 +8154,7 @@ var ToolbarAngular = (props) => {
|
|
|
7627
8154
|
);
|
|
7628
8155
|
} else if (child.type === Button) {
|
|
7629
8156
|
tempToolbarChildren.push(
|
|
7630
|
-
/* @__PURE__ */
|
|
8157
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
7631
8158
|
Button,
|
|
7632
8159
|
{
|
|
7633
8160
|
...child.props,
|
|
@@ -7638,7 +8165,7 @@ var ToolbarAngular = (props) => {
|
|
|
7638
8165
|
);
|
|
7639
8166
|
} else if (child.type === MenuButton) {
|
|
7640
8167
|
tempToolbarChildren.push(
|
|
7641
|
-
/* @__PURE__ */
|
|
8168
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
7642
8169
|
MenuButton,
|
|
7643
8170
|
{
|
|
7644
8171
|
...child.props,
|
|
@@ -7649,7 +8176,7 @@ var ToolbarAngular = (props) => {
|
|
|
7649
8176
|
);
|
|
7650
8177
|
} else if (child.type === split_button_spec_default) {
|
|
7651
8178
|
tempToolbarChildren.push(
|
|
7652
|
-
/* @__PURE__ */
|
|
8179
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
7653
8180
|
split_button_spec_default,
|
|
7654
8181
|
{
|
|
7655
8182
|
...child.props,
|
|
@@ -7663,7 +8190,7 @@ var ToolbarAngular = (props) => {
|
|
|
7663
8190
|
const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
|
|
7664
8191
|
childrenArray.forEach((button, bindex) => {
|
|
7665
8192
|
buttonGroupItems.push(
|
|
7666
|
-
/* @__PURE__ */
|
|
8193
|
+
/* @__PURE__ */ jsx157(
|
|
7667
8194
|
Button,
|
|
7668
8195
|
{
|
|
7669
8196
|
...button.props,
|
|
@@ -7674,7 +8201,7 @@ var ToolbarAngular = (props) => {
|
|
|
7674
8201
|
);
|
|
7675
8202
|
});
|
|
7676
8203
|
tempToolbarChildren.push(
|
|
7677
|
-
/* @__PURE__ */
|
|
8204
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
7678
8205
|
ButtonGroup,
|
|
7679
8206
|
{
|
|
7680
8207
|
...child.props,
|
|
@@ -7686,7 +8213,7 @@ var ToolbarAngular = (props) => {
|
|
|
7686
8213
|
);
|
|
7687
8214
|
} else if (child.type === Combobox) {
|
|
7688
8215
|
tempToolbarChildren.push(
|
|
7689
|
-
/* @__PURE__ */
|
|
8216
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
7690
8217
|
Combobox,
|
|
7691
8218
|
{
|
|
7692
8219
|
...child.props,
|
|
@@ -7697,7 +8224,7 @@ var ToolbarAngular = (props) => {
|
|
|
7697
8224
|
);
|
|
7698
8225
|
} else if (child.type === DropdownList) {
|
|
7699
8226
|
tempToolbarChildren.push(
|
|
7700
|
-
/* @__PURE__ */
|
|
8227
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
7701
8228
|
DropdownList,
|
|
7702
8229
|
{
|
|
7703
8230
|
...child.props,
|
|
@@ -7708,7 +8235,7 @@ var ToolbarAngular = (props) => {
|
|
|
7708
8235
|
);
|
|
7709
8236
|
} else if (child.type === ColorPicker) {
|
|
7710
8237
|
tempToolbarChildren.push(
|
|
7711
|
-
/* @__PURE__ */
|
|
8238
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
7712
8239
|
ColorPicker,
|
|
7713
8240
|
{
|
|
7714
8241
|
...child.props,
|
|
@@ -7730,7 +8257,7 @@ var ToolbarAngular = (props) => {
|
|
|
7730
8257
|
addUniqueToolClass(child, index);
|
|
7731
8258
|
});
|
|
7732
8259
|
}
|
|
7733
|
-
return /* @__PURE__ */
|
|
8260
|
+
return /* @__PURE__ */ jsx157(
|
|
7734
8261
|
"div",
|
|
7735
8262
|
{
|
|
7736
8263
|
...other,
|
|
@@ -7751,28 +8278,28 @@ var ToolbarAngular = (props) => {
|
|
|
7751
8278
|
}
|
|
7752
8279
|
);
|
|
7753
8280
|
};
|
|
7754
|
-
ToolbarAngular.states =
|
|
7755
|
-
ToolbarAngular.options =
|
|
8281
|
+
ToolbarAngular.states = states54;
|
|
8282
|
+
ToolbarAngular.options = options49;
|
|
7756
8283
|
ToolbarAngular.className = TOOLBARANGULAR_CLASSNAME;
|
|
7757
|
-
ToolbarAngular.defaultProps =
|
|
8284
|
+
ToolbarAngular.defaultProps = defaultProps49;
|
|
7758
8285
|
|
|
7759
8286
|
// src/toolbar/toolbar-separator.tsx
|
|
7760
|
-
import { jsx as
|
|
8287
|
+
import { jsx as jsx158 } from "react/jsx-runtime";
|
|
7761
8288
|
|
|
7762
8289
|
// src/toolbar/toolbar-item.spec.tsx
|
|
7763
|
-
import { jsx as
|
|
8290
|
+
import { jsx as jsx159 } from "react/jsx-runtime";
|
|
7764
8291
|
var TOOLBARITEM_CLASSNAME = `k-toolbar-item`;
|
|
7765
|
-
var
|
|
8292
|
+
var states55 = [
|
|
7766
8293
|
States.focus
|
|
7767
8294
|
];
|
|
7768
|
-
var
|
|
7769
|
-
var
|
|
8295
|
+
var options50 = {};
|
|
8296
|
+
var defaultProps50 = {};
|
|
7770
8297
|
var ToolbarItem = (props) => {
|
|
7771
8298
|
const {
|
|
7772
8299
|
focus,
|
|
7773
8300
|
...other
|
|
7774
8301
|
} = props;
|
|
7775
|
-
return /* @__PURE__ */
|
|
8302
|
+
return /* @__PURE__ */ jsx159(
|
|
7776
8303
|
"div",
|
|
7777
8304
|
{
|
|
7778
8305
|
...other,
|
|
@@ -7787,20 +8314,20 @@ var ToolbarItem = (props) => {
|
|
|
7787
8314
|
}
|
|
7788
8315
|
);
|
|
7789
8316
|
};
|
|
7790
|
-
ToolbarItem.states =
|
|
7791
|
-
ToolbarItem.options =
|
|
8317
|
+
ToolbarItem.states = states55;
|
|
8318
|
+
ToolbarItem.options = options50;
|
|
7792
8319
|
ToolbarItem.className = TOOLBARITEM_CLASSNAME;
|
|
7793
|
-
ToolbarItem.defaultProps =
|
|
8320
|
+
ToolbarItem.defaultProps = defaultProps50;
|
|
7794
8321
|
|
|
7795
8322
|
// src/toolbar/toolbar-popup.spec.tsx
|
|
7796
|
-
import { jsx as
|
|
8323
|
+
import { jsx as jsx160 } from "react/jsx-runtime";
|
|
7797
8324
|
var TOOLBARPOPUP_CLASSNAME = `k-toolbar-popup`;
|
|
7798
|
-
var
|
|
7799
|
-
var
|
|
7800
|
-
var
|
|
8325
|
+
var states56 = [];
|
|
8326
|
+
var options51 = {};
|
|
8327
|
+
var defaultProps51 = {};
|
|
7801
8328
|
var ToolbarPopup = (props) => {
|
|
7802
8329
|
const { ...other } = props;
|
|
7803
|
-
return /* @__PURE__ */
|
|
8330
|
+
return /* @__PURE__ */ jsx160(
|
|
7804
8331
|
Popup,
|
|
7805
8332
|
{
|
|
7806
8333
|
...other,
|
|
@@ -7812,46 +8339,61 @@ var ToolbarPopup = (props) => {
|
|
|
7812
8339
|
}
|
|
7813
8340
|
);
|
|
7814
8341
|
};
|
|
7815
|
-
ToolbarPopup.states =
|
|
7816
|
-
ToolbarPopup.options =
|
|
8342
|
+
ToolbarPopup.states = states56;
|
|
8343
|
+
ToolbarPopup.options = options51;
|
|
7817
8344
|
ToolbarPopup.className = TOOLBARPOPUP_CLASSNAME;
|
|
7818
|
-
ToolbarPopup.defaultProps =
|
|
8345
|
+
ToolbarPopup.defaultProps = defaultProps51;
|
|
7819
8346
|
|
|
7820
8347
|
// src/split-button/templates/icon-split-button.tsx
|
|
7821
|
-
import { jsx as
|
|
8348
|
+
import { jsx as jsx161 } from "react/jsx-runtime";
|
|
7822
8349
|
|
|
7823
8350
|
// src/split-button/templates/icon-text-split-button.tsx
|
|
7824
|
-
import { jsx as
|
|
8351
|
+
import { jsx as jsx162 } from "react/jsx-runtime";
|
|
7825
8352
|
|
|
7826
8353
|
// src/split-button/templates/text-split-button.tsx
|
|
7827
|
-
import { jsx as
|
|
8354
|
+
import { jsx as jsx163 } from "react/jsx-runtime";
|
|
7828
8355
|
|
|
7829
8356
|
// src/split-button/templates/split-button-popup.tsx
|
|
7830
|
-
import { jsx as
|
|
8357
|
+
import { jsx as jsx164, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
7831
8358
|
|
|
7832
8359
|
// src/toolbar/templates/toolbar-normal.tsx
|
|
7833
|
-
import { Fragment as Fragment41, jsx as
|
|
8360
|
+
import { Fragment as Fragment41, jsx as jsx165, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
7834
8361
|
|
|
7835
8362
|
// src/toolbar/templates/toolbar-resizable.tsx
|
|
7836
|
-
import { jsx as
|
|
8363
|
+
import { jsx as jsx166 } from "react/jsx-runtime";
|
|
7837
8364
|
|
|
7838
8365
|
// src/toolbar/templates/toolbar-angular-normal.tsx
|
|
7839
|
-
import { jsx as
|
|
8366
|
+
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
7840
8367
|
|
|
7841
8368
|
// src/toolbar/templates/toolbar-angular-resizable.tsx
|
|
7842
|
-
import { jsx as
|
|
8369
|
+
import { jsx as jsx168 } from "react/jsx-runtime";
|
|
8370
|
+
|
|
8371
|
+
// src/grid/grid-toolbar.spec.tsx
|
|
8372
|
+
import { jsx as jsx169 } from "react/jsx-runtime";
|
|
8373
|
+
var className14 = `k-grid-toolbar`;
|
|
8374
|
+
var GridToolbar = (props) => /* @__PURE__ */ jsx169(
|
|
8375
|
+
Toolbar,
|
|
8376
|
+
{
|
|
8377
|
+
...props,
|
|
8378
|
+
className: classNames(
|
|
8379
|
+
props.className,
|
|
8380
|
+
className14
|
|
8381
|
+
),
|
|
8382
|
+
children: props.children
|
|
8383
|
+
}
|
|
8384
|
+
);
|
|
7843
8385
|
|
|
7844
8386
|
// src/grid/tests/grid-adaptive-search.tsx
|
|
7845
|
-
import { Fragment as Fragment42, jsx as
|
|
7846
|
-
var grid_adaptive_search_default = () => /* @__PURE__ */
|
|
7847
|
-
/* @__PURE__ */
|
|
7848
|
-
/* @__PURE__ */
|
|
7849
|
-
/* @__PURE__ */
|
|
8387
|
+
import { Fragment as Fragment42, jsx as jsx170, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
8388
|
+
var grid_adaptive_search_default = () => /* @__PURE__ */ jsx170(Fragment42, { children: /* @__PURE__ */ jsxs61("div", { id: "test-area", className: "k-d-grid", children: [
|
|
8389
|
+
/* @__PURE__ */ jsx170("div", { className: "k-pane-wrapper k-widget", style: { height: "100px" }, children: /* @__PURE__ */ jsx170("div", { className: "k-pane", children: /* @__PURE__ */ jsx170("div", { className: "k-view k-widget", children: /* @__PURE__ */ jsx170("div", { className: "k-stretched-view k-content", children: /* @__PURE__ */ jsx170(Grid, { className: "k-grid-display-block k-grid-mobile", toolbar: /* @__PURE__ */ jsxs61(GridToolbar, { children: [
|
|
8390
|
+
/* @__PURE__ */ jsx170(Button, { className: "k-grid-pdf", icon: "file-pdf", children: "Export to PDF" }),
|
|
8391
|
+
/* @__PURE__ */ jsx170(Searchbox, { className: "k-grid-search", placeholder: "Search..." })
|
|
7850
8392
|
] }) }) }) }) }) }),
|
|
7851
|
-
/* @__PURE__ */
|
|
7852
|
-
/* @__PURE__ */
|
|
7853
|
-
/* @__PURE__ */
|
|
7854
|
-
/* @__PURE__ */
|
|
8393
|
+
/* @__PURE__ */ jsx170("h4", { children: "RTL" }),
|
|
8394
|
+
/* @__PURE__ */ jsx170("div", { className: "k-pane-wrapper k-widget k-rtl", style: { height: "100px" }, children: /* @__PURE__ */ jsx170("div", { className: "k-pane", children: /* @__PURE__ */ jsx170("div", { className: "k-view k-widget", children: /* @__PURE__ */ jsx170("div", { className: "k-stretched-view k-content", children: /* @__PURE__ */ jsx170(Grid, { className: "k-grid-display-block k-grid-mobile", toolbar: /* @__PURE__ */ jsxs61(GridToolbar, { children: [
|
|
8395
|
+
/* @__PURE__ */ jsx170(Button, { className: "k-grid-pdf", icon: "file-pdf", children: "Export to PDF" }),
|
|
8396
|
+
/* @__PURE__ */ jsx170(Searchbox, { className: "k-grid-search", placeholder: "Search..." })
|
|
7855
8397
|
] }) }) }) }) }) })
|
|
7856
8398
|
] }) });
|
|
7857
8399
|
export {
|