@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
|
@@ -111,11 +111,411 @@ var States = {
|
|
|
111
111
|
"readonly": "readonly"
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
+
// src/skeleton/skeleton.spec.tsx
|
|
115
|
+
import { jsx } from "react/jsx-runtime";
|
|
116
|
+
var SKELETON_CLASSNAME = `k-skeleton`;
|
|
117
|
+
var states = [];
|
|
118
|
+
var options = {};
|
|
119
|
+
var defaultProps = {
|
|
120
|
+
shape: "text",
|
|
121
|
+
animation: "pulse"
|
|
122
|
+
};
|
|
123
|
+
var Skeleton = (props) => {
|
|
124
|
+
const {
|
|
125
|
+
shape = defaultProps.shape,
|
|
126
|
+
animation = defaultProps.animation,
|
|
127
|
+
...other
|
|
128
|
+
} = props;
|
|
129
|
+
return /* @__PURE__ */ jsx(
|
|
130
|
+
"span",
|
|
131
|
+
{
|
|
132
|
+
...other,
|
|
133
|
+
className: classNames(
|
|
134
|
+
props.className,
|
|
135
|
+
SKELETON_CLASSNAME,
|
|
136
|
+
{
|
|
137
|
+
[`k-skeleton-${shape}`]: shape,
|
|
138
|
+
[`k-skeleton-${animation}`]: animation
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
style: props.style
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
};
|
|
145
|
+
Skeleton.states = states;
|
|
146
|
+
Skeleton.options = options;
|
|
147
|
+
Skeleton.className = SKELETON_CLASSNAME;
|
|
148
|
+
Skeleton.defaultProps = defaultProps;
|
|
149
|
+
|
|
150
|
+
// src/skeleton/templates/skeleton-normal.tsx
|
|
151
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
152
|
+
var SkeletonNormal = (props) => /* @__PURE__ */ jsx2(Skeleton, { ...props });
|
|
153
|
+
|
|
154
|
+
// src/skeleton/templates/skeleton-rectangle.tsx
|
|
155
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
156
|
+
|
|
157
|
+
// src/skeleton/templates/skeleton-circle.tsx
|
|
158
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
159
|
+
|
|
160
|
+
// src/grid/grid.spec.tsx
|
|
161
|
+
import { jsx as jsx5, jsxs } from "react/jsx-runtime";
|
|
162
|
+
var GRID_CLASSNAME = "k-grid";
|
|
163
|
+
var states2 = [];
|
|
164
|
+
var options2 = {
|
|
165
|
+
size: [Size.small, Size.medium, Size.large]
|
|
166
|
+
};
|
|
167
|
+
var defaultProps2 = {
|
|
168
|
+
size: Size.medium,
|
|
169
|
+
pagerPosition: "bottom"
|
|
170
|
+
};
|
|
171
|
+
var Grid = (props) => {
|
|
172
|
+
const {
|
|
173
|
+
size = defaultProps2.size,
|
|
174
|
+
toolbar,
|
|
175
|
+
pager,
|
|
176
|
+
pagerPosition,
|
|
177
|
+
groupingHeader,
|
|
178
|
+
_renderAriaRoot,
|
|
179
|
+
...other
|
|
180
|
+
} = props;
|
|
181
|
+
return /* @__PURE__ */ jsxs(
|
|
182
|
+
"div",
|
|
183
|
+
{
|
|
184
|
+
...other,
|
|
185
|
+
className: classNames(
|
|
186
|
+
props.className,
|
|
187
|
+
GRID_CLASSNAME,
|
|
188
|
+
optionClassNames(GRID_CLASSNAME, { size })
|
|
189
|
+
),
|
|
190
|
+
children: [
|
|
191
|
+
toolbar,
|
|
192
|
+
pagerPosition === "top" && pager,
|
|
193
|
+
groupingHeader,
|
|
194
|
+
props.children && _renderAriaRoot ? /* @__PURE__ */ jsx5("div", { className: "k-grid-aria-root", children: props.children }) : props.children,
|
|
195
|
+
pagerPosition === "bottom" && pager
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
};
|
|
200
|
+
Grid.states = states2;
|
|
201
|
+
Grid.options = options2;
|
|
202
|
+
Grid.className = GRID_CLASSNAME;
|
|
203
|
+
Grid.defaultProps = defaultProps2;
|
|
204
|
+
|
|
205
|
+
// src/grid/grid-header.spec.tsx
|
|
206
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
207
|
+
var className = `k-grid-header`;
|
|
208
|
+
var GridHeader = (props) => /* @__PURE__ */ jsx6(
|
|
209
|
+
"div",
|
|
210
|
+
{
|
|
211
|
+
...props,
|
|
212
|
+
className: classNames(
|
|
213
|
+
props.className,
|
|
214
|
+
className
|
|
215
|
+
),
|
|
216
|
+
children: props.children
|
|
217
|
+
}
|
|
218
|
+
);
|
|
219
|
+
|
|
220
|
+
// src/grid/grid-grouping-header.spec.tsx
|
|
221
|
+
import { jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
222
|
+
|
|
223
|
+
// src/table/data-table.spec.tsx
|
|
224
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
225
|
+
var DATATABLE_CLASSNAME = `k-data-table`;
|
|
226
|
+
var states3 = [];
|
|
227
|
+
var options3 = {
|
|
228
|
+
size: [Size.small, Size.medium, Size.large]
|
|
229
|
+
};
|
|
230
|
+
var defaultProps3 = {
|
|
231
|
+
size: Size.medium
|
|
232
|
+
};
|
|
233
|
+
var DataTable = (props) => {
|
|
234
|
+
const {
|
|
235
|
+
size = defaultProps3.size,
|
|
236
|
+
...other
|
|
237
|
+
} = props;
|
|
238
|
+
return /* @__PURE__ */ jsx8(
|
|
239
|
+
"div",
|
|
240
|
+
{
|
|
241
|
+
...other,
|
|
242
|
+
className: classNames(
|
|
243
|
+
props.className,
|
|
244
|
+
DATATABLE_CLASSNAME,
|
|
245
|
+
optionClassNames("k-table", {
|
|
246
|
+
size
|
|
247
|
+
})
|
|
248
|
+
),
|
|
249
|
+
children: props.children
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
};
|
|
253
|
+
DataTable.states = states3;
|
|
254
|
+
DataTable.options = options3;
|
|
255
|
+
DataTable.className = DATATABLE_CLASSNAME;
|
|
256
|
+
DataTable.defaultProps = defaultProps3;
|
|
257
|
+
|
|
258
|
+
// src/table/table-header.tsx
|
|
259
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
260
|
+
|
|
261
|
+
// src/table/table-body.tsx
|
|
262
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
263
|
+
|
|
264
|
+
// src/table/table-footer.tsx
|
|
265
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
266
|
+
|
|
267
|
+
// src/table/table.spec.tsx
|
|
268
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
269
|
+
var TABLE_CLASSNAME = `k-table`;
|
|
270
|
+
var states4 = [];
|
|
271
|
+
var options4 = {
|
|
272
|
+
size: [Size.small, Size.medium, Size.large]
|
|
273
|
+
};
|
|
274
|
+
var defaultProps4 = {};
|
|
275
|
+
var Table = (props) => {
|
|
276
|
+
const {
|
|
277
|
+
size,
|
|
278
|
+
...other
|
|
279
|
+
} = props;
|
|
280
|
+
return /* @__PURE__ */ jsx12(
|
|
281
|
+
"table",
|
|
282
|
+
{
|
|
283
|
+
...other,
|
|
284
|
+
className: classNames(
|
|
285
|
+
props.className,
|
|
286
|
+
TABLE_CLASSNAME,
|
|
287
|
+
optionClassNames(TABLE_CLASSNAME, {
|
|
288
|
+
size
|
|
289
|
+
})
|
|
290
|
+
),
|
|
291
|
+
children: props.children
|
|
292
|
+
}
|
|
293
|
+
);
|
|
294
|
+
};
|
|
295
|
+
Table.states = states4;
|
|
296
|
+
Table.options = options4;
|
|
297
|
+
Table.className = TABLE_CLASSNAME;
|
|
298
|
+
Table.defaultProps = defaultProps4;
|
|
299
|
+
|
|
300
|
+
// src/table/table-list.spec.tsx
|
|
301
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
302
|
+
var TABLELIST_CLASSNAME = `k-table-list`;
|
|
303
|
+
var states5 = [];
|
|
304
|
+
var options5 = {
|
|
305
|
+
size: [Size.small, Size.medium, Size.large]
|
|
306
|
+
};
|
|
307
|
+
var defaultProps5 = {};
|
|
308
|
+
var TableList = (props) => {
|
|
309
|
+
const {
|
|
310
|
+
size,
|
|
311
|
+
virtualization,
|
|
312
|
+
...other
|
|
313
|
+
} = props;
|
|
314
|
+
return /* @__PURE__ */ jsx13(
|
|
315
|
+
"ul",
|
|
316
|
+
{
|
|
317
|
+
...other,
|
|
318
|
+
className: classNames(
|
|
319
|
+
props.className,
|
|
320
|
+
"k-table",
|
|
321
|
+
TABLELIST_CLASSNAME,
|
|
322
|
+
optionClassNames(TABLELIST_CLASSNAME, {
|
|
323
|
+
size
|
|
324
|
+
}),
|
|
325
|
+
{
|
|
326
|
+
"k-virtual-table": virtualization
|
|
327
|
+
}
|
|
328
|
+
),
|
|
329
|
+
children: props.children
|
|
330
|
+
}
|
|
331
|
+
);
|
|
332
|
+
};
|
|
333
|
+
TableList.states = states5;
|
|
334
|
+
TableList.options = options5;
|
|
335
|
+
TableList.className = TABLELIST_CLASSNAME;
|
|
336
|
+
TableList.defaultProps = defaultProps5;
|
|
337
|
+
|
|
338
|
+
// src/table/table-thead.tsx
|
|
339
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
340
|
+
var className2 = `k-table-thead`;
|
|
341
|
+
var TableThead = (props) => /* @__PURE__ */ jsx14(
|
|
342
|
+
"thead",
|
|
343
|
+
{
|
|
344
|
+
className: classNames(
|
|
345
|
+
props.className,
|
|
346
|
+
className2
|
|
347
|
+
),
|
|
348
|
+
children: props.children
|
|
349
|
+
}
|
|
350
|
+
);
|
|
351
|
+
|
|
352
|
+
// src/table/table-tbody.tsx
|
|
353
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
354
|
+
var className3 = `k-table-tbody`;
|
|
355
|
+
var TableTbody = (props) => /* @__PURE__ */ jsx15(
|
|
356
|
+
"tbody",
|
|
357
|
+
{
|
|
358
|
+
className: classNames(
|
|
359
|
+
props.className,
|
|
360
|
+
className3
|
|
361
|
+
),
|
|
362
|
+
children: props.children
|
|
363
|
+
}
|
|
364
|
+
);
|
|
365
|
+
|
|
366
|
+
// src/table/table-tfoot.tsx
|
|
367
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
368
|
+
|
|
369
|
+
// src/table/table-row.tsx
|
|
370
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
371
|
+
var TABLEROW_CLASSNAME = `k-table-row`;
|
|
372
|
+
var states6 = [
|
|
373
|
+
States.hover,
|
|
374
|
+
States.focus,
|
|
375
|
+
States.selected,
|
|
376
|
+
States.disabled
|
|
377
|
+
];
|
|
378
|
+
var TableRow = (props) => {
|
|
379
|
+
const {
|
|
380
|
+
hover,
|
|
381
|
+
focus,
|
|
382
|
+
selected,
|
|
383
|
+
disabled,
|
|
384
|
+
alt,
|
|
385
|
+
...other
|
|
386
|
+
} = props;
|
|
387
|
+
return /* @__PURE__ */ jsx17(
|
|
388
|
+
"tr",
|
|
389
|
+
{
|
|
390
|
+
...other,
|
|
391
|
+
className: classNames(
|
|
392
|
+
props.className,
|
|
393
|
+
TABLEROW_CLASSNAME,
|
|
394
|
+
{
|
|
395
|
+
["k-table-alt-row"]: alt
|
|
396
|
+
},
|
|
397
|
+
stateClassNames(TABLEROW_CLASSNAME, {
|
|
398
|
+
hover,
|
|
399
|
+
focus,
|
|
400
|
+
disabled,
|
|
401
|
+
selected
|
|
402
|
+
})
|
|
403
|
+
),
|
|
404
|
+
children: props.children
|
|
405
|
+
}
|
|
406
|
+
);
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
// src/table/table-list-row.tsx
|
|
410
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
411
|
+
var states7 = [
|
|
412
|
+
States.hover,
|
|
413
|
+
States.focus,
|
|
414
|
+
States.selected,
|
|
415
|
+
States.disabled
|
|
416
|
+
];
|
|
417
|
+
|
|
418
|
+
// src/table/table-th.tsx
|
|
419
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
420
|
+
var className4 = `k-table-th`;
|
|
421
|
+
var TableTh = (props) => {
|
|
422
|
+
const {
|
|
423
|
+
text,
|
|
424
|
+
colspan,
|
|
425
|
+
rowspan,
|
|
426
|
+
...other
|
|
427
|
+
} = props;
|
|
428
|
+
const textOrChildren = text ? text : props.children;
|
|
429
|
+
return /* @__PURE__ */ jsx19(
|
|
430
|
+
"th",
|
|
431
|
+
{
|
|
432
|
+
colSpan: colspan,
|
|
433
|
+
rowSpan: rowspan,
|
|
434
|
+
...other,
|
|
435
|
+
className: classNames(
|
|
436
|
+
props.className,
|
|
437
|
+
className4
|
|
438
|
+
),
|
|
439
|
+
children: textOrChildren
|
|
440
|
+
}
|
|
441
|
+
);
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
// src/table/table-list-th.tsx
|
|
445
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
446
|
+
|
|
447
|
+
// src/table/table-td.tsx
|
|
448
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
449
|
+
var className5 = `k-table-td`;
|
|
450
|
+
var TableTd = (props) => {
|
|
451
|
+
const {
|
|
452
|
+
text,
|
|
453
|
+
colspan,
|
|
454
|
+
...other
|
|
455
|
+
} = props;
|
|
456
|
+
const textOrChildren = text ? text : props.children;
|
|
457
|
+
return /* @__PURE__ */ jsx21(
|
|
458
|
+
"td",
|
|
459
|
+
{
|
|
460
|
+
colSpan: colspan,
|
|
461
|
+
...other,
|
|
462
|
+
className: classNames(
|
|
463
|
+
props.className,
|
|
464
|
+
className5
|
|
465
|
+
),
|
|
466
|
+
children: textOrChildren
|
|
467
|
+
}
|
|
468
|
+
);
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
// src/table/table-list-td.tsx
|
|
472
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
473
|
+
|
|
474
|
+
// src/table/table-group-header.tsx
|
|
475
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
476
|
+
|
|
477
|
+
// src/table/table-group-sticky-header.tsx
|
|
478
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
479
|
+
|
|
480
|
+
// src/table/table-group-row.tsx
|
|
481
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
482
|
+
|
|
483
|
+
// src/table/table-list-group-row.tsx
|
|
484
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
485
|
+
|
|
486
|
+
// src/table/templates/table-list.tsx
|
|
487
|
+
import { jsx as jsx27, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
488
|
+
|
|
489
|
+
// src/table/templates/table-list-virtualization.tsx
|
|
490
|
+
import { jsx as jsx28, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
491
|
+
|
|
492
|
+
// src/table/templates/data-table-normal.tsx
|
|
493
|
+
import { jsx as jsx29, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
494
|
+
|
|
495
|
+
// src/table/templates/table-native.tsx
|
|
496
|
+
import { jsx as jsx30, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
497
|
+
|
|
498
|
+
// src/grid/grid-header-table.spec.tsx
|
|
499
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
500
|
+
var GRIDHEADERTABLE_CLASSNAME = `k-grid-header-table`;
|
|
501
|
+
var GridHeaderTable = (props) => /* @__PURE__ */ jsx31(
|
|
502
|
+
Table,
|
|
503
|
+
{
|
|
504
|
+
size: "medium",
|
|
505
|
+
...props,
|
|
506
|
+
className: classNames(
|
|
507
|
+
props.className,
|
|
508
|
+
GRIDHEADERTABLE_CLASSNAME
|
|
509
|
+
),
|
|
510
|
+
children: props.children
|
|
511
|
+
}
|
|
512
|
+
);
|
|
513
|
+
|
|
114
514
|
// src/icon/font-icon.spec.tsx
|
|
115
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
515
|
+
import { Fragment, jsx as jsx32 } from "react/jsx-runtime";
|
|
116
516
|
var FONTICON_CLASSNAME = `k-icon k-font-icon`;
|
|
117
|
-
var
|
|
118
|
-
var
|
|
517
|
+
var states8 = [];
|
|
518
|
+
var options6 = {
|
|
119
519
|
size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
|
|
120
520
|
themeColor: [
|
|
121
521
|
ThemeColor.base,
|
|
@@ -130,7 +530,7 @@ var options = {
|
|
|
130
530
|
ThemeColor.dark
|
|
131
531
|
]
|
|
132
532
|
};
|
|
133
|
-
var
|
|
533
|
+
var defaultProps6 = {};
|
|
134
534
|
var FontIcon = (props) => {
|
|
135
535
|
const {
|
|
136
536
|
size,
|
|
@@ -141,9 +541,9 @@ var FontIcon = (props) => {
|
|
|
141
541
|
...other
|
|
142
542
|
} = props;
|
|
143
543
|
if (!icon) {
|
|
144
|
-
return /* @__PURE__ */
|
|
544
|
+
return /* @__PURE__ */ jsx32(Fragment, {});
|
|
145
545
|
}
|
|
146
|
-
return /* @__PURE__ */
|
|
546
|
+
return /* @__PURE__ */ jsx32(
|
|
147
547
|
"span",
|
|
148
548
|
{
|
|
149
549
|
...other,
|
|
@@ -164,17 +564,17 @@ var FontIcon = (props) => {
|
|
|
164
564
|
}
|
|
165
565
|
);
|
|
166
566
|
};
|
|
167
|
-
FontIcon.states =
|
|
168
|
-
FontIcon.options =
|
|
567
|
+
FontIcon.states = states8;
|
|
568
|
+
FontIcon.options = options6;
|
|
169
569
|
FontIcon.className = FONTICON_CLASSNAME;
|
|
170
|
-
FontIcon.defaultProps =
|
|
570
|
+
FontIcon.defaultProps = defaultProps6;
|
|
171
571
|
var font_icon_spec_default = FontIcon;
|
|
172
572
|
|
|
173
573
|
// src/icon/svg-icon.spec.tsx
|
|
174
|
-
import { Fragment as Fragment2, jsx as
|
|
574
|
+
import { Fragment as Fragment2, jsx as jsx33 } from "react/jsx-runtime";
|
|
175
575
|
var SVGICON_CLASSNAME = `k-icon k-svg-icon`;
|
|
176
|
-
var
|
|
177
|
-
var
|
|
576
|
+
var states9 = [];
|
|
577
|
+
var options7 = {
|
|
178
578
|
size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
|
|
179
579
|
themeColor: [
|
|
180
580
|
ThemeColor.base,
|
|
@@ -189,7 +589,7 @@ var options2 = {
|
|
|
189
589
|
ThemeColor.dark
|
|
190
590
|
]
|
|
191
591
|
};
|
|
192
|
-
var
|
|
592
|
+
var defaultProps7 = {
|
|
193
593
|
viewBox: "0 0 24 24"
|
|
194
594
|
};
|
|
195
595
|
var SvgIcon = (props) => {
|
|
@@ -198,15 +598,15 @@ var SvgIcon = (props) => {
|
|
|
198
598
|
themeColor,
|
|
199
599
|
rotate,
|
|
200
600
|
flip,
|
|
201
|
-
viewBox =
|
|
601
|
+
viewBox = defaultProps7.viewBox,
|
|
202
602
|
icon,
|
|
203
603
|
...other
|
|
204
604
|
} = props;
|
|
205
605
|
if (!icon) {
|
|
206
|
-
return /* @__PURE__ */
|
|
606
|
+
return /* @__PURE__ */ jsx33(Fragment2, {});
|
|
207
607
|
}
|
|
208
608
|
if (icon === "none") {
|
|
209
|
-
/* @__PURE__ */
|
|
609
|
+
/* @__PURE__ */ jsx33(
|
|
210
610
|
"span",
|
|
211
611
|
{
|
|
212
612
|
...other,
|
|
@@ -219,7 +619,7 @@ var SvgIcon = (props) => {
|
|
|
219
619
|
);
|
|
220
620
|
}
|
|
221
621
|
const name = typeof icon === "object" && icon.name && icon.name;
|
|
222
|
-
return /* @__PURE__ */
|
|
622
|
+
return /* @__PURE__ */ jsx33(
|
|
223
623
|
"span",
|
|
224
624
|
{
|
|
225
625
|
...other,
|
|
@@ -237,7 +637,7 @@ var SvgIcon = (props) => {
|
|
|
237
637
|
"k-flip-v": flip === "v" || flip === "both"
|
|
238
638
|
}
|
|
239
639
|
),
|
|
240
|
-
children: /* @__PURE__ */
|
|
640
|
+
children: /* @__PURE__ */ jsx33(
|
|
241
641
|
"svg",
|
|
242
642
|
{
|
|
243
643
|
"aria-hidden": true,
|
|
@@ -251,10 +651,10 @@ var SvgIcon = (props) => {
|
|
|
251
651
|
}
|
|
252
652
|
);
|
|
253
653
|
};
|
|
254
|
-
SvgIcon.states =
|
|
255
|
-
SvgIcon.options =
|
|
654
|
+
SvgIcon.states = states9;
|
|
655
|
+
SvgIcon.options = options7;
|
|
256
656
|
SvgIcon.className = SVGICON_CLASSNAME;
|
|
257
|
-
SvgIcon.defaultProps =
|
|
657
|
+
SvgIcon.defaultProps = defaultProps7;
|
|
258
658
|
var svg_icon_spec_default = SvgIcon;
|
|
259
659
|
|
|
260
660
|
// ../../node_modules/@progress/kendo-svg-icons/dist/index.es.js
|
|
@@ -4289,13 +4689,13 @@ var chartChoroplethIcon = {
|
|
|
4289
4689
|
};
|
|
4290
4690
|
|
|
4291
4691
|
// src/icon/icon.spec.tsx
|
|
4292
|
-
import { Fragment as Fragment3, jsx as
|
|
4692
|
+
import { Fragment as Fragment3, jsx as jsx34 } from "react/jsx-runtime";
|
|
4293
4693
|
var snakeToCamel = (str) => str.toLowerCase().replace(
|
|
4294
4694
|
/([-_][a-z])/g,
|
|
4295
4695
|
(group) => group.toUpperCase().replace("-", "").replace("_", "")
|
|
4296
4696
|
);
|
|
4297
|
-
var
|
|
4298
|
-
var
|
|
4697
|
+
var states10 = [];
|
|
4698
|
+
var options8 = {
|
|
4299
4699
|
size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
|
|
4300
4700
|
themeColor: [
|
|
4301
4701
|
ThemeColor.base,
|
|
@@ -4310,7 +4710,7 @@ var options3 = {
|
|
|
4310
4710
|
ThemeColor.dark
|
|
4311
4711
|
]
|
|
4312
4712
|
};
|
|
4313
|
-
var
|
|
4713
|
+
var defaultProps8 = {
|
|
4314
4714
|
viewBox: "0 0 24 24",
|
|
4315
4715
|
type: "svg"
|
|
4316
4716
|
};
|
|
@@ -4319,47 +4719,166 @@ var Icon = (props) => {
|
|
|
4319
4719
|
size,
|
|
4320
4720
|
themeColor,
|
|
4321
4721
|
icon,
|
|
4322
|
-
type =
|
|
4722
|
+
type = defaultProps8.type,
|
|
4323
4723
|
rotate,
|
|
4324
4724
|
flip,
|
|
4325
|
-
viewBox =
|
|
4725
|
+
viewBox = defaultProps8.viewBox,
|
|
4326
4726
|
...other
|
|
4327
4727
|
} = props;
|
|
4328
4728
|
if (!icon) {
|
|
4329
|
-
return /* @__PURE__ */
|
|
4729
|
+
return /* @__PURE__ */ jsx34(Fragment3, {});
|
|
4330
4730
|
}
|
|
4331
4731
|
if (type === "svg") {
|
|
4332
4732
|
if (icon === "none") {
|
|
4333
|
-
return /* @__PURE__ */
|
|
4733
|
+
return /* @__PURE__ */ jsx34(svg_icon_spec_default, { ...other, icon, size });
|
|
4334
4734
|
}
|
|
4335
4735
|
const iconSVG = snakeToCamel(`${icon}-icon`);
|
|
4336
4736
|
if (!index_es_exports[iconSVG]) {
|
|
4337
|
-
return /* @__PURE__ */
|
|
4737
|
+
return /* @__PURE__ */ jsx34(Fragment3, {});
|
|
4338
4738
|
}
|
|
4339
|
-
return /* @__PURE__ */
|
|
4739
|
+
return /* @__PURE__ */ jsx34(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
|
|
4340
4740
|
}
|
|
4341
|
-
return /* @__PURE__ */
|
|
4741
|
+
return /* @__PURE__ */ jsx34(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
|
|
4342
4742
|
};
|
|
4343
|
-
Icon.states =
|
|
4344
|
-
Icon.options =
|
|
4345
|
-
Icon.defaultProps =
|
|
4743
|
+
Icon.states = states10;
|
|
4744
|
+
Icon.options = options8;
|
|
4745
|
+
Icon.defaultProps = defaultProps8;
|
|
4346
4746
|
|
|
4347
|
-
// src/
|
|
4348
|
-
import {
|
|
4349
|
-
var
|
|
4350
|
-
var
|
|
4747
|
+
// src/grid/grid-header-cell.spec.tsx
|
|
4748
|
+
import { jsx as jsx35, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
4749
|
+
var className6 = `k-header`;
|
|
4750
|
+
var states11 = [
|
|
4351
4751
|
States.hover,
|
|
4352
4752
|
States.focus,
|
|
4353
|
-
States.active
|
|
4354
|
-
States.selected,
|
|
4355
|
-
States.disabled
|
|
4753
|
+
States.active
|
|
4356
4754
|
];
|
|
4357
|
-
var
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4755
|
+
var defaultProps9 = {
|
|
4756
|
+
sortIcon: "sort-asc-small"
|
|
4757
|
+
};
|
|
4758
|
+
var GridHeaderCell = (props) => {
|
|
4759
|
+
const {
|
|
4760
|
+
menu,
|
|
4761
|
+
sortable,
|
|
4762
|
+
sticky,
|
|
4763
|
+
resizable,
|
|
4764
|
+
columnTitle,
|
|
4765
|
+
hover,
|
|
4766
|
+
focus,
|
|
4767
|
+
active,
|
|
4768
|
+
sortIcon = defaultProps9.sortIcon,
|
|
4769
|
+
sortOrder,
|
|
4770
|
+
...others
|
|
4771
|
+
} = props;
|
|
4772
|
+
return /* @__PURE__ */ jsxs7(
|
|
4773
|
+
TableTh,
|
|
4774
|
+
{
|
|
4775
|
+
...others,
|
|
4776
|
+
className: classNames(
|
|
4777
|
+
props.className,
|
|
4778
|
+
className6,
|
|
4779
|
+
{
|
|
4780
|
+
[`k-filterable`]: menu === "filter",
|
|
4781
|
+
[`k-sorted`]: sortable,
|
|
4782
|
+
[`k-grid-header-sticky`]: sticky,
|
|
4783
|
+
[`k-touch-action-none`]: resizable
|
|
4784
|
+
},
|
|
4785
|
+
stateClassNames(className6, {
|
|
4786
|
+
hover,
|
|
4787
|
+
focus,
|
|
4788
|
+
active
|
|
4789
|
+
})
|
|
4790
|
+
),
|
|
4791
|
+
children: [
|
|
4792
|
+
columnTitle && /* @__PURE__ */ jsxs7("span", { className: "k-cell-inner", children: [
|
|
4793
|
+
/* @__PURE__ */ jsxs7("span", { className: "k-link", children: [
|
|
4794
|
+
/* @__PURE__ */ jsx35("span", { className: "k-column-title", children: columnTitle }),
|
|
4795
|
+
sortable && /* @__PURE__ */ jsx35("span", { className: "k-sort-icon", children: /* @__PURE__ */ jsx35(Icon, { icon: sortIcon }) }),
|
|
4796
|
+
sortOrder && /* @__PURE__ */ jsx35("span", { className: "k-sort-order", children: sortOrder })
|
|
4797
|
+
] }),
|
|
4798
|
+
menu && /* @__PURE__ */ jsx35("a", { href: "#", className: classNames(
|
|
4799
|
+
"k-grid-header-menu",
|
|
4800
|
+
{
|
|
4801
|
+
[`k-active`]: active,
|
|
4802
|
+
[`k-grid-filter-menu`]: menu === "filter",
|
|
4803
|
+
[`k-grid-column-menu`]: menu === "column"
|
|
4804
|
+
}
|
|
4805
|
+
), children: /* @__PURE__ */ jsx35(Icon, { icon: menu === "filter" ? "filter" : "more-vertical" }) })
|
|
4806
|
+
] }),
|
|
4807
|
+
props.children,
|
|
4808
|
+
resizable && /* @__PURE__ */ jsx35("span", { className: "k-column-resizer k-touch-action-none" })
|
|
4809
|
+
]
|
|
4810
|
+
}
|
|
4811
|
+
);
|
|
4812
|
+
};
|
|
4813
|
+
|
|
4814
|
+
// src/grid/grid-container.spec.tsx
|
|
4815
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
4816
|
+
var className7 = `k-grid-container`;
|
|
4817
|
+
var GridContainer = (props) => /* @__PURE__ */ jsx36(
|
|
4818
|
+
"div",
|
|
4819
|
+
{
|
|
4820
|
+
...props,
|
|
4821
|
+
className: classNames(
|
|
4822
|
+
props.className,
|
|
4823
|
+
className7
|
|
4824
|
+
),
|
|
4825
|
+
children: props.children
|
|
4826
|
+
}
|
|
4827
|
+
);
|
|
4828
|
+
|
|
4829
|
+
// src/grid/grid-content.spec.tsx
|
|
4830
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
4831
|
+
var className8 = `k-grid-content`;
|
|
4832
|
+
var GridContent = (props) => /* @__PURE__ */ jsx37(
|
|
4833
|
+
"div",
|
|
4834
|
+
{
|
|
4835
|
+
...props,
|
|
4836
|
+
className: classNames(
|
|
4837
|
+
props.className,
|
|
4838
|
+
className8
|
|
4839
|
+
),
|
|
4840
|
+
children: props.children
|
|
4841
|
+
}
|
|
4842
|
+
);
|
|
4843
|
+
|
|
4844
|
+
// src/grid/grid-table.spec.tsx
|
|
4845
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
4846
|
+
var GRIDTABLE_CLASSNAME = `k-grid-table`;
|
|
4847
|
+
var GridTable = (props) => /* @__PURE__ */ jsx38(
|
|
4848
|
+
Table,
|
|
4849
|
+
{
|
|
4850
|
+
size: "medium",
|
|
4851
|
+
...props,
|
|
4852
|
+
className: classNames(
|
|
4853
|
+
props.className,
|
|
4854
|
+
GRIDTABLE_CLASSNAME
|
|
4855
|
+
),
|
|
4856
|
+
children: props.children
|
|
4857
|
+
}
|
|
4858
|
+
);
|
|
4859
|
+
|
|
4860
|
+
// src/grid/grid-footer.spec.tsx
|
|
4861
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
4862
|
+
|
|
4863
|
+
// src/grid/grid-footer-table.spec.tsx
|
|
4864
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
4865
|
+
|
|
4866
|
+
// src/button/button.spec.tsx
|
|
4867
|
+
import { Fragment as Fragment4, jsx as jsx41, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
4868
|
+
var BUTTON_CLASSNAME = `k-button`;
|
|
4869
|
+
var states12 = [
|
|
4870
|
+
States.hover,
|
|
4871
|
+
States.focus,
|
|
4872
|
+
States.active,
|
|
4873
|
+
States.selected,
|
|
4874
|
+
States.disabled
|
|
4875
|
+
];
|
|
4876
|
+
var options9 = {
|
|
4877
|
+
size: [Size.small, Size.medium, Size.large],
|
|
4878
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
4879
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
|
|
4880
|
+
themeColor: [
|
|
4881
|
+
ThemeColor.base,
|
|
4363
4882
|
ThemeColor.primary,
|
|
4364
4883
|
ThemeColor.secondary,
|
|
4365
4884
|
ThemeColor.tertiary,
|
|
@@ -4372,7 +4891,7 @@ var options4 = {
|
|
|
4372
4891
|
ThemeColor.inverse
|
|
4373
4892
|
]
|
|
4374
4893
|
};
|
|
4375
|
-
var
|
|
4894
|
+
var defaultProps10 = {
|
|
4376
4895
|
size: Size.medium,
|
|
4377
4896
|
rounded: Roundness.medium,
|
|
4378
4897
|
fillMode: FillMode.solid,
|
|
@@ -4382,10 +4901,10 @@ var defaultProps4 = {
|
|
|
4382
4901
|
};
|
|
4383
4902
|
var Button = (props) => {
|
|
4384
4903
|
const {
|
|
4385
|
-
size =
|
|
4386
|
-
rounded =
|
|
4387
|
-
fillMode =
|
|
4388
|
-
themeColor =
|
|
4904
|
+
size = defaultProps10.size,
|
|
4905
|
+
rounded = defaultProps10.rounded,
|
|
4906
|
+
fillMode = defaultProps10.fillMode,
|
|
4907
|
+
themeColor = defaultProps10.themeColor,
|
|
4389
4908
|
hover,
|
|
4390
4909
|
focus,
|
|
4391
4910
|
active,
|
|
@@ -4394,13 +4913,13 @@ var Button = (props) => {
|
|
|
4394
4913
|
icon,
|
|
4395
4914
|
text,
|
|
4396
4915
|
iconClassName,
|
|
4397
|
-
showArrow =
|
|
4398
|
-
arrowIconName =
|
|
4916
|
+
showArrow = defaultProps10.showArrow,
|
|
4917
|
+
arrowIconName = defaultProps10.arrowIconName,
|
|
4399
4918
|
...other
|
|
4400
4919
|
} = props;
|
|
4401
4920
|
const hasIcon = icon !== void 0;
|
|
4402
4921
|
const hasChildren = props.children !== void 0;
|
|
4403
|
-
return /* @__PURE__ */
|
|
4922
|
+
return /* @__PURE__ */ jsxs8(
|
|
4404
4923
|
"button",
|
|
4405
4924
|
{
|
|
4406
4925
|
...other,
|
|
@@ -4425,40 +4944,40 @@ var Button = (props) => {
|
|
|
4425
4944
|
}
|
|
4426
4945
|
),
|
|
4427
4946
|
children: [
|
|
4428
|
-
icon && /* @__PURE__ */
|
|
4947
|
+
icon && /* @__PURE__ */ jsx41(
|
|
4429
4948
|
Icon,
|
|
4430
4949
|
{
|
|
4431
4950
|
className: classNames(iconClassName, "k-button-icon"),
|
|
4432
4951
|
icon
|
|
4433
4952
|
}
|
|
4434
4953
|
),
|
|
4435
|
-
text ? /* @__PURE__ */
|
|
4436
|
-
text && /* @__PURE__ */
|
|
4954
|
+
text ? /* @__PURE__ */ jsxs8(Fragment4, { children: [
|
|
4955
|
+
text && /* @__PURE__ */ jsx41("span", { className: "k-button-text", children: text }),
|
|
4437
4956
|
props.children
|
|
4438
|
-
] }) : props.children && /* @__PURE__ */
|
|
4439
|
-
showArrow && /* @__PURE__ */
|
|
4957
|
+
] }) : props.children && /* @__PURE__ */ jsx41("span", { className: "k-button-text", children: props.children }),
|
|
4958
|
+
showArrow && /* @__PURE__ */ jsx41("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ jsx41(Icon, { icon: arrowIconName }) })
|
|
4440
4959
|
]
|
|
4441
4960
|
}
|
|
4442
4961
|
);
|
|
4443
4962
|
};
|
|
4444
|
-
Button.states =
|
|
4445
|
-
Button.options =
|
|
4963
|
+
Button.states = states12;
|
|
4964
|
+
Button.options = options9;
|
|
4446
4965
|
Button.className = BUTTON_CLASSNAME;
|
|
4447
|
-
Button.defaultProps =
|
|
4966
|
+
Button.defaultProps = defaultProps10;
|
|
4448
4967
|
|
|
4449
4968
|
// src/button/templates/icon-button.tsx
|
|
4450
|
-
import { jsx as
|
|
4969
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
4451
4970
|
|
|
4452
4971
|
// src/button/templates/icon-text-button.tsx
|
|
4453
|
-
import { jsx as
|
|
4972
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
4454
4973
|
|
|
4455
4974
|
// src/button/templates/text-button.tsx
|
|
4456
|
-
import { jsx as
|
|
4975
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
4457
4976
|
|
|
4458
4977
|
// src/input/input.spec.tsx
|
|
4459
|
-
import { jsx as
|
|
4978
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
4460
4979
|
var INPUT_CLASSNAME = `k-input`;
|
|
4461
|
-
var
|
|
4980
|
+
var states13 = [
|
|
4462
4981
|
States.hover,
|
|
4463
4982
|
States.focus,
|
|
4464
4983
|
States.valid,
|
|
@@ -4468,12 +4987,12 @@ var states5 = [
|
|
|
4468
4987
|
States.loading,
|
|
4469
4988
|
States.readonly
|
|
4470
4989
|
];
|
|
4471
|
-
var
|
|
4990
|
+
var options10 = {
|
|
4472
4991
|
size: [Size.small, Size.medium, Size.large],
|
|
4473
4992
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
4474
4993
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
4475
4994
|
};
|
|
4476
|
-
var
|
|
4995
|
+
var defaultProps11 = {
|
|
4477
4996
|
size: Size.medium,
|
|
4478
4997
|
rounded: Size.medium,
|
|
4479
4998
|
fillMode: FillMode.solid
|
|
@@ -4487,12 +5006,12 @@ var Input = (props) => {
|
|
|
4487
5006
|
valid,
|
|
4488
5007
|
loading,
|
|
4489
5008
|
readonly,
|
|
4490
|
-
size =
|
|
4491
|
-
rounded =
|
|
4492
|
-
fillMode =
|
|
5009
|
+
size = defaultProps11.size,
|
|
5010
|
+
rounded = defaultProps11.rounded,
|
|
5011
|
+
fillMode = defaultProps11.fillMode,
|
|
4493
5012
|
...other
|
|
4494
5013
|
} = props;
|
|
4495
|
-
return /* @__PURE__ */
|
|
5014
|
+
return /* @__PURE__ */ jsx45(
|
|
4496
5015
|
"span",
|
|
4497
5016
|
{
|
|
4498
5017
|
...other,
|
|
@@ -4505,13 +5024,13 @@ var Input = (props) => {
|
|
|
4505
5024
|
}
|
|
4506
5025
|
);
|
|
4507
5026
|
};
|
|
4508
|
-
Input.states =
|
|
4509
|
-
Input.options =
|
|
5027
|
+
Input.states = states13;
|
|
5028
|
+
Input.options = options10;
|
|
4510
5029
|
Input.className = INPUT_CLASSNAME;
|
|
4511
|
-
Input.defaultProps =
|
|
5030
|
+
Input.defaultProps = defaultProps11;
|
|
4512
5031
|
|
|
4513
5032
|
// src/input/picker.spec.tsx
|
|
4514
|
-
import { jsx as
|
|
5033
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
4515
5034
|
var PICKER_CLASSNAME = `k-picker`;
|
|
4516
5035
|
var pickerStates = [
|
|
4517
5036
|
States.hover,
|
|
@@ -4528,7 +5047,7 @@ var pickerOptions = {
|
|
|
4528
5047
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
4529
5048
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
4530
5049
|
};
|
|
4531
|
-
var
|
|
5050
|
+
var defaultProps12 = {
|
|
4532
5051
|
size: Size.medium,
|
|
4533
5052
|
rounded: Roundness.medium,
|
|
4534
5053
|
fillMode: FillMode.solid
|
|
@@ -4542,12 +5061,12 @@ var Picker = (props) => {
|
|
|
4542
5061
|
valid,
|
|
4543
5062
|
loading,
|
|
4544
5063
|
readonly,
|
|
4545
|
-
size =
|
|
4546
|
-
rounded =
|
|
4547
|
-
fillMode =
|
|
5064
|
+
size = defaultProps12.size,
|
|
5065
|
+
rounded = defaultProps12.rounded,
|
|
5066
|
+
fillMode = defaultProps12.fillMode,
|
|
4548
5067
|
...other
|
|
4549
5068
|
} = props;
|
|
4550
|
-
return /* @__PURE__ */
|
|
5069
|
+
return /* @__PURE__ */ jsx46(
|
|
4551
5070
|
"span",
|
|
4552
5071
|
{
|
|
4553
5072
|
...other,
|
|
@@ -4564,17 +5083,17 @@ var Picker = (props) => {
|
|
|
4564
5083
|
Picker.states = pickerStates;
|
|
4565
5084
|
Picker.options = pickerOptions;
|
|
4566
5085
|
Picker.className = PICKER_CLASSNAME;
|
|
4567
|
-
Picker.defaultProps =
|
|
5086
|
+
Picker.defaultProps = defaultProps12;
|
|
4568
5087
|
|
|
4569
5088
|
// src/input/input-clear-value.tsx
|
|
4570
|
-
import { Fragment as Fragment5, jsx as
|
|
4571
|
-
var
|
|
4572
|
-
var
|
|
5089
|
+
import { Fragment as Fragment5, jsx as jsx47 } from "react/jsx-runtime";
|
|
5090
|
+
var className9 = `k-clear-value`;
|
|
5091
|
+
var states14 = [
|
|
4573
5092
|
States.disabled,
|
|
4574
5093
|
States.loading,
|
|
4575
5094
|
States.readonly
|
|
4576
5095
|
];
|
|
4577
|
-
var
|
|
5096
|
+
var options11 = {};
|
|
4578
5097
|
var InputClearValue = (props) => {
|
|
4579
5098
|
const {
|
|
4580
5099
|
disabled,
|
|
@@ -4583,20 +5102,20 @@ var InputClearValue = (props) => {
|
|
|
4583
5102
|
value
|
|
4584
5103
|
} = props;
|
|
4585
5104
|
if (disabled || readonly || loading || !value) {
|
|
4586
|
-
return /* @__PURE__ */
|
|
5105
|
+
return /* @__PURE__ */ jsx47(Fragment5, {});
|
|
4587
5106
|
}
|
|
4588
|
-
return /* @__PURE__ */
|
|
5107
|
+
return /* @__PURE__ */ jsx47("span", { className: classNames(props.className, className9), children: /* @__PURE__ */ jsx47(Icon, { icon: "x" }) });
|
|
4589
5108
|
};
|
|
4590
|
-
InputClearValue.states =
|
|
4591
|
-
InputClearValue.options =
|
|
4592
|
-
InputClearValue.className =
|
|
5109
|
+
InputClearValue.states = states14;
|
|
5110
|
+
InputClearValue.options = options11;
|
|
5111
|
+
InputClearValue.className = className9;
|
|
4593
5112
|
|
|
4594
5113
|
// src/input/input-inner-input.tsx
|
|
4595
|
-
import { jsx as
|
|
4596
|
-
var
|
|
4597
|
-
var
|
|
4598
|
-
var
|
|
4599
|
-
var
|
|
5114
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
5115
|
+
var className10 = `k-input-inner`;
|
|
5116
|
+
var states15 = [];
|
|
5117
|
+
var options12 = {};
|
|
5118
|
+
var defaultProps13 = {
|
|
4600
5119
|
type: "text",
|
|
4601
5120
|
autocomplete: "off",
|
|
4602
5121
|
value: "",
|
|
@@ -4604,33 +5123,33 @@ var defaultProps7 = {
|
|
|
4604
5123
|
};
|
|
4605
5124
|
var InputInnerInput = (props) => {
|
|
4606
5125
|
const {
|
|
4607
|
-
value =
|
|
4608
|
-
type =
|
|
4609
|
-
placeholder =
|
|
4610
|
-
autocomplete =
|
|
5126
|
+
value = defaultProps13.value,
|
|
5127
|
+
type = defaultProps13.type,
|
|
5128
|
+
placeholder = defaultProps13.placeholder,
|
|
5129
|
+
autocomplete = defaultProps13.autocomplete,
|
|
4611
5130
|
...other
|
|
4612
5131
|
} = props;
|
|
4613
|
-
return /* @__PURE__ */
|
|
5132
|
+
return /* @__PURE__ */ jsx48(
|
|
4614
5133
|
"input",
|
|
4615
5134
|
{
|
|
4616
5135
|
...other,
|
|
4617
5136
|
type,
|
|
4618
|
-
className: classNames(props.className,
|
|
5137
|
+
className: classNames(props.className, className10, optionClassNames(className10, props)),
|
|
4619
5138
|
placeholder,
|
|
4620
5139
|
autoComplete: autocomplete,
|
|
4621
5140
|
defaultValue: value
|
|
4622
5141
|
}
|
|
4623
5142
|
);
|
|
4624
5143
|
};
|
|
4625
|
-
InputInnerInput.states =
|
|
4626
|
-
InputInnerInput.options =
|
|
4627
|
-
InputInnerInput.className =
|
|
5144
|
+
InputInnerInput.states = states15;
|
|
5145
|
+
InputInnerInput.options = options12;
|
|
5146
|
+
InputInnerInput.className = className10;
|
|
4628
5147
|
|
|
4629
5148
|
// src/input/input-inner-span.tsx
|
|
4630
|
-
import { jsx as
|
|
4631
|
-
var
|
|
4632
|
-
var
|
|
4633
|
-
var
|
|
5149
|
+
import { jsx as jsx49, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
5150
|
+
var className11 = `k-input-inner`;
|
|
5151
|
+
var states16 = [];
|
|
5152
|
+
var options13 = {};
|
|
4634
5153
|
var InputInnerSpan = (props) => {
|
|
4635
5154
|
const {
|
|
4636
5155
|
value,
|
|
@@ -4640,59 +5159,59 @@ var InputInnerSpan = (props) => {
|
|
|
4640
5159
|
valueIconName,
|
|
4641
5160
|
...other
|
|
4642
5161
|
} = props;
|
|
4643
|
-
return /* @__PURE__ */
|
|
5162
|
+
return /* @__PURE__ */ jsxs9(
|
|
4644
5163
|
"span",
|
|
4645
5164
|
{
|
|
4646
5165
|
...other,
|
|
4647
|
-
className: classNames(props.className,
|
|
5166
|
+
className: classNames(props.className, className11, optionClassNames(className11, props)),
|
|
4648
5167
|
children: [
|
|
4649
5168
|
valueIcon,
|
|
4650
|
-
!valueIcon && valueIconName && /* @__PURE__ */
|
|
5169
|
+
!valueIcon && valueIconName && /* @__PURE__ */ jsx49(Icon, { className: "k-input-value-icon", icon: valueIconName }),
|
|
4651
5170
|
showValue && !value && placeholder,
|
|
4652
|
-
showValue && value && /* @__PURE__ */
|
|
5171
|
+
showValue && value && /* @__PURE__ */ jsx49("span", { className: "k-input-value-text", children: value })
|
|
4653
5172
|
]
|
|
4654
5173
|
}
|
|
4655
5174
|
);
|
|
4656
5175
|
};
|
|
4657
|
-
InputInnerSpan.states =
|
|
4658
|
-
InputInnerSpan.options =
|
|
4659
|
-
InputInnerSpan.className =
|
|
5176
|
+
InputInnerSpan.states = states16;
|
|
5177
|
+
InputInnerSpan.options = options13;
|
|
5178
|
+
InputInnerSpan.className = className11;
|
|
4660
5179
|
|
|
4661
5180
|
// src/input/input-inner-textarea.tsx
|
|
4662
|
-
import { jsx as
|
|
4663
|
-
var
|
|
5181
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
5182
|
+
var defaultProps14 = {
|
|
4664
5183
|
value: "",
|
|
4665
5184
|
placeholder: ""
|
|
4666
5185
|
};
|
|
4667
|
-
var
|
|
4668
|
-
var
|
|
4669
|
-
var
|
|
5186
|
+
var className12 = `k-input-inner`;
|
|
5187
|
+
var states17 = [];
|
|
5188
|
+
var options14 = {};
|
|
4670
5189
|
var InputInnerTextarea = (props) => {
|
|
4671
5190
|
const {
|
|
4672
|
-
value =
|
|
4673
|
-
placeholder =
|
|
5191
|
+
value = defaultProps14.value,
|
|
5192
|
+
placeholder = defaultProps14.placeholder,
|
|
4674
5193
|
rows,
|
|
4675
5194
|
...other
|
|
4676
5195
|
} = props;
|
|
4677
|
-
return /* @__PURE__ */
|
|
5196
|
+
return /* @__PURE__ */ jsx50(
|
|
4678
5197
|
"textarea",
|
|
4679
5198
|
{
|
|
4680
5199
|
...other,
|
|
4681
|
-
className: classNames(props.className,
|
|
5200
|
+
className: classNames(props.className, className12, optionClassNames(className12, props)),
|
|
4682
5201
|
placeholder,
|
|
4683
5202
|
rows,
|
|
4684
5203
|
children: value
|
|
4685
5204
|
}
|
|
4686
5205
|
);
|
|
4687
5206
|
};
|
|
4688
|
-
InputInnerTextarea.states =
|
|
4689
|
-
InputInnerTextarea.options =
|
|
4690
|
-
InputInnerTextarea.className =
|
|
5207
|
+
InputInnerTextarea.states = states17;
|
|
5208
|
+
InputInnerTextarea.options = options14;
|
|
5209
|
+
InputInnerTextarea.className = className12;
|
|
4691
5210
|
|
|
4692
5211
|
// src/input/input-loading-icon.tsx
|
|
4693
|
-
import { Fragment as Fragment6, jsx as
|
|
4694
|
-
var
|
|
4695
|
-
var
|
|
5212
|
+
import { Fragment as Fragment6, jsx as jsx51 } from "react/jsx-runtime";
|
|
5213
|
+
var className13 = `k-input-loading-icon`;
|
|
5214
|
+
var states18 = [
|
|
4696
5215
|
States.disabled,
|
|
4697
5216
|
States.loading
|
|
4698
5217
|
];
|
|
@@ -4702,21 +5221,21 @@ var InputLoadingIcon = (props) => {
|
|
|
4702
5221
|
loading
|
|
4703
5222
|
} = props;
|
|
4704
5223
|
if (disabled || !loading) {
|
|
4705
|
-
return /* @__PURE__ */
|
|
5224
|
+
return /* @__PURE__ */ jsx51(Fragment6, {});
|
|
4706
5225
|
}
|
|
4707
|
-
return /* @__PURE__ */
|
|
5226
|
+
return /* @__PURE__ */ jsx51("span", { className: classNames(props.className, className13, "k-icon k-i-loading") });
|
|
4708
5227
|
};
|
|
4709
5228
|
|
|
4710
5229
|
// src/input/input-validation-icon.tsx
|
|
4711
|
-
import { Fragment as Fragment7, jsx as
|
|
4712
|
-
var
|
|
4713
|
-
var
|
|
5230
|
+
import { Fragment as Fragment7, jsx as jsx52 } from "react/jsx-runtime";
|
|
5231
|
+
var className14 = `k-input-validation-icon`;
|
|
5232
|
+
var states19 = [
|
|
4714
5233
|
States.valid,
|
|
4715
5234
|
States.invalid,
|
|
4716
5235
|
States.disabled,
|
|
4717
5236
|
States.loading
|
|
4718
5237
|
];
|
|
4719
|
-
var
|
|
5238
|
+
var options15 = {};
|
|
4720
5239
|
var InputValidationIcon = (props) => {
|
|
4721
5240
|
const {
|
|
4722
5241
|
valid,
|
|
@@ -4727,34 +5246,34 @@ var InputValidationIcon = (props) => {
|
|
|
4727
5246
|
const iconName = invalid ? "warning-circle" : "check-circle";
|
|
4728
5247
|
const renderValidationIcon = Boolean(valid || invalid);
|
|
4729
5248
|
if (disabled || loading || !renderValidationIcon) {
|
|
4730
|
-
return /* @__PURE__ */
|
|
5249
|
+
return /* @__PURE__ */ jsx52(Fragment7, {});
|
|
4731
5250
|
}
|
|
4732
|
-
return /* @__PURE__ */
|
|
5251
|
+
return /* @__PURE__ */ jsx52(Icon, { className: classNames(className14), icon: iconName });
|
|
4733
5252
|
};
|
|
4734
|
-
InputValidationIcon.states =
|
|
4735
|
-
InputValidationIcon.options =
|
|
4736
|
-
InputValidationIcon.className =
|
|
5253
|
+
InputValidationIcon.states = states19;
|
|
5254
|
+
InputValidationIcon.options = options15;
|
|
5255
|
+
InputValidationIcon.className = className14;
|
|
4737
5256
|
|
|
4738
5257
|
// src/input/input-prefix.tsx
|
|
4739
|
-
import { Fragment as Fragment8, jsx as
|
|
4740
|
-
var
|
|
4741
|
-
var
|
|
5258
|
+
import { Fragment as Fragment8, jsx as jsx53 } from "react/jsx-runtime";
|
|
5259
|
+
var className15 = `k-input-prefix`;
|
|
5260
|
+
var defaultProps15 = {
|
|
4742
5261
|
direction: "horizontal"
|
|
4743
5262
|
};
|
|
4744
5263
|
var InputPrefix = (props) => {
|
|
4745
5264
|
const {
|
|
4746
|
-
direction =
|
|
5265
|
+
direction = defaultProps15.direction,
|
|
4747
5266
|
...other
|
|
4748
5267
|
} = props;
|
|
4749
5268
|
if (!props.children) {
|
|
4750
|
-
return /* @__PURE__ */
|
|
5269
|
+
return /* @__PURE__ */ jsx53(Fragment8, {});
|
|
4751
5270
|
}
|
|
4752
|
-
return /* @__PURE__ */
|
|
5271
|
+
return /* @__PURE__ */ jsx53(
|
|
4753
5272
|
"span",
|
|
4754
5273
|
{
|
|
4755
5274
|
...other,
|
|
4756
5275
|
className: classNames(
|
|
4757
|
-
|
|
5276
|
+
className15,
|
|
4758
5277
|
props.className,
|
|
4759
5278
|
{
|
|
4760
5279
|
[`k-input-prefix-${direction}`]: direction
|
|
@@ -4766,25 +5285,25 @@ var InputPrefix = (props) => {
|
|
|
4766
5285
|
};
|
|
4767
5286
|
|
|
4768
5287
|
// src/input/input-suffix.tsx
|
|
4769
|
-
import { Fragment as Fragment9, jsx as
|
|
4770
|
-
var
|
|
4771
|
-
var
|
|
5288
|
+
import { Fragment as Fragment9, jsx as jsx54 } from "react/jsx-runtime";
|
|
5289
|
+
var className16 = `k-input-suffix`;
|
|
5290
|
+
var defaultProps16 = {
|
|
4772
5291
|
direction: "horizontal"
|
|
4773
5292
|
};
|
|
4774
5293
|
var InputSuffix = (props) => {
|
|
4775
5294
|
const {
|
|
4776
|
-
direction =
|
|
5295
|
+
direction = defaultProps16.direction,
|
|
4777
5296
|
...other
|
|
4778
5297
|
} = props;
|
|
4779
5298
|
if (!props.children) {
|
|
4780
|
-
return /* @__PURE__ */
|
|
5299
|
+
return /* @__PURE__ */ jsx54(Fragment9, {});
|
|
4781
5300
|
}
|
|
4782
|
-
return /* @__PURE__ */
|
|
5301
|
+
return /* @__PURE__ */ jsx54(
|
|
4783
5302
|
"span",
|
|
4784
5303
|
{
|
|
4785
5304
|
...other,
|
|
4786
5305
|
className: classNames(
|
|
4787
|
-
|
|
5306
|
+
className16,
|
|
4788
5307
|
props.className,
|
|
4789
5308
|
{
|
|
4790
5309
|
[`k-input-suffix-${direction}`]: direction
|
|
@@ -4796,31 +5315,31 @@ var InputSuffix = (props) => {
|
|
|
4796
5315
|
};
|
|
4797
5316
|
|
|
4798
5317
|
// src/input/input-prefix-text.tsx
|
|
4799
|
-
import { jsx as
|
|
5318
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
4800
5319
|
|
|
4801
5320
|
// src/input/input-suffix-text.tsx
|
|
4802
|
-
import { jsx as
|
|
5321
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
4803
5322
|
|
|
4804
5323
|
// src/input/input-separator.tsx
|
|
4805
|
-
import { jsx as
|
|
4806
|
-
var
|
|
4807
|
-
var
|
|
5324
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
5325
|
+
var className17 = `k-input-separator`;
|
|
5326
|
+
var defaultProps17 = {
|
|
4808
5327
|
direction: "vertical"
|
|
4809
5328
|
};
|
|
4810
5329
|
var InputSeparator = (props) => {
|
|
4811
5330
|
const {
|
|
4812
|
-
direction =
|
|
5331
|
+
direction = defaultProps17.direction,
|
|
4813
5332
|
...other
|
|
4814
5333
|
} = props;
|
|
4815
|
-
return /* @__PURE__ */
|
|
5334
|
+
return /* @__PURE__ */ jsx57(
|
|
4816
5335
|
"span",
|
|
4817
5336
|
{
|
|
4818
5337
|
...other,
|
|
4819
5338
|
className: classNames(
|
|
4820
|
-
|
|
5339
|
+
className17,
|
|
4821
5340
|
props.className,
|
|
4822
5341
|
{
|
|
4823
|
-
[`${
|
|
5342
|
+
[`${className17}-${direction}`]: direction
|
|
4824
5343
|
}
|
|
4825
5344
|
)
|
|
4826
5345
|
}
|
|
@@ -4828,11 +5347,11 @@ var InputSeparator = (props) => {
|
|
|
4828
5347
|
};
|
|
4829
5348
|
|
|
4830
5349
|
// src/animation-container/animation-container.spec.tsx
|
|
4831
|
-
import { jsx as
|
|
5350
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
4832
5351
|
var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
|
|
4833
|
-
var
|
|
4834
|
-
var
|
|
4835
|
-
var
|
|
5352
|
+
var states20 = [];
|
|
5353
|
+
var options16 = {};
|
|
5354
|
+
var defaultProps18 = {
|
|
4836
5355
|
positionMode: "absolute"
|
|
4837
5356
|
};
|
|
4838
5357
|
var AnimationContainer = (props) => {
|
|
@@ -4842,7 +5361,7 @@ var AnimationContainer = (props) => {
|
|
|
4842
5361
|
offset,
|
|
4843
5362
|
...other
|
|
4844
5363
|
} = props;
|
|
4845
|
-
return /* @__PURE__ */
|
|
5364
|
+
return /* @__PURE__ */ jsx58(
|
|
4846
5365
|
"div",
|
|
4847
5366
|
{
|
|
4848
5367
|
...other,
|
|
@@ -4854,21 +5373,21 @@ var AnimationContainer = (props) => {
|
|
|
4854
5373
|
["k-animation-container-fixed"]: positionMode === "fixed"
|
|
4855
5374
|
}
|
|
4856
5375
|
),
|
|
4857
|
-
children: /* @__PURE__ */
|
|
5376
|
+
children: /* @__PURE__ */ jsx58("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
|
|
4858
5377
|
}
|
|
4859
5378
|
);
|
|
4860
5379
|
};
|
|
4861
|
-
AnimationContainer.states =
|
|
4862
|
-
AnimationContainer.options =
|
|
5380
|
+
AnimationContainer.states = states20;
|
|
5381
|
+
AnimationContainer.options = options16;
|
|
4863
5382
|
AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
|
|
4864
|
-
AnimationContainer.defaultProps =
|
|
5383
|
+
AnimationContainer.defaultProps = defaultProps18;
|
|
4865
5384
|
|
|
4866
5385
|
// src/popup/popup.spec.tsx
|
|
4867
|
-
import { jsx as
|
|
5386
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
4868
5387
|
var POPUP_CLASSNAME = `k-popup`;
|
|
4869
|
-
var
|
|
4870
|
-
var
|
|
4871
|
-
var
|
|
5388
|
+
var states21 = [];
|
|
5389
|
+
var options17 = {};
|
|
5390
|
+
var defaultProps19 = {
|
|
4872
5391
|
positionMode: "absolute"
|
|
4873
5392
|
};
|
|
4874
5393
|
var Popup = (props) => {
|
|
@@ -4877,24 +5396,24 @@ var Popup = (props) => {
|
|
|
4877
5396
|
positionMode,
|
|
4878
5397
|
...other
|
|
4879
5398
|
} = props;
|
|
4880
|
-
return /* @__PURE__ */
|
|
5399
|
+
return /* @__PURE__ */ jsx59(
|
|
4881
5400
|
AnimationContainer,
|
|
4882
5401
|
{
|
|
4883
5402
|
positionMode,
|
|
4884
5403
|
offset,
|
|
4885
|
-
children: /* @__PURE__ */
|
|
5404
|
+
children: /* @__PURE__ */ jsx59("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
|
|
4886
5405
|
}
|
|
4887
5406
|
);
|
|
4888
5407
|
};
|
|
4889
|
-
Popup.states =
|
|
4890
|
-
Popup.options =
|
|
5408
|
+
Popup.states = states21;
|
|
5409
|
+
Popup.options = options17;
|
|
4891
5410
|
Popup.className = POPUP_CLASSNAME;
|
|
4892
|
-
Popup.defaultProps =
|
|
5411
|
+
Popup.defaultProps = defaultProps19;
|
|
4893
5412
|
|
|
4894
5413
|
// src/dropdownlist/dropdownlist.spec.tsx
|
|
4895
|
-
import { Fragment as Fragment10, jsx as
|
|
5414
|
+
import { Fragment as Fragment10, jsx as jsx60, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
4896
5415
|
var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
|
|
4897
|
-
var
|
|
5416
|
+
var states22 = [
|
|
4898
5417
|
States.hover,
|
|
4899
5418
|
States.focus,
|
|
4900
5419
|
States.valid,
|
|
@@ -4904,12 +5423,12 @@ var states14 = [
|
|
|
4904
5423
|
States.loading,
|
|
4905
5424
|
States.readonly
|
|
4906
5425
|
];
|
|
4907
|
-
var
|
|
5426
|
+
var options18 = {
|
|
4908
5427
|
size: [Size.small, Size.medium, Size.large],
|
|
4909
5428
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
4910
5429
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
4911
5430
|
};
|
|
4912
|
-
var
|
|
5431
|
+
var defaultProps20 = {
|
|
4913
5432
|
showValue: true,
|
|
4914
5433
|
arrowIconName: "caret-alt-down",
|
|
4915
5434
|
size: Size.medium,
|
|
@@ -4919,7 +5438,7 @@ var defaultProps14 = {
|
|
|
4919
5438
|
var DropdownList = (props) => {
|
|
4920
5439
|
const {
|
|
4921
5440
|
valueIconName,
|
|
4922
|
-
arrowIconName =
|
|
5441
|
+
arrowIconName = defaultProps20.arrowIconName,
|
|
4923
5442
|
prefix,
|
|
4924
5443
|
suffix,
|
|
4925
5444
|
value,
|
|
@@ -4935,13 +5454,13 @@ var DropdownList = (props) => {
|
|
|
4935
5454
|
loading,
|
|
4936
5455
|
disabled,
|
|
4937
5456
|
readonly,
|
|
4938
|
-
showValue =
|
|
5457
|
+
showValue = defaultProps20.showValue,
|
|
4939
5458
|
popup,
|
|
4940
5459
|
opened,
|
|
4941
5460
|
...other
|
|
4942
5461
|
} = props;
|
|
4943
|
-
return /* @__PURE__ */
|
|
4944
|
-
/* @__PURE__ */
|
|
5462
|
+
return /* @__PURE__ */ jsxs10(Fragment10, { children: [
|
|
5463
|
+
/* @__PURE__ */ jsxs10(
|
|
4945
5464
|
Picker,
|
|
4946
5465
|
{
|
|
4947
5466
|
...other,
|
|
@@ -4964,8 +5483,8 @@ var DropdownList = (props) => {
|
|
|
4964
5483
|
}
|
|
4965
5484
|
),
|
|
4966
5485
|
children: [
|
|
4967
|
-
/* @__PURE__ */
|
|
4968
|
-
/* @__PURE__ */
|
|
5486
|
+
/* @__PURE__ */ jsx60(InputPrefix, { children: prefix }),
|
|
5487
|
+
/* @__PURE__ */ jsx60(
|
|
4969
5488
|
InputInnerSpan,
|
|
4970
5489
|
{
|
|
4971
5490
|
placeholder,
|
|
@@ -4974,7 +5493,7 @@ var DropdownList = (props) => {
|
|
|
4974
5493
|
valueIconName
|
|
4975
5494
|
}
|
|
4976
5495
|
),
|
|
4977
|
-
/* @__PURE__ */
|
|
5496
|
+
/* @__PURE__ */ jsx60(
|
|
4978
5497
|
InputValidationIcon,
|
|
4979
5498
|
{
|
|
4980
5499
|
valid,
|
|
@@ -4983,15 +5502,15 @@ var DropdownList = (props) => {
|
|
|
4983
5502
|
disabled
|
|
4984
5503
|
}
|
|
4985
5504
|
),
|
|
4986
|
-
/* @__PURE__ */
|
|
5505
|
+
/* @__PURE__ */ jsx60(
|
|
4987
5506
|
InputLoadingIcon,
|
|
4988
5507
|
{
|
|
4989
5508
|
loading,
|
|
4990
5509
|
disabled
|
|
4991
5510
|
}
|
|
4992
5511
|
),
|
|
4993
|
-
/* @__PURE__ */
|
|
4994
|
-
/* @__PURE__ */
|
|
5512
|
+
/* @__PURE__ */ jsx60(InputSuffix, { children: suffix }),
|
|
5513
|
+
/* @__PURE__ */ jsx60(
|
|
4995
5514
|
Button,
|
|
4996
5515
|
{
|
|
4997
5516
|
className: "k-input-button",
|
|
@@ -5004,35 +5523,35 @@ var DropdownList = (props) => {
|
|
|
5004
5523
|
]
|
|
5005
5524
|
}
|
|
5006
5525
|
),
|
|
5007
|
-
opened && popup && /* @__PURE__ */
|
|
5526
|
+
opened && popup && /* @__PURE__ */ jsx60(Popup, { className: "k-list-container k-dropdownlist-popup", children: popup })
|
|
5008
5527
|
] });
|
|
5009
5528
|
};
|
|
5010
|
-
DropdownList.states =
|
|
5011
|
-
DropdownList.options =
|
|
5529
|
+
DropdownList.states = states22;
|
|
5530
|
+
DropdownList.options = options18;
|
|
5012
5531
|
DropdownList.className = DROPDOWNLIST_CLASSNAME;
|
|
5013
|
-
DropdownList.defaultProps =
|
|
5532
|
+
DropdownList.defaultProps = defaultProps20;
|
|
5014
5533
|
|
|
5015
5534
|
// src/dropdownlist/templates/dropdownlist-normal.tsx
|
|
5016
|
-
import { jsx as
|
|
5535
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
5017
5536
|
|
|
5018
5537
|
// src/nodata/nodata.tsx
|
|
5019
|
-
import { jsx as
|
|
5020
|
-
var
|
|
5021
|
-
var NoData = (props) => /* @__PURE__ */
|
|
5538
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
5539
|
+
var className18 = `k-nodata`;
|
|
5540
|
+
var NoData = (props) => /* @__PURE__ */ jsx62("span", { className: classNames(className18, props.className), children: props.children });
|
|
5022
5541
|
|
|
5023
5542
|
// src/list/list.spec.tsx
|
|
5024
|
-
import { jsx as
|
|
5543
|
+
import { jsx as jsx63, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
5025
5544
|
var LIST_CLASSNAME = `k-list`;
|
|
5026
|
-
var
|
|
5027
|
-
var
|
|
5545
|
+
var states23 = [];
|
|
5546
|
+
var options19 = {
|
|
5028
5547
|
size: [Size.small, Size.medium, Size.large]
|
|
5029
5548
|
};
|
|
5030
|
-
var
|
|
5549
|
+
var defaultProps21 = {
|
|
5031
5550
|
size: Size.medium
|
|
5032
5551
|
};
|
|
5033
5552
|
var List = (props) => {
|
|
5034
5553
|
const {
|
|
5035
|
-
size =
|
|
5554
|
+
size = defaultProps21.size,
|
|
5036
5555
|
virtualization,
|
|
5037
5556
|
children,
|
|
5038
5557
|
optionLabel,
|
|
@@ -5049,7 +5568,7 @@ var List = (props) => {
|
|
|
5049
5568
|
listHeader = child.props.label;
|
|
5050
5569
|
child.props.children.map((optChild, index2) => {
|
|
5051
5570
|
listChildren.push(
|
|
5052
|
-
/* @__PURE__ */
|
|
5571
|
+
/* @__PURE__ */ jsx63(
|
|
5053
5572
|
ListItem,
|
|
5054
5573
|
{
|
|
5055
5574
|
...optChild.props
|
|
@@ -5065,7 +5584,7 @@ var List = (props) => {
|
|
|
5065
5584
|
groupLabel = child.props.label;
|
|
5066
5585
|
}
|
|
5067
5586
|
listChildren.push(
|
|
5068
|
-
/* @__PURE__ */
|
|
5587
|
+
/* @__PURE__ */ jsx63(
|
|
5069
5588
|
ListItem,
|
|
5070
5589
|
{
|
|
5071
5590
|
className: index2 === 0 ? "k-first" : "",
|
|
@@ -5077,16 +5596,16 @@ var List = (props) => {
|
|
|
5077
5596
|
);
|
|
5078
5597
|
});
|
|
5079
5598
|
}
|
|
5080
|
-
listGroup = /* @__PURE__ */
|
|
5599
|
+
listGroup = /* @__PURE__ */ jsx63(ListGroup, { label: listHeader, virtualization, children: listChildren });
|
|
5081
5600
|
} else if (child.type === ListItem) {
|
|
5082
|
-
listChildren.push(/* @__PURE__ */
|
|
5083
|
-
listContent = /* @__PURE__ */
|
|
5601
|
+
listChildren.push(/* @__PURE__ */ jsx63(ListItem, { ...child.props }, `${child.type}-${index}`));
|
|
5602
|
+
listContent = /* @__PURE__ */ jsx63(ListContent, { virtualization, children: listChildren });
|
|
5084
5603
|
}
|
|
5085
5604
|
});
|
|
5086
5605
|
} else {
|
|
5087
|
-
listContent = /* @__PURE__ */
|
|
5606
|
+
listContent = /* @__PURE__ */ jsx63(NoData, { children: "No data found." });
|
|
5088
5607
|
}
|
|
5089
|
-
return /* @__PURE__ */
|
|
5608
|
+
return /* @__PURE__ */ jsxs11(
|
|
5090
5609
|
"div",
|
|
5091
5610
|
{
|
|
5092
5611
|
...other,
|
|
@@ -5108,24 +5627,24 @@ var List = (props) => {
|
|
|
5108
5627
|
}
|
|
5109
5628
|
);
|
|
5110
5629
|
};
|
|
5111
|
-
List.states =
|
|
5112
|
-
List.options =
|
|
5630
|
+
List.states = states23;
|
|
5631
|
+
List.options = options19;
|
|
5113
5632
|
List.className = LIST_CLASSNAME;
|
|
5114
|
-
List.defaultProps =
|
|
5633
|
+
List.defaultProps = defaultProps21;
|
|
5115
5634
|
|
|
5116
5635
|
// src/list/list-angular.spec.tsx
|
|
5117
|
-
import { jsx as
|
|
5636
|
+
import { jsx as jsx64, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
5118
5637
|
var LISTANGULAR_CLASSNAME = `k-list`;
|
|
5119
|
-
var
|
|
5120
|
-
var
|
|
5638
|
+
var states24 = [];
|
|
5639
|
+
var options20 = {
|
|
5121
5640
|
size: [Size.small, Size.medium, Size.large]
|
|
5122
5641
|
};
|
|
5123
|
-
var
|
|
5642
|
+
var defaultProps22 = {
|
|
5124
5643
|
size: Size.medium
|
|
5125
5644
|
};
|
|
5126
5645
|
var ListAngular = (props) => {
|
|
5127
5646
|
const {
|
|
5128
|
-
size =
|
|
5647
|
+
size = defaultProps22.size,
|
|
5129
5648
|
virtualization,
|
|
5130
5649
|
children,
|
|
5131
5650
|
...other
|
|
@@ -5141,7 +5660,7 @@ var ListAngular = (props) => {
|
|
|
5141
5660
|
listHeader = child.props.label;
|
|
5142
5661
|
child.props.children.map((optChild, index2) => {
|
|
5143
5662
|
listChildren.push(
|
|
5144
|
-
/* @__PURE__ */
|
|
5663
|
+
/* @__PURE__ */ jsx64(
|
|
5145
5664
|
ListItem,
|
|
5146
5665
|
{
|
|
5147
5666
|
...optChild.props
|
|
@@ -5152,7 +5671,7 @@ var ListAngular = (props) => {
|
|
|
5152
5671
|
});
|
|
5153
5672
|
} else {
|
|
5154
5673
|
listChildren.push(
|
|
5155
|
-
/* @__PURE__ */
|
|
5674
|
+
/* @__PURE__ */ jsx64(
|
|
5156
5675
|
ListGroupItem,
|
|
5157
5676
|
{
|
|
5158
5677
|
...child.props,
|
|
@@ -5163,7 +5682,7 @@ var ListAngular = (props) => {
|
|
|
5163
5682
|
);
|
|
5164
5683
|
child.props.children.map((optChild, index2) => {
|
|
5165
5684
|
listChildren.push(
|
|
5166
|
-
/* @__PURE__ */
|
|
5685
|
+
/* @__PURE__ */ jsx64(
|
|
5167
5686
|
ListItem,
|
|
5168
5687
|
{
|
|
5169
5688
|
...optChild.props
|
|
@@ -5173,16 +5692,16 @@ var ListAngular = (props) => {
|
|
|
5173
5692
|
);
|
|
5174
5693
|
});
|
|
5175
5694
|
}
|
|
5176
|
-
listGroup = /* @__PURE__ */
|
|
5695
|
+
listGroup = /* @__PURE__ */ jsx64(ListGroup, { label: listHeader, virtualization, children: listChildren });
|
|
5177
5696
|
} else if (child.type === ListItem) {
|
|
5178
|
-
listChildren.push(/* @__PURE__ */
|
|
5179
|
-
listContent = /* @__PURE__ */
|
|
5697
|
+
listChildren.push(/* @__PURE__ */ jsx64(ListItem, { ...child.props }, `${child.type}-${index}`));
|
|
5698
|
+
listContent = /* @__PURE__ */ jsx64(ListContent, { virtualization, children: listChildren });
|
|
5180
5699
|
}
|
|
5181
5700
|
});
|
|
5182
5701
|
} else {
|
|
5183
|
-
listContent = /* @__PURE__ */
|
|
5702
|
+
listContent = /* @__PURE__ */ jsx64(NoData, { children: "No data found." });
|
|
5184
5703
|
}
|
|
5185
|
-
return /* @__PURE__ */
|
|
5704
|
+
return /* @__PURE__ */ jsxs12(
|
|
5186
5705
|
"div",
|
|
5187
5706
|
{
|
|
5188
5707
|
...other,
|
|
@@ -5203,15 +5722,15 @@ var ListAngular = (props) => {
|
|
|
5203
5722
|
}
|
|
5204
5723
|
);
|
|
5205
5724
|
};
|
|
5206
|
-
ListAngular.states =
|
|
5207
|
-
ListAngular.options =
|
|
5725
|
+
ListAngular.states = states24;
|
|
5726
|
+
ListAngular.options = options20;
|
|
5208
5727
|
ListAngular.className = LISTANGULAR_CLASSNAME;
|
|
5209
|
-
ListAngular.defaultProps =
|
|
5728
|
+
ListAngular.defaultProps = defaultProps22;
|
|
5210
5729
|
|
|
5211
5730
|
// src/checkbox/checkbox.spec.tsx
|
|
5212
|
-
import { jsx as
|
|
5731
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
5213
5732
|
var CHECKBOX_CLASSNAME = `k-checkbox`;
|
|
5214
|
-
var
|
|
5733
|
+
var states25 = [
|
|
5215
5734
|
States.hover,
|
|
5216
5735
|
States.focus,
|
|
5217
5736
|
States.valid,
|
|
@@ -5221,11 +5740,11 @@ var states17 = [
|
|
|
5221
5740
|
States.checked,
|
|
5222
5741
|
States.indeterminate
|
|
5223
5742
|
];
|
|
5224
|
-
var
|
|
5743
|
+
var options21 = {
|
|
5225
5744
|
size: [Size.small, Size.medium, Size.large],
|
|
5226
5745
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
|
|
5227
5746
|
};
|
|
5228
|
-
var
|
|
5747
|
+
var defaultProps23 = {
|
|
5229
5748
|
size: Size.medium,
|
|
5230
5749
|
rounded: Roundness.medium
|
|
5231
5750
|
};
|
|
@@ -5240,11 +5759,11 @@ var Checkbox = (props) => {
|
|
|
5240
5759
|
invalid,
|
|
5241
5760
|
valid,
|
|
5242
5761
|
required,
|
|
5243
|
-
size =
|
|
5244
|
-
rounded =
|
|
5762
|
+
size = defaultProps23.size,
|
|
5763
|
+
rounded = defaultProps23.rounded,
|
|
5245
5764
|
...other
|
|
5246
5765
|
} = props;
|
|
5247
|
-
return /* @__PURE__ */
|
|
5766
|
+
return /* @__PURE__ */ jsx65("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ jsx65(
|
|
5248
5767
|
"input",
|
|
5249
5768
|
{
|
|
5250
5769
|
...other,
|
|
@@ -5261,25 +5780,25 @@ var Checkbox = (props) => {
|
|
|
5261
5780
|
}
|
|
5262
5781
|
) });
|
|
5263
5782
|
};
|
|
5264
|
-
Checkbox.states =
|
|
5265
|
-
Checkbox.options =
|
|
5783
|
+
Checkbox.states = states25;
|
|
5784
|
+
Checkbox.options = options21;
|
|
5266
5785
|
Checkbox.className = CHECKBOX_CLASSNAME;
|
|
5267
|
-
Checkbox.defaultProps =
|
|
5786
|
+
Checkbox.defaultProps = defaultProps23;
|
|
5268
5787
|
|
|
5269
5788
|
// src/checkbox/checkbox-group.spec.tsx
|
|
5270
|
-
import { jsx as
|
|
5789
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
5271
5790
|
var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
|
|
5272
|
-
var
|
|
5273
|
-
var
|
|
5274
|
-
var
|
|
5791
|
+
var states26 = [];
|
|
5792
|
+
var options22 = {};
|
|
5793
|
+
var defaultProps24 = {
|
|
5275
5794
|
layout: "vertical"
|
|
5276
5795
|
};
|
|
5277
5796
|
var CheckboxGroup = (props) => {
|
|
5278
5797
|
const {
|
|
5279
|
-
layout =
|
|
5798
|
+
layout = defaultProps24.layout,
|
|
5280
5799
|
...other
|
|
5281
5800
|
} = props;
|
|
5282
|
-
return /* @__PURE__ */
|
|
5801
|
+
return /* @__PURE__ */ jsx66(
|
|
5283
5802
|
"ul",
|
|
5284
5803
|
{
|
|
5285
5804
|
...other,
|
|
@@ -5294,22 +5813,22 @@ var CheckboxGroup = (props) => {
|
|
|
5294
5813
|
}
|
|
5295
5814
|
);
|
|
5296
5815
|
};
|
|
5297
|
-
CheckboxGroup.states =
|
|
5298
|
-
CheckboxGroup.options =
|
|
5816
|
+
CheckboxGroup.states = states26;
|
|
5817
|
+
CheckboxGroup.options = options22;
|
|
5299
5818
|
CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
|
|
5300
|
-
CheckboxGroup.defaultProps =
|
|
5819
|
+
CheckboxGroup.defaultProps = defaultProps24;
|
|
5301
5820
|
|
|
5302
5821
|
// src/checkbox/checkbox-item.spec.tsx
|
|
5303
|
-
import { jsx as
|
|
5822
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
5304
5823
|
var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
|
|
5305
|
-
var
|
|
5306
|
-
var
|
|
5307
|
-
var
|
|
5824
|
+
var states27 = [];
|
|
5825
|
+
var options23 = {};
|
|
5826
|
+
var defaultProps25 = {};
|
|
5308
5827
|
var CheckboxItem = (props) => {
|
|
5309
5828
|
const {
|
|
5310
5829
|
...other
|
|
5311
5830
|
} = props;
|
|
5312
|
-
return /* @__PURE__ */
|
|
5831
|
+
return /* @__PURE__ */ jsx67(
|
|
5313
5832
|
"li",
|
|
5314
5833
|
{
|
|
5315
5834
|
...other,
|
|
@@ -5321,31 +5840,31 @@ var CheckboxItem = (props) => {
|
|
|
5321
5840
|
}
|
|
5322
5841
|
);
|
|
5323
5842
|
};
|
|
5324
|
-
CheckboxItem.states =
|
|
5325
|
-
CheckboxItem.options =
|
|
5843
|
+
CheckboxItem.states = states27;
|
|
5844
|
+
CheckboxItem.options = options23;
|
|
5326
5845
|
CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
|
|
5327
|
-
CheckboxItem.defaultProps =
|
|
5846
|
+
CheckboxItem.defaultProps = defaultProps25;
|
|
5328
5847
|
|
|
5329
5848
|
// src/checkbox/templates/checkbox-with-label-after.tsx
|
|
5330
|
-
import { Fragment as Fragment11, jsx as
|
|
5849
|
+
import { Fragment as Fragment11, jsx as jsx68, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
5331
5850
|
|
|
5332
5851
|
// src/checkbox/templates/checkbox-with-label-before.tsx
|
|
5333
|
-
import { Fragment as Fragment12, jsx as
|
|
5852
|
+
import { Fragment as Fragment12, jsx as jsx69, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
5334
5853
|
|
|
5335
5854
|
// src/checkbox/templates/checkbox-normal.tsx
|
|
5336
|
-
import { jsx as
|
|
5855
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
5337
5856
|
|
|
5338
5857
|
// src/list/list-item.spec.tsx
|
|
5339
|
-
import { jsx as
|
|
5858
|
+
import { jsx as jsx71, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
5340
5859
|
var LISTITEM_CLASSNAME = `k-list-item`;
|
|
5341
|
-
var
|
|
5860
|
+
var states28 = [
|
|
5342
5861
|
States.hover,
|
|
5343
5862
|
States.focus,
|
|
5344
5863
|
States.selected,
|
|
5345
5864
|
States.disabled
|
|
5346
5865
|
];
|
|
5347
|
-
var
|
|
5348
|
-
var
|
|
5866
|
+
var options24 = {};
|
|
5867
|
+
var defaultProps26 = {};
|
|
5349
5868
|
var ListItem = (props) => {
|
|
5350
5869
|
const {
|
|
5351
5870
|
text,
|
|
@@ -5361,7 +5880,7 @@ var ListItem = (props) => {
|
|
|
5361
5880
|
...other
|
|
5362
5881
|
} = props;
|
|
5363
5882
|
const textOrChildren = text ? text : props.children;
|
|
5364
|
-
return /* @__PURE__ */
|
|
5883
|
+
return /* @__PURE__ */ jsxs15(
|
|
5365
5884
|
"li",
|
|
5366
5885
|
{
|
|
5367
5886
|
...other,
|
|
@@ -5376,66 +5895,66 @@ var ListItem = (props) => {
|
|
|
5376
5895
|
})
|
|
5377
5896
|
),
|
|
5378
5897
|
children: [
|
|
5379
|
-
showCheckbox && /* @__PURE__ */
|
|
5380
|
-
showIcon && /* @__PURE__ */
|
|
5381
|
-
/* @__PURE__ */
|
|
5382
|
-
groupLabel && groupLabel !== "" && /* @__PURE__ */
|
|
5898
|
+
showCheckbox && /* @__PURE__ */ jsx71(Checkbox, { checked }),
|
|
5899
|
+
showIcon && /* @__PURE__ */ jsx71(Icon, { icon: iconName }),
|
|
5900
|
+
/* @__PURE__ */ jsx71("span", { className: "k-list-item-text", children: textOrChildren }),
|
|
5901
|
+
groupLabel && groupLabel !== "" && /* @__PURE__ */ jsx71("div", { className: "k-list-item-group-label", children: groupLabel })
|
|
5383
5902
|
]
|
|
5384
5903
|
}
|
|
5385
5904
|
);
|
|
5386
5905
|
};
|
|
5387
|
-
ListItem.states =
|
|
5388
|
-
ListItem.options =
|
|
5906
|
+
ListItem.states = states28;
|
|
5907
|
+
ListItem.options = options24;
|
|
5389
5908
|
ListItem.className = LISTITEM_CLASSNAME;
|
|
5390
|
-
ListItem.defaultProps =
|
|
5909
|
+
ListItem.defaultProps = defaultProps26;
|
|
5391
5910
|
|
|
5392
5911
|
// src/list/list-content.tsx
|
|
5393
|
-
import { jsx as
|
|
5394
|
-
var
|
|
5912
|
+
import { jsx as jsx72, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
5913
|
+
var className19 = `k-list-content`;
|
|
5395
5914
|
var ListContent = (props) => {
|
|
5396
5915
|
const {
|
|
5397
5916
|
virtualization
|
|
5398
5917
|
} = props;
|
|
5399
|
-
return /* @__PURE__ */
|
|
5400
|
-
/* @__PURE__ */
|
|
5401
|
-
virtualization && /* @__PURE__ */
|
|
5918
|
+
return /* @__PURE__ */ jsxs16("div", { className: classNames(className19, props.className), children: [
|
|
5919
|
+
/* @__PURE__ */ jsx72("ul", { className: classNames("k-list-ul"), children: props.children }),
|
|
5920
|
+
virtualization && /* @__PURE__ */ jsx72("div", { className: "k-height-container", children: /* @__PURE__ */ jsx72("div", {}) })
|
|
5402
5921
|
] });
|
|
5403
5922
|
};
|
|
5404
5923
|
|
|
5405
5924
|
// src/list/list-header.tsx
|
|
5406
|
-
import { jsx as
|
|
5407
|
-
var
|
|
5408
|
-
var ListHeader = (props) => /* @__PURE__ */
|
|
5925
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
5926
|
+
var className20 = `k-list-group-sticky-header`;
|
|
5927
|
+
var ListHeader = (props) => /* @__PURE__ */ jsx73("div", { className: classNames(className20, props.className), children: /* @__PURE__ */ jsx73("div", { className: "k-list-header-text", children: props.children }) });
|
|
5409
5928
|
|
|
5410
5929
|
// src/list/list-group.tsx
|
|
5411
|
-
import { Fragment as Fragment13, jsx as
|
|
5930
|
+
import { Fragment as Fragment13, jsx as jsx74, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
5412
5931
|
var ListGroup = (props) => {
|
|
5413
5932
|
const {
|
|
5414
5933
|
virtualization,
|
|
5415
5934
|
label
|
|
5416
5935
|
} = props;
|
|
5417
|
-
return /* @__PURE__ */
|
|
5418
|
-
label && /* @__PURE__ */
|
|
5419
|
-
props.children && /* @__PURE__ */
|
|
5936
|
+
return /* @__PURE__ */ jsxs17(Fragment13, { children: [
|
|
5937
|
+
label && /* @__PURE__ */ jsx74(ListHeader, { children: label }),
|
|
5938
|
+
props.children && /* @__PURE__ */ jsx74(ListContent, { virtualization, children: props.children })
|
|
5420
5939
|
] });
|
|
5421
5940
|
};
|
|
5422
5941
|
|
|
5423
5942
|
// src/list/list-group-item.tsx
|
|
5424
|
-
import { jsx as
|
|
5425
|
-
var
|
|
5426
|
-
var ListGroupItem = (props) => /* @__PURE__ */
|
|
5943
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
5944
|
+
var className21 = `k-list-group-item`;
|
|
5945
|
+
var ListGroupItem = (props) => /* @__PURE__ */ jsx75("li", { className: classNames(className21, props.className), children: /* @__PURE__ */ jsx75("span", { className: "k-list-item-text", children: props.children }) });
|
|
5427
5946
|
|
|
5428
5947
|
// src/list/list-option-label.tsx
|
|
5429
|
-
import { jsx as
|
|
5948
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
5430
5949
|
var LIST_OPTIONLABEL_CLASSNAME = `k-list-optionlabel`;
|
|
5431
|
-
var
|
|
5950
|
+
var states29 = [
|
|
5432
5951
|
States.hover,
|
|
5433
5952
|
States.focus,
|
|
5434
5953
|
States.selected,
|
|
5435
5954
|
States.disabled
|
|
5436
5955
|
];
|
|
5437
|
-
var
|
|
5438
|
-
var
|
|
5956
|
+
var options25 = {};
|
|
5957
|
+
var defaultProps27 = {};
|
|
5439
5958
|
var ListOptionLabel = (props) => {
|
|
5440
5959
|
const {
|
|
5441
5960
|
text,
|
|
@@ -5445,7 +5964,7 @@ var ListOptionLabel = (props) => {
|
|
|
5445
5964
|
disabled,
|
|
5446
5965
|
...other
|
|
5447
5966
|
} = props;
|
|
5448
|
-
return /* @__PURE__ */
|
|
5967
|
+
return /* @__PURE__ */ jsx76(
|
|
5449
5968
|
"div",
|
|
5450
5969
|
{
|
|
5451
5970
|
...other,
|
|
@@ -5462,39 +5981,39 @@ var ListOptionLabel = (props) => {
|
|
|
5462
5981
|
}
|
|
5463
5982
|
);
|
|
5464
5983
|
};
|
|
5465
|
-
ListOptionLabel.states =
|
|
5466
|
-
ListOptionLabel.options =
|
|
5984
|
+
ListOptionLabel.states = states29;
|
|
5985
|
+
ListOptionLabel.options = options25;
|
|
5467
5986
|
ListOptionLabel.className = LIST_OPTIONLABEL_CLASSNAME;
|
|
5468
|
-
ListOptionLabel.defaultProps =
|
|
5987
|
+
ListOptionLabel.defaultProps = defaultProps27;
|
|
5469
5988
|
|
|
5470
5989
|
// src/list/templates/list-normal.tsx
|
|
5471
|
-
import { jsx as
|
|
5990
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
5472
5991
|
|
|
5473
5992
|
// src/list/templates/list-virtualization.tsx
|
|
5474
|
-
import { jsx as
|
|
5993
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
5475
5994
|
|
|
5476
5995
|
// src/list/templates/list-grouping.tsx
|
|
5477
|
-
import { jsx as
|
|
5996
|
+
import { jsx as jsx79, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
5478
5997
|
|
|
5479
5998
|
// src/list/templates/list-virualization-grouping.tsx
|
|
5480
|
-
import { jsx as
|
|
5999
|
+
import { jsx as jsx80, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5481
6000
|
|
|
5482
6001
|
// src/list/templates/list-virtualization-angular.tsx
|
|
5483
|
-
import { jsx as
|
|
6002
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
5484
6003
|
|
|
5485
6004
|
// src/list/templates/list-grouping-angular.tsx
|
|
5486
|
-
import { jsx as
|
|
6005
|
+
import { jsx as jsx82, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5487
6006
|
|
|
5488
6007
|
// src/list/templates/list-virualization-grouping-angular.tsx
|
|
5489
|
-
import { jsx as
|
|
6008
|
+
import { jsx as jsx83, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
5490
6009
|
|
|
5491
6010
|
// src/dropdownlist/templates/dropdownlist-popup.tsx
|
|
5492
|
-
import { jsx as
|
|
6011
|
+
import { jsx as jsx84, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5493
6012
|
|
|
5494
6013
|
// src/searchbox/searchbox.spec.tsx
|
|
5495
|
-
import { jsx as
|
|
6014
|
+
import { jsx as jsx85, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
5496
6015
|
var SEARCHBOX_CLASSNAME = `k-searchbox`;
|
|
5497
|
-
var
|
|
6016
|
+
var states30 = [
|
|
5498
6017
|
States.hover,
|
|
5499
6018
|
States.focus,
|
|
5500
6019
|
States.valid,
|
|
@@ -5503,12 +6022,12 @@ var states22 = [
|
|
|
5503
6022
|
States.disabled,
|
|
5504
6023
|
States.loading
|
|
5505
6024
|
];
|
|
5506
|
-
var
|
|
6025
|
+
var options26 = {
|
|
5507
6026
|
size: [Size.small, Size.medium, Size.large],
|
|
5508
6027
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
5509
6028
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
5510
6029
|
};
|
|
5511
|
-
var
|
|
6030
|
+
var defaultProps28 = {
|
|
5512
6031
|
showIcon: true,
|
|
5513
6032
|
icon: "search",
|
|
5514
6033
|
size: Input.defaultProps.size,
|
|
@@ -5529,11 +6048,11 @@ var Searchbox = (props) => {
|
|
|
5529
6048
|
required,
|
|
5530
6049
|
loading,
|
|
5531
6050
|
disabled,
|
|
5532
|
-
showIcon =
|
|
5533
|
-
icon =
|
|
6051
|
+
showIcon = defaultProps28.showIcon,
|
|
6052
|
+
icon = defaultProps28.icon,
|
|
5534
6053
|
...other
|
|
5535
6054
|
} = props;
|
|
5536
|
-
return /* @__PURE__ */
|
|
6055
|
+
return /* @__PURE__ */ jsxs23(
|
|
5537
6056
|
Input,
|
|
5538
6057
|
{
|
|
5539
6058
|
...other,
|
|
@@ -5549,51 +6068,51 @@ var Searchbox = (props) => {
|
|
|
5549
6068
|
disabled,
|
|
5550
6069
|
className: classNames(props.className, SEARCHBOX_CLASSNAME),
|
|
5551
6070
|
children: [
|
|
5552
|
-
showIcon && /* @__PURE__ */
|
|
5553
|
-
/* @__PURE__ */
|
|
5554
|
-
/* @__PURE__ */
|
|
5555
|
-
/* @__PURE__ */
|
|
5556
|
-
/* @__PURE__ */
|
|
6071
|
+
showIcon && /* @__PURE__ */ jsx85(Icon, { className: "k-input-icon", icon }),
|
|
6072
|
+
/* @__PURE__ */ jsx85(InputInnerInput, { placeholder, value }),
|
|
6073
|
+
/* @__PURE__ */ jsx85(InputLoadingIcon, { ...props }),
|
|
6074
|
+
/* @__PURE__ */ jsx85(InputValidationIcon, { ...props }),
|
|
6075
|
+
/* @__PURE__ */ jsx85(InputClearValue, { ...props })
|
|
5557
6076
|
]
|
|
5558
6077
|
}
|
|
5559
6078
|
);
|
|
5560
6079
|
};
|
|
5561
|
-
Searchbox.states =
|
|
5562
|
-
Searchbox.options =
|
|
6080
|
+
Searchbox.states = states30;
|
|
6081
|
+
Searchbox.options = options26;
|
|
5563
6082
|
Searchbox.className = SEARCHBOX_CLASSNAME;
|
|
5564
|
-
Searchbox.defaultProps =
|
|
6083
|
+
Searchbox.defaultProps = defaultProps28;
|
|
5565
6084
|
|
|
5566
6085
|
// src/searchbox/templates/searchbox-normal.tsx
|
|
5567
|
-
import { jsx as
|
|
6086
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
5568
6087
|
|
|
5569
6088
|
// src/dropdownlist/templates/dropdownlist-filtering.tsx
|
|
5570
|
-
import { Fragment as Fragment14, jsx as
|
|
6089
|
+
import { Fragment as Fragment14, jsx as jsx87, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5571
6090
|
|
|
5572
6091
|
// src/dropdownlist/templates/dropdownlist-grouping.tsx
|
|
5573
|
-
import { jsx as
|
|
6092
|
+
import { jsx as jsx88, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5574
6093
|
|
|
5575
6094
|
// src/dropdownlist/templates/dropdownlist-grouping-filtering.tsx
|
|
5576
|
-
import { Fragment as Fragment15, jsx as
|
|
6095
|
+
import { Fragment as Fragment15, jsx as jsx89, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5577
6096
|
|
|
5578
6097
|
// src/spinbutton/spinbutton.spec.tsx
|
|
5579
|
-
import { jsx as
|
|
6098
|
+
import { jsx as jsx90, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5580
6099
|
var SPINBUTTON_CLASSNAME = `k-spin-button`;
|
|
5581
|
-
var
|
|
5582
|
-
var
|
|
6100
|
+
var states31 = [];
|
|
6101
|
+
var options27 = {
|
|
5583
6102
|
size: [Size.small, Size.medium, Size.large],
|
|
5584
6103
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
|
|
5585
6104
|
};
|
|
5586
|
-
var
|
|
6105
|
+
var defaultProps29 = {
|
|
5587
6106
|
size: Size.medium,
|
|
5588
6107
|
fillMode: FillMode.solid
|
|
5589
6108
|
};
|
|
5590
6109
|
var SpinButton = (props) => {
|
|
5591
6110
|
const {
|
|
5592
|
-
size =
|
|
5593
|
-
fillMode =
|
|
6111
|
+
size = defaultProps29.size,
|
|
6112
|
+
fillMode = defaultProps29.fillMode,
|
|
5594
6113
|
...other
|
|
5595
6114
|
} = props;
|
|
5596
|
-
return /* @__PURE__ */
|
|
6115
|
+
return /* @__PURE__ */ jsxs27(
|
|
5597
6116
|
"span",
|
|
5598
6117
|
{
|
|
5599
6118
|
...other,
|
|
@@ -5602,7 +6121,7 @@ var SpinButton = (props) => {
|
|
|
5602
6121
|
props.className
|
|
5603
6122
|
),
|
|
5604
6123
|
children: [
|
|
5605
|
-
/* @__PURE__ */
|
|
6124
|
+
/* @__PURE__ */ jsx90(
|
|
5606
6125
|
Button,
|
|
5607
6126
|
{
|
|
5608
6127
|
className: "k-spinner-increase",
|
|
@@ -5612,7 +6131,7 @@ var SpinButton = (props) => {
|
|
|
5612
6131
|
fillMode
|
|
5613
6132
|
}
|
|
5614
6133
|
),
|
|
5615
|
-
/* @__PURE__ */
|
|
6134
|
+
/* @__PURE__ */ jsx90(
|
|
5616
6135
|
Button,
|
|
5617
6136
|
{
|
|
5618
6137
|
className: "k-spinner-decrease",
|
|
@@ -5626,15 +6145,15 @@ var SpinButton = (props) => {
|
|
|
5626
6145
|
}
|
|
5627
6146
|
);
|
|
5628
6147
|
};
|
|
5629
|
-
SpinButton.states =
|
|
5630
|
-
SpinButton.options =
|
|
6148
|
+
SpinButton.states = states31;
|
|
6149
|
+
SpinButton.options = options27;
|
|
5631
6150
|
SpinButton.className = SPINBUTTON_CLASSNAME;
|
|
5632
|
-
SpinButton.defaultProps =
|
|
6151
|
+
SpinButton.defaultProps = defaultProps29;
|
|
5633
6152
|
|
|
5634
6153
|
// src/numerictextbox/numerictextbox.spec.tsx
|
|
5635
|
-
import { Fragment as Fragment16, jsx as
|
|
6154
|
+
import { Fragment as Fragment16, jsx as jsx91, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5636
6155
|
var NUMERICTEXTBOX_CLASSNAME = `k-numerictextbox`;
|
|
5637
|
-
var
|
|
6156
|
+
var states32 = [
|
|
5638
6157
|
States.hover,
|
|
5639
6158
|
States.focus,
|
|
5640
6159
|
States.valid,
|
|
@@ -5644,12 +6163,12 @@ var states24 = [
|
|
|
5644
6163
|
States.disabled,
|
|
5645
6164
|
States.readonly
|
|
5646
6165
|
];
|
|
5647
|
-
var
|
|
6166
|
+
var options28 = {
|
|
5648
6167
|
size: [Size.small, Size.medium, Size.large],
|
|
5649
6168
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
5650
6169
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
5651
6170
|
};
|
|
5652
|
-
var
|
|
6171
|
+
var defaultProps30 = {
|
|
5653
6172
|
showSpinButton: true,
|
|
5654
6173
|
showClearButton: true,
|
|
5655
6174
|
size: Input.defaultProps.size,
|
|
@@ -5673,11 +6192,11 @@ var NumericTextbox = (props) => {
|
|
|
5673
6192
|
loading,
|
|
5674
6193
|
disabled,
|
|
5675
6194
|
readonly,
|
|
5676
|
-
showClearButton =
|
|
5677
|
-
showSpinButton =
|
|
6195
|
+
showClearButton = defaultProps30.showClearButton,
|
|
6196
|
+
showSpinButton = defaultProps30.showSpinButton,
|
|
5678
6197
|
...other
|
|
5679
6198
|
} = props;
|
|
5680
|
-
return /* @__PURE__ */
|
|
6199
|
+
return /* @__PURE__ */ jsxs28(
|
|
5681
6200
|
Input,
|
|
5682
6201
|
{
|
|
5683
6202
|
...other,
|
|
@@ -5694,12 +6213,12 @@ var NumericTextbox = (props) => {
|
|
|
5694
6213
|
readonly,
|
|
5695
6214
|
className: classNames(props.className, NUMERICTEXTBOX_CLASSNAME),
|
|
5696
6215
|
children: [
|
|
5697
|
-
prefix && /* @__PURE__ */
|
|
5698
|
-
/* @__PURE__ */
|
|
5699
|
-
/* @__PURE__ */
|
|
6216
|
+
prefix && /* @__PURE__ */ jsxs28(Fragment16, { children: [
|
|
6217
|
+
/* @__PURE__ */ jsx91(InputPrefix, { children: prefix }),
|
|
6218
|
+
/* @__PURE__ */ jsx91(InputSeparator, {})
|
|
5700
6219
|
] }),
|
|
5701
|
-
/* @__PURE__ */
|
|
5702
|
-
/* @__PURE__ */
|
|
6220
|
+
/* @__PURE__ */ jsx91(InputInnerInput, { placeholder, value }),
|
|
6221
|
+
/* @__PURE__ */ jsx91(
|
|
5703
6222
|
InputValidationIcon,
|
|
5704
6223
|
{
|
|
5705
6224
|
valid,
|
|
@@ -5708,14 +6227,14 @@ var NumericTextbox = (props) => {
|
|
|
5708
6227
|
disabled
|
|
5709
6228
|
}
|
|
5710
6229
|
),
|
|
5711
|
-
/* @__PURE__ */
|
|
6230
|
+
/* @__PURE__ */ jsx91(
|
|
5712
6231
|
InputLoadingIcon,
|
|
5713
6232
|
{
|
|
5714
6233
|
loading,
|
|
5715
6234
|
disabled
|
|
5716
6235
|
}
|
|
5717
6236
|
),
|
|
5718
|
-
showClearButton && /* @__PURE__ */
|
|
6237
|
+
showClearButton && /* @__PURE__ */ jsx91(
|
|
5719
6238
|
InputClearValue,
|
|
5720
6239
|
{
|
|
5721
6240
|
loading,
|
|
@@ -5724,11 +6243,11 @@ var NumericTextbox = (props) => {
|
|
|
5724
6243
|
value
|
|
5725
6244
|
}
|
|
5726
6245
|
),
|
|
5727
|
-
suffix && /* @__PURE__ */
|
|
5728
|
-
/* @__PURE__ */
|
|
5729
|
-
/* @__PURE__ */
|
|
6246
|
+
suffix && /* @__PURE__ */ jsxs28(Fragment16, { children: [
|
|
6247
|
+
/* @__PURE__ */ jsx91(InputSeparator, {}),
|
|
6248
|
+
/* @__PURE__ */ jsx91(InputSuffix, { children: suffix })
|
|
5730
6249
|
] }),
|
|
5731
|
-
showSpinButton && /* @__PURE__ */
|
|
6250
|
+
showSpinButton && /* @__PURE__ */ jsx91(
|
|
5732
6251
|
SpinButton,
|
|
5733
6252
|
{
|
|
5734
6253
|
className: "k-input-spinner",
|
|
@@ -5740,31 +6259,31 @@ var NumericTextbox = (props) => {
|
|
|
5740
6259
|
}
|
|
5741
6260
|
);
|
|
5742
6261
|
};
|
|
5743
|
-
NumericTextbox.states =
|
|
5744
|
-
NumericTextbox.options =
|
|
6262
|
+
NumericTextbox.states = states32;
|
|
6263
|
+
NumericTextbox.options = options28;
|
|
5745
6264
|
NumericTextbox.className = NUMERICTEXTBOX_CLASSNAME;
|
|
5746
|
-
NumericTextbox.defaultProps =
|
|
6265
|
+
NumericTextbox.defaultProps = defaultProps30;
|
|
5747
6266
|
|
|
5748
6267
|
// src/numerictextbox/templates/numerictextbox-normal.tsx
|
|
5749
|
-
import { jsx as
|
|
6268
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
5750
6269
|
|
|
5751
6270
|
// src/numerictextbox/templates/numerictextbox-prefix.tsx
|
|
5752
|
-
import { Fragment as Fragment17, jsx as
|
|
6271
|
+
import { Fragment as Fragment17, jsx as jsx93 } from "react/jsx-runtime";
|
|
5753
6272
|
|
|
5754
6273
|
// src/numerictextbox/templates/numerictextbox-suffix.tsx
|
|
5755
|
-
import { Fragment as Fragment18, jsx as
|
|
6274
|
+
import { Fragment as Fragment18, jsx as jsx94 } from "react/jsx-runtime";
|
|
5756
6275
|
|
|
5757
6276
|
// src/pager/pager.spec.tsx
|
|
5758
|
-
import { jsx as
|
|
6277
|
+
import { jsx as jsx95, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
5759
6278
|
var PAGER_CLASSNAME = `k-pager`;
|
|
5760
|
-
var
|
|
6279
|
+
var states33 = [
|
|
5761
6280
|
States.focus,
|
|
5762
6281
|
States.disabled
|
|
5763
6282
|
];
|
|
5764
|
-
var
|
|
6283
|
+
var options29 = {
|
|
5765
6284
|
size: [Size.small, Size.medium, Size.large]
|
|
5766
6285
|
};
|
|
5767
|
-
var
|
|
6286
|
+
var defaultProps31 = {
|
|
5768
6287
|
size: Size.medium,
|
|
5769
6288
|
adaptive: false,
|
|
5770
6289
|
itemsPerPage: true,
|
|
@@ -5775,19 +6294,19 @@ var defaultProps25 = {
|
|
|
5775
6294
|
};
|
|
5776
6295
|
var Pager = (props) => {
|
|
5777
6296
|
const {
|
|
5778
|
-
size =
|
|
5779
|
-
adaptive =
|
|
5780
|
-
itemsPerPage =
|
|
5781
|
-
type =
|
|
5782
|
-
pageSizes =
|
|
5783
|
-
refresh =
|
|
5784
|
-
info =
|
|
6297
|
+
size = defaultProps31.size,
|
|
6298
|
+
adaptive = defaultProps31.adaptive,
|
|
6299
|
+
itemsPerPage = defaultProps31.itemsPerPage,
|
|
6300
|
+
type = defaultProps31.type,
|
|
6301
|
+
pageSizes = defaultProps31.pageSizes,
|
|
6302
|
+
refresh = defaultProps31.refresh,
|
|
6303
|
+
info = defaultProps31.info,
|
|
5785
6304
|
focus,
|
|
5786
6305
|
disabled,
|
|
5787
6306
|
dir,
|
|
5788
6307
|
...other
|
|
5789
6308
|
} = props;
|
|
5790
|
-
return /* @__PURE__ */
|
|
6309
|
+
return /* @__PURE__ */ jsxs29(
|
|
5791
6310
|
"div",
|
|
5792
6311
|
{
|
|
5793
6312
|
dir,
|
|
@@ -5804,14 +6323,14 @@ var Pager = (props) => {
|
|
|
5804
6323
|
})
|
|
5805
6324
|
),
|
|
5806
6325
|
children: [
|
|
5807
|
-
/* @__PURE__ */
|
|
6326
|
+
/* @__PURE__ */ jsxs29(
|
|
5808
6327
|
"div",
|
|
5809
6328
|
{
|
|
5810
6329
|
className: classNames(
|
|
5811
6330
|
"k-pager-numbers-wrap"
|
|
5812
6331
|
),
|
|
5813
6332
|
children: [
|
|
5814
|
-
/* @__PURE__ */
|
|
6333
|
+
/* @__PURE__ */ jsx95(
|
|
5815
6334
|
Button,
|
|
5816
6335
|
{
|
|
5817
6336
|
className: classNames(
|
|
@@ -5825,7 +6344,7 @@ var Pager = (props) => {
|
|
|
5825
6344
|
icon: dir === "rtl" ? "caret-alt-to-right" : "caret-alt-to-left"
|
|
5826
6345
|
}
|
|
5827
6346
|
),
|
|
5828
|
-
/* @__PURE__ */
|
|
6347
|
+
/* @__PURE__ */ jsx95(
|
|
5829
6348
|
Button,
|
|
5830
6349
|
{
|
|
5831
6350
|
className: classNames(
|
|
@@ -5838,14 +6357,14 @@ var Pager = (props) => {
|
|
|
5838
6357
|
icon: dir === "rtl" ? "caret-alt-right" : "caret-alt-left"
|
|
5839
6358
|
}
|
|
5840
6359
|
),
|
|
5841
|
-
type === "numeric" && !adaptive && /* @__PURE__ */
|
|
6360
|
+
type === "numeric" && !adaptive && /* @__PURE__ */ jsxs29(
|
|
5842
6361
|
"div",
|
|
5843
6362
|
{
|
|
5844
6363
|
className: classNames(
|
|
5845
6364
|
"k-pager-numbers"
|
|
5846
6365
|
),
|
|
5847
6366
|
children: [
|
|
5848
|
-
/* @__PURE__ */
|
|
6367
|
+
/* @__PURE__ */ jsx95(
|
|
5849
6368
|
Button,
|
|
5850
6369
|
{
|
|
5851
6370
|
selected: true,
|
|
@@ -5856,7 +6375,7 @@ var Pager = (props) => {
|
|
|
5856
6375
|
children: "1"
|
|
5857
6376
|
}
|
|
5858
6377
|
),
|
|
5859
|
-
/* @__PURE__ */
|
|
6378
|
+
/* @__PURE__ */ jsx95(
|
|
5860
6379
|
Button,
|
|
5861
6380
|
{
|
|
5862
6381
|
fillMode: "flat",
|
|
@@ -5866,7 +6385,7 @@ var Pager = (props) => {
|
|
|
5866
6385
|
children: "2"
|
|
5867
6386
|
}
|
|
5868
6387
|
),
|
|
5869
|
-
/* @__PURE__ */
|
|
6388
|
+
/* @__PURE__ */ jsx95(
|
|
5870
6389
|
Button,
|
|
5871
6390
|
{
|
|
5872
6391
|
fillMode: "flat",
|
|
@@ -5876,7 +6395,7 @@ var Pager = (props) => {
|
|
|
5876
6395
|
children: "3"
|
|
5877
6396
|
}
|
|
5878
6397
|
),
|
|
5879
|
-
/* @__PURE__ */
|
|
6398
|
+
/* @__PURE__ */ jsx95(
|
|
5880
6399
|
Button,
|
|
5881
6400
|
{
|
|
5882
6401
|
fillMode: "flat",
|
|
@@ -5886,7 +6405,7 @@ var Pager = (props) => {
|
|
|
5886
6405
|
children: "4"
|
|
5887
6406
|
}
|
|
5888
6407
|
),
|
|
5889
|
-
/* @__PURE__ */
|
|
6408
|
+
/* @__PURE__ */ jsx95(
|
|
5890
6409
|
Button,
|
|
5891
6410
|
{
|
|
5892
6411
|
fillMode: "flat",
|
|
@@ -5896,7 +6415,7 @@ var Pager = (props) => {
|
|
|
5896
6415
|
children: "5"
|
|
5897
6416
|
}
|
|
5898
6417
|
),
|
|
5899
|
-
/* @__PURE__ */
|
|
6418
|
+
/* @__PURE__ */ jsx95(
|
|
5900
6419
|
Button,
|
|
5901
6420
|
{
|
|
5902
6421
|
fillMode: "flat",
|
|
@@ -5909,7 +6428,7 @@ var Pager = (props) => {
|
|
|
5909
6428
|
]
|
|
5910
6429
|
}
|
|
5911
6430
|
),
|
|
5912
|
-
type === "numeric" && /* @__PURE__ */
|
|
6431
|
+
type === "numeric" && /* @__PURE__ */ jsx95(
|
|
5913
6432
|
"select",
|
|
5914
6433
|
{
|
|
5915
6434
|
className: classNames(
|
|
@@ -5925,23 +6444,23 @@ var Pager = (props) => {
|
|
|
5925
6444
|
["k-hidden"]: !adaptive
|
|
5926
6445
|
}
|
|
5927
6446
|
),
|
|
5928
|
-
children: /* @__PURE__ */
|
|
6447
|
+
children: /* @__PURE__ */ jsx95("option", { children: "99" })
|
|
5929
6448
|
}
|
|
5930
6449
|
),
|
|
5931
|
-
type === "input" && /* @__PURE__ */
|
|
6450
|
+
type === "input" && /* @__PURE__ */ jsxs29(
|
|
5932
6451
|
"span",
|
|
5933
6452
|
{
|
|
5934
6453
|
className: classNames(
|
|
5935
6454
|
"k-pager-input"
|
|
5936
6455
|
),
|
|
5937
6456
|
children: [
|
|
5938
|
-
!adaptive && /* @__PURE__ */
|
|
5939
|
-
/* @__PURE__ */
|
|
5940
|
-
!adaptive && /* @__PURE__ */
|
|
6457
|
+
!adaptive && /* @__PURE__ */ jsx95("span", { children: "Page" }),
|
|
6458
|
+
/* @__PURE__ */ jsx95(NumericTextbox, { value: "999", size, showSpinButton: false, showClearButton: false }),
|
|
6459
|
+
!adaptive && /* @__PURE__ */ jsx95("span", { children: "of 8" })
|
|
5941
6460
|
]
|
|
5942
6461
|
}
|
|
5943
6462
|
),
|
|
5944
|
-
/* @__PURE__ */
|
|
6463
|
+
/* @__PURE__ */ jsx95(
|
|
5945
6464
|
Button,
|
|
5946
6465
|
{
|
|
5947
6466
|
className: classNames(
|
|
@@ -5953,7 +6472,7 @@ var Pager = (props) => {
|
|
|
5953
6472
|
icon: dir === "rtl" ? "caret-alt-left" : "caret-alt-right"
|
|
5954
6473
|
}
|
|
5955
6474
|
),
|
|
5956
|
-
/* @__PURE__ */
|
|
6475
|
+
/* @__PURE__ */ jsx95(
|
|
5957
6476
|
Button,
|
|
5958
6477
|
{
|
|
5959
6478
|
className: classNames(
|
|
@@ -5969,19 +6488,19 @@ var Pager = (props) => {
|
|
|
5969
6488
|
]
|
|
5970
6489
|
}
|
|
5971
6490
|
),
|
|
5972
|
-
pageSizes && /* @__PURE__ */
|
|
6491
|
+
pageSizes && /* @__PURE__ */ jsxs29(
|
|
5973
6492
|
"span",
|
|
5974
6493
|
{
|
|
5975
6494
|
className: classNames(
|
|
5976
6495
|
"k-pager-sizes"
|
|
5977
6496
|
),
|
|
5978
6497
|
children: [
|
|
5979
|
-
/* @__PURE__ */
|
|
5980
|
-
itemsPerPage && /* @__PURE__ */
|
|
6498
|
+
/* @__PURE__ */ jsx95(DropdownList, { value: "99", size }),
|
|
6499
|
+
itemsPerPage && /* @__PURE__ */ jsx95("span", { children: "items per page" })
|
|
5981
6500
|
]
|
|
5982
6501
|
}
|
|
5983
6502
|
),
|
|
5984
|
-
refresh && /* @__PURE__ */
|
|
6503
|
+
refresh && /* @__PURE__ */ jsx95(
|
|
5985
6504
|
Button,
|
|
5986
6505
|
{
|
|
5987
6506
|
className: classNames(
|
|
@@ -5993,7 +6512,7 @@ var Pager = (props) => {
|
|
|
5993
6512
|
icon: "arrow-rotate-cw"
|
|
5994
6513
|
}
|
|
5995
6514
|
),
|
|
5996
|
-
info && /* @__PURE__ */
|
|
6515
|
+
info && /* @__PURE__ */ jsx95(
|
|
5997
6516
|
"span",
|
|
5998
6517
|
{
|
|
5999
6518
|
className: classNames(
|
|
@@ -6006,199 +6525,2256 @@ var Pager = (props) => {
|
|
|
6006
6525
|
}
|
|
6007
6526
|
);
|
|
6008
6527
|
};
|
|
6009
|
-
Pager.states =
|
|
6010
|
-
Pager.options =
|
|
6528
|
+
Pager.states = states33;
|
|
6529
|
+
Pager.options = options29;
|
|
6011
6530
|
Pager.className = PAGER_CLASSNAME;
|
|
6012
|
-
Pager.defaultProps =
|
|
6531
|
+
Pager.defaultProps = defaultProps31;
|
|
6013
6532
|
|
|
6014
6533
|
// src/pager/templates/pager-normal.tsx
|
|
6015
|
-
import { jsx as
|
|
6534
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
6016
6535
|
|
|
6017
6536
|
// src/pager/templates/pager-input.tsx
|
|
6018
|
-
import { jsx as
|
|
6537
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
6019
6538
|
|
|
6020
6539
|
// src/pager/templates/pager-adaptive.tsx
|
|
6021
|
-
import { jsx as
|
|
6540
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
6022
6541
|
|
|
6023
6542
|
// src/pager/templates/pager-adaptive-input.tsx
|
|
6024
|
-
import { jsx as
|
|
6543
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
6025
6544
|
|
|
6026
|
-
// src/
|
|
6027
|
-
import { jsx as
|
|
6028
|
-
var
|
|
6029
|
-
var
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6545
|
+
// src/grid/grid-pager.spec.tsx
|
|
6546
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
6547
|
+
var className22 = `k-grid-pager`;
|
|
6548
|
+
var GridPager = (props) => /* @__PURE__ */ jsx100(
|
|
6549
|
+
Pager,
|
|
6550
|
+
{
|
|
6551
|
+
...props,
|
|
6552
|
+
className: classNames(
|
|
6553
|
+
props.className,
|
|
6554
|
+
className22
|
|
6555
|
+
),
|
|
6556
|
+
children: props.children
|
|
6557
|
+
}
|
|
6558
|
+
);
|
|
6559
|
+
|
|
6560
|
+
// src/button-group/button-group.spec.tsx
|
|
6561
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
6562
|
+
var BUTTONGROUP_CLASSNAME = `k-button-group`;
|
|
6563
|
+
var states34 = [
|
|
6564
|
+
States.disabled
|
|
6565
|
+
];
|
|
6566
|
+
var options30 = {
|
|
6567
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
|
|
6034
6568
|
};
|
|
6035
|
-
var
|
|
6569
|
+
var defaultProps32 = {
|
|
6570
|
+
fillMode: FillMode.solid
|
|
6571
|
+
};
|
|
6572
|
+
var ButtonGroup = (props) => {
|
|
6036
6573
|
const {
|
|
6037
|
-
|
|
6038
|
-
|
|
6574
|
+
fillMode = defaultProps32.fillMode,
|
|
6575
|
+
disabled,
|
|
6576
|
+
stretched,
|
|
6039
6577
|
...other
|
|
6040
6578
|
} = props;
|
|
6041
|
-
return /* @__PURE__ */
|
|
6042
|
-
"
|
|
6579
|
+
return /* @__PURE__ */ jsx101(
|
|
6580
|
+
"div",
|
|
6043
6581
|
{
|
|
6044
6582
|
...other,
|
|
6045
6583
|
className: classNames(
|
|
6046
6584
|
props.className,
|
|
6047
|
-
|
|
6585
|
+
BUTTONGROUP_CLASSNAME,
|
|
6586
|
+
optionClassNames(BUTTONGROUP_CLASSNAME, {
|
|
6587
|
+
fillMode
|
|
6588
|
+
}),
|
|
6589
|
+
stateClassNames(BUTTONGROUP_CLASSNAME, {
|
|
6590
|
+
disabled
|
|
6591
|
+
}),
|
|
6048
6592
|
{
|
|
6049
|
-
[
|
|
6050
|
-
[`k-skeleton-${animation}`]: animation
|
|
6593
|
+
[`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
|
|
6051
6594
|
}
|
|
6052
6595
|
),
|
|
6053
|
-
|
|
6596
|
+
children: props.children
|
|
6054
6597
|
}
|
|
6055
6598
|
);
|
|
6056
6599
|
};
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6600
|
+
ButtonGroup.states = states34;
|
|
6601
|
+
ButtonGroup.options = options30;
|
|
6602
|
+
ButtonGroup.className = BUTTONGROUP_CLASSNAME;
|
|
6603
|
+
ButtonGroup.defaultProps = defaultProps32;
|
|
6061
6604
|
|
|
6062
|
-
// src/
|
|
6063
|
-
import { jsx as
|
|
6064
|
-
var SkeletonNormal = (props) => /* @__PURE__ */ jsx64(Skeleton, { ...props });
|
|
6605
|
+
// src/button-group/templates/icon-button-group.tsx
|
|
6606
|
+
import { jsx as jsx102, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6065
6607
|
|
|
6066
|
-
// src/
|
|
6067
|
-
import { jsx as
|
|
6608
|
+
// src/button-group/templates/icon-text-button-group.tsx
|
|
6609
|
+
import { jsx as jsx103, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6068
6610
|
|
|
6069
|
-
// src/
|
|
6070
|
-
import { jsx as
|
|
6611
|
+
// src/button-group/templates/text-button-group.tsx
|
|
6612
|
+
import { jsx as jsx104, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6071
6613
|
|
|
6072
|
-
// src/
|
|
6073
|
-
import {
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6614
|
+
// src/button-group/templates/mixed-button-group.tsx
|
|
6615
|
+
import { jsx as jsx105, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6616
|
+
|
|
6617
|
+
// src/color-preview/color-preview.tsx
|
|
6618
|
+
import { jsx as jsx106, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6619
|
+
var COLORPREVIEW_CLASSNAME = `k-color-preview`;
|
|
6620
|
+
var states35 = [];
|
|
6621
|
+
var options31 = {};
|
|
6622
|
+
var ColorPreview = (props) => {
|
|
6623
|
+
const {
|
|
6624
|
+
color,
|
|
6625
|
+
iconName,
|
|
6626
|
+
...other
|
|
6627
|
+
} = props;
|
|
6628
|
+
return /* @__PURE__ */ jsxs34(
|
|
6629
|
+
"span",
|
|
6630
|
+
{
|
|
6631
|
+
...other,
|
|
6632
|
+
className: classNames(
|
|
6633
|
+
props.className,
|
|
6634
|
+
COLORPREVIEW_CLASSNAME,
|
|
6635
|
+
{
|
|
6636
|
+
"k-icon-color-preview": iconName,
|
|
6637
|
+
"k-no-color": !color
|
|
6638
|
+
}
|
|
6639
|
+
),
|
|
6640
|
+
children: [
|
|
6641
|
+
iconName && /* @__PURE__ */ jsx106(Icon, { icon: iconName, className: "k-color-preview-icon" }),
|
|
6642
|
+
/* @__PURE__ */ jsx106(
|
|
6643
|
+
"span",
|
|
6644
|
+
{
|
|
6645
|
+
className: "k-color-preview-mask",
|
|
6646
|
+
style: { backgroundColor: color }
|
|
6647
|
+
}
|
|
6648
|
+
)
|
|
6649
|
+
]
|
|
6650
|
+
}
|
|
6651
|
+
);
|
|
6652
|
+
};
|
|
6653
|
+
ColorPreview.states = states35;
|
|
6654
|
+
ColorPreview.options = options31;
|
|
6655
|
+
ColorPreview.className = COLORPREVIEW_CLASSNAME;
|
|
6656
|
+
|
|
6657
|
+
// src/colorpicker/colorpicker.spec.tsx
|
|
6658
|
+
import { Fragment as Fragment19, jsx as jsx107, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6659
|
+
var COLORPICKER_CLASSNAME = `k-colorpicker`;
|
|
6660
|
+
var states36 = [
|
|
6661
|
+
States.hover,
|
|
6662
|
+
States.focus,
|
|
6663
|
+
States.valid,
|
|
6664
|
+
States.invalid,
|
|
6665
|
+
States.required,
|
|
6666
|
+
States.disabled
|
|
6667
|
+
];
|
|
6668
|
+
var options32 = {
|
|
6669
|
+
size: [Size.small, Size.medium, Size.large],
|
|
6670
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
6671
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
6672
|
+
};
|
|
6673
|
+
var defaultProps33 = {
|
|
6674
|
+
arrowIconName: "caret-alt-down",
|
|
6675
|
+
size: Picker.defaultProps.size,
|
|
6676
|
+
rounded: Picker.defaultProps.rounded,
|
|
6677
|
+
fillMode: Picker.defaultProps.fillMode
|
|
6678
|
+
};
|
|
6679
|
+
var ColorPicker = (props) => {
|
|
6680
|
+
const {
|
|
6681
|
+
prefix,
|
|
6682
|
+
suffix,
|
|
6683
|
+
value,
|
|
6684
|
+
placeholder,
|
|
6685
|
+
size,
|
|
6686
|
+
rounded,
|
|
6687
|
+
fillMode,
|
|
6688
|
+
hover,
|
|
6689
|
+
focus,
|
|
6690
|
+
valid,
|
|
6691
|
+
invalid,
|
|
6692
|
+
required,
|
|
6693
|
+
disabled,
|
|
6694
|
+
valueIconName,
|
|
6695
|
+
arrowIconName = defaultProps33.arrowIconName,
|
|
6696
|
+
popup,
|
|
6697
|
+
opened,
|
|
6698
|
+
...other
|
|
6699
|
+
} = props;
|
|
6700
|
+
return /* @__PURE__ */ jsxs35(Fragment19, { children: [
|
|
6701
|
+
/* @__PURE__ */ jsxs35(
|
|
6702
|
+
Picker,
|
|
6703
|
+
{
|
|
6704
|
+
...other,
|
|
6705
|
+
size,
|
|
6706
|
+
rounded,
|
|
6707
|
+
fillMode,
|
|
6708
|
+
hover,
|
|
6709
|
+
focus,
|
|
6710
|
+
valid,
|
|
6711
|
+
invalid,
|
|
6712
|
+
required,
|
|
6713
|
+
disabled,
|
|
6714
|
+
className: classNames(
|
|
6715
|
+
props.className,
|
|
6716
|
+
COLORPICKER_CLASSNAME,
|
|
6717
|
+
"k-icon-picker"
|
|
6718
|
+
),
|
|
6719
|
+
children: [
|
|
6720
|
+
/* @__PURE__ */ jsx107(InputPrefix, { children: prefix }),
|
|
6721
|
+
/* @__PURE__ */ jsx107(
|
|
6722
|
+
InputInnerSpan,
|
|
6723
|
+
{
|
|
6724
|
+
placeholder,
|
|
6725
|
+
value,
|
|
6726
|
+
showValue: false,
|
|
6727
|
+
valueIcon: /* @__PURE__ */ jsx107(
|
|
6728
|
+
ColorPreview,
|
|
6729
|
+
{
|
|
6730
|
+
className: "k-value-icon",
|
|
6731
|
+
color: value,
|
|
6732
|
+
iconName: valueIconName
|
|
6733
|
+
}
|
|
6734
|
+
),
|
|
6735
|
+
valueIconName
|
|
6736
|
+
}
|
|
6737
|
+
),
|
|
6738
|
+
/* @__PURE__ */ jsx107(InputSuffix, { children: suffix }),
|
|
6739
|
+
/* @__PURE__ */ jsx107(
|
|
6740
|
+
Button,
|
|
6741
|
+
{
|
|
6742
|
+
className: "k-input-button",
|
|
6743
|
+
icon: arrowIconName,
|
|
6744
|
+
rounded: null,
|
|
6745
|
+
size,
|
|
6746
|
+
fillMode
|
|
6747
|
+
}
|
|
6748
|
+
)
|
|
6749
|
+
]
|
|
6750
|
+
}
|
|
6751
|
+
),
|
|
6752
|
+
opened && popup && /* @__PURE__ */ jsx107(Popup, { className: "k-color-picker-popup", children: popup })
|
|
6753
|
+
] });
|
|
6754
|
+
};
|
|
6755
|
+
ColorPicker.states = states36;
|
|
6756
|
+
ColorPicker.options = options32;
|
|
6757
|
+
ColorPicker.className = COLORPICKER_CLASSNAME;
|
|
6758
|
+
ColorPicker.defaultProps = defaultProps33;
|
|
6759
|
+
|
|
6760
|
+
// src/colorpicker/templates/colorpicker-normal.tsx
|
|
6761
|
+
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
6762
|
+
|
|
6763
|
+
// src/action-buttons/action-buttons.spec.tsx
|
|
6764
|
+
import { jsx as jsx109 } from "react/jsx-runtime";
|
|
6765
|
+
var ACTIONBUTTONS_CLASSNAME = `k-actions`;
|
|
6766
|
+
var states37 = [];
|
|
6767
|
+
var options33 = {};
|
|
6768
|
+
var defaultProps34 = {
|
|
6769
|
+
alignment: "start",
|
|
6770
|
+
orientation: "horizontal"
|
|
6771
|
+
};
|
|
6772
|
+
var ActionButtons = (props) => {
|
|
6773
|
+
const {
|
|
6774
|
+
alignment = defaultProps34.alignment,
|
|
6775
|
+
orientation = defaultProps34.orientation,
|
|
6776
|
+
...other
|
|
6777
|
+
} = props;
|
|
6778
|
+
return /* @__PURE__ */ jsx109(
|
|
6779
|
+
"div",
|
|
6780
|
+
{
|
|
6781
|
+
...other,
|
|
6782
|
+
className: classNames(
|
|
6783
|
+
ACTIONBUTTONS_CLASSNAME,
|
|
6784
|
+
{
|
|
6785
|
+
[`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
|
|
6786
|
+
[`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
|
|
6787
|
+
},
|
|
6788
|
+
props.className
|
|
6789
|
+
),
|
|
6790
|
+
children: props.children
|
|
6791
|
+
}
|
|
6792
|
+
);
|
|
6793
|
+
};
|
|
6794
|
+
ActionButtons.states = states37;
|
|
6795
|
+
ActionButtons.options = options33;
|
|
6796
|
+
ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
|
|
6797
|
+
ActionButtons.defaultProps = defaultProps34;
|
|
6798
|
+
var action_buttons_spec_default = ActionButtons;
|
|
6799
|
+
|
|
6800
|
+
// src/slider/slider.spec.tsx
|
|
6801
|
+
import { jsx as jsx110, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6802
|
+
var SLIDER_CLASSNAME = "k-slider";
|
|
6803
|
+
var states38 = [
|
|
6804
|
+
States.hover,
|
|
6805
|
+
States.focus,
|
|
6806
|
+
States.active,
|
|
6807
|
+
States.disabled,
|
|
6808
|
+
States.readonly
|
|
6809
|
+
];
|
|
6810
|
+
var options34 = {};
|
|
6811
|
+
var defaultProps35 = {
|
|
6812
|
+
type: "single",
|
|
6813
|
+
orientation: "horizontal",
|
|
6814
|
+
readonly: false,
|
|
6815
|
+
disabled: false,
|
|
6816
|
+
handlePosition: "end",
|
|
6817
|
+
showButtons: true,
|
|
6818
|
+
showTicks: true
|
|
6819
|
+
};
|
|
6820
|
+
var Slider = (props) => {
|
|
6821
|
+
const {
|
|
6822
|
+
type = defaultProps35.type,
|
|
6823
|
+
orientation = defaultProps35.orientation,
|
|
6824
|
+
readonly = defaultProps35.readonly,
|
|
6825
|
+
disabled = defaultProps35.disabled,
|
|
6826
|
+
handlePosition = defaultProps35.handlePosition,
|
|
6827
|
+
showButtons = defaultProps35.showButtons,
|
|
6828
|
+
showTicks = defaultProps35.showTicks,
|
|
6829
|
+
hover,
|
|
6830
|
+
focus,
|
|
6831
|
+
active,
|
|
6832
|
+
trackStyle,
|
|
6833
|
+
dir
|
|
6834
|
+
} = props;
|
|
6835
|
+
let iconIncrease;
|
|
6836
|
+
let iconDecrease;
|
|
6837
|
+
if (orientation === "horizontal") {
|
|
6838
|
+
iconIncrease = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
|
|
6839
|
+
iconDecrease = dir === "rtl" ? "caret-alt-right" : "caret-alt-left";
|
|
6840
|
+
} else if (orientation === "vertical") {
|
|
6841
|
+
iconIncrease = "caret-alt-up";
|
|
6842
|
+
iconDecrease = "caret-alt-down";
|
|
6843
|
+
}
|
|
6844
|
+
return /* @__PURE__ */ jsxs36("div", { className: classNames(
|
|
6845
|
+
SLIDER_CLASSNAME,
|
|
6846
|
+
props.className,
|
|
6847
|
+
stateClassNames(SLIDER_CLASSNAME, {
|
|
6848
|
+
readonly,
|
|
6849
|
+
disabled
|
|
6850
|
+
}),
|
|
6851
|
+
{
|
|
6852
|
+
[`k-slider-${orientation}`]: orientation,
|
|
6853
|
+
"k-colorgradient-slider": type === "gradient",
|
|
6854
|
+
"k-range-slider": type === "range"
|
|
6855
|
+
}
|
|
6856
|
+
), dir, children: [
|
|
6857
|
+
showButtons && /* @__PURE__ */ jsx110(Button, { className: "k-button-decrease", rounded: "full", icon: iconDecrease }),
|
|
6858
|
+
/* @__PURE__ */ jsxs36("div", { className: "k-slider-track-wrap", children: [
|
|
6859
|
+
showTicks && /* @__PURE__ */ jsx110("ul", { className: "k-reset k-slider-items", children: props.children }),
|
|
6860
|
+
/* @__PURE__ */ jsxs36("div", { className: "k-slider-track", style: trackStyle, children: [
|
|
6861
|
+
/* @__PURE__ */ jsx110("div", { className: "k-slider-selection" }),
|
|
6862
|
+
type === "range" && /* @__PURE__ */ jsx110("span", { className: classNames(
|
|
6863
|
+
"k-draghandle",
|
|
6864
|
+
"k-draghandle-start",
|
|
6865
|
+
stateClassNames(SLIDER_CLASSNAME, {
|
|
6866
|
+
hover,
|
|
6867
|
+
focus,
|
|
6868
|
+
active
|
|
6869
|
+
})
|
|
6870
|
+
) }),
|
|
6871
|
+
/* @__PURE__ */ jsx110("span", { className: classNames(
|
|
6872
|
+
"k-draghandle",
|
|
6873
|
+
`k-draghandle-${handlePosition}`,
|
|
6874
|
+
stateClassNames(SLIDER_CLASSNAME, {
|
|
6875
|
+
hover,
|
|
6876
|
+
focus,
|
|
6877
|
+
active
|
|
6878
|
+
})
|
|
6879
|
+
) })
|
|
6880
|
+
] })
|
|
6881
|
+
] }),
|
|
6882
|
+
showButtons && /* @__PURE__ */ jsx110(Button, { className: "k-button-increase", rounded: "full", icon: iconIncrease })
|
|
6883
|
+
] });
|
|
6884
|
+
};
|
|
6885
|
+
Slider.states = states38;
|
|
6886
|
+
Slider.options = options34;
|
|
6887
|
+
Slider.className = SLIDER_CLASSNAME;
|
|
6888
|
+
Slider.defaultProps = defaultProps35;
|
|
6889
|
+
|
|
6890
|
+
// src/slider/slider-tick.tsx
|
|
6891
|
+
import { jsx as jsx111 } from "react/jsx-runtime";
|
|
6892
|
+
var SLIDER_TICK_CLASSNAME = "k-tick";
|
|
6893
|
+
var states39 = [];
|
|
6894
|
+
var options35 = {};
|
|
6895
|
+
var defaultProps36 = {
|
|
6896
|
+
label: false
|
|
6897
|
+
};
|
|
6898
|
+
var SliderTick = (props) => {
|
|
6899
|
+
const {
|
|
6900
|
+
style,
|
|
6901
|
+
label = defaultProps36.label,
|
|
6902
|
+
orientation,
|
|
6903
|
+
large,
|
|
6904
|
+
text
|
|
6905
|
+
} = props;
|
|
6906
|
+
return /* @__PURE__ */ jsx111("li", { className: classNames(
|
|
6907
|
+
props.className,
|
|
6908
|
+
SLIDER_TICK_CLASSNAME,
|
|
6909
|
+
{
|
|
6910
|
+
[`k-tick-${orientation}`]: orientation,
|
|
6911
|
+
"k-tick-large": large
|
|
6912
|
+
}
|
|
6913
|
+
), style, children: label && /* @__PURE__ */ jsx111("span", { className: "k-label", children: text }) });
|
|
6914
|
+
};
|
|
6915
|
+
SliderTick.states = states39;
|
|
6916
|
+
SliderTick.options = options35;
|
|
6917
|
+
SliderTick.className = SLIDER_TICK_CLASSNAME;
|
|
6918
|
+
SliderTick.defaultProps = defaultProps36;
|
|
6919
|
+
|
|
6920
|
+
// src/slider/templates/slider-normal.tsx
|
|
6921
|
+
import { Fragment as Fragment20, jsx as jsx112, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6922
|
+
|
|
6923
|
+
// src/slider/templates/slider-vertical.tsx
|
|
6924
|
+
import { Fragment as Fragment21, jsx as jsx113, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
6925
|
+
|
|
6926
|
+
// src/slider/templates/slider-range.tsx
|
|
6927
|
+
import { Fragment as Fragment22, jsx as jsx114, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
6928
|
+
|
|
6929
|
+
// src/slider/templates/slider-range-vertical.tsx
|
|
6930
|
+
import { Fragment as Fragment23, jsx as jsx115, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
6931
|
+
|
|
6932
|
+
// src/slider/templates/slider-gradient.tsx
|
|
6933
|
+
import { Fragment as Fragment24, jsx as jsx116, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
6934
|
+
|
|
6935
|
+
// src/slider/templates/slider-gradient-vertical.tsx
|
|
6936
|
+
import { Fragment as Fragment25, jsx as jsx117, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
6937
|
+
var SliderGradientVertical = (props) => /* @__PURE__ */ jsx117(
|
|
6938
|
+
Slider,
|
|
6939
|
+
{
|
|
6940
|
+
type: "gradient",
|
|
6941
|
+
orientation: "vertical",
|
|
6942
|
+
showButtons: false,
|
|
6943
|
+
showTicks: false,
|
|
6944
|
+
children: /* @__PURE__ */ jsxs42(Fragment25, { children: [
|
|
6945
|
+
/* @__PURE__ */ jsx117(SliderTick, { label: true, large: true, text: "0" }),
|
|
6946
|
+
/* @__PURE__ */ jsx117(SliderTick, {}),
|
|
6947
|
+
/* @__PURE__ */ jsx117(SliderTick, {}),
|
|
6948
|
+
/* @__PURE__ */ jsx117(SliderTick, {}),
|
|
6949
|
+
/* @__PURE__ */ jsx117(SliderTick, {}),
|
|
6950
|
+
/* @__PURE__ */ jsx117(SliderTick, { label: true, large: true, text: "5" }),
|
|
6951
|
+
/* @__PURE__ */ jsx117(SliderTick, {}),
|
|
6952
|
+
/* @__PURE__ */ jsx117(SliderTick, {}),
|
|
6953
|
+
/* @__PURE__ */ jsx117(SliderTick, {}),
|
|
6954
|
+
/* @__PURE__ */ jsx117(SliderTick, {}),
|
|
6955
|
+
/* @__PURE__ */ jsx117(SliderTick, { label: true, large: true, text: "10" })
|
|
6956
|
+
] }),
|
|
6957
|
+
...props
|
|
6958
|
+
}
|
|
6959
|
+
);
|
|
6960
|
+
|
|
6961
|
+
// src/textbox/textbox.spec.tsx
|
|
6962
|
+
import { Fragment as Fragment26, jsx as jsx118, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
6963
|
+
var TEXTBOX_CLASSNAME = `k-textbox`;
|
|
6964
|
+
var states40 = [
|
|
6965
|
+
States.hover,
|
|
6966
|
+
States.focus,
|
|
6967
|
+
States.valid,
|
|
6968
|
+
States.invalid,
|
|
6969
|
+
States.required,
|
|
6970
|
+
States.disabled,
|
|
6971
|
+
States.loading,
|
|
6972
|
+
States.readonly
|
|
6973
|
+
];
|
|
6974
|
+
var options36 = {
|
|
6975
|
+
size: [Size.small, Size.medium, Size.large],
|
|
6976
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
6977
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
6978
|
+
};
|
|
6979
|
+
var defaultProps37 = {
|
|
6980
|
+
showClearButton: true,
|
|
6981
|
+
size: Input.defaultProps.size,
|
|
6982
|
+
rounded: Input.defaultProps.rounded,
|
|
6983
|
+
fillMode: Input.defaultProps.fillMode
|
|
6984
|
+
};
|
|
6985
|
+
var Textbox = (props) => {
|
|
6986
|
+
const {
|
|
6987
|
+
prefix,
|
|
6988
|
+
suffix,
|
|
6989
|
+
value,
|
|
6990
|
+
placeholder,
|
|
6991
|
+
size,
|
|
6992
|
+
rounded,
|
|
6993
|
+
fillMode,
|
|
6994
|
+
hover,
|
|
6995
|
+
focus,
|
|
6996
|
+
valid,
|
|
6997
|
+
invalid,
|
|
6998
|
+
required,
|
|
6999
|
+
loading,
|
|
7000
|
+
disabled,
|
|
7001
|
+
readonly,
|
|
7002
|
+
showClearButton = defaultProps37.showClearButton,
|
|
7003
|
+
...other
|
|
7004
|
+
} = props;
|
|
7005
|
+
return /* @__PURE__ */ jsxs43(
|
|
7006
|
+
Input,
|
|
7007
|
+
{
|
|
7008
|
+
...other,
|
|
7009
|
+
size,
|
|
7010
|
+
rounded,
|
|
7011
|
+
fillMode,
|
|
7012
|
+
hover,
|
|
7013
|
+
focus,
|
|
7014
|
+
valid,
|
|
7015
|
+
invalid,
|
|
7016
|
+
required,
|
|
7017
|
+
loading,
|
|
7018
|
+
disabled,
|
|
7019
|
+
readonly,
|
|
7020
|
+
className: classNames(props.className, TEXTBOX_CLASSNAME),
|
|
7021
|
+
children: [
|
|
7022
|
+
prefix && /* @__PURE__ */ jsxs43(Fragment26, { children: [
|
|
7023
|
+
/* @__PURE__ */ jsx118(InputPrefix, { children: prefix }),
|
|
7024
|
+
/* @__PURE__ */ jsx118(InputSeparator, {})
|
|
7025
|
+
] }),
|
|
7026
|
+
/* @__PURE__ */ jsx118(InputInnerInput, { placeholder, value }),
|
|
7027
|
+
/* @__PURE__ */ jsx118(
|
|
7028
|
+
InputValidationIcon,
|
|
7029
|
+
{
|
|
7030
|
+
valid,
|
|
7031
|
+
invalid,
|
|
7032
|
+
loading,
|
|
7033
|
+
disabled
|
|
7034
|
+
}
|
|
7035
|
+
),
|
|
7036
|
+
/* @__PURE__ */ jsx118(
|
|
7037
|
+
InputLoadingIcon,
|
|
7038
|
+
{
|
|
7039
|
+
loading,
|
|
7040
|
+
disabled
|
|
7041
|
+
}
|
|
7042
|
+
),
|
|
7043
|
+
showClearButton && /* @__PURE__ */ jsx118(
|
|
7044
|
+
InputClearValue,
|
|
7045
|
+
{
|
|
7046
|
+
loading,
|
|
7047
|
+
disabled,
|
|
7048
|
+
readonly,
|
|
7049
|
+
value
|
|
7050
|
+
}
|
|
7051
|
+
),
|
|
7052
|
+
suffix && /* @__PURE__ */ jsxs43(Fragment26, { children: [
|
|
7053
|
+
/* @__PURE__ */ jsx118(InputSeparator, {}),
|
|
7054
|
+
/* @__PURE__ */ jsx118(InputSuffix, { children: suffix })
|
|
7055
|
+
] })
|
|
7056
|
+
]
|
|
7057
|
+
}
|
|
7058
|
+
);
|
|
7059
|
+
};
|
|
7060
|
+
Textbox.states = states40;
|
|
7061
|
+
Textbox.options = options36;
|
|
7062
|
+
Textbox.className = TEXTBOX_CLASSNAME;
|
|
7063
|
+
Textbox.defaultProps = defaultProps37;
|
|
7064
|
+
|
|
7065
|
+
// src/textbox/templates/textbox-normal.tsx
|
|
7066
|
+
import { jsx as jsx119 } from "react/jsx-runtime";
|
|
7067
|
+
|
|
7068
|
+
// src/textbox/templates/textbox-prefix.tsx
|
|
7069
|
+
import { Fragment as Fragment27, jsx as jsx120 } from "react/jsx-runtime";
|
|
7070
|
+
|
|
7071
|
+
// src/textbox/templates/textbox-suffix.tsx
|
|
7072
|
+
import { Fragment as Fragment28, jsx as jsx121 } from "react/jsx-runtime";
|
|
7073
|
+
|
|
7074
|
+
// src/colorgradient/color-input.tsx
|
|
7075
|
+
import { Fragment as Fragment29, jsx as jsx122, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7076
|
+
var COLOR_INPUT_CLASSNAME = "k-colorgradient-inputs";
|
|
7077
|
+
var states41 = [];
|
|
7078
|
+
var options37 = {};
|
|
7079
|
+
var defaultProps38 = {
|
|
7080
|
+
mode: "rgba"
|
|
7081
|
+
};
|
|
7082
|
+
var ColorInput = (props) => {
|
|
7083
|
+
const {
|
|
7084
|
+
mode = defaultProps38.mode
|
|
7085
|
+
} = props;
|
|
7086
|
+
return /* @__PURE__ */ jsxs44("div", { className: classNames(COLOR_INPUT_CLASSNAME, "k-hstack"), children: [
|
|
7087
|
+
/* @__PURE__ */ jsx122("div", { className: "k-vstack", children: /* @__PURE__ */ jsx122(Button, { fillMode: "flat", icon: "caret-alt-expand", className: "k-colorgradient-toggle-mode" }) }),
|
|
7088
|
+
mode === "rgba" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
|
|
7089
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
7090
|
+
/* @__PURE__ */ jsx122(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
7091
|
+
/* @__PURE__ */ jsx122("label", { className: "k-colorgradient-input-label", children: "R" })
|
|
7092
|
+
] }),
|
|
7093
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
7094
|
+
/* @__PURE__ */ jsx122(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
7095
|
+
/* @__PURE__ */ jsx122("label", { className: "k-colorgradient-input-label", children: "G" })
|
|
7096
|
+
] }),
|
|
7097
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
7098
|
+
/* @__PURE__ */ jsx122(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
7099
|
+
/* @__PURE__ */ jsx122("label", { className: "k-colorgradient-input-label", children: "B" })
|
|
7100
|
+
] }),
|
|
7101
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
7102
|
+
/* @__PURE__ */ jsx122(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "1.00" }),
|
|
7103
|
+
/* @__PURE__ */ jsx122("label", { className: "k-colorgradient-input-label", children: "A" })
|
|
7104
|
+
] })
|
|
7105
|
+
] }),
|
|
7106
|
+
mode === "rgb" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
|
|
7107
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
7108
|
+
/* @__PURE__ */ jsx122(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
7109
|
+
/* @__PURE__ */ jsx122("label", { className: "k-colorgradient-input-label", children: "R" })
|
|
7110
|
+
] }),
|
|
7111
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
7112
|
+
/* @__PURE__ */ jsx122(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
7113
|
+
/* @__PURE__ */ jsx122("label", { className: "k-colorgradient-input-label", children: "G" })
|
|
7114
|
+
] }),
|
|
7115
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
7116
|
+
/* @__PURE__ */ jsx122(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
7117
|
+
/* @__PURE__ */ jsx122("label", { className: "k-colorgradient-input-label", children: "B" })
|
|
7118
|
+
] })
|
|
7119
|
+
] }),
|
|
7120
|
+
mode === "hsva" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
|
|
7121
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
7122
|
+
/* @__PURE__ */ jsx122(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
7123
|
+
/* @__PURE__ */ jsx122("label", { className: "k-colorgradient-input-label", children: "H" })
|
|
7124
|
+
] }),
|
|
7125
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
7126
|
+
/* @__PURE__ */ jsx122(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
7127
|
+
/* @__PURE__ */ jsx122("label", { className: "k-colorgradient-input-label", children: "S" })
|
|
7128
|
+
] }),
|
|
7129
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
7130
|
+
/* @__PURE__ */ jsx122(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
7131
|
+
/* @__PURE__ */ jsx122("label", { className: "k-colorgradient-input-label", children: "V" })
|
|
7132
|
+
] }),
|
|
7133
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
7134
|
+
/* @__PURE__ */ jsx122(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "1.00" }),
|
|
7135
|
+
/* @__PURE__ */ jsx122("label", { className: "k-colorgradient-input-label", children: "A" })
|
|
7136
|
+
] })
|
|
7137
|
+
] }),
|
|
7138
|
+
mode === "hsv" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
|
|
7139
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
7140
|
+
/* @__PURE__ */ jsx122(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
7141
|
+
/* @__PURE__ */ jsx122("label", { className: "k-colorgradient-input-label", children: "H" })
|
|
7142
|
+
] }),
|
|
7143
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
7144
|
+
/* @__PURE__ */ jsx122(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
7145
|
+
/* @__PURE__ */ jsx122("label", { className: "k-colorgradient-input-label", children: "S" })
|
|
7146
|
+
] }),
|
|
7147
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
7148
|
+
/* @__PURE__ */ jsx122(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
7149
|
+
/* @__PURE__ */ jsx122("label", { className: "k-colorgradient-input-label", children: "V" })
|
|
7150
|
+
] })
|
|
7151
|
+
] }),
|
|
7152
|
+
mode === "hex" && /* @__PURE__ */ jsx122(Fragment29, { children: /* @__PURE__ */ jsxs44("div", { className: "k-vstack k-flex-1", children: [
|
|
7153
|
+
/* @__PURE__ */ jsx122(Textbox, { showClearButton: false, value: "#b88484AA", className: "k-hex-value" }),
|
|
7154
|
+
/* @__PURE__ */ jsx122("label", { className: "k-colorgradient-input-label", children: "HEX" })
|
|
7155
|
+
] }) })
|
|
7156
|
+
] });
|
|
7157
|
+
};
|
|
7158
|
+
ColorInput.states = states41;
|
|
7159
|
+
ColorInput.options = options37;
|
|
7160
|
+
ColorInput.className = COLOR_INPUT_CLASSNAME;
|
|
7161
|
+
ColorInput.defaultProps = defaultProps38;
|
|
7162
|
+
|
|
7163
|
+
// src/colorgradient/color-contrast.tsx
|
|
7164
|
+
import { jsx as jsx123, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7165
|
+
var COLOR_CONTRAST_CLASSNAME = "k-colorgradient-color-contrast";
|
|
7166
|
+
var states42 = [];
|
|
7167
|
+
var options38 = {};
|
|
7168
|
+
var defaultProps39 = {};
|
|
7169
|
+
var ColorContrast = () => /* @__PURE__ */ jsxs45("div", { className: classNames(COLOR_CONTRAST_CLASSNAME, "k-vbox"), children: [
|
|
7170
|
+
/* @__PURE__ */ jsxs45("div", { className: "k-contrast-ratio", children: [
|
|
7171
|
+
/* @__PURE__ */ jsx123("span", { className: "k-contrast-ratio-text", children: "Contrast ratio: 7.1" }),
|
|
7172
|
+
/* @__PURE__ */ jsxs45("span", { className: "k-contrast-validation !k-text-success", children: [
|
|
7173
|
+
/* @__PURE__ */ jsx123(Icon, { icon: "check" }),
|
|
7174
|
+
/* @__PURE__ */ jsx123(Icon, { icon: "check" })
|
|
7175
|
+
] })
|
|
7176
|
+
] }),
|
|
7177
|
+
/* @__PURE__ */ jsxs45("div", { children: [
|
|
7178
|
+
/* @__PURE__ */ jsx123("span", { children: "AA: 4.5" }),
|
|
7179
|
+
/* @__PURE__ */ jsxs45("span", { className: "k-contrast-validation !k-text-success", children: [
|
|
7180
|
+
"Pass",
|
|
7181
|
+
/* @__PURE__ */ jsx123(Icon, { icon: "check" })
|
|
7182
|
+
] })
|
|
7183
|
+
] }),
|
|
7184
|
+
/* @__PURE__ */ jsxs45("div", { children: [
|
|
7185
|
+
/* @__PURE__ */ jsx123("span", { children: "AAA: 7.0" }),
|
|
7186
|
+
/* @__PURE__ */ jsxs45("span", { className: "k-contrast-validation !k-text-error", children: [
|
|
7187
|
+
"Fail",
|
|
7188
|
+
/* @__PURE__ */ jsx123(Icon, { icon: "x" })
|
|
7189
|
+
] })
|
|
7190
|
+
] })
|
|
7191
|
+
] });
|
|
7192
|
+
ColorContrast.states = states42;
|
|
7193
|
+
ColorContrast.options = options38;
|
|
7194
|
+
ColorContrast.className = COLOR_CONTRAST_CLASSNAME;
|
|
7195
|
+
ColorContrast.defaultProps = defaultProps39;
|
|
7196
|
+
|
|
7197
|
+
// src/colorgradient/color-gradient.spec.tsx
|
|
7198
|
+
import { jsx as jsx124, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
7199
|
+
var COLOR_GRADIENT_CLASSNAME = "k-colorgradient";
|
|
7200
|
+
var states43 = [
|
|
7201
|
+
States.hover,
|
|
7202
|
+
States.focus,
|
|
7203
|
+
States.readonly,
|
|
7204
|
+
States.disabled
|
|
7205
|
+
];
|
|
7206
|
+
var options39 = {};
|
|
7207
|
+
var defaultProps40 = {
|
|
7208
|
+
mode: "rgba",
|
|
7209
|
+
readonly: false,
|
|
7210
|
+
disabled: false,
|
|
7211
|
+
contrast: false,
|
|
7212
|
+
gradientStyle: { background: "rgb(255, 0, 0 )" },
|
|
7213
|
+
dragHandleStyle: { top: "50px", left: "73px" },
|
|
7214
|
+
alphaStyle: { background: "linear-gradient(to top, transparent, rgb(255, 0, 0))" }
|
|
7215
|
+
};
|
|
7216
|
+
var ColorGradient = (props) => {
|
|
7217
|
+
const {
|
|
7218
|
+
mode = defaultProps40.mode,
|
|
7219
|
+
readonly = defaultProps40.readonly,
|
|
7220
|
+
disabled = defaultProps40.disabled,
|
|
7221
|
+
dir,
|
|
7222
|
+
contrast = defaultProps40.contrast,
|
|
7223
|
+
hover,
|
|
7224
|
+
focus,
|
|
7225
|
+
hoverHandle,
|
|
7226
|
+
focusHandle,
|
|
7227
|
+
gradientStyle = defaultProps40.gradientStyle,
|
|
7228
|
+
dragHandleStyle = defaultProps40.dragHandleStyle,
|
|
7229
|
+
alphaStyle = defaultProps40.alphaStyle
|
|
7230
|
+
} = props;
|
|
7231
|
+
return /* @__PURE__ */ jsxs46("div", { className: classNames(
|
|
7232
|
+
props.className,
|
|
7233
|
+
COLOR_GRADIENT_CLASSNAME,
|
|
7234
|
+
stateClassNames(COLOR_GRADIENT_CLASSNAME, {
|
|
7235
|
+
hover,
|
|
7236
|
+
focus,
|
|
7237
|
+
readonly,
|
|
7238
|
+
disabled
|
|
7239
|
+
})
|
|
7240
|
+
), dir, children: [
|
|
7241
|
+
/* @__PURE__ */ jsxs46("div", { className: "k-colorgradient-canvas k-hstack", children: [
|
|
7242
|
+
/* @__PURE__ */ jsx124("div", { className: "k-hsv-rectangle", style: gradientStyle, children: /* @__PURE__ */ jsx124("div", { className: "k-hsv-gradient", children: /* @__PURE__ */ jsx124("div", { className: classNames(
|
|
7243
|
+
"k-hsv-draghandle",
|
|
7244
|
+
"k-draghandle",
|
|
7245
|
+
{
|
|
7246
|
+
"k-hover": hoverHandle,
|
|
7247
|
+
"k-focus": focusHandle
|
|
7248
|
+
}
|
|
7249
|
+
), style: dragHandleStyle }) }) }),
|
|
7250
|
+
/* @__PURE__ */ jsxs46("div", { className: "k-hsv-controls k-hstack", children: [
|
|
7251
|
+
/* @__PURE__ */ jsx124(SliderGradientVertical, { className: "k-hue-slider", hover: hoverHandle, focus: focusHandle }),
|
|
7252
|
+
mode !== "rgb" && mode !== "hsv" && /* @__PURE__ */ jsx124(SliderGradientVertical, { className: "k-alpha-slider", hover: hoverHandle, focus: focusHandle, trackStyle: alphaStyle })
|
|
7253
|
+
] })
|
|
7254
|
+
] }),
|
|
7255
|
+
/* @__PURE__ */ jsx124(ColorInput, { mode: props.mode }),
|
|
7256
|
+
contrast && /* @__PURE__ */ jsx124(ColorContrast, {})
|
|
7257
|
+
] });
|
|
7258
|
+
};
|
|
7259
|
+
ColorGradient.states = states43;
|
|
7260
|
+
ColorGradient.options = options39;
|
|
7261
|
+
ColorGradient.className = COLOR_GRADIENT_CLASSNAME;
|
|
7262
|
+
ColorGradient.defaultProps = defaultProps40;
|
|
7263
|
+
|
|
7264
|
+
// src/colorgradient/templates/colorgradient-normal.tsx
|
|
7265
|
+
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
7266
|
+
|
|
7267
|
+
// src/colorgradient/templates/colorgradient-contrast.tsx
|
|
7268
|
+
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
7269
|
+
|
|
7270
|
+
// src/colorpalette/colorpalette-row.tsx
|
|
7271
|
+
import { jsx as jsx127 } from "react/jsx-runtime";
|
|
7272
|
+
var ColorPaletteRow = (props) => /* @__PURE__ */ jsx127("tr", { children: props.children });
|
|
7273
|
+
|
|
7274
|
+
// src/colorpalette/colorpalette-tile.tsx
|
|
7275
|
+
import { jsx as jsx128 } from "react/jsx-runtime";
|
|
7276
|
+
var COLORPALETTETILE_CLASSNAME = `k-colorpalette-tile`;
|
|
7277
|
+
var states44 = [
|
|
7278
|
+
States.hover,
|
|
7279
|
+
States.focus,
|
|
7280
|
+
States.selected
|
|
7281
|
+
];
|
|
7282
|
+
var options40 = {};
|
|
7283
|
+
var ColorPaletteTile = (props) => {
|
|
7284
|
+
const {
|
|
7285
|
+
color,
|
|
7286
|
+
tileSize,
|
|
7287
|
+
hover,
|
|
7288
|
+
focus,
|
|
7289
|
+
selected,
|
|
7290
|
+
...other
|
|
7291
|
+
} = props;
|
|
7292
|
+
const styles = {
|
|
7293
|
+
"background-color": color,
|
|
7294
|
+
"width": tileSize ? tileSize + "px" : "",
|
|
7295
|
+
"height": tileSize ? tileSize + "px" : ""
|
|
7296
|
+
};
|
|
7297
|
+
return /* @__PURE__ */ jsx128(
|
|
7298
|
+
"td",
|
|
7299
|
+
{
|
|
7300
|
+
...other,
|
|
7301
|
+
className: classNames(
|
|
7302
|
+
props.className,
|
|
7303
|
+
COLORPALETTETILE_CLASSNAME,
|
|
7304
|
+
stateClassNames(COLORPALETTETILE_CLASSNAME, {
|
|
7305
|
+
hover,
|
|
7306
|
+
focus,
|
|
7307
|
+
selected
|
|
7308
|
+
})
|
|
7309
|
+
),
|
|
7310
|
+
style: styles
|
|
7311
|
+
}
|
|
7312
|
+
);
|
|
7313
|
+
};
|
|
7314
|
+
ColorPaletteTile.states = states44;
|
|
7315
|
+
ColorPaletteTile.options = options40;
|
|
7316
|
+
ColorPaletteTile.className = COLORPALETTETILE_CLASSNAME;
|
|
7317
|
+
|
|
7318
|
+
// src/colorpalette/colorpalette.spec.tsx
|
|
7319
|
+
import { jsx as jsx129 } from "react/jsx-runtime";
|
|
7320
|
+
var COLORPALETTE_CLASSNAME = `k-colorpalette`;
|
|
7321
|
+
var states45 = [
|
|
7322
|
+
States.disabled
|
|
7323
|
+
];
|
|
7324
|
+
var options41 = {};
|
|
7325
|
+
var defaultProps41 = {
|
|
7326
|
+
columns: 10
|
|
7327
|
+
};
|
|
7328
|
+
var ColorPalette = (props) => {
|
|
7329
|
+
const {
|
|
7330
|
+
palette,
|
|
7331
|
+
columns = defaultProps41.columns,
|
|
7332
|
+
tileSize,
|
|
7333
|
+
disabled,
|
|
7334
|
+
...other
|
|
7335
|
+
} = props;
|
|
7336
|
+
const newChildren = [];
|
|
7337
|
+
if (palette) {
|
|
7338
|
+
const cols = columns || palette.columns;
|
|
7339
|
+
const colors = palette.colors ? palette.colors : palette;
|
|
7340
|
+
if (Array.isArray(colors)) {
|
|
7341
|
+
Array.from({ length: Math.ceil(colors.length / cols) }, (_, i) => {
|
|
7342
|
+
const items = [];
|
|
7343
|
+
colors.slice(i * cols, (i + 1) * cols).map((color) => {
|
|
7344
|
+
items.push(/* @__PURE__ */ jsx129(ColorPaletteTile, { color, tileSize }));
|
|
7345
|
+
});
|
|
7346
|
+
const row = /* @__PURE__ */ jsx129(ColorPaletteRow, { children: items });
|
|
7347
|
+
newChildren.push(row);
|
|
7348
|
+
});
|
|
7349
|
+
}
|
|
7350
|
+
}
|
|
7351
|
+
return /* @__PURE__ */ jsx129(
|
|
7352
|
+
"div",
|
|
7353
|
+
{
|
|
7354
|
+
...other,
|
|
7355
|
+
className: classNames(
|
|
7356
|
+
props.className,
|
|
7357
|
+
COLORPALETTE_CLASSNAME,
|
|
7358
|
+
stateClassNames(COLORPALETTE_CLASSNAME, {
|
|
7359
|
+
disabled
|
|
7360
|
+
})
|
|
7361
|
+
),
|
|
7362
|
+
children: /* @__PURE__ */ jsx129("table", { className: "k-colorpalette-table", children: newChildren.length > 0 ? newChildren : props.children })
|
|
7363
|
+
}
|
|
7364
|
+
);
|
|
7365
|
+
};
|
|
7366
|
+
ColorPalette.states = states45;
|
|
7367
|
+
ColorPalette.options = options41;
|
|
7368
|
+
ColorPalette.className = COLORPALETTE_CLASSNAME;
|
|
7369
|
+
ColorPalette.defaultProps = defaultProps41;
|
|
7370
|
+
|
|
7371
|
+
// src/colorpalette/templates/colorpalette-normal.tsx
|
|
7372
|
+
import { jsx as jsx130 } from "react/jsx-runtime";
|
|
7373
|
+
|
|
7374
|
+
// src/colorpalette/colorpalette-presets.tsx
|
|
7375
|
+
var PALETTEPRESETS = {
|
|
7376
|
+
basic: {
|
|
7377
|
+
colors: ["#000000", "#7f7f7f", "#880015", "#ed1c24", "#ff7f27", "#fff200", "#22b14c", "#00a2e8", "#3f48cc", "#a349a4", "#ffffff", "#c3c3c3", "#b97a57", "#ffaec9", "#ffc90e", "#efe4b0", "#b5e61d", "#99d9ea", "#7092be", "#c8bfe7"],
|
|
7378
|
+
columns: 10
|
|
7379
|
+
},
|
|
7380
|
+
office: {
|
|
7381
|
+
colors: ["#ffffff", "#000000", "#e6e6e6", "#435569", "#4371c4", "#ed7e32", "#a5a4a5", "#febf04", "#5a9bd5", "#71ae48", "#f2f2f3", "#7f7f7f", "#d1cece", "#d5dde3", "#dae1f4", "#fce5d4", "#deeded", "#fff2cc", "#deeaf6", "#e1efd9", "#d7d8d8", "#585959", "#aeabab", "#adbaca", "#b4c5e7", "#f6caac", "#dbdbdb", "#ffe498", "#bcd6ee", "#c5e0b2", "#bfbfc0", "#3f3f3f", "#767070", "#8595b1", "#8fabdb", "#f5b183", "#c9c8c9", "#fed965", "#9bc4e5", "#a8d08d", "#a5a5a6", "#262625", "#393939", "#334050", "#2e5496", "#c45a11", "#7b7b7a", "#bf9000", "#2f75b5", "#548235", "#7f7f7f", "#0b0c0c", "#161616", "#222a34", "#203764", "#843d0b", "#525252", "#7f6000", "#1d4d79", "#375623"],
|
|
7382
|
+
columns: 10
|
|
7383
|
+
},
|
|
7384
|
+
apex: {
|
|
7385
|
+
colors: ["#ffffff", "#000000", "#c9c2d1", "#69676d", "#ceb966", "#9cb084", "#6bb1c9", "#6585cf", "#7e6bc9", "#a379bb", "#f2f2f2", "#7f7f7f", "#f4f2f5", "#e0e0e2", "#f5f1e0", "#ebefe6", "#e1eff4", "#e0e6f5", "#e5e1f4", "#ece4f1", "#d8d8d8", "#595959", "#e9e6ec", "#c2c1c5", "#ebe3c1", "#d7dfcd", "#c3dfe9", "#c1ceeb", "#cbc3e9", "#dac9e3", "#bfbfbf", "#3f3f3f", "#dedae3", "#a4a3a8", "#e1d5a3", "#c3cfb5", "#a6d0de", "#a2b5e2", "#b1a6de", "#c7aed6", "#a5a5a5", "#262626", "#9688a5", "#4e4d51", "#ae9638", "#758c5a", "#3d8da9", "#365bb0", "#533da9", "#7d4d99", "#7f7f7f", "#0c0c0c", "#635672", "#343336", "#746425", "#4e5d3c", "#295e70", "#243c75", "#372970", "#533366"],
|
|
7386
|
+
columns: 10
|
|
7387
|
+
},
|
|
7388
|
+
austin: {
|
|
7389
|
+
colors: ["#ffffff", "#000000", "#caf278", "#3e3d2d", "#94c600", "#71685a", "#ff6700", "#909465", "#956b43", "#fea022", "#f2f2f2", "#7f7f7f", "#f4fce4", "#dddcd0", "#efffc0", "#e3e1dc", "#ffe0cb", "#e8e9df", "#ece1d6", "#feecd2", "#d8d8d8", "#595959", "#e9f9c9", "#bbb9a1", "#dfff82", "#c8c3ba", "#ffc299", "#d2d4c0", "#dac3ad", "#fed9a6", "#bfbfbf", "#3f3f3f", "#dff7ae", "#ada598", "#cfff43", "#ada598", "#ffa365", "#bcbfa1", "#c8a585", "#fec67a", "#a5a5a5", "#262626", "#a9ea25", "#2e2d21", "#6f9400", "#544e43", "#bf4d00", "#6c6f4b", "#6f5032", "#d77b00", "#7f7f7f", "#0c0c0c", "#74a50f", "#1f1e16", "#4a6300", "#38342d", "#7f3300", "#484a32", "#4a3521", "#8f5200"],
|
|
7390
|
+
columns: 10
|
|
7391
|
+
},
|
|
7392
|
+
clarity: {
|
|
7393
|
+
colors: ["#ffffff", "#292934", "#f3f2dc", "#d2533c", "#93a299", "#ad8f67", "#726056", "#4c5a6a", "#808da0", "#79463d", "#f2f2f2", "#e7e7ec", "#e7e5b9", "#f6dcd8", "#e9ecea", "#eee8e0", "#e4dedb", "#d8dde3", "#e5e8ec", "#e9d6d3", "#d8d8d8", "#c4c4d1", "#d5d185", "#edbab1", "#d3d9d6", "#ded2c2", "#c9beb8", "#b2bcc8", "#ccd1d9", "#d3aea7", "#bfbfbf", "#8a8aa3", "#aca73b", "#e4978a", "#bec7c1", "#cdbba3", "#af9e94", "#8c9bac", "#b2bac6", "#bd857c", "#a5a5a5", "#56566e", "#56531d", "#a43925", "#6b7c72", "#866b48", "#554840", "#39434f", "#5c697b", "#5a342d", "#7f7f7f", "#3b3b4b", "#22210b", "#6d2619", "#47534c", "#594730", "#39302b", "#262d35", "#3d4652", "#3c231e"],
|
|
7394
|
+
columns: 10
|
|
7395
|
+
},
|
|
7396
|
+
slipstream: {
|
|
7397
|
+
colors: ["#ffffff", "#000000", "#b4dcfa", "#212745", "#4e67c8", "#5eccf3", "#a7ea52", "#5dceaf", "#ff8021", "#f14124", "#f2f2f2", "#7f7f7f", "#8bc9f7", "#c7cce4", "#dbe0f4", "#def4fc", "#edfadc", "#def5ef", "#ffe5d2", "#fcd9d3", "#d8d8d8", "#595959", "#4facf3", "#909aca", "#b8c2e9", "#beeafa", "#dbf6b9", "#beebdf", "#ffcca6", "#f9b3a7", "#bfbfbf", "#3f3f3f", "#0d78c9", "#5967af", "#94a3de", "#9ee0f7", "#caf297", "#9de1cf", "#ffb279", "#f68d7b", "#a5a5a5", "#262626", "#063c64", "#181d33", "#31479f", "#11b2eb", "#81d319", "#34ac8b", "#d85c00", "#c3260c", "#7f7f7f", "#0c0c0c", "#021828", "#101322", "#202f6a", "#0b769c", "#568c11", "#22725c", "#903d00", "#821908"],
|
|
7398
|
+
columns: 10
|
|
7399
|
+
},
|
|
7400
|
+
metro: {
|
|
7401
|
+
colors: ["#ffffff", "#000000", "#d6ecff", "#4e5b6f", "#7fd13b", "#ea157a", "#feb80a", "#00addc", "#738ac8", "#1ab39f", "#f2f2f2", "#7f7f7f", "#a7d6ff", "#d9dde4", "#e5f5d7", "#fad0e4", "#fef0cd", "#c5f2ff", "#e2e7f4", "#c9f7f1", "#d8d8d8", "#595959", "#60b5ff", "#b3bcca", "#cbecb0", "#f6a1c9", "#fee29c", "#8be6ff", "#c7d0e9", "#94efe3", "#bfbfbf", "#3f3f3f", "#007dea", "#8d9baf", "#b2e389", "#f272af", "#fed46b", "#51d9ff", "#aab8de", "#5fe7d5", "#a5a5a5", "#262626", "#003e75", "#3a4453", "#5ea226", "#af0f5b", "#c58c00", "#0081a5", "#425ea9", "#138677", "#7f7f7f", "#0c0c0c", "#00192e", "#272d37", "#3f6c19", "#750a3d", "#835d00", "#00566e", "#2c3f71", "#0c594f"],
|
|
7402
|
+
columns: 10
|
|
7403
|
+
},
|
|
7404
|
+
flow: {
|
|
7405
|
+
colors: ["#ffffff", "#000000", "#dbf5f9", "#04617b", "#0f6fc6", "#009dd9", "#0bd0d9", "#10cf9b", "#7cca62", "#a5c249", "#f2f2f2", "#7f7f7f", "#b2e9f2", "#b4ecfc", "#c7e2fa", "#c4eeff", "#c9fafc", "#c9faed", "#e4f4df", "#edf2da", "#d8d8d8", "#595959", "#76d9e8", "#6adafa", "#90c6f6", "#89deff", "#93f5f9", "#94f6db", "#cae9c0", "#dbe6b6", "#bfbfbf", "#3f3f3f", "#21b2c8", "#20c8f7", "#59a9f2", "#4fceff", "#5df0f6", "#5ff2ca", "#b0dfa0", "#c9da91", "#a5a5a5", "#262626", "#105964", "#02485c", "#0b5394", "#0075a2", "#089ca2", "#0b9b74", "#54a838", "#7e9532", "#7f7f7f", "#0c0c0c", "#062328", "#01303d", "#073763", "#004e6c", "#05686c", "#07674d", "#387025", "#546321"],
|
|
7406
|
+
columns: 10
|
|
7407
|
+
},
|
|
7408
|
+
hardcover: {
|
|
7409
|
+
colors: ["#ffffff", "#000000", "#ece9c6", "#895d1d", "#873624", "#d6862d", "#d0be40", "#877f6c", "#972109", "#aeb795", "#f2f2f2", "#7f7f7f", "#e1dca5", "#f2e0c6", "#f0d0c9", "#f6e6d5", "#f5f2d8", "#e7e5e1", "#fbc7bc", "#eef0e9", "#d8d8d8", "#595959", "#d0c974", "#e6c28d", "#e2a293", "#eeceaa", "#ece5b2", "#cfccc3", "#f78f7a", "#dee2d4", "#bfbfbf", "#3f3f3f", "#a29a36", "#daa454", "#d4735e", "#e6b681", "#e2d88c", "#b7b2a5", "#f35838", "#ced3bf", "#a5a5a5", "#262626", "#514d1b", "#664515", "#65281a", "#a2641f", "#a39428", "#655f50", "#711806", "#879464", "#7f7f7f", "#0c0c0c", "#201e0a", "#442e0e", "#431b11", "#6c4315", "#6d621a", "#433f35", "#4b1004", "#5a6243"],
|
|
7410
|
+
columns: 10
|
|
7411
|
+
},
|
|
7412
|
+
trek: {
|
|
7413
|
+
colors: ["#ffffff", "#000000", "#fbeec9", "#4e3b30", "#f0a22e", "#a5644e", "#b58b80", "#c3986d", "#a19574", "#c17529", "#f2f2f2", "#7f7f7f", "#f7e09e", "#e1d6cf", "#fcecd5", "#eddfda", "#f0e7e5", "#f3eae1", "#ece9e3", "#f5e3d1", "#d8d8d8", "#595959", "#f3cc5f", "#c4ad9f", "#f9d9ab", "#dcc0b6", "#e1d0cc", "#e7d5c4", "#d9d4c7", "#ebc7a3", "#bfbfbf", "#3f3f3f", "#d29f0f", "#a78470", "#f6c781", "#cba092", "#d2b9b2", "#dbc1a7", "#c6bfab", "#e1ac76", "#a5a5a5", "#262626", "#694f07", "#3a2c24", "#c87d0e", "#7b4b3a", "#926255", "#a17242", "#7b7153", "#90571e", "#7f7f7f", "#0c0c0c", "#2a1f03", "#271d18", "#855309", "#523226", "#614138", "#6b4c2c", "#524b37", "#603a14"],
|
|
7414
|
+
columns: 10
|
|
7415
|
+
},
|
|
7416
|
+
verve: {
|
|
7417
|
+
colors: ["#ffffff", "#000000", "#d2d2d2", "#666666", "#ff388c", "#e40059", "#9c007f", "#68007f", "#005bd3", "#00349e", "#f2f2f2", "#7f7f7f", "#bdbdbd", "#e0e0e0", "#ffd7e8", "#ffc6dc", "#ffb8f1", "#f1b2ff", "#c3dcff", "#b8cfff", "#d8d8d8", "#595959", "#9d9d9d", "#c1c1c1", "#ffafd1", "#ff8eba", "#ff71e4", "#e365ff", "#87baff", "#72a0ff", "#bfbfbf", "#3f3f3f", "#696969", "#a3a3a3", "#ff87ba", "#ff5597", "#ff2ad7", "#d519ff", "#4b98ff", "#2b71ff", "#a5a5a5", "#262626", "#343434", "#4c4c4c", "#e90062", "#ab0042", "#75005f", "#4e005f", "#00449e", "#002676", "#7f7f7f", "#0c0c0c", "#151515", "#333333", "#9b0041", "#72002c", "#4e003f", "#34003f", "#002d69", "#00194f"],
|
|
7418
|
+
columns: 10
|
|
7419
|
+
},
|
|
7420
|
+
monochrome: {
|
|
7421
|
+
colors: ["#000000", "#1a1a1a", "#333333", "#4d4d4d", "#666666", "#808080", "#999999", "#b3b3b3", "#cccccc", "#e6e6e6", "#f2f2f2", "#ffffff"],
|
|
7422
|
+
columns: 12
|
|
7423
|
+
}
|
|
7424
|
+
};
|
|
7425
|
+
|
|
7426
|
+
// src/coloreditor/color-editor.spec.tsx
|
|
7427
|
+
import { jsx as jsx131, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7428
|
+
var COLOREDITOR_CLASSNAME = "k-coloreditor";
|
|
7429
|
+
var states46 = [
|
|
7430
|
+
States.focus
|
|
7431
|
+
];
|
|
7432
|
+
var options42 = {};
|
|
7433
|
+
var defaultProps42 = {
|
|
7434
|
+
view: "gradient",
|
|
7435
|
+
currentColor: "fuchsia",
|
|
7436
|
+
palette: PALETTEPRESETS.office
|
|
7437
|
+
};
|
|
7438
|
+
var ColorEditor = (props) => {
|
|
7439
|
+
const {
|
|
7440
|
+
view = defaultProps42.view,
|
|
7441
|
+
color,
|
|
7442
|
+
currentColor = defaultProps42.currentColor,
|
|
7443
|
+
focus,
|
|
7444
|
+
focusView,
|
|
7445
|
+
dir,
|
|
7446
|
+
group,
|
|
7447
|
+
palette = defaultProps42.palette
|
|
7448
|
+
} = props;
|
|
7449
|
+
return /* @__PURE__ */ jsxs47("div", { className: classNames(
|
|
7450
|
+
props.className,
|
|
7451
|
+
"k-flatcolorpicker",
|
|
7452
|
+
COLOREDITOR_CLASSNAME,
|
|
7453
|
+
stateClassNames(COLOREDITOR_CLASSNAME, { focus })
|
|
7454
|
+
), dir, children: [
|
|
7455
|
+
/* @__PURE__ */ jsxs47("div", { className: "k-coloreditor-header k-hstack", children: [
|
|
7456
|
+
/* @__PURE__ */ jsx131("div", { className: "k-coloreditor-header-actions k-hstack", children: group && /* @__PURE__ */ jsxs47(ButtonGroup, { children: [
|
|
7457
|
+
/* @__PURE__ */ jsx131(Button, { fillMode: "flat", icon: "droplet-slider", selected: view === "gradient" }),
|
|
7458
|
+
/* @__PURE__ */ jsx131(Button, { fillMode: "flat", icon: "palette", selected: view === "palette" })
|
|
7459
|
+
] }) }),
|
|
7460
|
+
/* @__PURE__ */ jsx131("div", { className: "k-spacer" }),
|
|
7461
|
+
/* @__PURE__ */ jsxs47("div", { className: "k-coloreditor-header-actions k-hstack", children: [
|
|
7462
|
+
/* @__PURE__ */ jsx131(Button, { fillMode: "flat", icon: "droplet-slash" }),
|
|
7463
|
+
/* @__PURE__ */ jsxs47("div", { className: "k-coloreditor-preview k-vstack", children: [
|
|
7464
|
+
/* @__PURE__ */ jsx131(ColorPreview, { className: "k-coloreditor-preview-color", color }),
|
|
7465
|
+
/* @__PURE__ */ jsx131(ColorPreview, { className: "k-coloreditor-current-color", color: currentColor })
|
|
7466
|
+
] })
|
|
7467
|
+
] })
|
|
7468
|
+
] }),
|
|
7469
|
+
/* @__PURE__ */ jsx131("div", { className: "k-coloreditor-views k-vstack", children: view === "gradient" ? /* @__PURE__ */ jsx131(ColorGradient, { focus: focusView }) : /* @__PURE__ */ jsx131(ColorPalette, { palette }) }),
|
|
7470
|
+
/* @__PURE__ */ jsxs47(ActionButtons, { className: "k-coloreditor-footer", alignment: "end", children: [
|
|
7471
|
+
/* @__PURE__ */ jsx131(Button, { className: "k-coloreditor-cancel", children: "Cancel" }),
|
|
7472
|
+
/* @__PURE__ */ jsx131(Button, { themeColor: "primary", className: "k-coloreditor-apply", children: "Apply" })
|
|
7473
|
+
] })
|
|
7474
|
+
] });
|
|
7475
|
+
};
|
|
7476
|
+
ColorEditor.states = states46;
|
|
7477
|
+
ColorEditor.options = options42;
|
|
7478
|
+
ColorEditor.className = COLOREDITOR_CLASSNAME;
|
|
7479
|
+
ColorEditor.defaultProps = defaultProps42;
|
|
7480
|
+
|
|
7481
|
+
// src/coloreditor/templates/coloreditor-normal.tsx
|
|
7482
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
|
7483
|
+
|
|
7484
|
+
// src/coloreditor/templates/coloreditor-palette.tsx
|
|
7485
|
+
import { jsx as jsx133 } from "react/jsx-runtime";
|
|
7486
|
+
|
|
7487
|
+
// src/coloreditor/templates/coloreditor-group.tsx
|
|
7488
|
+
import { jsx as jsx134 } from "react/jsx-runtime";
|
|
7489
|
+
|
|
7490
|
+
// src/coloreditor/templates/coloreditor-palette-group.tsx
|
|
7491
|
+
import { jsx as jsx135 } from "react/jsx-runtime";
|
|
7492
|
+
|
|
7493
|
+
// src/colorpicker/templates/colorpicker-popup-gradient.tsx
|
|
7494
|
+
import { jsx as jsx136 } from "react/jsx-runtime";
|
|
7495
|
+
|
|
7496
|
+
// src/colorpicker/templates/colorpicker-popup-palette.tsx
|
|
7497
|
+
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
7498
|
+
|
|
7499
|
+
// src/action-sheet/action-sheet.spec.tsx
|
|
7500
|
+
import { Fragment as Fragment30, jsx as jsx138, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7501
|
+
var ACTIONSHEET_CLASSNAME = `k-actionsheet`;
|
|
7502
|
+
var states47 = [];
|
|
7503
|
+
var options43 = {};
|
|
7504
|
+
var defaultProps43 = {
|
|
7505
|
+
side: "bottom",
|
|
7506
|
+
fullscreen: false,
|
|
7507
|
+
adaptive: false,
|
|
7508
|
+
overlay: true
|
|
7509
|
+
};
|
|
7510
|
+
var ActionSheet = (props) => {
|
|
7511
|
+
const {
|
|
7512
|
+
children,
|
|
7513
|
+
title,
|
|
7514
|
+
header,
|
|
7515
|
+
footer,
|
|
7516
|
+
actions,
|
|
7517
|
+
side = defaultProps43.side,
|
|
7518
|
+
fullscreen = defaultProps43.fullscreen,
|
|
7519
|
+
adaptive = defaultProps43.adaptive,
|
|
7520
|
+
overlay = defaultProps43.overlay,
|
|
7521
|
+
...other
|
|
7522
|
+
} = props;
|
|
7523
|
+
const _ActionSheetHeader = title ? /* @__PURE__ */ jsx138(ActionSheetHeader, { title }) : header ? header : Array.isArray(children) && children.find((child) => child.type === ActionSheetHeader);
|
|
7524
|
+
const _ActionSheetFooter = actions ? /* @__PURE__ */ jsx138(ActionSheetFooter, { className: "k-actions", actions }) : footer ? typeof footer === "string" ? /* @__PURE__ */ jsx138(ActionSheetFooter, { children: footer }) : footer : Array.isArray(children) && children.find((child) => child.type === ActionSheetFooter);
|
|
7525
|
+
const _ActionSheetContent = Array.isArray(children) ? children.filter((child) => {
|
|
7526
|
+
switch (child.type) {
|
|
7527
|
+
case ActionSheetHeader:
|
|
7528
|
+
case ActionSheetFooter:
|
|
7529
|
+
return false;
|
|
7530
|
+
default:
|
|
7531
|
+
return true;
|
|
7532
|
+
}
|
|
7533
|
+
return true;
|
|
7534
|
+
}) : children.type === ActionSheetItems ? children : /* @__PURE__ */ jsx138(Fragment30, {});
|
|
7535
|
+
return /* @__PURE__ */ jsxs48("div", { className: "k-actionsheet-container", children: [
|
|
7536
|
+
overlay && /* @__PURE__ */ jsx138("div", { className: "k-overlay" }),
|
|
7537
|
+
/* @__PURE__ */ jsx138(
|
|
7538
|
+
AnimationContainer,
|
|
7539
|
+
{
|
|
7540
|
+
animationStyle: {
|
|
7541
|
+
[`${fullscreen === true ? "top" : side}`]: 0,
|
|
7542
|
+
[`${fullscreen === true ? "width" : null}`]: "100%",
|
|
7543
|
+
[`${fullscreen === true ? "height" : null}`]: "100%",
|
|
7544
|
+
[`${side === "top" || side === "bottom" ? "width" : null}`]: "100%",
|
|
7545
|
+
[`${side === "left" || side === "right" ? "height" : null}`]: "100%"
|
|
7546
|
+
},
|
|
7547
|
+
children: /* @__PURE__ */ jsx138(
|
|
7548
|
+
"div",
|
|
7549
|
+
{
|
|
7550
|
+
...other,
|
|
7551
|
+
className: classNames(
|
|
7552
|
+
props.className,
|
|
7553
|
+
ACTIONSHEET_CLASSNAME,
|
|
7554
|
+
{
|
|
7555
|
+
[`k-actionsheet-${side}`]: fullscreen === false,
|
|
7556
|
+
"k-actionsheet-fullscreen": fullscreen === true,
|
|
7557
|
+
"k-adaptive-actionsheet": adaptive
|
|
7558
|
+
}
|
|
7559
|
+
),
|
|
7560
|
+
children: /* @__PURE__ */ jsxs48(Fragment30, { children: [
|
|
7561
|
+
_ActionSheetHeader,
|
|
7562
|
+
/* @__PURE__ */ jsx138("div", { className: classNames(
|
|
7563
|
+
"k-actionsheet-content",
|
|
7564
|
+
{
|
|
7565
|
+
"!k-overflow-hidden": adaptive
|
|
7566
|
+
}
|
|
7567
|
+
), children: _ActionSheetContent }),
|
|
7568
|
+
_ActionSheetFooter
|
|
7569
|
+
] })
|
|
7570
|
+
}
|
|
7571
|
+
)
|
|
7572
|
+
}
|
|
7573
|
+
)
|
|
7574
|
+
] });
|
|
7575
|
+
};
|
|
7576
|
+
ActionSheet.states = states47;
|
|
7577
|
+
ActionSheet.options = options43;
|
|
7578
|
+
ActionSheet.className = ACTIONSHEET_CLASSNAME;
|
|
7579
|
+
ActionSheet.defaultProps = defaultProps43;
|
|
7580
|
+
|
|
7581
|
+
// src/action-sheet/actionsheet-header.tsx
|
|
7582
|
+
import { Fragment as Fragment31, jsx as jsx139, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
7583
|
+
var ACTIONSHEETHEADER_CLASSNAME = `k-actionsheet-titlebar`;
|
|
7584
|
+
var ActionSheetHeader = (props) => {
|
|
7585
|
+
const {
|
|
7586
|
+
title,
|
|
7587
|
+
subTitle,
|
|
7588
|
+
actions,
|
|
7589
|
+
filter,
|
|
7590
|
+
...other
|
|
7591
|
+
} = props;
|
|
7592
|
+
return /* @__PURE__ */ jsx139(
|
|
7593
|
+
"div",
|
|
7594
|
+
{
|
|
7595
|
+
...other,
|
|
7596
|
+
className: classNames(
|
|
7597
|
+
props.className,
|
|
7598
|
+
ACTIONSHEETHEADER_CLASSNAME
|
|
7599
|
+
),
|
|
7600
|
+
children: /* @__PURE__ */ jsxs49(Fragment31, { children: [
|
|
7601
|
+
/* @__PURE__ */ jsxs49("div", { className: "k-actionsheet-titlebar-group k-hbox", children: [
|
|
7602
|
+
!props.children && (title || subTitle) && /* @__PURE__ */ jsx139(Fragment31, { children: /* @__PURE__ */ jsxs49("div", { className: "k-actionsheet-title", children: [
|
|
7603
|
+
title !== "" && /* @__PURE__ */ jsx139("div", { className: "k-text-center", children: title }),
|
|
7604
|
+
subTitle !== "" && /* @__PURE__ */ jsx139("div", { className: "k-actionsheet-subtitle k-text-center", children: subTitle })
|
|
7605
|
+
] }) }),
|
|
7606
|
+
props.children && /* @__PURE__ */ jsx139("div", { className: "k-actionsheet-title", children: props.children }),
|
|
7607
|
+
actions && /* @__PURE__ */ jsx139(Fragment31, { children: /* @__PURE__ */ jsx139("div", { className: "k-actionsheet-actions", children: actions.map((actionName) => /* @__PURE__ */ jsx139(Button, { icon: actionName, size: "large", fillMode: "flat" }, actionName)) }) })
|
|
7608
|
+
] }),
|
|
7609
|
+
filter && /* @__PURE__ */ jsx139(Fragment31, { children: /* @__PURE__ */ jsx139("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter", children: /* @__PURE__ */ jsx139(Searchbox, { placeholder: "Filter", size: "large" }) }) })
|
|
7610
|
+
] })
|
|
7611
|
+
}
|
|
7612
|
+
);
|
|
7613
|
+
};
|
|
7614
|
+
|
|
7615
|
+
// src/action-sheet/actionsheet-footer.tsx
|
|
7616
|
+
import { Fragment as Fragment32, jsx as jsx140, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
7617
|
+
var ACTIONSHEETFOOTER_CLASSNAME = `k-actionsheet-footer`;
|
|
7618
|
+
var ActionSheetFooter = (props) => {
|
|
7619
|
+
const {
|
|
7620
|
+
actions,
|
|
7621
|
+
...other
|
|
7622
|
+
} = props;
|
|
7623
|
+
return /* @__PURE__ */ jsx140(
|
|
7624
|
+
action_buttons_spec_default,
|
|
7625
|
+
{
|
|
7626
|
+
...other,
|
|
7627
|
+
className: classNames(
|
|
7628
|
+
props.className,
|
|
7629
|
+
ACTIONSHEETFOOTER_CLASSNAME
|
|
7630
|
+
),
|
|
7631
|
+
alignment: "stretched",
|
|
7632
|
+
children: /* @__PURE__ */ jsxs50(Fragment32, { children: [
|
|
7633
|
+
actions && actions.map((action, index) => {
|
|
7634
|
+
if (action === "|") {
|
|
7635
|
+
return /* @__PURE__ */ jsx140("span", { className: "k-separator" }, index);
|
|
7636
|
+
}
|
|
7637
|
+
if (action === " ") {
|
|
7638
|
+
return /* @__PURE__ */ jsx140("span", { className: "k-spacer" }, index);
|
|
7639
|
+
}
|
|
7640
|
+
const importantFlag = action.startsWith("!");
|
|
7641
|
+
const actionName = importantFlag ? action.substring(1) : action;
|
|
7642
|
+
return /* @__PURE__ */ jsx140(Button, { text: actionName, size: "large", themeColor: importantFlag ? "primary" : "base" }, index);
|
|
7643
|
+
}),
|
|
7644
|
+
!actions && props.children
|
|
7645
|
+
] })
|
|
7646
|
+
}
|
|
7647
|
+
);
|
|
7648
|
+
};
|
|
7649
|
+
|
|
7650
|
+
// src/action-sheet/actionsheet-items.tsx
|
|
7651
|
+
import { jsx as jsx141 } from "react/jsx-runtime";
|
|
7652
|
+
var ActionSheetItems = (props) => {
|
|
7653
|
+
const {
|
|
7654
|
+
...other
|
|
7655
|
+
} = props;
|
|
7656
|
+
return /* @__PURE__ */ jsx141(
|
|
7657
|
+
"div",
|
|
7658
|
+
{
|
|
7659
|
+
...other,
|
|
7660
|
+
className: classNames(
|
|
7661
|
+
props.className,
|
|
7662
|
+
"k-list-ul"
|
|
7663
|
+
),
|
|
7664
|
+
children: props.children
|
|
7665
|
+
}
|
|
7666
|
+
);
|
|
7667
|
+
};
|
|
7668
|
+
|
|
7669
|
+
// src/action-sheet/actionsheet-item.tsx
|
|
7670
|
+
import { Fragment as Fragment33, jsx as jsx142, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
7671
|
+
var states48 = [
|
|
7672
|
+
States.hover,
|
|
7673
|
+
States.focus,
|
|
7674
|
+
States.selected,
|
|
7675
|
+
States.disabled
|
|
7676
|
+
];
|
|
7677
|
+
|
|
7678
|
+
// src/combobox/combobox.spec.tsx
|
|
7679
|
+
import { Fragment as Fragment34, jsx as jsx143, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
7680
|
+
var COMBOBOX_CLASSNAME = `k-combobox`;
|
|
7681
|
+
var states49 = [
|
|
7682
|
+
States.hover,
|
|
7683
|
+
States.focus,
|
|
7684
|
+
States.valid,
|
|
7685
|
+
States.invalid,
|
|
7686
|
+
States.loading,
|
|
7687
|
+
States.required,
|
|
7688
|
+
States.disabled,
|
|
7689
|
+
States.readonly
|
|
7690
|
+
];
|
|
7691
|
+
var defaultProps44 = {
|
|
7692
|
+
size: Input.defaultProps.size,
|
|
7693
|
+
rounded: Input.defaultProps.rounded,
|
|
7694
|
+
fillMode: Input.defaultProps.fillMode
|
|
7695
|
+
};
|
|
7696
|
+
var options44 = {
|
|
7697
|
+
size: [Size.small, Size.medium, Size.large],
|
|
7698
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
7699
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
7700
|
+
};
|
|
7701
|
+
var Combobox = (props) => {
|
|
7702
|
+
const {
|
|
7703
|
+
prefix,
|
|
7704
|
+
suffix,
|
|
7705
|
+
value,
|
|
7706
|
+
placeholder,
|
|
7707
|
+
size,
|
|
7708
|
+
rounded,
|
|
7709
|
+
fillMode,
|
|
7710
|
+
hover,
|
|
7711
|
+
focus,
|
|
7712
|
+
valid,
|
|
7713
|
+
invalid,
|
|
7714
|
+
required,
|
|
7715
|
+
loading,
|
|
7716
|
+
disabled,
|
|
7717
|
+
popup,
|
|
7718
|
+
opened,
|
|
7719
|
+
readonly,
|
|
7720
|
+
adaptive,
|
|
7721
|
+
adaptiveSettings,
|
|
7722
|
+
...other
|
|
7723
|
+
} = props;
|
|
7724
|
+
return /* @__PURE__ */ jsxs52(Fragment34, { children: [
|
|
7725
|
+
/* @__PURE__ */ jsxs52(
|
|
7726
|
+
Input,
|
|
7727
|
+
{
|
|
7728
|
+
...other,
|
|
7729
|
+
size,
|
|
7730
|
+
rounded,
|
|
7731
|
+
fillMode,
|
|
7732
|
+
hover,
|
|
7733
|
+
focus,
|
|
7734
|
+
valid,
|
|
7735
|
+
invalid,
|
|
7736
|
+
required,
|
|
7737
|
+
loading,
|
|
7738
|
+
disabled,
|
|
7739
|
+
readonly,
|
|
7740
|
+
className: classNames(props.className, COMBOBOX_CLASSNAME),
|
|
7741
|
+
children: [
|
|
7742
|
+
prefix && /* @__PURE__ */ jsxs52(Fragment34, { children: [
|
|
7743
|
+
/* @__PURE__ */ jsx143(InputPrefix, { children: prefix }),
|
|
7744
|
+
/* @__PURE__ */ jsx143(InputSeparator, {})
|
|
7745
|
+
] }),
|
|
7746
|
+
/* @__PURE__ */ jsx143(InputInnerInput, { placeholder, value }),
|
|
7747
|
+
/* @__PURE__ */ jsx143(
|
|
7748
|
+
InputValidationIcon,
|
|
7749
|
+
{
|
|
7750
|
+
valid,
|
|
7751
|
+
invalid,
|
|
7752
|
+
loading,
|
|
7753
|
+
disabled
|
|
7754
|
+
}
|
|
7755
|
+
),
|
|
7756
|
+
/* @__PURE__ */ jsx143(
|
|
7757
|
+
InputLoadingIcon,
|
|
7758
|
+
{
|
|
7759
|
+
loading,
|
|
7760
|
+
disabled
|
|
7761
|
+
}
|
|
7762
|
+
),
|
|
7763
|
+
/* @__PURE__ */ jsx143(
|
|
7764
|
+
InputClearValue,
|
|
7765
|
+
{
|
|
7766
|
+
loading,
|
|
7767
|
+
disabled,
|
|
7768
|
+
readonly,
|
|
7769
|
+
value
|
|
7770
|
+
}
|
|
7771
|
+
),
|
|
7772
|
+
suffix && /* @__PURE__ */ jsxs52(Fragment34, { children: [
|
|
7773
|
+
/* @__PURE__ */ jsx143(InputSeparator, {}),
|
|
7774
|
+
/* @__PURE__ */ jsx143(InputSuffix, { children: suffix })
|
|
7775
|
+
] }),
|
|
7776
|
+
/* @__PURE__ */ jsx143(
|
|
7777
|
+
Button,
|
|
7778
|
+
{
|
|
7779
|
+
className: "k-input-button",
|
|
7780
|
+
icon: "caret-alt-down",
|
|
7781
|
+
rounded: null,
|
|
7782
|
+
size,
|
|
7783
|
+
fillMode
|
|
7784
|
+
}
|
|
7785
|
+
)
|
|
7786
|
+
]
|
|
7787
|
+
}
|
|
7788
|
+
),
|
|
7789
|
+
opened && popup && /* @__PURE__ */ jsx143(Popup, { className: "k-list-container k-combobox-popup", children: popup }),
|
|
7790
|
+
adaptive && /* @__PURE__ */ jsxs52(ActionSheet, { adaptive: true, ...adaptiveSettings, children: [
|
|
7791
|
+
/* @__PURE__ */ jsx143(
|
|
7792
|
+
ActionSheetHeader,
|
|
7793
|
+
{
|
|
7794
|
+
actions: ["x"],
|
|
7795
|
+
filter: true,
|
|
7796
|
+
title: "Select Item"
|
|
7797
|
+
}
|
|
7798
|
+
),
|
|
7799
|
+
/* @__PURE__ */ jsx143("div", { className: "k-list-container", children: /* @__PURE__ */ jsxs52(List, { size: "large", children: [
|
|
7800
|
+
/* @__PURE__ */ jsx143(ListItem, { text: "List item" }),
|
|
7801
|
+
/* @__PURE__ */ jsx143(ListItem, { text: "List item" }),
|
|
7802
|
+
/* @__PURE__ */ jsx143(ListItem, { text: "List item" })
|
|
7803
|
+
] }) })
|
|
7804
|
+
] })
|
|
7805
|
+
] });
|
|
7806
|
+
};
|
|
7807
|
+
Combobox.states = states49;
|
|
7808
|
+
Combobox.options = options44;
|
|
7809
|
+
Combobox.className = COMBOBOX_CLASSNAME;
|
|
7810
|
+
Combobox.defaultProps = defaultProps44;
|
|
7811
|
+
|
|
7812
|
+
// src/combobox/templates/combobox-normal.tsx
|
|
7813
|
+
import { jsx as jsx144 } from "react/jsx-runtime";
|
|
7814
|
+
|
|
7815
|
+
// src/combobox/templates/combobox-popup.tsx
|
|
7816
|
+
import { jsx as jsx145, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
7817
|
+
|
|
7818
|
+
// src/combobox/templates/combobox-grouping.tsx
|
|
7819
|
+
import { jsx as jsx146, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
7820
|
+
|
|
7821
|
+
// src/combobox/templates/combobox-adaptive.tsx
|
|
7822
|
+
import { jsx as jsx147 } from "react/jsx-runtime";
|
|
7823
|
+
|
|
7824
|
+
// src/combobox/templates/combobox-prefix.tsx
|
|
7825
|
+
import { Fragment as Fragment35, jsx as jsx148 } from "react/jsx-runtime";
|
|
7826
|
+
|
|
7827
|
+
// src/combobox/templates/combobox-suffix.tsx
|
|
7828
|
+
import { Fragment as Fragment36, jsx as jsx149 } from "react/jsx-runtime";
|
|
7829
|
+
|
|
7830
|
+
// src/menu-button/menu-button.spec.tsx
|
|
7831
|
+
import { Fragment as Fragment37, jsx as jsx150, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
7832
|
+
var MENUBUTTON_CLASSNAME = `k-menu-button`;
|
|
7833
|
+
var states50 = [
|
|
7834
|
+
States.hover,
|
|
7835
|
+
States.focus,
|
|
7836
|
+
States.active,
|
|
7837
|
+
States.selected,
|
|
7838
|
+
States.disabled
|
|
7839
|
+
];
|
|
7840
|
+
var options45 = {
|
|
7841
|
+
size: [Size.small, Size.medium, Size.large],
|
|
7842
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
7843
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
|
|
7844
|
+
themeColor: [
|
|
7845
|
+
ThemeColor.base,
|
|
7846
|
+
ThemeColor.primary,
|
|
7847
|
+
ThemeColor.secondary,
|
|
7848
|
+
ThemeColor.tertiary,
|
|
7849
|
+
ThemeColor.success,
|
|
7850
|
+
ThemeColor.warning,
|
|
7851
|
+
ThemeColor.error,
|
|
7852
|
+
ThemeColor.info,
|
|
7853
|
+
ThemeColor.light,
|
|
7854
|
+
ThemeColor.dark,
|
|
7855
|
+
ThemeColor.inverse
|
|
7856
|
+
]
|
|
7857
|
+
};
|
|
7858
|
+
var defaultProps45 = {
|
|
7859
|
+
size: Size.medium,
|
|
7860
|
+
rounded: Roundness.medium,
|
|
7861
|
+
fillMode: FillMode.solid,
|
|
7862
|
+
themeColor: ThemeColor.base,
|
|
7863
|
+
showArrow: true,
|
|
7864
|
+
arrowIconName: "caret-alt-down"
|
|
7865
|
+
};
|
|
7866
|
+
var MenuButton = (props) => {
|
|
7867
|
+
const {
|
|
7868
|
+
size = defaultProps45.size,
|
|
7869
|
+
rounded = defaultProps45.rounded,
|
|
7870
|
+
fillMode = defaultProps45.fillMode,
|
|
7871
|
+
themeColor = defaultProps45.themeColor,
|
|
7872
|
+
hover,
|
|
7873
|
+
focus,
|
|
7874
|
+
active,
|
|
7875
|
+
selected,
|
|
7876
|
+
disabled,
|
|
7877
|
+
icon,
|
|
7878
|
+
text,
|
|
7879
|
+
showArrow = defaultProps45.showArrow,
|
|
7880
|
+
arrowIconName = defaultProps45.arrowIconName,
|
|
7881
|
+
popup,
|
|
7882
|
+
opened,
|
|
7883
|
+
...other
|
|
7884
|
+
} = props;
|
|
7885
|
+
return /* @__PURE__ */ jsxs55(Fragment37, { children: [
|
|
7886
|
+
/* @__PURE__ */ jsx150(
|
|
7887
|
+
Button,
|
|
7888
|
+
{
|
|
7889
|
+
...other,
|
|
7890
|
+
className: classNames(
|
|
7891
|
+
props.className,
|
|
7892
|
+
MENUBUTTON_CLASSNAME
|
|
7893
|
+
),
|
|
7894
|
+
text,
|
|
7895
|
+
size,
|
|
7896
|
+
rounded,
|
|
7897
|
+
fillMode,
|
|
7898
|
+
themeColor,
|
|
7899
|
+
hover,
|
|
7900
|
+
focus,
|
|
7901
|
+
active,
|
|
7902
|
+
selected,
|
|
7903
|
+
disabled,
|
|
7904
|
+
icon,
|
|
7905
|
+
showArrow,
|
|
7906
|
+
arrowIconName
|
|
7907
|
+
}
|
|
7908
|
+
),
|
|
7909
|
+
opened && popup && /* @__PURE__ */ jsx150(Popup, { className: "k-menu-popup", children: popup })
|
|
7910
|
+
] });
|
|
7911
|
+
};
|
|
7912
|
+
MenuButton.states = states50;
|
|
7913
|
+
MenuButton.options = options45;
|
|
7914
|
+
MenuButton.className = MENUBUTTON_CLASSNAME;
|
|
7915
|
+
MenuButton.defaultProps = defaultProps45;
|
|
7916
|
+
|
|
7917
|
+
// src/menu-button/templates/icon-menu-button.tsx
|
|
7918
|
+
import { jsx as jsx151 } from "react/jsx-runtime";
|
|
7919
|
+
|
|
7920
|
+
// src/menu-button/templates/icon-text-menu-button.tsx
|
|
7921
|
+
import { jsx as jsx152 } from "react/jsx-runtime";
|
|
7922
|
+
|
|
7923
|
+
// src/menu-button/templates/text-menu-button.tsx
|
|
7924
|
+
import { jsx as jsx153 } from "react/jsx-runtime";
|
|
7925
|
+
|
|
7926
|
+
// src/menu/menu-item.spec.tsx
|
|
7927
|
+
import { Fragment as Fragment38, jsx as jsx154, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
7928
|
+
var MENUITEM_CLASSNAME = `k-menu-item`;
|
|
7929
|
+
var states51 = [
|
|
7930
|
+
States.hover,
|
|
7931
|
+
States.focus,
|
|
7932
|
+
States.active,
|
|
7933
|
+
States.selected,
|
|
7934
|
+
States.disabled
|
|
7935
|
+
];
|
|
7936
|
+
var options46 = {};
|
|
7937
|
+
var defaultProps46 = {
|
|
7938
|
+
dir: "ltr"
|
|
7939
|
+
};
|
|
7940
|
+
var MenuItem = (props) => {
|
|
7941
|
+
const {
|
|
7942
|
+
hover,
|
|
7943
|
+
focus,
|
|
7944
|
+
active,
|
|
7945
|
+
selected,
|
|
7946
|
+
disabled,
|
|
7947
|
+
icon,
|
|
7948
|
+
text,
|
|
7949
|
+
showArrow,
|
|
7950
|
+
arrowIconName,
|
|
7951
|
+
dir = defaultProps46.dir,
|
|
7952
|
+
children,
|
|
7953
|
+
...other
|
|
7954
|
+
} = props;
|
|
7955
|
+
const contentTemplate = /* @__PURE__ */ jsx154(Fragment38, {});
|
|
7956
|
+
if (children) {
|
|
7957
|
+
children.forEach((child) => {
|
|
7958
|
+
const component = child.type;
|
|
7959
|
+
if (component === "MenuItemContent") {
|
|
7960
|
+
contentTemplate.props.children.push(child);
|
|
7961
|
+
return;
|
|
7962
|
+
}
|
|
7963
|
+
});
|
|
7964
|
+
}
|
|
7965
|
+
let expandArrowName = arrowIconName;
|
|
7966
|
+
if (!expandArrowName) {
|
|
7967
|
+
expandArrowName = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
|
|
7968
|
+
}
|
|
7969
|
+
return /* @__PURE__ */ jsxs56(
|
|
7970
|
+
"li",
|
|
7971
|
+
{
|
|
7972
|
+
...other,
|
|
7973
|
+
className: classNames(
|
|
7974
|
+
props.className,
|
|
7975
|
+
MENUITEM_CLASSNAME,
|
|
7976
|
+
//TODO
|
|
7977
|
+
"k-item",
|
|
7978
|
+
stateClassNames(MENUITEM_CLASSNAME, {
|
|
7979
|
+
focus,
|
|
7980
|
+
disabled
|
|
7981
|
+
})
|
|
7982
|
+
),
|
|
7983
|
+
children: [
|
|
7984
|
+
/* @__PURE__ */ jsxs56(
|
|
7985
|
+
"span",
|
|
7986
|
+
{
|
|
7987
|
+
className: classNames(
|
|
7988
|
+
"k-link k-menu-link",
|
|
7989
|
+
stateClassNames("k-menu-link", {
|
|
7990
|
+
hover,
|
|
7991
|
+
active,
|
|
7992
|
+
selected,
|
|
7993
|
+
disabled
|
|
7994
|
+
})
|
|
7995
|
+
),
|
|
7996
|
+
children: [
|
|
7997
|
+
icon && /* @__PURE__ */ jsx154(Icon, { className: "k-menu-link-icon", icon }),
|
|
7998
|
+
/* @__PURE__ */ jsx154("span", { className: "k-menu-link-text", children: text }),
|
|
7999
|
+
showArrow && /* @__PURE__ */ jsx154("span", { className: "k-menu-expand-arrow", children: /* @__PURE__ */ jsx154(Icon, { icon: expandArrowName }) })
|
|
8000
|
+
]
|
|
8001
|
+
}
|
|
8002
|
+
),
|
|
8003
|
+
contentTemplate
|
|
8004
|
+
]
|
|
8005
|
+
}
|
|
8006
|
+
);
|
|
8007
|
+
};
|
|
8008
|
+
MenuItem.states = states51;
|
|
8009
|
+
MenuItem.options = options46;
|
|
8010
|
+
MenuItem.className = MENUITEM_CLASSNAME;
|
|
8011
|
+
MenuItem.defaultProps = defaultProps46;
|
|
8012
|
+
var menu_item_spec_default = MenuItem;
|
|
8013
|
+
|
|
8014
|
+
// src/menu/menu-separator.spec.tsx
|
|
8015
|
+
import { jsx as jsx155 } from "react/jsx-runtime";
|
|
8016
|
+
var SEPARATOR_CLASSNAME = `k-separator`;
|
|
8017
|
+
var defaultProps47 = {
|
|
8018
|
+
orientation: "horizontal"
|
|
8019
|
+
};
|
|
8020
|
+
var MenuSeparator = (props) => {
|
|
8021
|
+
const {
|
|
8022
|
+
orientation = defaultProps47.orientation,
|
|
8023
|
+
...other
|
|
8024
|
+
} = props;
|
|
8025
|
+
return /* @__PURE__ */ jsx155(
|
|
8026
|
+
"li",
|
|
8027
|
+
{
|
|
8028
|
+
...other,
|
|
8029
|
+
className: classNames(
|
|
8030
|
+
props.className,
|
|
8031
|
+
"k-item",
|
|
8032
|
+
SEPARATOR_CLASSNAME,
|
|
8033
|
+
{
|
|
8034
|
+
[`${SEPARATOR_CLASSNAME}-${orientation}`]: orientation
|
|
8035
|
+
}
|
|
8036
|
+
)
|
|
8037
|
+
}
|
|
8038
|
+
);
|
|
8039
|
+
};
|
|
8040
|
+
var menu_separator_spec_default = MenuSeparator;
|
|
8041
|
+
|
|
8042
|
+
// src/menu/menu-item-content.tsx
|
|
8043
|
+
import { Fragment as Fragment39, jsx as jsx156 } from "react/jsx-runtime";
|
|
8044
|
+
|
|
8045
|
+
// src/menu/menu-list.spec.tsx
|
|
8046
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
8047
|
+
import { createElement } from "react";
|
|
8048
|
+
var MENULIST_CLASSNAME = `k-menu-group`;
|
|
8049
|
+
var states52 = [];
|
|
8050
|
+
var options47 = {
|
|
8051
|
+
size: [Size.small, Size.medium, Size.large]
|
|
8052
|
+
};
|
|
8053
|
+
var defaultProps48 = {
|
|
8054
|
+
size: Size.medium,
|
|
8055
|
+
dir: "ltr"
|
|
8056
|
+
};
|
|
8057
|
+
var MenuList = (props) => {
|
|
8058
|
+
const {
|
|
8059
|
+
children,
|
|
8060
|
+
size = defaultProps48.size,
|
|
8061
|
+
dir = defaultProps48.dir,
|
|
8062
|
+
...other
|
|
8063
|
+
} = props;
|
|
8064
|
+
const listChildren = [];
|
|
8065
|
+
if (children) {
|
|
8066
|
+
if (Array.isArray(children)) {
|
|
8067
|
+
children.map((child, index) => {
|
|
8068
|
+
if (child.type === menu_item_spec_default) {
|
|
8069
|
+
listChildren.push(
|
|
8070
|
+
/* @__PURE__ */ createElement(menu_item_spec_default, { ...child.props, dir, key: index })
|
|
8071
|
+
);
|
|
8072
|
+
} else if (child.type === menu_separator_spec_default) {
|
|
8073
|
+
listChildren.push(
|
|
8074
|
+
/* @__PURE__ */ jsx157(menu_separator_spec_default, {})
|
|
8075
|
+
);
|
|
8076
|
+
} else {
|
|
8077
|
+
listChildren.push(child);
|
|
8078
|
+
}
|
|
8079
|
+
});
|
|
8080
|
+
}
|
|
8081
|
+
}
|
|
8082
|
+
return /* @__PURE__ */ jsx157(
|
|
8083
|
+
"ul",
|
|
8084
|
+
{
|
|
8085
|
+
...other,
|
|
8086
|
+
className: classNames(
|
|
8087
|
+
props.className,
|
|
8088
|
+
MENULIST_CLASSNAME,
|
|
8089
|
+
optionClassNames(MENULIST_CLASSNAME, {
|
|
8090
|
+
size
|
|
8091
|
+
})
|
|
8092
|
+
),
|
|
8093
|
+
children: listChildren
|
|
8094
|
+
}
|
|
8095
|
+
);
|
|
8096
|
+
};
|
|
8097
|
+
MenuList.states = states52;
|
|
8098
|
+
MenuList.options = options47;
|
|
8099
|
+
MenuList.className = MENULIST_CLASSNAME;
|
|
8100
|
+
MenuList.defaultProps = defaultProps48;
|
|
8101
|
+
|
|
8102
|
+
// src/menu-button/templates/menu-button-popup.tsx
|
|
8103
|
+
import { jsx as jsx158, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
8104
|
+
|
|
8105
|
+
// src/split-button/split-button.spec.tsx
|
|
8106
|
+
import { Fragment as Fragment40, jsx as jsx159, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
8107
|
+
var SPLITBUTTON_CLASSNAME = `k-split-button`;
|
|
8108
|
+
var states53 = [
|
|
8109
|
+
States.hover,
|
|
8110
|
+
States.focus,
|
|
8111
|
+
States.active,
|
|
8112
|
+
States.selected,
|
|
8113
|
+
States.disabled
|
|
8114
|
+
];
|
|
8115
|
+
var options48 = {
|
|
8116
|
+
size: [Size.small, Size.medium, Size.large],
|
|
8117
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
8118
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
|
|
8119
|
+
themeColor: [
|
|
8120
|
+
ThemeColor.base,
|
|
8121
|
+
ThemeColor.primary,
|
|
8122
|
+
ThemeColor.secondary,
|
|
8123
|
+
ThemeColor.tertiary,
|
|
8124
|
+
ThemeColor.success,
|
|
8125
|
+
ThemeColor.warning,
|
|
8126
|
+
ThemeColor.error,
|
|
8127
|
+
ThemeColor.info,
|
|
8128
|
+
ThemeColor.light,
|
|
8129
|
+
ThemeColor.dark,
|
|
8130
|
+
ThemeColor.inverse
|
|
8131
|
+
]
|
|
8132
|
+
};
|
|
8133
|
+
var defaultProps49 = {
|
|
8134
|
+
size: Size.medium,
|
|
8135
|
+
rounded: Roundness.medium,
|
|
8136
|
+
fillMode: FillMode.solid,
|
|
8137
|
+
themeColor: ThemeColor.base,
|
|
8138
|
+
arrowIconName: "caret-alt-down"
|
|
8139
|
+
};
|
|
8140
|
+
var SplitButton = (props) => {
|
|
8141
|
+
const {
|
|
8142
|
+
size = defaultProps49.size,
|
|
8143
|
+
rounded = defaultProps49.rounded,
|
|
8144
|
+
fillMode = defaultProps49.fillMode,
|
|
8145
|
+
themeColor = defaultProps49.themeColor,
|
|
8146
|
+
hover,
|
|
8147
|
+
focus,
|
|
8148
|
+
active,
|
|
8149
|
+
selected,
|
|
8150
|
+
disabled,
|
|
8151
|
+
icon,
|
|
8152
|
+
text,
|
|
8153
|
+
arrowIconName = defaultProps49.arrowIconName,
|
|
8154
|
+
popup,
|
|
8155
|
+
opened,
|
|
8156
|
+
...other
|
|
8157
|
+
} = props;
|
|
8158
|
+
return /* @__PURE__ */ jsxs58(Fragment40, { children: [
|
|
8159
|
+
/* @__PURE__ */ jsxs58(
|
|
8160
|
+
"div",
|
|
8161
|
+
{
|
|
8162
|
+
...other,
|
|
8163
|
+
className: classNames(
|
|
8164
|
+
props.className,
|
|
8165
|
+
SPLITBUTTON_CLASSNAME,
|
|
8166
|
+
"k-button-group",
|
|
8167
|
+
optionClassNames(SPLITBUTTON_CLASSNAME, {
|
|
8168
|
+
rounded
|
|
8169
|
+
})
|
|
8170
|
+
),
|
|
8171
|
+
children: [
|
|
8172
|
+
/* @__PURE__ */ jsx159(
|
|
8173
|
+
Button,
|
|
8174
|
+
{
|
|
8175
|
+
text,
|
|
8176
|
+
icon,
|
|
8177
|
+
size,
|
|
8178
|
+
rounded,
|
|
8179
|
+
fillMode,
|
|
8180
|
+
themeColor,
|
|
8181
|
+
hover,
|
|
8182
|
+
focus,
|
|
8183
|
+
active,
|
|
8184
|
+
selected,
|
|
8185
|
+
disabled,
|
|
8186
|
+
children: props.children
|
|
8187
|
+
}
|
|
8188
|
+
),
|
|
8189
|
+
/* @__PURE__ */ jsx159(
|
|
8190
|
+
Button,
|
|
8191
|
+
{
|
|
8192
|
+
className: "k-split-button-arrow",
|
|
8193
|
+
icon: arrowIconName,
|
|
8194
|
+
size,
|
|
8195
|
+
rounded,
|
|
8196
|
+
fillMode,
|
|
8197
|
+
disabled
|
|
8198
|
+
}
|
|
8199
|
+
)
|
|
8200
|
+
]
|
|
8201
|
+
}
|
|
8202
|
+
),
|
|
8203
|
+
opened && popup && /* @__PURE__ */ jsx159(Popup, { className: "k-menu-popup", children: popup })
|
|
8204
|
+
] });
|
|
8205
|
+
};
|
|
8206
|
+
SplitButton.states = states53;
|
|
8207
|
+
SplitButton.options = options48;
|
|
8208
|
+
SplitButton.className = SPLITBUTTON_CLASSNAME;
|
|
8209
|
+
SplitButton.defaultProps = defaultProps49;
|
|
8210
|
+
var split_button_spec_default = SplitButton;
|
|
8211
|
+
|
|
8212
|
+
// src/toolbar/toolbar.spec.tsx
|
|
8213
|
+
import { jsx as jsx160 } from "react/jsx-runtime";
|
|
8214
|
+
var TOOLBAR_CLASSNAME = `k-toolbar`;
|
|
8215
|
+
var states54 = [
|
|
8216
|
+
States.focus
|
|
8217
|
+
];
|
|
8218
|
+
var options49 = {
|
|
8219
|
+
size: [Size.small, Size.medium, Size.large]
|
|
8220
|
+
};
|
|
8221
|
+
var defaultProps50 = {
|
|
8222
|
+
size: Size.medium
|
|
8223
|
+
};
|
|
8224
|
+
var Toolbar = (props) => {
|
|
8225
|
+
const {
|
|
8226
|
+
size = defaultProps50.size,
|
|
8227
|
+
focus,
|
|
8228
|
+
resizable,
|
|
8229
|
+
...other
|
|
8230
|
+
} = props;
|
|
8231
|
+
const toolbarChildren = [];
|
|
8232
|
+
const addUniqueToolClass = (child, index) => {
|
|
8233
|
+
const tempToolbarChildren = [];
|
|
8234
|
+
if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
|
|
8235
|
+
tempToolbarChildren.push(
|
|
8236
|
+
/* @__PURE__ */ jsx160(
|
|
8237
|
+
Button,
|
|
8238
|
+
{
|
|
8239
|
+
...child.props,
|
|
8240
|
+
className: `${child.props.className ? child.props.className : ""}`
|
|
8241
|
+
},
|
|
8242
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8243
|
+
)
|
|
8244
|
+
);
|
|
8245
|
+
} else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
|
|
8246
|
+
tempToolbarChildren.push(
|
|
8247
|
+
/* @__PURE__ */ jsx160(
|
|
8248
|
+
Button,
|
|
8249
|
+
{
|
|
8250
|
+
...child.props,
|
|
8251
|
+
className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
|
|
8252
|
+
},
|
|
8253
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8254
|
+
)
|
|
8255
|
+
);
|
|
8256
|
+
} else if (child.type === Button) {
|
|
8257
|
+
tempToolbarChildren.push(
|
|
8258
|
+
/* @__PURE__ */ jsx160(
|
|
8259
|
+
Button,
|
|
8260
|
+
{
|
|
8261
|
+
...child.props,
|
|
8262
|
+
className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
|
|
8263
|
+
},
|
|
8264
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8265
|
+
)
|
|
8266
|
+
);
|
|
8267
|
+
} else if (child.type === MenuButton) {
|
|
8268
|
+
tempToolbarChildren.push(
|
|
8269
|
+
/* @__PURE__ */ jsx160(
|
|
8270
|
+
MenuButton,
|
|
8271
|
+
{
|
|
8272
|
+
...child.props,
|
|
8273
|
+
className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
|
|
8274
|
+
},
|
|
8275
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8276
|
+
)
|
|
8277
|
+
);
|
|
8278
|
+
} else if (child.type === split_button_spec_default) {
|
|
8279
|
+
tempToolbarChildren.push(
|
|
8280
|
+
/* @__PURE__ */ jsx160(
|
|
8281
|
+
split_button_spec_default,
|
|
8282
|
+
{
|
|
8283
|
+
...child.props,
|
|
8284
|
+
className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
|
|
8285
|
+
},
|
|
8286
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8287
|
+
)
|
|
8288
|
+
);
|
|
8289
|
+
} else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
|
|
8290
|
+
const buttonGroupItems = [];
|
|
8291
|
+
const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
|
|
8292
|
+
childrenArray.forEach((button, bindex) => {
|
|
8293
|
+
buttonGroupItems.push(
|
|
8294
|
+
/* @__PURE__ */ jsx160(
|
|
8295
|
+
Button,
|
|
8296
|
+
{
|
|
8297
|
+
...button.props,
|
|
8298
|
+
className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
|
|
8299
|
+
},
|
|
8300
|
+
`${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8301
|
+
)
|
|
8302
|
+
);
|
|
8303
|
+
});
|
|
8304
|
+
tempToolbarChildren.push(
|
|
8305
|
+
/* @__PURE__ */ jsx160(
|
|
8306
|
+
ButtonGroup,
|
|
8307
|
+
{
|
|
8308
|
+
...child.props,
|
|
8309
|
+
className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
|
|
8310
|
+
children: buttonGroupItems
|
|
8311
|
+
},
|
|
8312
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8313
|
+
)
|
|
8314
|
+
);
|
|
8315
|
+
} else if (child.type === Combobox) {
|
|
8316
|
+
tempToolbarChildren.push(
|
|
8317
|
+
/* @__PURE__ */ jsx160(
|
|
8318
|
+
Combobox,
|
|
8319
|
+
{
|
|
8320
|
+
...child.props,
|
|
8321
|
+
className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
|
|
8322
|
+
},
|
|
8323
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8324
|
+
)
|
|
8325
|
+
);
|
|
8326
|
+
} else if (child.type === DropdownList) {
|
|
8327
|
+
tempToolbarChildren.push(
|
|
8328
|
+
/* @__PURE__ */ jsx160(
|
|
8329
|
+
DropdownList,
|
|
8330
|
+
{
|
|
8331
|
+
...child.props,
|
|
8332
|
+
className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
|
|
8333
|
+
},
|
|
8334
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8335
|
+
)
|
|
8336
|
+
);
|
|
8337
|
+
} else if (child.type === ColorPicker) {
|
|
8338
|
+
tempToolbarChildren.push(
|
|
8339
|
+
/* @__PURE__ */ jsx160(
|
|
8340
|
+
ColorPicker,
|
|
8341
|
+
{
|
|
8342
|
+
...child.props,
|
|
8343
|
+
className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
|
|
8344
|
+
},
|
|
8345
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8346
|
+
)
|
|
8347
|
+
);
|
|
8348
|
+
} else {
|
|
8349
|
+
tempToolbarChildren.push(child);
|
|
8350
|
+
}
|
|
8351
|
+
tempToolbarChildren.forEach((item) => {
|
|
8352
|
+
toolbarChildren.push(item);
|
|
8353
|
+
});
|
|
8354
|
+
};
|
|
8355
|
+
if (props.children) {
|
|
8356
|
+
const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
|
|
8357
|
+
childrenArray.forEach((child, index) => {
|
|
8358
|
+
addUniqueToolClass(child, index);
|
|
8359
|
+
});
|
|
8360
|
+
}
|
|
8361
|
+
return /* @__PURE__ */ jsx160(
|
|
8362
|
+
"div",
|
|
8363
|
+
{
|
|
8364
|
+
...other,
|
|
8365
|
+
className: classNames(
|
|
8366
|
+
props.className,
|
|
8367
|
+
TOOLBAR_CLASSNAME,
|
|
8368
|
+
optionClassNames(TOOLBAR_CLASSNAME, {
|
|
8369
|
+
size
|
|
8370
|
+
}),
|
|
8371
|
+
stateClassNames(TOOLBAR_CLASSNAME, {
|
|
8372
|
+
focus
|
|
8373
|
+
}),
|
|
8374
|
+
{
|
|
8375
|
+
[`${TOOLBAR_CLASSNAME}-resizable`]: resizable
|
|
8376
|
+
}
|
|
8377
|
+
),
|
|
8378
|
+
children: toolbarChildren
|
|
8379
|
+
}
|
|
8380
|
+
);
|
|
8381
|
+
};
|
|
8382
|
+
Toolbar.states = states54;
|
|
8383
|
+
Toolbar.options = options49;
|
|
8384
|
+
Toolbar.className = TOOLBAR_CLASSNAME;
|
|
8385
|
+
Toolbar.defaultProps = defaultProps50;
|
|
8386
|
+
|
|
8387
|
+
// src/toolbar/toolbar-angular.spec.tsx
|
|
8388
|
+
import { jsx as jsx161 } from "react/jsx-runtime";
|
|
8389
|
+
var TOOLBARANGULAR_CLASSNAME = `k-toolbar`;
|
|
8390
|
+
var states55 = [
|
|
8391
|
+
States.focus
|
|
8392
|
+
];
|
|
8393
|
+
var options50 = {
|
|
8394
|
+
size: [Size.small, Size.medium, Size.large]
|
|
8395
|
+
};
|
|
8396
|
+
var defaultProps51 = {
|
|
8397
|
+
size: Size.medium
|
|
8398
|
+
};
|
|
8399
|
+
var ToolbarAngular = (props) => {
|
|
8400
|
+
const {
|
|
8401
|
+
size = defaultProps51.size,
|
|
8402
|
+
focus,
|
|
8403
|
+
resizable,
|
|
8404
|
+
...other
|
|
8405
|
+
} = props;
|
|
8406
|
+
const toolbarChildren = [];
|
|
8407
|
+
const addUniqueToolClass = (child, index) => {
|
|
8408
|
+
const tempToolbarChildren = [];
|
|
8409
|
+
if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
|
|
8410
|
+
tempToolbarChildren.push(
|
|
8411
|
+
/* @__PURE__ */ jsx161("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx161(
|
|
8412
|
+
Button,
|
|
8413
|
+
{
|
|
8414
|
+
...child.props,
|
|
8415
|
+
className: `${child.props.className ? child.props.className : ""}`
|
|
8416
|
+
},
|
|
8417
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8418
|
+
) })
|
|
8419
|
+
);
|
|
8420
|
+
} else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
|
|
8421
|
+
tempToolbarChildren.push(
|
|
8422
|
+
/* @__PURE__ */ jsx161("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx161(
|
|
8423
|
+
Button,
|
|
8424
|
+
{
|
|
8425
|
+
...child.props,
|
|
8426
|
+
className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
|
|
8427
|
+
},
|
|
8428
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8429
|
+
) })
|
|
8430
|
+
);
|
|
8431
|
+
} else if (child.type === Button) {
|
|
8432
|
+
tempToolbarChildren.push(
|
|
8433
|
+
/* @__PURE__ */ jsx161("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx161(
|
|
8434
|
+
Button,
|
|
8435
|
+
{
|
|
8436
|
+
...child.props,
|
|
8437
|
+
className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
|
|
8438
|
+
},
|
|
8439
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8440
|
+
) })
|
|
8441
|
+
);
|
|
8442
|
+
} else if (child.type === MenuButton) {
|
|
8443
|
+
tempToolbarChildren.push(
|
|
8444
|
+
/* @__PURE__ */ jsx161("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx161(
|
|
8445
|
+
MenuButton,
|
|
8446
|
+
{
|
|
8447
|
+
...child.props,
|
|
8448
|
+
className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
|
|
8449
|
+
},
|
|
8450
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8451
|
+
) })
|
|
8452
|
+
);
|
|
8453
|
+
} else if (child.type === split_button_spec_default) {
|
|
8454
|
+
tempToolbarChildren.push(
|
|
8455
|
+
/* @__PURE__ */ jsx161("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx161(
|
|
8456
|
+
split_button_spec_default,
|
|
8457
|
+
{
|
|
8458
|
+
...child.props,
|
|
8459
|
+
className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
|
|
8460
|
+
},
|
|
8461
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8462
|
+
) })
|
|
8463
|
+
);
|
|
8464
|
+
} else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
|
|
8465
|
+
const buttonGroupItems = [];
|
|
8466
|
+
const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
|
|
8467
|
+
childrenArray.forEach((button, bindex) => {
|
|
8468
|
+
buttonGroupItems.push(
|
|
8469
|
+
/* @__PURE__ */ jsx161(
|
|
8470
|
+
Button,
|
|
8471
|
+
{
|
|
8472
|
+
...button.props,
|
|
8473
|
+
className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
|
|
8474
|
+
},
|
|
8475
|
+
`${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8476
|
+
)
|
|
8477
|
+
);
|
|
8478
|
+
});
|
|
8479
|
+
tempToolbarChildren.push(
|
|
8480
|
+
/* @__PURE__ */ jsx161("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx161(
|
|
8481
|
+
ButtonGroup,
|
|
8482
|
+
{
|
|
8483
|
+
...child.props,
|
|
8484
|
+
className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
|
|
8485
|
+
children: buttonGroupItems
|
|
8486
|
+
},
|
|
8487
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8488
|
+
) })
|
|
8489
|
+
);
|
|
8490
|
+
} else if (child.type === Combobox) {
|
|
8491
|
+
tempToolbarChildren.push(
|
|
8492
|
+
/* @__PURE__ */ jsx161("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx161(
|
|
8493
|
+
Combobox,
|
|
8494
|
+
{
|
|
8495
|
+
...child.props,
|
|
8496
|
+
className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
|
|
8497
|
+
},
|
|
8498
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8499
|
+
) })
|
|
8500
|
+
);
|
|
8501
|
+
} else if (child.type === DropdownList) {
|
|
8502
|
+
tempToolbarChildren.push(
|
|
8503
|
+
/* @__PURE__ */ jsx161("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx161(
|
|
8504
|
+
DropdownList,
|
|
8505
|
+
{
|
|
8506
|
+
...child.props,
|
|
8507
|
+
className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
|
|
8508
|
+
},
|
|
8509
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8510
|
+
) })
|
|
8511
|
+
);
|
|
8512
|
+
} else if (child.type === ColorPicker) {
|
|
8513
|
+
tempToolbarChildren.push(
|
|
8514
|
+
/* @__PURE__ */ jsx161("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx161(
|
|
8515
|
+
ColorPicker,
|
|
8516
|
+
{
|
|
8517
|
+
...child.props,
|
|
8518
|
+
className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
|
|
8519
|
+
},
|
|
8520
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8521
|
+
) })
|
|
8522
|
+
);
|
|
8523
|
+
} else {
|
|
8524
|
+
tempToolbarChildren.push(child);
|
|
8525
|
+
}
|
|
8526
|
+
tempToolbarChildren.forEach((item) => {
|
|
8527
|
+
toolbarChildren.push(item);
|
|
8528
|
+
});
|
|
8529
|
+
};
|
|
8530
|
+
if (props.children) {
|
|
8531
|
+
const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
|
|
8532
|
+
childrenArray.forEach((child, index) => {
|
|
8533
|
+
addUniqueToolClass(child, index);
|
|
8534
|
+
});
|
|
8535
|
+
}
|
|
8536
|
+
return /* @__PURE__ */ jsx161(
|
|
8537
|
+
"div",
|
|
8538
|
+
{
|
|
8539
|
+
...other,
|
|
8540
|
+
className: classNames(
|
|
8541
|
+
props.className,
|
|
8542
|
+
TOOLBARANGULAR_CLASSNAME,
|
|
8543
|
+
optionClassNames(TOOLBARANGULAR_CLASSNAME, {
|
|
8544
|
+
size
|
|
8545
|
+
}),
|
|
8546
|
+
stateClassNames(TOOLBARANGULAR_CLASSNAME, {
|
|
8547
|
+
focus
|
|
8548
|
+
}),
|
|
8549
|
+
{
|
|
8550
|
+
[`${TOOLBARANGULAR_CLASSNAME}-resizable`]: resizable
|
|
8551
|
+
}
|
|
8552
|
+
),
|
|
8553
|
+
children: toolbarChildren
|
|
8554
|
+
}
|
|
8555
|
+
);
|
|
8556
|
+
};
|
|
8557
|
+
ToolbarAngular.states = states55;
|
|
8558
|
+
ToolbarAngular.options = options50;
|
|
8559
|
+
ToolbarAngular.className = TOOLBARANGULAR_CLASSNAME;
|
|
8560
|
+
ToolbarAngular.defaultProps = defaultProps51;
|
|
8561
|
+
|
|
8562
|
+
// src/toolbar/toolbar-separator.tsx
|
|
8563
|
+
import { jsx as jsx162 } from "react/jsx-runtime";
|
|
8564
|
+
|
|
8565
|
+
// src/toolbar/toolbar-item.spec.tsx
|
|
8566
|
+
import { jsx as jsx163 } from "react/jsx-runtime";
|
|
8567
|
+
var TOOLBARITEM_CLASSNAME = `k-toolbar-item`;
|
|
8568
|
+
var states56 = [
|
|
8569
|
+
States.focus
|
|
8570
|
+
];
|
|
8571
|
+
var options51 = {};
|
|
8572
|
+
var defaultProps52 = {};
|
|
8573
|
+
var ToolbarItem = (props) => {
|
|
8574
|
+
const {
|
|
8575
|
+
focus,
|
|
8576
|
+
...other
|
|
8577
|
+
} = props;
|
|
8578
|
+
return /* @__PURE__ */ jsx163(
|
|
8579
|
+
"div",
|
|
8580
|
+
{
|
|
8581
|
+
...other,
|
|
8582
|
+
className: classNames(
|
|
8583
|
+
props.className,
|
|
8584
|
+
TOOLBARITEM_CLASSNAME,
|
|
8585
|
+
stateClassNames(TOOLBARITEM_CLASSNAME, {
|
|
8586
|
+
focus
|
|
8587
|
+
})
|
|
8588
|
+
),
|
|
8589
|
+
children: props.children
|
|
8590
|
+
}
|
|
8591
|
+
);
|
|
8592
|
+
};
|
|
8593
|
+
ToolbarItem.states = states56;
|
|
8594
|
+
ToolbarItem.options = options51;
|
|
8595
|
+
ToolbarItem.className = TOOLBARITEM_CLASSNAME;
|
|
8596
|
+
ToolbarItem.defaultProps = defaultProps52;
|
|
8597
|
+
|
|
8598
|
+
// src/toolbar/toolbar-popup.spec.tsx
|
|
8599
|
+
import { jsx as jsx164 } from "react/jsx-runtime";
|
|
8600
|
+
var TOOLBARPOPUP_CLASSNAME = `k-toolbar-popup`;
|
|
8601
|
+
var states57 = [];
|
|
8602
|
+
var options52 = {};
|
|
8603
|
+
var defaultProps53 = {};
|
|
8604
|
+
var ToolbarPopup = (props) => {
|
|
8605
|
+
const { ...other } = props;
|
|
8606
|
+
return /* @__PURE__ */ jsx164(
|
|
8607
|
+
Popup,
|
|
8608
|
+
{
|
|
8609
|
+
...other,
|
|
8610
|
+
className: classNames(
|
|
8611
|
+
props.className,
|
|
8612
|
+
TOOLBARPOPUP_CLASSNAME
|
|
8613
|
+
),
|
|
8614
|
+
children: props.children
|
|
8615
|
+
}
|
|
8616
|
+
);
|
|
8617
|
+
};
|
|
8618
|
+
ToolbarPopup.states = states57;
|
|
8619
|
+
ToolbarPopup.options = options52;
|
|
8620
|
+
ToolbarPopup.className = TOOLBARPOPUP_CLASSNAME;
|
|
8621
|
+
ToolbarPopup.defaultProps = defaultProps53;
|
|
8622
|
+
|
|
8623
|
+
// src/split-button/templates/icon-split-button.tsx
|
|
8624
|
+
import { jsx as jsx165 } from "react/jsx-runtime";
|
|
8625
|
+
|
|
8626
|
+
// src/split-button/templates/icon-text-split-button.tsx
|
|
8627
|
+
import { jsx as jsx166 } from "react/jsx-runtime";
|
|
8628
|
+
|
|
8629
|
+
// src/split-button/templates/text-split-button.tsx
|
|
8630
|
+
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
8631
|
+
|
|
8632
|
+
// src/split-button/templates/split-button-popup.tsx
|
|
8633
|
+
import { jsx as jsx168, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
8634
|
+
|
|
8635
|
+
// src/toolbar/templates/toolbar-normal.tsx
|
|
8636
|
+
import { Fragment as Fragment41, jsx as jsx169, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
8637
|
+
|
|
8638
|
+
// src/toolbar/templates/toolbar-resizable.tsx
|
|
8639
|
+
import { jsx as jsx170 } from "react/jsx-runtime";
|
|
8640
|
+
|
|
8641
|
+
// src/toolbar/templates/toolbar-angular-normal.tsx
|
|
8642
|
+
import { jsx as jsx171 } from "react/jsx-runtime";
|
|
8643
|
+
|
|
8644
|
+
// src/toolbar/templates/toolbar-angular-resizable.tsx
|
|
8645
|
+
import { jsx as jsx172 } from "react/jsx-runtime";
|
|
8646
|
+
|
|
8647
|
+
// src/grid/grid-toolbar.spec.tsx
|
|
8648
|
+
import { jsx as jsx173 } from "react/jsx-runtime";
|
|
8649
|
+
|
|
8650
|
+
// src/grid/tests/grid-selection-aggregates.tsx
|
|
8651
|
+
import { Fragment as Fragment42, jsx as jsx174, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
8652
|
+
var grid_selection_aggregates_default = () => /* @__PURE__ */ jsx174(Fragment42, { children: /* @__PURE__ */ jsxs61("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
|
|
8653
|
+
/* @__PURE__ */ jsx174("span", { className: "col-2", children: "Grid with selection aggregates container" }),
|
|
8654
|
+
/* @__PURE__ */ jsx174("section", { className: "col-2", children: /* @__PURE__ */ jsxs61(Grid, { className: "k-grid-no-scrollbar", pager: /* @__PURE__ */ jsx174(GridPager, {}), children: [
|
|
8655
|
+
/* @__PURE__ */ jsx174(GridHeader, { children: /* @__PURE__ */ jsx174("div", { className: "k-grid-header-wrap", children: /* @__PURE__ */ jsxs61(GridHeaderTable, { children: [
|
|
8656
|
+
/* @__PURE__ */ jsxs61("colgroup", { children: [
|
|
8657
|
+
/* @__PURE__ */ jsx174("col", { style: { width: "100px" } }),
|
|
8658
|
+
/* @__PURE__ */ jsx174("col", {})
|
|
8659
|
+
] }),
|
|
8660
|
+
/* @__PURE__ */ jsx174(TableThead, { children: /* @__PURE__ */ jsxs61(TableRow, { children: [
|
|
8661
|
+
/* @__PURE__ */ jsx174(GridHeaderCell, { columnTitle: "100px" }),
|
|
8662
|
+
/* @__PURE__ */ jsx174(GridHeaderCell, { columnTitle: "no width" })
|
|
8663
|
+
] }) })
|
|
8664
|
+
] }) }) }),
|
|
8665
|
+
/* @__PURE__ */ jsx174(GridContainer, { children: /* @__PURE__ */ jsx174(GridContent, { children: /* @__PURE__ */ jsxs61(GridTable, { children: [
|
|
8666
|
+
/* @__PURE__ */ jsxs61("colgroup", { children: [
|
|
8667
|
+
/* @__PURE__ */ jsx174("col", { style: { width: "100px" } }),
|
|
8668
|
+
/* @__PURE__ */ jsx174("col", {})
|
|
8669
|
+
] }),
|
|
8670
|
+
/* @__PURE__ */ jsxs61(TableTbody, { children: [
|
|
8671
|
+
/* @__PURE__ */ jsxs61(TableRow, { children: [
|
|
8672
|
+
/* @__PURE__ */ jsx174(TableTd, { children: "1" }),
|
|
8673
|
+
/* @__PURE__ */ jsx174(TableTd, { children: "Row" })
|
|
8674
|
+
] }),
|
|
8675
|
+
/* @__PURE__ */ jsxs61(TableRow, { className: "k-alt", alt: true, children: [
|
|
8676
|
+
/* @__PURE__ */ jsx174(TableTd, { className: "k-selected", children: "2" }),
|
|
8677
|
+
/* @__PURE__ */ jsx174(TableTd, { className: "k-selected", children: "Alt row" })
|
|
8678
|
+
] }),
|
|
8679
|
+
/* @__PURE__ */ jsxs61(TableRow, { children: [
|
|
8680
|
+
/* @__PURE__ */ jsx174(TableTd, { className: "k-selected", children: "3" }),
|
|
8681
|
+
/* @__PURE__ */ jsx174(TableTd, { children: "This text continues to the end of the grid to test overflow behavior of row contents, as well as line height and vertical alignment." })
|
|
8682
|
+
] }),
|
|
8683
|
+
/* @__PURE__ */ jsxs61(TableRow, { className: "k-alt", alt: true, children: [
|
|
8684
|
+
/* @__PURE__ */ jsx174(TableTd, { className: "k-selected", children: "4" }),
|
|
8685
|
+
/* @__PURE__ */ jsx174(TableTd, { children: /* @__PURE__ */ jsx174(SkeletonNormal, { animation: false }) })
|
|
8686
|
+
] }),
|
|
8687
|
+
/* @__PURE__ */ jsxs61(TableRow, { children: [
|
|
8688
|
+
/* @__PURE__ */ jsx174(TableTd, { children: "5" }),
|
|
8689
|
+
/* @__PURE__ */ jsx174(TableTd, { children: /* @__PURE__ */ jsx174(SkeletonNormal, { animation: false }) })
|
|
8690
|
+
] })
|
|
8691
|
+
] })
|
|
8692
|
+
] }) }) }),
|
|
8693
|
+
/* @__PURE__ */ jsxs61("div", { className: "k-selection-aggregates k-grid-selection-aggregates", children: [
|
|
8694
|
+
/* @__PURE__ */ jsxs61("div", { className: "k-selection-aggregates-item", children: [
|
|
8695
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-text", children: "Sum: " }),
|
|
8696
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-value", children: "9.00" })
|
|
8697
|
+
] }),
|
|
8698
|
+
/* @__PURE__ */ jsxs61("div", { className: "k-selection-aggregates-item", children: [
|
|
8699
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-text", children: "Avg: " }),
|
|
8700
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-value", children: "3.00" })
|
|
8701
|
+
] }),
|
|
8702
|
+
/* @__PURE__ */ jsxs61("div", { className: "k-selection-aggregates-item", children: [
|
|
8703
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-text", children: "Min: " }),
|
|
8704
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-value", children: "2.00" })
|
|
8705
|
+
] }),
|
|
8706
|
+
/* @__PURE__ */ jsxs61("div", { className: "k-selection-aggregates-item", children: [
|
|
8707
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-text", children: "Max: " }),
|
|
8708
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-value", children: "4.00" })
|
|
8709
|
+
] }),
|
|
8710
|
+
/* @__PURE__ */ jsxs61("div", { className: "k-selection-aggregates-item", children: [
|
|
8711
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-text", children: "Count: " }),
|
|
8712
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-value", children: "4" })
|
|
8713
|
+
] })
|
|
8714
|
+
] })
|
|
8715
|
+
] }) }),
|
|
8716
|
+
/* @__PURE__ */ jsx174("span", { className: "col-2", children: "Grid with selection aggregates container (RTL)" }),
|
|
8717
|
+
/* @__PURE__ */ jsx174("section", { className: "col-2 k-rtl", children: /* @__PURE__ */ jsxs61(Grid, { className: "k-grid-no-scrollbar", pager: /* @__PURE__ */ jsx174(GridPager, { dir: "rtl" }), children: [
|
|
8718
|
+
/* @__PURE__ */ jsx174(GridHeader, { children: /* @__PURE__ */ jsx174("div", { className: "k-grid-header-wrap", children: /* @__PURE__ */ jsxs61(GridHeaderTable, { children: [
|
|
8719
|
+
/* @__PURE__ */ jsxs61("colgroup", { children: [
|
|
8720
|
+
/* @__PURE__ */ jsx174("col", { style: { width: "100px" } }),
|
|
8721
|
+
/* @__PURE__ */ jsx174("col", {})
|
|
8722
|
+
] }),
|
|
8723
|
+
/* @__PURE__ */ jsx174(TableThead, { children: /* @__PURE__ */ jsxs61(TableRow, { children: [
|
|
8724
|
+
/* @__PURE__ */ jsx174(GridHeaderCell, { columnTitle: "100px" }),
|
|
8725
|
+
/* @__PURE__ */ jsx174(GridHeaderCell, { columnTitle: "no width" })
|
|
8726
|
+
] }) })
|
|
8727
|
+
] }) }) }),
|
|
8728
|
+
/* @__PURE__ */ jsx174(GridContainer, { children: /* @__PURE__ */ jsx174(GridContent, { children: /* @__PURE__ */ jsxs61(GridTable, { children: [
|
|
8729
|
+
/* @__PURE__ */ jsxs61("colgroup", { children: [
|
|
8730
|
+
/* @__PURE__ */ jsx174("col", { style: { width: "100px" } }),
|
|
8731
|
+
/* @__PURE__ */ jsx174("col", {})
|
|
8732
|
+
] }),
|
|
8733
|
+
/* @__PURE__ */ jsxs61(TableTbody, { children: [
|
|
8734
|
+
/* @__PURE__ */ jsxs61(TableRow, { children: [
|
|
8735
|
+
/* @__PURE__ */ jsx174(TableTd, { children: "1" }),
|
|
8736
|
+
/* @__PURE__ */ jsx174(TableTd, { children: "Row" })
|
|
8737
|
+
] }),
|
|
8738
|
+
/* @__PURE__ */ jsxs61(TableRow, { className: "k-alt", alt: true, children: [
|
|
8739
|
+
/* @__PURE__ */ jsx174(TableTd, { className: "k-selected", children: "2" }),
|
|
8740
|
+
/* @__PURE__ */ jsx174(TableTd, { className: "k-selected", children: "Alt row" })
|
|
8741
|
+
] }),
|
|
8742
|
+
/* @__PURE__ */ jsxs61(TableRow, { children: [
|
|
8743
|
+
/* @__PURE__ */ jsx174(TableTd, { className: "k-selected", children: "3" }),
|
|
8744
|
+
/* @__PURE__ */ jsx174(TableTd, { children: "This text continues to the end of the grid to test overflow behavior of row contents, as well as line height and vertical alignment." })
|
|
8745
|
+
] }),
|
|
8746
|
+
/* @__PURE__ */ jsxs61(TableRow, { className: "k-alt", alt: true, children: [
|
|
8747
|
+
/* @__PURE__ */ jsx174(TableTd, { className: "k-selected", children: "4" }),
|
|
8748
|
+
/* @__PURE__ */ jsx174(TableTd, { children: /* @__PURE__ */ jsx174(SkeletonNormal, { animation: false }) })
|
|
8749
|
+
] }),
|
|
8750
|
+
/* @__PURE__ */ jsxs61(TableRow, { children: [
|
|
8751
|
+
/* @__PURE__ */ jsx174(TableTd, { children: "5" }),
|
|
8752
|
+
/* @__PURE__ */ jsx174(TableTd, { children: /* @__PURE__ */ jsx174(SkeletonNormal, { animation: false }) })
|
|
8753
|
+
] })
|
|
8754
|
+
] })
|
|
8755
|
+
] }) }) }),
|
|
8756
|
+
/* @__PURE__ */ jsxs61("div", { className: "k-selection-aggregates k-grid-selection-aggregates", children: [
|
|
8757
|
+
/* @__PURE__ */ jsxs61("div", { className: "k-selection-aggregates-item", children: [
|
|
8758
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-text", children: "Sum: " }),
|
|
8759
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-value", children: "9.00" })
|
|
8760
|
+
] }),
|
|
8761
|
+
/* @__PURE__ */ jsxs61("div", { className: "k-selection-aggregates-item", children: [
|
|
8762
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-text", children: "Avg: " }),
|
|
8763
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-value", children: "3.00" })
|
|
8764
|
+
] }),
|
|
8765
|
+
/* @__PURE__ */ jsxs61("div", { className: "k-selection-aggregates-item", children: [
|
|
8766
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-text", children: "Min: " }),
|
|
8767
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-value", children: "2.00" })
|
|
8768
|
+
] }),
|
|
8769
|
+
/* @__PURE__ */ jsxs61("div", { className: "k-selection-aggregates-item", children: [
|
|
8770
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-text", children: "Max: " }),
|
|
8771
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-value", children: "4.00" })
|
|
8772
|
+
] }),
|
|
8773
|
+
/* @__PURE__ */ jsxs61("div", { className: "k-selection-aggregates-item", children: [
|
|
8774
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-text", children: "Count: " }),
|
|
8775
|
+
/* @__PURE__ */ jsx174("span", { className: "k-selection-aggregates-item-value", children: "4" })
|
|
8776
|
+
] })
|
|
8777
|
+
] })
|
|
6202
8778
|
] }) })
|
|
6203
8779
|
] }) });
|
|
6204
8780
|
export {
|