@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,243 @@ var States = {
|
|
|
111
111
|
"readonly": "readonly"
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
// src/
|
|
115
|
-
import {
|
|
116
|
-
var
|
|
114
|
+
// src/grid/grid.spec.tsx
|
|
115
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
116
|
+
var GRID_CLASSNAME = "k-grid";
|
|
117
117
|
var states = [];
|
|
118
118
|
var options = {
|
|
119
|
+
size: [Size.small, Size.medium, Size.large]
|
|
120
|
+
};
|
|
121
|
+
var defaultProps = {
|
|
122
|
+
size: Size.medium,
|
|
123
|
+
pagerPosition: "bottom"
|
|
124
|
+
};
|
|
125
|
+
var Grid = (props) => {
|
|
126
|
+
const {
|
|
127
|
+
size = defaultProps.size,
|
|
128
|
+
toolbar,
|
|
129
|
+
pager,
|
|
130
|
+
pagerPosition,
|
|
131
|
+
groupingHeader,
|
|
132
|
+
_renderAriaRoot,
|
|
133
|
+
...other
|
|
134
|
+
} = props;
|
|
135
|
+
return /* @__PURE__ */ jsxs(
|
|
136
|
+
"div",
|
|
137
|
+
{
|
|
138
|
+
...other,
|
|
139
|
+
className: classNames(
|
|
140
|
+
props.className,
|
|
141
|
+
GRID_CLASSNAME,
|
|
142
|
+
optionClassNames(GRID_CLASSNAME, { size })
|
|
143
|
+
),
|
|
144
|
+
children: [
|
|
145
|
+
toolbar,
|
|
146
|
+
pagerPosition === "top" && pager,
|
|
147
|
+
groupingHeader,
|
|
148
|
+
props.children && _renderAriaRoot ? /* @__PURE__ */ jsx("div", { className: "k-grid-aria-root", children: props.children }) : props.children,
|
|
149
|
+
pagerPosition === "bottom" && pager
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
};
|
|
154
|
+
Grid.states = states;
|
|
155
|
+
Grid.options = options;
|
|
156
|
+
Grid.className = GRID_CLASSNAME;
|
|
157
|
+
Grid.defaultProps = defaultProps;
|
|
158
|
+
|
|
159
|
+
// src/grid/grid-header.spec.tsx
|
|
160
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
161
|
+
|
|
162
|
+
// src/grid/grid-grouping-header.spec.tsx
|
|
163
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
164
|
+
|
|
165
|
+
// src/table/data-table.spec.tsx
|
|
166
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
167
|
+
var DATATABLE_CLASSNAME = `k-data-table`;
|
|
168
|
+
var states2 = [];
|
|
169
|
+
var options2 = {
|
|
170
|
+
size: [Size.small, Size.medium, Size.large]
|
|
171
|
+
};
|
|
172
|
+
var defaultProps2 = {
|
|
173
|
+
size: Size.medium
|
|
174
|
+
};
|
|
175
|
+
var DataTable = (props) => {
|
|
176
|
+
const {
|
|
177
|
+
size = defaultProps2.size,
|
|
178
|
+
...other
|
|
179
|
+
} = props;
|
|
180
|
+
return /* @__PURE__ */ jsx4(
|
|
181
|
+
"div",
|
|
182
|
+
{
|
|
183
|
+
...other,
|
|
184
|
+
className: classNames(
|
|
185
|
+
props.className,
|
|
186
|
+
DATATABLE_CLASSNAME,
|
|
187
|
+
optionClassNames("k-table", {
|
|
188
|
+
size
|
|
189
|
+
})
|
|
190
|
+
),
|
|
191
|
+
children: props.children
|
|
192
|
+
}
|
|
193
|
+
);
|
|
194
|
+
};
|
|
195
|
+
DataTable.states = states2;
|
|
196
|
+
DataTable.options = options2;
|
|
197
|
+
DataTable.className = DATATABLE_CLASSNAME;
|
|
198
|
+
DataTable.defaultProps = defaultProps2;
|
|
199
|
+
|
|
200
|
+
// src/table/table-header.tsx
|
|
201
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
202
|
+
|
|
203
|
+
// src/table/table-body.tsx
|
|
204
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
205
|
+
|
|
206
|
+
// src/table/table-footer.tsx
|
|
207
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
208
|
+
|
|
209
|
+
// src/table/table.spec.tsx
|
|
210
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
211
|
+
var TABLE_CLASSNAME = `k-table`;
|
|
212
|
+
var states3 = [];
|
|
213
|
+
var options3 = {
|
|
214
|
+
size: [Size.small, Size.medium, Size.large]
|
|
215
|
+
};
|
|
216
|
+
var defaultProps3 = {};
|
|
217
|
+
var Table = (props) => {
|
|
218
|
+
const {
|
|
219
|
+
size,
|
|
220
|
+
...other
|
|
221
|
+
} = props;
|
|
222
|
+
return /* @__PURE__ */ jsx8(
|
|
223
|
+
"table",
|
|
224
|
+
{
|
|
225
|
+
...other,
|
|
226
|
+
className: classNames(
|
|
227
|
+
props.className,
|
|
228
|
+
TABLE_CLASSNAME,
|
|
229
|
+
optionClassNames(TABLE_CLASSNAME, {
|
|
230
|
+
size
|
|
231
|
+
})
|
|
232
|
+
),
|
|
233
|
+
children: props.children
|
|
234
|
+
}
|
|
235
|
+
);
|
|
236
|
+
};
|
|
237
|
+
Table.states = states3;
|
|
238
|
+
Table.options = options3;
|
|
239
|
+
Table.className = TABLE_CLASSNAME;
|
|
240
|
+
Table.defaultProps = defaultProps3;
|
|
241
|
+
|
|
242
|
+
// src/table/table-list.spec.tsx
|
|
243
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
244
|
+
var TABLELIST_CLASSNAME = `k-table-list`;
|
|
245
|
+
var states4 = [];
|
|
246
|
+
var options4 = {
|
|
247
|
+
size: [Size.small, Size.medium, Size.large]
|
|
248
|
+
};
|
|
249
|
+
var defaultProps4 = {};
|
|
250
|
+
var TableList = (props) => {
|
|
251
|
+
const {
|
|
252
|
+
size,
|
|
253
|
+
virtualization,
|
|
254
|
+
...other
|
|
255
|
+
} = props;
|
|
256
|
+
return /* @__PURE__ */ jsx9(
|
|
257
|
+
"ul",
|
|
258
|
+
{
|
|
259
|
+
...other,
|
|
260
|
+
className: classNames(
|
|
261
|
+
props.className,
|
|
262
|
+
"k-table",
|
|
263
|
+
TABLELIST_CLASSNAME,
|
|
264
|
+
optionClassNames(TABLELIST_CLASSNAME, {
|
|
265
|
+
size
|
|
266
|
+
}),
|
|
267
|
+
{
|
|
268
|
+
"k-virtual-table": virtualization
|
|
269
|
+
}
|
|
270
|
+
),
|
|
271
|
+
children: props.children
|
|
272
|
+
}
|
|
273
|
+
);
|
|
274
|
+
};
|
|
275
|
+
TableList.states = states4;
|
|
276
|
+
TableList.options = options4;
|
|
277
|
+
TableList.className = TABLELIST_CLASSNAME;
|
|
278
|
+
TableList.defaultProps = defaultProps4;
|
|
279
|
+
|
|
280
|
+
// src/table/table-thead.tsx
|
|
281
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
282
|
+
|
|
283
|
+
// src/table/table-tbody.tsx
|
|
284
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
285
|
+
|
|
286
|
+
// src/table/table-tfoot.tsx
|
|
287
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
288
|
+
|
|
289
|
+
// src/table/table-row.tsx
|
|
290
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
291
|
+
var states5 = [
|
|
292
|
+
States.hover,
|
|
293
|
+
States.focus,
|
|
294
|
+
States.selected,
|
|
295
|
+
States.disabled
|
|
296
|
+
];
|
|
297
|
+
|
|
298
|
+
// src/table/table-list-row.tsx
|
|
299
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
300
|
+
var states6 = [
|
|
301
|
+
States.hover,
|
|
302
|
+
States.focus,
|
|
303
|
+
States.selected,
|
|
304
|
+
States.disabled
|
|
305
|
+
];
|
|
306
|
+
|
|
307
|
+
// src/table/table-th.tsx
|
|
308
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
309
|
+
|
|
310
|
+
// src/table/table-list-th.tsx
|
|
311
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
312
|
+
|
|
313
|
+
// src/table/table-td.tsx
|
|
314
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
315
|
+
|
|
316
|
+
// src/table/table-list-td.tsx
|
|
317
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
318
|
+
|
|
319
|
+
// src/table/table-group-header.tsx
|
|
320
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
321
|
+
|
|
322
|
+
// src/table/table-group-sticky-header.tsx
|
|
323
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
324
|
+
|
|
325
|
+
// src/table/table-group-row.tsx
|
|
326
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
327
|
+
|
|
328
|
+
// src/table/table-list-group-row.tsx
|
|
329
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
330
|
+
|
|
331
|
+
// src/table/templates/table-list.tsx
|
|
332
|
+
import { jsx as jsx23, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
333
|
+
|
|
334
|
+
// src/table/templates/table-list-virtualization.tsx
|
|
335
|
+
import { jsx as jsx24, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
336
|
+
|
|
337
|
+
// src/table/templates/data-table-normal.tsx
|
|
338
|
+
import { jsx as jsx25, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
339
|
+
|
|
340
|
+
// src/table/templates/table-native.tsx
|
|
341
|
+
import { jsx as jsx26, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
342
|
+
|
|
343
|
+
// src/grid/grid-header-table.spec.tsx
|
|
344
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
345
|
+
|
|
346
|
+
// src/icon/font-icon.spec.tsx
|
|
347
|
+
import { Fragment, jsx as jsx28 } from "react/jsx-runtime";
|
|
348
|
+
var FONTICON_CLASSNAME = `k-icon k-font-icon`;
|
|
349
|
+
var states7 = [];
|
|
350
|
+
var options5 = {
|
|
119
351
|
size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
|
|
120
352
|
themeColor: [
|
|
121
353
|
ThemeColor.base,
|
|
@@ -130,7 +362,7 @@ var options = {
|
|
|
130
362
|
ThemeColor.dark
|
|
131
363
|
]
|
|
132
364
|
};
|
|
133
|
-
var
|
|
365
|
+
var defaultProps5 = {};
|
|
134
366
|
var FontIcon = (props) => {
|
|
135
367
|
const {
|
|
136
368
|
size,
|
|
@@ -141,9 +373,9 @@ var FontIcon = (props) => {
|
|
|
141
373
|
...other
|
|
142
374
|
} = props;
|
|
143
375
|
if (!icon) {
|
|
144
|
-
return /* @__PURE__ */
|
|
376
|
+
return /* @__PURE__ */ jsx28(Fragment, {});
|
|
145
377
|
}
|
|
146
|
-
return /* @__PURE__ */
|
|
378
|
+
return /* @__PURE__ */ jsx28(
|
|
147
379
|
"span",
|
|
148
380
|
{
|
|
149
381
|
...other,
|
|
@@ -164,17 +396,17 @@ var FontIcon = (props) => {
|
|
|
164
396
|
}
|
|
165
397
|
);
|
|
166
398
|
};
|
|
167
|
-
FontIcon.states =
|
|
168
|
-
FontIcon.options =
|
|
399
|
+
FontIcon.states = states7;
|
|
400
|
+
FontIcon.options = options5;
|
|
169
401
|
FontIcon.className = FONTICON_CLASSNAME;
|
|
170
|
-
FontIcon.defaultProps =
|
|
402
|
+
FontIcon.defaultProps = defaultProps5;
|
|
171
403
|
var font_icon_spec_default = FontIcon;
|
|
172
404
|
|
|
173
405
|
// src/icon/svg-icon.spec.tsx
|
|
174
|
-
import { Fragment as Fragment2, jsx as
|
|
406
|
+
import { Fragment as Fragment2, jsx as jsx29 } from "react/jsx-runtime";
|
|
175
407
|
var SVGICON_CLASSNAME = `k-icon k-svg-icon`;
|
|
176
|
-
var
|
|
177
|
-
var
|
|
408
|
+
var states8 = [];
|
|
409
|
+
var options6 = {
|
|
178
410
|
size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
|
|
179
411
|
themeColor: [
|
|
180
412
|
ThemeColor.base,
|
|
@@ -189,7 +421,7 @@ var options2 = {
|
|
|
189
421
|
ThemeColor.dark
|
|
190
422
|
]
|
|
191
423
|
};
|
|
192
|
-
var
|
|
424
|
+
var defaultProps6 = {
|
|
193
425
|
viewBox: "0 0 24 24"
|
|
194
426
|
};
|
|
195
427
|
var SvgIcon = (props) => {
|
|
@@ -198,15 +430,15 @@ var SvgIcon = (props) => {
|
|
|
198
430
|
themeColor,
|
|
199
431
|
rotate,
|
|
200
432
|
flip,
|
|
201
|
-
viewBox =
|
|
433
|
+
viewBox = defaultProps6.viewBox,
|
|
202
434
|
icon,
|
|
203
435
|
...other
|
|
204
436
|
} = props;
|
|
205
437
|
if (!icon) {
|
|
206
|
-
return /* @__PURE__ */
|
|
438
|
+
return /* @__PURE__ */ jsx29(Fragment2, {});
|
|
207
439
|
}
|
|
208
440
|
if (icon === "none") {
|
|
209
|
-
/* @__PURE__ */
|
|
441
|
+
/* @__PURE__ */ jsx29(
|
|
210
442
|
"span",
|
|
211
443
|
{
|
|
212
444
|
...other,
|
|
@@ -219,7 +451,7 @@ var SvgIcon = (props) => {
|
|
|
219
451
|
);
|
|
220
452
|
}
|
|
221
453
|
const name = typeof icon === "object" && icon.name && icon.name;
|
|
222
|
-
return /* @__PURE__ */
|
|
454
|
+
return /* @__PURE__ */ jsx29(
|
|
223
455
|
"span",
|
|
224
456
|
{
|
|
225
457
|
...other,
|
|
@@ -237,7 +469,7 @@ var SvgIcon = (props) => {
|
|
|
237
469
|
"k-flip-v": flip === "v" || flip === "both"
|
|
238
470
|
}
|
|
239
471
|
),
|
|
240
|
-
children: /* @__PURE__ */
|
|
472
|
+
children: /* @__PURE__ */ jsx29(
|
|
241
473
|
"svg",
|
|
242
474
|
{
|
|
243
475
|
"aria-hidden": true,
|
|
@@ -251,10 +483,10 @@ var SvgIcon = (props) => {
|
|
|
251
483
|
}
|
|
252
484
|
);
|
|
253
485
|
};
|
|
254
|
-
SvgIcon.states =
|
|
255
|
-
SvgIcon.options =
|
|
486
|
+
SvgIcon.states = states8;
|
|
487
|
+
SvgIcon.options = options6;
|
|
256
488
|
SvgIcon.className = SVGICON_CLASSNAME;
|
|
257
|
-
SvgIcon.defaultProps =
|
|
489
|
+
SvgIcon.defaultProps = defaultProps6;
|
|
258
490
|
var svg_icon_spec_default = SvgIcon;
|
|
259
491
|
|
|
260
492
|
// ../../node_modules/@progress/kendo-svg-icons/dist/index.es.js
|
|
@@ -4289,13 +4521,13 @@ var chartChoroplethIcon = {
|
|
|
4289
4521
|
};
|
|
4290
4522
|
|
|
4291
4523
|
// src/icon/icon.spec.tsx
|
|
4292
|
-
import { Fragment as Fragment3, jsx as
|
|
4524
|
+
import { Fragment as Fragment3, jsx as jsx30 } from "react/jsx-runtime";
|
|
4293
4525
|
var snakeToCamel = (str) => str.toLowerCase().replace(
|
|
4294
4526
|
/([-_][a-z])/g,
|
|
4295
4527
|
(group) => group.toUpperCase().replace("-", "").replace("_", "")
|
|
4296
4528
|
);
|
|
4297
|
-
var
|
|
4298
|
-
var
|
|
4529
|
+
var states9 = [];
|
|
4530
|
+
var options7 = {
|
|
4299
4531
|
size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
|
|
4300
4532
|
themeColor: [
|
|
4301
4533
|
ThemeColor.base,
|
|
@@ -4310,7 +4542,7 @@ var options3 = {
|
|
|
4310
4542
|
ThemeColor.dark
|
|
4311
4543
|
]
|
|
4312
4544
|
};
|
|
4313
|
-
var
|
|
4545
|
+
var defaultProps7 = {
|
|
4314
4546
|
viewBox: "0 0 24 24",
|
|
4315
4547
|
type: "svg"
|
|
4316
4548
|
};
|
|
@@ -4319,42 +4551,65 @@ var Icon = (props) => {
|
|
|
4319
4551
|
size,
|
|
4320
4552
|
themeColor,
|
|
4321
4553
|
icon,
|
|
4322
|
-
type =
|
|
4554
|
+
type = defaultProps7.type,
|
|
4323
4555
|
rotate,
|
|
4324
4556
|
flip,
|
|
4325
|
-
viewBox =
|
|
4557
|
+
viewBox = defaultProps7.viewBox,
|
|
4326
4558
|
...other
|
|
4327
4559
|
} = props;
|
|
4328
4560
|
if (!icon) {
|
|
4329
|
-
return /* @__PURE__ */
|
|
4561
|
+
return /* @__PURE__ */ jsx30(Fragment3, {});
|
|
4330
4562
|
}
|
|
4331
4563
|
if (type === "svg") {
|
|
4332
4564
|
if (icon === "none") {
|
|
4333
|
-
return /* @__PURE__ */
|
|
4565
|
+
return /* @__PURE__ */ jsx30(svg_icon_spec_default, { ...other, icon, size });
|
|
4334
4566
|
}
|
|
4335
4567
|
const iconSVG = snakeToCamel(`${icon}-icon`);
|
|
4336
4568
|
if (!index_es_exports[iconSVG]) {
|
|
4337
|
-
return /* @__PURE__ */
|
|
4569
|
+
return /* @__PURE__ */ jsx30(Fragment3, {});
|
|
4338
4570
|
}
|
|
4339
|
-
return /* @__PURE__ */
|
|
4571
|
+
return /* @__PURE__ */ jsx30(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
|
|
4340
4572
|
}
|
|
4341
|
-
return /* @__PURE__ */
|
|
4573
|
+
return /* @__PURE__ */ jsx30(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
|
|
4342
4574
|
};
|
|
4343
|
-
Icon.states =
|
|
4344
|
-
Icon.options =
|
|
4345
|
-
Icon.defaultProps =
|
|
4575
|
+
Icon.states = states9;
|
|
4576
|
+
Icon.options = options7;
|
|
4577
|
+
Icon.defaultProps = defaultProps7;
|
|
4578
|
+
|
|
4579
|
+
// src/grid/grid-header-cell.spec.tsx
|
|
4580
|
+
import { jsx as jsx31, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
4581
|
+
var states10 = [
|
|
4582
|
+
States.hover,
|
|
4583
|
+
States.focus,
|
|
4584
|
+
States.active
|
|
4585
|
+
];
|
|
4586
|
+
|
|
4587
|
+
// src/grid/grid-container.spec.tsx
|
|
4588
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
4589
|
+
|
|
4590
|
+
// src/grid/grid-content.spec.tsx
|
|
4591
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
4592
|
+
|
|
4593
|
+
// src/grid/grid-table.spec.tsx
|
|
4594
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
4595
|
+
|
|
4596
|
+
// src/grid/grid-footer.spec.tsx
|
|
4597
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
4598
|
+
|
|
4599
|
+
// src/grid/grid-footer-table.spec.tsx
|
|
4600
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
4346
4601
|
|
|
4347
4602
|
// src/button/button.spec.tsx
|
|
4348
|
-
import { Fragment as Fragment4, jsx as
|
|
4603
|
+
import { Fragment as Fragment4, jsx as jsx37, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
4349
4604
|
var BUTTON_CLASSNAME = `k-button`;
|
|
4350
|
-
var
|
|
4605
|
+
var states11 = [
|
|
4351
4606
|
States.hover,
|
|
4352
4607
|
States.focus,
|
|
4353
4608
|
States.active,
|
|
4354
4609
|
States.selected,
|
|
4355
4610
|
States.disabled
|
|
4356
4611
|
];
|
|
4357
|
-
var
|
|
4612
|
+
var options8 = {
|
|
4358
4613
|
size: [Size.small, Size.medium, Size.large],
|
|
4359
4614
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
4360
4615
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
|
|
@@ -4372,7 +4627,7 @@ var options4 = {
|
|
|
4372
4627
|
ThemeColor.inverse
|
|
4373
4628
|
]
|
|
4374
4629
|
};
|
|
4375
|
-
var
|
|
4630
|
+
var defaultProps8 = {
|
|
4376
4631
|
size: Size.medium,
|
|
4377
4632
|
rounded: Roundness.medium,
|
|
4378
4633
|
fillMode: FillMode.solid,
|
|
@@ -4382,10 +4637,10 @@ var defaultProps4 = {
|
|
|
4382
4637
|
};
|
|
4383
4638
|
var Button = (props) => {
|
|
4384
4639
|
const {
|
|
4385
|
-
size =
|
|
4386
|
-
rounded =
|
|
4387
|
-
fillMode =
|
|
4388
|
-
themeColor =
|
|
4640
|
+
size = defaultProps8.size,
|
|
4641
|
+
rounded = defaultProps8.rounded,
|
|
4642
|
+
fillMode = defaultProps8.fillMode,
|
|
4643
|
+
themeColor = defaultProps8.themeColor,
|
|
4389
4644
|
hover,
|
|
4390
4645
|
focus,
|
|
4391
4646
|
active,
|
|
@@ -4394,13 +4649,13 @@ var Button = (props) => {
|
|
|
4394
4649
|
icon,
|
|
4395
4650
|
text,
|
|
4396
4651
|
iconClassName,
|
|
4397
|
-
showArrow =
|
|
4398
|
-
arrowIconName =
|
|
4652
|
+
showArrow = defaultProps8.showArrow,
|
|
4653
|
+
arrowIconName = defaultProps8.arrowIconName,
|
|
4399
4654
|
...other
|
|
4400
4655
|
} = props;
|
|
4401
4656
|
const hasIcon = icon !== void 0;
|
|
4402
4657
|
const hasChildren = props.children !== void 0;
|
|
4403
|
-
return /* @__PURE__ */
|
|
4658
|
+
return /* @__PURE__ */ jsxs8(
|
|
4404
4659
|
"button",
|
|
4405
4660
|
{
|
|
4406
4661
|
...other,
|
|
@@ -4425,40 +4680,40 @@ var Button = (props) => {
|
|
|
4425
4680
|
}
|
|
4426
4681
|
),
|
|
4427
4682
|
children: [
|
|
4428
|
-
icon && /* @__PURE__ */
|
|
4683
|
+
icon && /* @__PURE__ */ jsx37(
|
|
4429
4684
|
Icon,
|
|
4430
4685
|
{
|
|
4431
4686
|
className: classNames(iconClassName, "k-button-icon"),
|
|
4432
4687
|
icon
|
|
4433
4688
|
}
|
|
4434
4689
|
),
|
|
4435
|
-
text ? /* @__PURE__ */
|
|
4436
|
-
text && /* @__PURE__ */
|
|
4690
|
+
text ? /* @__PURE__ */ jsxs8(Fragment4, { children: [
|
|
4691
|
+
text && /* @__PURE__ */ jsx37("span", { className: "k-button-text", children: text }),
|
|
4437
4692
|
props.children
|
|
4438
|
-
] }) : props.children && /* @__PURE__ */
|
|
4439
|
-
showArrow && /* @__PURE__ */
|
|
4693
|
+
] }) : props.children && /* @__PURE__ */ jsx37("span", { className: "k-button-text", children: props.children }),
|
|
4694
|
+
showArrow && /* @__PURE__ */ jsx37("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ jsx37(Icon, { icon: arrowIconName }) })
|
|
4440
4695
|
]
|
|
4441
4696
|
}
|
|
4442
4697
|
);
|
|
4443
4698
|
};
|
|
4444
|
-
Button.states =
|
|
4445
|
-
Button.options =
|
|
4699
|
+
Button.states = states11;
|
|
4700
|
+
Button.options = options8;
|
|
4446
4701
|
Button.className = BUTTON_CLASSNAME;
|
|
4447
|
-
Button.defaultProps =
|
|
4702
|
+
Button.defaultProps = defaultProps8;
|
|
4448
4703
|
|
|
4449
4704
|
// src/button/templates/icon-button.tsx
|
|
4450
|
-
import { jsx as
|
|
4705
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
4451
4706
|
|
|
4452
4707
|
// src/button/templates/icon-text-button.tsx
|
|
4453
|
-
import { jsx as
|
|
4708
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
4454
4709
|
|
|
4455
4710
|
// src/button/templates/text-button.tsx
|
|
4456
|
-
import { jsx as
|
|
4711
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
4457
4712
|
|
|
4458
4713
|
// src/input/input.spec.tsx
|
|
4459
|
-
import { jsx as
|
|
4714
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
4460
4715
|
var INPUT_CLASSNAME = `k-input`;
|
|
4461
|
-
var
|
|
4716
|
+
var states12 = [
|
|
4462
4717
|
States.hover,
|
|
4463
4718
|
States.focus,
|
|
4464
4719
|
States.valid,
|
|
@@ -4468,12 +4723,12 @@ var states5 = [
|
|
|
4468
4723
|
States.loading,
|
|
4469
4724
|
States.readonly
|
|
4470
4725
|
];
|
|
4471
|
-
var
|
|
4726
|
+
var options9 = {
|
|
4472
4727
|
size: [Size.small, Size.medium, Size.large],
|
|
4473
4728
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
4474
4729
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
4475
4730
|
};
|
|
4476
|
-
var
|
|
4731
|
+
var defaultProps9 = {
|
|
4477
4732
|
size: Size.medium,
|
|
4478
4733
|
rounded: Size.medium,
|
|
4479
4734
|
fillMode: FillMode.solid
|
|
@@ -4487,12 +4742,12 @@ var Input = (props) => {
|
|
|
4487
4742
|
valid,
|
|
4488
4743
|
loading,
|
|
4489
4744
|
readonly,
|
|
4490
|
-
size =
|
|
4491
|
-
rounded =
|
|
4492
|
-
fillMode =
|
|
4745
|
+
size = defaultProps9.size,
|
|
4746
|
+
rounded = defaultProps9.rounded,
|
|
4747
|
+
fillMode = defaultProps9.fillMode,
|
|
4493
4748
|
...other
|
|
4494
4749
|
} = props;
|
|
4495
|
-
return /* @__PURE__ */
|
|
4750
|
+
return /* @__PURE__ */ jsx41(
|
|
4496
4751
|
"span",
|
|
4497
4752
|
{
|
|
4498
4753
|
...other,
|
|
@@ -4505,13 +4760,13 @@ var Input = (props) => {
|
|
|
4505
4760
|
}
|
|
4506
4761
|
);
|
|
4507
4762
|
};
|
|
4508
|
-
Input.states =
|
|
4509
|
-
Input.options =
|
|
4763
|
+
Input.states = states12;
|
|
4764
|
+
Input.options = options9;
|
|
4510
4765
|
Input.className = INPUT_CLASSNAME;
|
|
4511
|
-
Input.defaultProps =
|
|
4766
|
+
Input.defaultProps = defaultProps9;
|
|
4512
4767
|
|
|
4513
4768
|
// src/input/picker.spec.tsx
|
|
4514
|
-
import { jsx as
|
|
4769
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
4515
4770
|
var PICKER_CLASSNAME = `k-picker`;
|
|
4516
4771
|
var pickerStates = [
|
|
4517
4772
|
States.hover,
|
|
@@ -4528,7 +4783,7 @@ var pickerOptions = {
|
|
|
4528
4783
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
4529
4784
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
4530
4785
|
};
|
|
4531
|
-
var
|
|
4786
|
+
var defaultProps10 = {
|
|
4532
4787
|
size: Size.medium,
|
|
4533
4788
|
rounded: Roundness.medium,
|
|
4534
4789
|
fillMode: FillMode.solid
|
|
@@ -4542,12 +4797,12 @@ var Picker = (props) => {
|
|
|
4542
4797
|
valid,
|
|
4543
4798
|
loading,
|
|
4544
4799
|
readonly,
|
|
4545
|
-
size =
|
|
4546
|
-
rounded =
|
|
4547
|
-
fillMode =
|
|
4800
|
+
size = defaultProps10.size,
|
|
4801
|
+
rounded = defaultProps10.rounded,
|
|
4802
|
+
fillMode = defaultProps10.fillMode,
|
|
4548
4803
|
...other
|
|
4549
4804
|
} = props;
|
|
4550
|
-
return /* @__PURE__ */
|
|
4805
|
+
return /* @__PURE__ */ jsx42(
|
|
4551
4806
|
"span",
|
|
4552
4807
|
{
|
|
4553
4808
|
...other,
|
|
@@ -4564,17 +4819,17 @@ var Picker = (props) => {
|
|
|
4564
4819
|
Picker.states = pickerStates;
|
|
4565
4820
|
Picker.options = pickerOptions;
|
|
4566
4821
|
Picker.className = PICKER_CLASSNAME;
|
|
4567
|
-
Picker.defaultProps =
|
|
4822
|
+
Picker.defaultProps = defaultProps10;
|
|
4568
4823
|
|
|
4569
4824
|
// src/input/input-clear-value.tsx
|
|
4570
|
-
import { Fragment as Fragment5, jsx as
|
|
4825
|
+
import { Fragment as Fragment5, jsx as jsx43 } from "react/jsx-runtime";
|
|
4571
4826
|
var className = `k-clear-value`;
|
|
4572
|
-
var
|
|
4827
|
+
var states13 = [
|
|
4573
4828
|
States.disabled,
|
|
4574
4829
|
States.loading,
|
|
4575
4830
|
States.readonly
|
|
4576
4831
|
];
|
|
4577
|
-
var
|
|
4832
|
+
var options10 = {};
|
|
4578
4833
|
var InputClearValue = (props) => {
|
|
4579
4834
|
const {
|
|
4580
4835
|
disabled,
|
|
@@ -4583,20 +4838,20 @@ var InputClearValue = (props) => {
|
|
|
4583
4838
|
value
|
|
4584
4839
|
} = props;
|
|
4585
4840
|
if (disabled || readonly || loading || !value) {
|
|
4586
|
-
return /* @__PURE__ */
|
|
4841
|
+
return /* @__PURE__ */ jsx43(Fragment5, {});
|
|
4587
4842
|
}
|
|
4588
|
-
return /* @__PURE__ */
|
|
4843
|
+
return /* @__PURE__ */ jsx43("span", { className: classNames(props.className, className), children: /* @__PURE__ */ jsx43(Icon, { icon: "x" }) });
|
|
4589
4844
|
};
|
|
4590
|
-
InputClearValue.states =
|
|
4591
|
-
InputClearValue.options =
|
|
4845
|
+
InputClearValue.states = states13;
|
|
4846
|
+
InputClearValue.options = options10;
|
|
4592
4847
|
InputClearValue.className = className;
|
|
4593
4848
|
|
|
4594
4849
|
// src/input/input-inner-input.tsx
|
|
4595
|
-
import { jsx as
|
|
4850
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
4596
4851
|
var className2 = `k-input-inner`;
|
|
4597
|
-
var
|
|
4598
|
-
var
|
|
4599
|
-
var
|
|
4852
|
+
var states14 = [];
|
|
4853
|
+
var options11 = {};
|
|
4854
|
+
var defaultProps11 = {
|
|
4600
4855
|
type: "text",
|
|
4601
4856
|
autocomplete: "off",
|
|
4602
4857
|
value: "",
|
|
@@ -4604,13 +4859,13 @@ var defaultProps7 = {
|
|
|
4604
4859
|
};
|
|
4605
4860
|
var InputInnerInput = (props) => {
|
|
4606
4861
|
const {
|
|
4607
|
-
value =
|
|
4608
|
-
type =
|
|
4609
|
-
placeholder =
|
|
4610
|
-
autocomplete =
|
|
4862
|
+
value = defaultProps11.value,
|
|
4863
|
+
type = defaultProps11.type,
|
|
4864
|
+
placeholder = defaultProps11.placeholder,
|
|
4865
|
+
autocomplete = defaultProps11.autocomplete,
|
|
4611
4866
|
...other
|
|
4612
4867
|
} = props;
|
|
4613
|
-
return /* @__PURE__ */
|
|
4868
|
+
return /* @__PURE__ */ jsx44(
|
|
4614
4869
|
"input",
|
|
4615
4870
|
{
|
|
4616
4871
|
...other,
|
|
@@ -4622,15 +4877,15 @@ var InputInnerInput = (props) => {
|
|
|
4622
4877
|
}
|
|
4623
4878
|
);
|
|
4624
4879
|
};
|
|
4625
|
-
InputInnerInput.states =
|
|
4626
|
-
InputInnerInput.options =
|
|
4880
|
+
InputInnerInput.states = states14;
|
|
4881
|
+
InputInnerInput.options = options11;
|
|
4627
4882
|
InputInnerInput.className = className2;
|
|
4628
4883
|
|
|
4629
4884
|
// src/input/input-inner-span.tsx
|
|
4630
|
-
import { jsx as
|
|
4885
|
+
import { jsx as jsx45, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
4631
4886
|
var className3 = `k-input-inner`;
|
|
4632
|
-
var
|
|
4633
|
-
var
|
|
4887
|
+
var states15 = [];
|
|
4888
|
+
var options12 = {};
|
|
4634
4889
|
var InputInnerSpan = (props) => {
|
|
4635
4890
|
const {
|
|
4636
4891
|
value,
|
|
@@ -4640,41 +4895,41 @@ var InputInnerSpan = (props) => {
|
|
|
4640
4895
|
valueIconName,
|
|
4641
4896
|
...other
|
|
4642
4897
|
} = props;
|
|
4643
|
-
return /* @__PURE__ */
|
|
4898
|
+
return /* @__PURE__ */ jsxs9(
|
|
4644
4899
|
"span",
|
|
4645
4900
|
{
|
|
4646
4901
|
...other,
|
|
4647
4902
|
className: classNames(props.className, className3, optionClassNames(className3, props)),
|
|
4648
4903
|
children: [
|
|
4649
4904
|
valueIcon,
|
|
4650
|
-
!valueIcon && valueIconName && /* @__PURE__ */
|
|
4905
|
+
!valueIcon && valueIconName && /* @__PURE__ */ jsx45(Icon, { className: "k-input-value-icon", icon: valueIconName }),
|
|
4651
4906
|
showValue && !value && placeholder,
|
|
4652
|
-
showValue && value && /* @__PURE__ */
|
|
4907
|
+
showValue && value && /* @__PURE__ */ jsx45("span", { className: "k-input-value-text", children: value })
|
|
4653
4908
|
]
|
|
4654
4909
|
}
|
|
4655
4910
|
);
|
|
4656
4911
|
};
|
|
4657
|
-
InputInnerSpan.states =
|
|
4658
|
-
InputInnerSpan.options =
|
|
4912
|
+
InputInnerSpan.states = states15;
|
|
4913
|
+
InputInnerSpan.options = options12;
|
|
4659
4914
|
InputInnerSpan.className = className3;
|
|
4660
4915
|
|
|
4661
4916
|
// src/input/input-inner-textarea.tsx
|
|
4662
|
-
import { jsx as
|
|
4663
|
-
var
|
|
4917
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
4918
|
+
var defaultProps12 = {
|
|
4664
4919
|
value: "",
|
|
4665
4920
|
placeholder: ""
|
|
4666
4921
|
};
|
|
4667
4922
|
var className4 = `k-input-inner`;
|
|
4668
|
-
var
|
|
4669
|
-
var
|
|
4923
|
+
var states16 = [];
|
|
4924
|
+
var options13 = {};
|
|
4670
4925
|
var InputInnerTextarea = (props) => {
|
|
4671
4926
|
const {
|
|
4672
|
-
value =
|
|
4673
|
-
placeholder =
|
|
4927
|
+
value = defaultProps12.value,
|
|
4928
|
+
placeholder = defaultProps12.placeholder,
|
|
4674
4929
|
rows,
|
|
4675
4930
|
...other
|
|
4676
4931
|
} = props;
|
|
4677
|
-
return /* @__PURE__ */
|
|
4932
|
+
return /* @__PURE__ */ jsx46(
|
|
4678
4933
|
"textarea",
|
|
4679
4934
|
{
|
|
4680
4935
|
...other,
|
|
@@ -4685,14 +4940,14 @@ var InputInnerTextarea = (props) => {
|
|
|
4685
4940
|
}
|
|
4686
4941
|
);
|
|
4687
4942
|
};
|
|
4688
|
-
InputInnerTextarea.states =
|
|
4689
|
-
InputInnerTextarea.options =
|
|
4943
|
+
InputInnerTextarea.states = states16;
|
|
4944
|
+
InputInnerTextarea.options = options13;
|
|
4690
4945
|
InputInnerTextarea.className = className4;
|
|
4691
4946
|
|
|
4692
4947
|
// src/input/input-loading-icon.tsx
|
|
4693
|
-
import { Fragment as Fragment6, jsx as
|
|
4948
|
+
import { Fragment as Fragment6, jsx as jsx47 } from "react/jsx-runtime";
|
|
4694
4949
|
var className5 = `k-input-loading-icon`;
|
|
4695
|
-
var
|
|
4950
|
+
var states17 = [
|
|
4696
4951
|
States.disabled,
|
|
4697
4952
|
States.loading
|
|
4698
4953
|
];
|
|
@@ -4702,21 +4957,21 @@ var InputLoadingIcon = (props) => {
|
|
|
4702
4957
|
loading
|
|
4703
4958
|
} = props;
|
|
4704
4959
|
if (disabled || !loading) {
|
|
4705
|
-
return /* @__PURE__ */
|
|
4960
|
+
return /* @__PURE__ */ jsx47(Fragment6, {});
|
|
4706
4961
|
}
|
|
4707
|
-
return /* @__PURE__ */
|
|
4962
|
+
return /* @__PURE__ */ jsx47("span", { className: classNames(props.className, className5, "k-icon k-i-loading") });
|
|
4708
4963
|
};
|
|
4709
4964
|
|
|
4710
4965
|
// src/input/input-validation-icon.tsx
|
|
4711
|
-
import { Fragment as Fragment7, jsx as
|
|
4966
|
+
import { Fragment as Fragment7, jsx as jsx48 } from "react/jsx-runtime";
|
|
4712
4967
|
var className6 = `k-input-validation-icon`;
|
|
4713
|
-
var
|
|
4968
|
+
var states18 = [
|
|
4714
4969
|
States.valid,
|
|
4715
4970
|
States.invalid,
|
|
4716
4971
|
States.disabled,
|
|
4717
4972
|
States.loading
|
|
4718
4973
|
];
|
|
4719
|
-
var
|
|
4974
|
+
var options14 = {};
|
|
4720
4975
|
var InputValidationIcon = (props) => {
|
|
4721
4976
|
const {
|
|
4722
4977
|
valid,
|
|
@@ -4727,29 +4982,29 @@ var InputValidationIcon = (props) => {
|
|
|
4727
4982
|
const iconName = invalid ? "warning-circle" : "check-circle";
|
|
4728
4983
|
const renderValidationIcon = Boolean(valid || invalid);
|
|
4729
4984
|
if (disabled || loading || !renderValidationIcon) {
|
|
4730
|
-
return /* @__PURE__ */
|
|
4985
|
+
return /* @__PURE__ */ jsx48(Fragment7, {});
|
|
4731
4986
|
}
|
|
4732
|
-
return /* @__PURE__ */
|
|
4987
|
+
return /* @__PURE__ */ jsx48(Icon, { className: classNames(className6), icon: iconName });
|
|
4733
4988
|
};
|
|
4734
|
-
InputValidationIcon.states =
|
|
4735
|
-
InputValidationIcon.options =
|
|
4989
|
+
InputValidationIcon.states = states18;
|
|
4990
|
+
InputValidationIcon.options = options14;
|
|
4736
4991
|
InputValidationIcon.className = className6;
|
|
4737
4992
|
|
|
4738
4993
|
// src/input/input-prefix.tsx
|
|
4739
|
-
import { Fragment as Fragment8, jsx as
|
|
4994
|
+
import { Fragment as Fragment8, jsx as jsx49 } from "react/jsx-runtime";
|
|
4740
4995
|
var className7 = `k-input-prefix`;
|
|
4741
|
-
var
|
|
4996
|
+
var defaultProps13 = {
|
|
4742
4997
|
direction: "horizontal"
|
|
4743
4998
|
};
|
|
4744
4999
|
var InputPrefix = (props) => {
|
|
4745
5000
|
const {
|
|
4746
|
-
direction =
|
|
5001
|
+
direction = defaultProps13.direction,
|
|
4747
5002
|
...other
|
|
4748
5003
|
} = props;
|
|
4749
5004
|
if (!props.children) {
|
|
4750
|
-
return /* @__PURE__ */
|
|
5005
|
+
return /* @__PURE__ */ jsx49(Fragment8, {});
|
|
4751
5006
|
}
|
|
4752
|
-
return /* @__PURE__ */
|
|
5007
|
+
return /* @__PURE__ */ jsx49(
|
|
4753
5008
|
"span",
|
|
4754
5009
|
{
|
|
4755
5010
|
...other,
|
|
@@ -4766,20 +5021,20 @@ var InputPrefix = (props) => {
|
|
|
4766
5021
|
};
|
|
4767
5022
|
|
|
4768
5023
|
// src/input/input-suffix.tsx
|
|
4769
|
-
import { Fragment as Fragment9, jsx as
|
|
5024
|
+
import { Fragment as Fragment9, jsx as jsx50 } from "react/jsx-runtime";
|
|
4770
5025
|
var className8 = `k-input-suffix`;
|
|
4771
|
-
var
|
|
5026
|
+
var defaultProps14 = {
|
|
4772
5027
|
direction: "horizontal"
|
|
4773
5028
|
};
|
|
4774
5029
|
var InputSuffix = (props) => {
|
|
4775
5030
|
const {
|
|
4776
|
-
direction =
|
|
5031
|
+
direction = defaultProps14.direction,
|
|
4777
5032
|
...other
|
|
4778
5033
|
} = props;
|
|
4779
5034
|
if (!props.children) {
|
|
4780
|
-
return /* @__PURE__ */
|
|
5035
|
+
return /* @__PURE__ */ jsx50(Fragment9, {});
|
|
4781
5036
|
}
|
|
4782
|
-
return /* @__PURE__ */
|
|
5037
|
+
return /* @__PURE__ */ jsx50(
|
|
4783
5038
|
"span",
|
|
4784
5039
|
{
|
|
4785
5040
|
...other,
|
|
@@ -4796,23 +5051,23 @@ var InputSuffix = (props) => {
|
|
|
4796
5051
|
};
|
|
4797
5052
|
|
|
4798
5053
|
// src/input/input-prefix-text.tsx
|
|
4799
|
-
import { jsx as
|
|
5054
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
4800
5055
|
|
|
4801
5056
|
// src/input/input-suffix-text.tsx
|
|
4802
|
-
import { jsx as
|
|
5057
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
4803
5058
|
|
|
4804
5059
|
// src/input/input-separator.tsx
|
|
4805
|
-
import { jsx as
|
|
5060
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
4806
5061
|
var className9 = `k-input-separator`;
|
|
4807
|
-
var
|
|
5062
|
+
var defaultProps15 = {
|
|
4808
5063
|
direction: "vertical"
|
|
4809
5064
|
};
|
|
4810
5065
|
var InputSeparator = (props) => {
|
|
4811
5066
|
const {
|
|
4812
|
-
direction =
|
|
5067
|
+
direction = defaultProps15.direction,
|
|
4813
5068
|
...other
|
|
4814
5069
|
} = props;
|
|
4815
|
-
return /* @__PURE__ */
|
|
5070
|
+
return /* @__PURE__ */ jsx53(
|
|
4816
5071
|
"span",
|
|
4817
5072
|
{
|
|
4818
5073
|
...other,
|
|
@@ -4828,11 +5083,11 @@ var InputSeparator = (props) => {
|
|
|
4828
5083
|
};
|
|
4829
5084
|
|
|
4830
5085
|
// src/animation-container/animation-container.spec.tsx
|
|
4831
|
-
import { jsx as
|
|
5086
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
4832
5087
|
var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
|
|
4833
|
-
var
|
|
4834
|
-
var
|
|
4835
|
-
var
|
|
5088
|
+
var states19 = [];
|
|
5089
|
+
var options15 = {};
|
|
5090
|
+
var defaultProps16 = {
|
|
4836
5091
|
positionMode: "absolute"
|
|
4837
5092
|
};
|
|
4838
5093
|
var AnimationContainer = (props) => {
|
|
@@ -4842,7 +5097,7 @@ var AnimationContainer = (props) => {
|
|
|
4842
5097
|
offset,
|
|
4843
5098
|
...other
|
|
4844
5099
|
} = props;
|
|
4845
|
-
return /* @__PURE__ */
|
|
5100
|
+
return /* @__PURE__ */ jsx54(
|
|
4846
5101
|
"div",
|
|
4847
5102
|
{
|
|
4848
5103
|
...other,
|
|
@@ -4854,21 +5109,21 @@ var AnimationContainer = (props) => {
|
|
|
4854
5109
|
["k-animation-container-fixed"]: positionMode === "fixed"
|
|
4855
5110
|
}
|
|
4856
5111
|
),
|
|
4857
|
-
children: /* @__PURE__ */
|
|
5112
|
+
children: /* @__PURE__ */ jsx54("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
|
|
4858
5113
|
}
|
|
4859
5114
|
);
|
|
4860
5115
|
};
|
|
4861
|
-
AnimationContainer.states =
|
|
4862
|
-
AnimationContainer.options =
|
|
5116
|
+
AnimationContainer.states = states19;
|
|
5117
|
+
AnimationContainer.options = options15;
|
|
4863
5118
|
AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
|
|
4864
|
-
AnimationContainer.defaultProps =
|
|
5119
|
+
AnimationContainer.defaultProps = defaultProps16;
|
|
4865
5120
|
|
|
4866
5121
|
// src/popup/popup.spec.tsx
|
|
4867
|
-
import { jsx as
|
|
5122
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
4868
5123
|
var POPUP_CLASSNAME = `k-popup`;
|
|
4869
|
-
var
|
|
4870
|
-
var
|
|
4871
|
-
var
|
|
5124
|
+
var states20 = [];
|
|
5125
|
+
var options16 = {};
|
|
5126
|
+
var defaultProps17 = {
|
|
4872
5127
|
positionMode: "absolute"
|
|
4873
5128
|
};
|
|
4874
5129
|
var Popup = (props) => {
|
|
@@ -4877,24 +5132,24 @@ var Popup = (props) => {
|
|
|
4877
5132
|
positionMode,
|
|
4878
5133
|
...other
|
|
4879
5134
|
} = props;
|
|
4880
|
-
return /* @__PURE__ */
|
|
5135
|
+
return /* @__PURE__ */ jsx55(
|
|
4881
5136
|
AnimationContainer,
|
|
4882
5137
|
{
|
|
4883
5138
|
positionMode,
|
|
4884
5139
|
offset,
|
|
4885
|
-
children: /* @__PURE__ */
|
|
5140
|
+
children: /* @__PURE__ */ jsx55("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
|
|
4886
5141
|
}
|
|
4887
5142
|
);
|
|
4888
5143
|
};
|
|
4889
|
-
Popup.states =
|
|
4890
|
-
Popup.options =
|
|
5144
|
+
Popup.states = states20;
|
|
5145
|
+
Popup.options = options16;
|
|
4891
5146
|
Popup.className = POPUP_CLASSNAME;
|
|
4892
|
-
Popup.defaultProps =
|
|
5147
|
+
Popup.defaultProps = defaultProps17;
|
|
4893
5148
|
|
|
4894
5149
|
// src/dropdownlist/dropdownlist.spec.tsx
|
|
4895
|
-
import { Fragment as Fragment10, jsx as
|
|
5150
|
+
import { Fragment as Fragment10, jsx as jsx56, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
4896
5151
|
var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
|
|
4897
|
-
var
|
|
5152
|
+
var states21 = [
|
|
4898
5153
|
States.hover,
|
|
4899
5154
|
States.focus,
|
|
4900
5155
|
States.valid,
|
|
@@ -4904,12 +5159,12 @@ var states14 = [
|
|
|
4904
5159
|
States.loading,
|
|
4905
5160
|
States.readonly
|
|
4906
5161
|
];
|
|
4907
|
-
var
|
|
5162
|
+
var options17 = {
|
|
4908
5163
|
size: [Size.small, Size.medium, Size.large],
|
|
4909
5164
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
4910
5165
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
4911
5166
|
};
|
|
4912
|
-
var
|
|
5167
|
+
var defaultProps18 = {
|
|
4913
5168
|
showValue: true,
|
|
4914
5169
|
arrowIconName: "caret-alt-down",
|
|
4915
5170
|
size: Size.medium,
|
|
@@ -4919,7 +5174,7 @@ var defaultProps14 = {
|
|
|
4919
5174
|
var DropdownList = (props) => {
|
|
4920
5175
|
const {
|
|
4921
5176
|
valueIconName,
|
|
4922
|
-
arrowIconName =
|
|
5177
|
+
arrowIconName = defaultProps18.arrowIconName,
|
|
4923
5178
|
prefix,
|
|
4924
5179
|
suffix,
|
|
4925
5180
|
value,
|
|
@@ -4935,13 +5190,13 @@ var DropdownList = (props) => {
|
|
|
4935
5190
|
loading,
|
|
4936
5191
|
disabled,
|
|
4937
5192
|
readonly,
|
|
4938
|
-
showValue =
|
|
5193
|
+
showValue = defaultProps18.showValue,
|
|
4939
5194
|
popup,
|
|
4940
5195
|
opened,
|
|
4941
5196
|
...other
|
|
4942
5197
|
} = props;
|
|
4943
|
-
return /* @__PURE__ */
|
|
4944
|
-
/* @__PURE__ */
|
|
5198
|
+
return /* @__PURE__ */ jsxs10(Fragment10, { children: [
|
|
5199
|
+
/* @__PURE__ */ jsxs10(
|
|
4945
5200
|
Picker,
|
|
4946
5201
|
{
|
|
4947
5202
|
...other,
|
|
@@ -4964,8 +5219,8 @@ var DropdownList = (props) => {
|
|
|
4964
5219
|
}
|
|
4965
5220
|
),
|
|
4966
5221
|
children: [
|
|
4967
|
-
/* @__PURE__ */
|
|
4968
|
-
/* @__PURE__ */
|
|
5222
|
+
/* @__PURE__ */ jsx56(InputPrefix, { children: prefix }),
|
|
5223
|
+
/* @__PURE__ */ jsx56(
|
|
4969
5224
|
InputInnerSpan,
|
|
4970
5225
|
{
|
|
4971
5226
|
placeholder,
|
|
@@ -4974,7 +5229,7 @@ var DropdownList = (props) => {
|
|
|
4974
5229
|
valueIconName
|
|
4975
5230
|
}
|
|
4976
5231
|
),
|
|
4977
|
-
/* @__PURE__ */
|
|
5232
|
+
/* @__PURE__ */ jsx56(
|
|
4978
5233
|
InputValidationIcon,
|
|
4979
5234
|
{
|
|
4980
5235
|
valid,
|
|
@@ -4983,15 +5238,15 @@ var DropdownList = (props) => {
|
|
|
4983
5238
|
disabled
|
|
4984
5239
|
}
|
|
4985
5240
|
),
|
|
4986
|
-
/* @__PURE__ */
|
|
5241
|
+
/* @__PURE__ */ jsx56(
|
|
4987
5242
|
InputLoadingIcon,
|
|
4988
5243
|
{
|
|
4989
5244
|
loading,
|
|
4990
5245
|
disabled
|
|
4991
5246
|
}
|
|
4992
5247
|
),
|
|
4993
|
-
/* @__PURE__ */
|
|
4994
|
-
/* @__PURE__ */
|
|
5248
|
+
/* @__PURE__ */ jsx56(InputSuffix, { children: suffix }),
|
|
5249
|
+
/* @__PURE__ */ jsx56(
|
|
4995
5250
|
Button,
|
|
4996
5251
|
{
|
|
4997
5252
|
className: "k-input-button",
|
|
@@ -5004,35 +5259,35 @@ var DropdownList = (props) => {
|
|
|
5004
5259
|
]
|
|
5005
5260
|
}
|
|
5006
5261
|
),
|
|
5007
|
-
opened && popup && /* @__PURE__ */
|
|
5262
|
+
opened && popup && /* @__PURE__ */ jsx56(Popup, { className: "k-list-container k-dropdownlist-popup", children: popup })
|
|
5008
5263
|
] });
|
|
5009
5264
|
};
|
|
5010
|
-
DropdownList.states =
|
|
5011
|
-
DropdownList.options =
|
|
5265
|
+
DropdownList.states = states21;
|
|
5266
|
+
DropdownList.options = options17;
|
|
5012
5267
|
DropdownList.className = DROPDOWNLIST_CLASSNAME;
|
|
5013
|
-
DropdownList.defaultProps =
|
|
5268
|
+
DropdownList.defaultProps = defaultProps18;
|
|
5014
5269
|
|
|
5015
5270
|
// src/dropdownlist/templates/dropdownlist-normal.tsx
|
|
5016
|
-
import { jsx as
|
|
5271
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
5017
5272
|
|
|
5018
5273
|
// src/nodata/nodata.tsx
|
|
5019
|
-
import { jsx as
|
|
5274
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
5020
5275
|
var className10 = `k-nodata`;
|
|
5021
|
-
var NoData = (props) => /* @__PURE__ */
|
|
5276
|
+
var NoData = (props) => /* @__PURE__ */ jsx58("span", { className: classNames(className10, props.className), children: props.children });
|
|
5022
5277
|
|
|
5023
5278
|
// src/list/list.spec.tsx
|
|
5024
|
-
import { jsx as
|
|
5279
|
+
import { jsx as jsx59, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
5025
5280
|
var LIST_CLASSNAME = `k-list`;
|
|
5026
|
-
var
|
|
5027
|
-
var
|
|
5281
|
+
var states22 = [];
|
|
5282
|
+
var options18 = {
|
|
5028
5283
|
size: [Size.small, Size.medium, Size.large]
|
|
5029
5284
|
};
|
|
5030
|
-
var
|
|
5285
|
+
var defaultProps19 = {
|
|
5031
5286
|
size: Size.medium
|
|
5032
5287
|
};
|
|
5033
5288
|
var List = (props) => {
|
|
5034
5289
|
const {
|
|
5035
|
-
size =
|
|
5290
|
+
size = defaultProps19.size,
|
|
5036
5291
|
virtualization,
|
|
5037
5292
|
children,
|
|
5038
5293
|
optionLabel,
|
|
@@ -5049,7 +5304,7 @@ var List = (props) => {
|
|
|
5049
5304
|
listHeader = child.props.label;
|
|
5050
5305
|
child.props.children.map((optChild, index2) => {
|
|
5051
5306
|
listChildren.push(
|
|
5052
|
-
/* @__PURE__ */
|
|
5307
|
+
/* @__PURE__ */ jsx59(
|
|
5053
5308
|
ListItem,
|
|
5054
5309
|
{
|
|
5055
5310
|
...optChild.props
|
|
@@ -5065,7 +5320,7 @@ var List = (props) => {
|
|
|
5065
5320
|
groupLabel = child.props.label;
|
|
5066
5321
|
}
|
|
5067
5322
|
listChildren.push(
|
|
5068
|
-
/* @__PURE__ */
|
|
5323
|
+
/* @__PURE__ */ jsx59(
|
|
5069
5324
|
ListItem,
|
|
5070
5325
|
{
|
|
5071
5326
|
className: index2 === 0 ? "k-first" : "",
|
|
@@ -5077,16 +5332,16 @@ var List = (props) => {
|
|
|
5077
5332
|
);
|
|
5078
5333
|
});
|
|
5079
5334
|
}
|
|
5080
|
-
listGroup = /* @__PURE__ */
|
|
5335
|
+
listGroup = /* @__PURE__ */ jsx59(ListGroup, { label: listHeader, virtualization, children: listChildren });
|
|
5081
5336
|
} else if (child.type === ListItem) {
|
|
5082
|
-
listChildren.push(/* @__PURE__ */
|
|
5083
|
-
listContent = /* @__PURE__ */
|
|
5337
|
+
listChildren.push(/* @__PURE__ */ jsx59(ListItem, { ...child.props }, `${child.type}-${index}`));
|
|
5338
|
+
listContent = /* @__PURE__ */ jsx59(ListContent, { virtualization, children: listChildren });
|
|
5084
5339
|
}
|
|
5085
5340
|
});
|
|
5086
5341
|
} else {
|
|
5087
|
-
listContent = /* @__PURE__ */
|
|
5342
|
+
listContent = /* @__PURE__ */ jsx59(NoData, { children: "No data found." });
|
|
5088
5343
|
}
|
|
5089
|
-
return /* @__PURE__ */
|
|
5344
|
+
return /* @__PURE__ */ jsxs11(
|
|
5090
5345
|
"div",
|
|
5091
5346
|
{
|
|
5092
5347
|
...other,
|
|
@@ -5108,24 +5363,24 @@ var List = (props) => {
|
|
|
5108
5363
|
}
|
|
5109
5364
|
);
|
|
5110
5365
|
};
|
|
5111
|
-
List.states =
|
|
5112
|
-
List.options =
|
|
5366
|
+
List.states = states22;
|
|
5367
|
+
List.options = options18;
|
|
5113
5368
|
List.className = LIST_CLASSNAME;
|
|
5114
|
-
List.defaultProps =
|
|
5369
|
+
List.defaultProps = defaultProps19;
|
|
5115
5370
|
|
|
5116
5371
|
// src/list/list-angular.spec.tsx
|
|
5117
|
-
import { jsx as
|
|
5372
|
+
import { jsx as jsx60, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
5118
5373
|
var LISTANGULAR_CLASSNAME = `k-list`;
|
|
5119
|
-
var
|
|
5120
|
-
var
|
|
5374
|
+
var states23 = [];
|
|
5375
|
+
var options19 = {
|
|
5121
5376
|
size: [Size.small, Size.medium, Size.large]
|
|
5122
5377
|
};
|
|
5123
|
-
var
|
|
5378
|
+
var defaultProps20 = {
|
|
5124
5379
|
size: Size.medium
|
|
5125
5380
|
};
|
|
5126
5381
|
var ListAngular = (props) => {
|
|
5127
5382
|
const {
|
|
5128
|
-
size =
|
|
5383
|
+
size = defaultProps20.size,
|
|
5129
5384
|
virtualization,
|
|
5130
5385
|
children,
|
|
5131
5386
|
...other
|
|
@@ -5141,7 +5396,7 @@ var ListAngular = (props) => {
|
|
|
5141
5396
|
listHeader = child.props.label;
|
|
5142
5397
|
child.props.children.map((optChild, index2) => {
|
|
5143
5398
|
listChildren.push(
|
|
5144
|
-
/* @__PURE__ */
|
|
5399
|
+
/* @__PURE__ */ jsx60(
|
|
5145
5400
|
ListItem,
|
|
5146
5401
|
{
|
|
5147
5402
|
...optChild.props
|
|
@@ -5152,7 +5407,7 @@ var ListAngular = (props) => {
|
|
|
5152
5407
|
});
|
|
5153
5408
|
} else {
|
|
5154
5409
|
listChildren.push(
|
|
5155
|
-
/* @__PURE__ */
|
|
5410
|
+
/* @__PURE__ */ jsx60(
|
|
5156
5411
|
ListGroupItem,
|
|
5157
5412
|
{
|
|
5158
5413
|
...child.props,
|
|
@@ -5163,7 +5418,7 @@ var ListAngular = (props) => {
|
|
|
5163
5418
|
);
|
|
5164
5419
|
child.props.children.map((optChild, index2) => {
|
|
5165
5420
|
listChildren.push(
|
|
5166
|
-
/* @__PURE__ */
|
|
5421
|
+
/* @__PURE__ */ jsx60(
|
|
5167
5422
|
ListItem,
|
|
5168
5423
|
{
|
|
5169
5424
|
...optChild.props
|
|
@@ -5173,16 +5428,16 @@ var ListAngular = (props) => {
|
|
|
5173
5428
|
);
|
|
5174
5429
|
});
|
|
5175
5430
|
}
|
|
5176
|
-
listGroup = /* @__PURE__ */
|
|
5431
|
+
listGroup = /* @__PURE__ */ jsx60(ListGroup, { label: listHeader, virtualization, children: listChildren });
|
|
5177
5432
|
} else if (child.type === ListItem) {
|
|
5178
|
-
listChildren.push(/* @__PURE__ */
|
|
5179
|
-
listContent = /* @__PURE__ */
|
|
5433
|
+
listChildren.push(/* @__PURE__ */ jsx60(ListItem, { ...child.props }, `${child.type}-${index}`));
|
|
5434
|
+
listContent = /* @__PURE__ */ jsx60(ListContent, { virtualization, children: listChildren });
|
|
5180
5435
|
}
|
|
5181
5436
|
});
|
|
5182
5437
|
} else {
|
|
5183
|
-
listContent = /* @__PURE__ */
|
|
5438
|
+
listContent = /* @__PURE__ */ jsx60(NoData, { children: "No data found." });
|
|
5184
5439
|
}
|
|
5185
|
-
return /* @__PURE__ */
|
|
5440
|
+
return /* @__PURE__ */ jsxs12(
|
|
5186
5441
|
"div",
|
|
5187
5442
|
{
|
|
5188
5443
|
...other,
|
|
@@ -5203,15 +5458,15 @@ var ListAngular = (props) => {
|
|
|
5203
5458
|
}
|
|
5204
5459
|
);
|
|
5205
5460
|
};
|
|
5206
|
-
ListAngular.states =
|
|
5207
|
-
ListAngular.options =
|
|
5461
|
+
ListAngular.states = states23;
|
|
5462
|
+
ListAngular.options = options19;
|
|
5208
5463
|
ListAngular.className = LISTANGULAR_CLASSNAME;
|
|
5209
|
-
ListAngular.defaultProps =
|
|
5464
|
+
ListAngular.defaultProps = defaultProps20;
|
|
5210
5465
|
|
|
5211
5466
|
// src/checkbox/checkbox.spec.tsx
|
|
5212
|
-
import { jsx as
|
|
5467
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
5213
5468
|
var CHECKBOX_CLASSNAME = `k-checkbox`;
|
|
5214
|
-
var
|
|
5469
|
+
var states24 = [
|
|
5215
5470
|
States.hover,
|
|
5216
5471
|
States.focus,
|
|
5217
5472
|
States.valid,
|
|
@@ -5221,11 +5476,11 @@ var states17 = [
|
|
|
5221
5476
|
States.checked,
|
|
5222
5477
|
States.indeterminate
|
|
5223
5478
|
];
|
|
5224
|
-
var
|
|
5479
|
+
var options20 = {
|
|
5225
5480
|
size: [Size.small, Size.medium, Size.large],
|
|
5226
5481
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
|
|
5227
5482
|
};
|
|
5228
|
-
var
|
|
5483
|
+
var defaultProps21 = {
|
|
5229
5484
|
size: Size.medium,
|
|
5230
5485
|
rounded: Roundness.medium
|
|
5231
5486
|
};
|
|
@@ -5240,11 +5495,11 @@ var Checkbox = (props) => {
|
|
|
5240
5495
|
invalid,
|
|
5241
5496
|
valid,
|
|
5242
5497
|
required,
|
|
5243
|
-
size =
|
|
5244
|
-
rounded =
|
|
5498
|
+
size = defaultProps21.size,
|
|
5499
|
+
rounded = defaultProps21.rounded,
|
|
5245
5500
|
...other
|
|
5246
5501
|
} = props;
|
|
5247
|
-
return /* @__PURE__ */
|
|
5502
|
+
return /* @__PURE__ */ jsx61("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ jsx61(
|
|
5248
5503
|
"input",
|
|
5249
5504
|
{
|
|
5250
5505
|
...other,
|
|
@@ -5261,25 +5516,25 @@ var Checkbox = (props) => {
|
|
|
5261
5516
|
}
|
|
5262
5517
|
) });
|
|
5263
5518
|
};
|
|
5264
|
-
Checkbox.states =
|
|
5265
|
-
Checkbox.options =
|
|
5519
|
+
Checkbox.states = states24;
|
|
5520
|
+
Checkbox.options = options20;
|
|
5266
5521
|
Checkbox.className = CHECKBOX_CLASSNAME;
|
|
5267
|
-
Checkbox.defaultProps =
|
|
5522
|
+
Checkbox.defaultProps = defaultProps21;
|
|
5268
5523
|
|
|
5269
5524
|
// src/checkbox/checkbox-group.spec.tsx
|
|
5270
|
-
import { jsx as
|
|
5525
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
5271
5526
|
var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
|
|
5272
|
-
var
|
|
5273
|
-
var
|
|
5274
|
-
var
|
|
5527
|
+
var states25 = [];
|
|
5528
|
+
var options21 = {};
|
|
5529
|
+
var defaultProps22 = {
|
|
5275
5530
|
layout: "vertical"
|
|
5276
5531
|
};
|
|
5277
5532
|
var CheckboxGroup = (props) => {
|
|
5278
5533
|
const {
|
|
5279
|
-
layout =
|
|
5534
|
+
layout = defaultProps22.layout,
|
|
5280
5535
|
...other
|
|
5281
5536
|
} = props;
|
|
5282
|
-
return /* @__PURE__ */
|
|
5537
|
+
return /* @__PURE__ */ jsx62(
|
|
5283
5538
|
"ul",
|
|
5284
5539
|
{
|
|
5285
5540
|
...other,
|
|
@@ -5294,22 +5549,22 @@ var CheckboxGroup = (props) => {
|
|
|
5294
5549
|
}
|
|
5295
5550
|
);
|
|
5296
5551
|
};
|
|
5297
|
-
CheckboxGroup.states =
|
|
5298
|
-
CheckboxGroup.options =
|
|
5552
|
+
CheckboxGroup.states = states25;
|
|
5553
|
+
CheckboxGroup.options = options21;
|
|
5299
5554
|
CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
|
|
5300
|
-
CheckboxGroup.defaultProps =
|
|
5555
|
+
CheckboxGroup.defaultProps = defaultProps22;
|
|
5301
5556
|
|
|
5302
5557
|
// src/checkbox/checkbox-item.spec.tsx
|
|
5303
|
-
import { jsx as
|
|
5558
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
5304
5559
|
var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
|
|
5305
|
-
var
|
|
5306
|
-
var
|
|
5307
|
-
var
|
|
5560
|
+
var states26 = [];
|
|
5561
|
+
var options22 = {};
|
|
5562
|
+
var defaultProps23 = {};
|
|
5308
5563
|
var CheckboxItem = (props) => {
|
|
5309
5564
|
const {
|
|
5310
5565
|
...other
|
|
5311
5566
|
} = props;
|
|
5312
|
-
return /* @__PURE__ */
|
|
5567
|
+
return /* @__PURE__ */ jsx63(
|
|
5313
5568
|
"li",
|
|
5314
5569
|
{
|
|
5315
5570
|
...other,
|
|
@@ -5321,31 +5576,31 @@ var CheckboxItem = (props) => {
|
|
|
5321
5576
|
}
|
|
5322
5577
|
);
|
|
5323
5578
|
};
|
|
5324
|
-
CheckboxItem.states =
|
|
5325
|
-
CheckboxItem.options =
|
|
5579
|
+
CheckboxItem.states = states26;
|
|
5580
|
+
CheckboxItem.options = options22;
|
|
5326
5581
|
CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
|
|
5327
|
-
CheckboxItem.defaultProps =
|
|
5582
|
+
CheckboxItem.defaultProps = defaultProps23;
|
|
5328
5583
|
|
|
5329
5584
|
// src/checkbox/templates/checkbox-with-label-after.tsx
|
|
5330
|
-
import { Fragment as Fragment11, jsx as
|
|
5585
|
+
import { Fragment as Fragment11, jsx as jsx64, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
5331
5586
|
|
|
5332
5587
|
// src/checkbox/templates/checkbox-with-label-before.tsx
|
|
5333
|
-
import { Fragment as Fragment12, jsx as
|
|
5588
|
+
import { Fragment as Fragment12, jsx as jsx65, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
5334
5589
|
|
|
5335
5590
|
// src/checkbox/templates/checkbox-normal.tsx
|
|
5336
|
-
import { jsx as
|
|
5591
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
5337
5592
|
|
|
5338
5593
|
// src/list/list-item.spec.tsx
|
|
5339
|
-
import { jsx as
|
|
5594
|
+
import { jsx as jsx67, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
5340
5595
|
var LISTITEM_CLASSNAME = `k-list-item`;
|
|
5341
|
-
var
|
|
5596
|
+
var states27 = [
|
|
5342
5597
|
States.hover,
|
|
5343
5598
|
States.focus,
|
|
5344
5599
|
States.selected,
|
|
5345
5600
|
States.disabled
|
|
5346
5601
|
];
|
|
5347
|
-
var
|
|
5348
|
-
var
|
|
5602
|
+
var options23 = {};
|
|
5603
|
+
var defaultProps24 = {};
|
|
5349
5604
|
var ListItem = (props) => {
|
|
5350
5605
|
const {
|
|
5351
5606
|
text,
|
|
@@ -5361,7 +5616,7 @@ var ListItem = (props) => {
|
|
|
5361
5616
|
...other
|
|
5362
5617
|
} = props;
|
|
5363
5618
|
const textOrChildren = text ? text : props.children;
|
|
5364
|
-
return /* @__PURE__ */
|
|
5619
|
+
return /* @__PURE__ */ jsxs15(
|
|
5365
5620
|
"li",
|
|
5366
5621
|
{
|
|
5367
5622
|
...other,
|
|
@@ -5376,66 +5631,66 @@ var ListItem = (props) => {
|
|
|
5376
5631
|
})
|
|
5377
5632
|
),
|
|
5378
5633
|
children: [
|
|
5379
|
-
showCheckbox && /* @__PURE__ */
|
|
5380
|
-
showIcon && /* @__PURE__ */
|
|
5381
|
-
/* @__PURE__ */
|
|
5382
|
-
groupLabel && groupLabel !== "" && /* @__PURE__ */
|
|
5634
|
+
showCheckbox && /* @__PURE__ */ jsx67(Checkbox, { checked }),
|
|
5635
|
+
showIcon && /* @__PURE__ */ jsx67(Icon, { icon: iconName }),
|
|
5636
|
+
/* @__PURE__ */ jsx67("span", { className: "k-list-item-text", children: textOrChildren }),
|
|
5637
|
+
groupLabel && groupLabel !== "" && /* @__PURE__ */ jsx67("div", { className: "k-list-item-group-label", children: groupLabel })
|
|
5383
5638
|
]
|
|
5384
5639
|
}
|
|
5385
5640
|
);
|
|
5386
5641
|
};
|
|
5387
|
-
ListItem.states =
|
|
5388
|
-
ListItem.options =
|
|
5642
|
+
ListItem.states = states27;
|
|
5643
|
+
ListItem.options = options23;
|
|
5389
5644
|
ListItem.className = LISTITEM_CLASSNAME;
|
|
5390
|
-
ListItem.defaultProps =
|
|
5645
|
+
ListItem.defaultProps = defaultProps24;
|
|
5391
5646
|
|
|
5392
5647
|
// src/list/list-content.tsx
|
|
5393
|
-
import { jsx as
|
|
5648
|
+
import { jsx as jsx68, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
5394
5649
|
var className11 = `k-list-content`;
|
|
5395
5650
|
var ListContent = (props) => {
|
|
5396
5651
|
const {
|
|
5397
5652
|
virtualization
|
|
5398
5653
|
} = props;
|
|
5399
|
-
return /* @__PURE__ */
|
|
5400
|
-
/* @__PURE__ */
|
|
5401
|
-
virtualization && /* @__PURE__ */
|
|
5654
|
+
return /* @__PURE__ */ jsxs16("div", { className: classNames(className11, props.className), children: [
|
|
5655
|
+
/* @__PURE__ */ jsx68("ul", { className: classNames("k-list-ul"), children: props.children }),
|
|
5656
|
+
virtualization && /* @__PURE__ */ jsx68("div", { className: "k-height-container", children: /* @__PURE__ */ jsx68("div", {}) })
|
|
5402
5657
|
] });
|
|
5403
5658
|
};
|
|
5404
5659
|
|
|
5405
5660
|
// src/list/list-header.tsx
|
|
5406
|
-
import { jsx as
|
|
5661
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
5407
5662
|
var className12 = `k-list-group-sticky-header`;
|
|
5408
|
-
var ListHeader = (props) => /* @__PURE__ */
|
|
5663
|
+
var ListHeader = (props) => /* @__PURE__ */ jsx69("div", { className: classNames(className12, props.className), children: /* @__PURE__ */ jsx69("div", { className: "k-list-header-text", children: props.children }) });
|
|
5409
5664
|
|
|
5410
5665
|
// src/list/list-group.tsx
|
|
5411
|
-
import { Fragment as Fragment13, jsx as
|
|
5666
|
+
import { Fragment as Fragment13, jsx as jsx70, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
5412
5667
|
var ListGroup = (props) => {
|
|
5413
5668
|
const {
|
|
5414
5669
|
virtualization,
|
|
5415
5670
|
label
|
|
5416
5671
|
} = props;
|
|
5417
|
-
return /* @__PURE__ */
|
|
5418
|
-
label && /* @__PURE__ */
|
|
5419
|
-
props.children && /* @__PURE__ */
|
|
5672
|
+
return /* @__PURE__ */ jsxs17(Fragment13, { children: [
|
|
5673
|
+
label && /* @__PURE__ */ jsx70(ListHeader, { children: label }),
|
|
5674
|
+
props.children && /* @__PURE__ */ jsx70(ListContent, { virtualization, children: props.children })
|
|
5420
5675
|
] });
|
|
5421
5676
|
};
|
|
5422
5677
|
|
|
5423
5678
|
// src/list/list-group-item.tsx
|
|
5424
|
-
import { jsx as
|
|
5679
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
5425
5680
|
var className13 = `k-list-group-item`;
|
|
5426
|
-
var ListGroupItem = (props) => /* @__PURE__ */
|
|
5681
|
+
var ListGroupItem = (props) => /* @__PURE__ */ jsx71("li", { className: classNames(className13, props.className), children: /* @__PURE__ */ jsx71("span", { className: "k-list-item-text", children: props.children }) });
|
|
5427
5682
|
|
|
5428
5683
|
// src/list/list-option-label.tsx
|
|
5429
|
-
import { jsx as
|
|
5684
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
5430
5685
|
var LIST_OPTIONLABEL_CLASSNAME = `k-list-optionlabel`;
|
|
5431
|
-
var
|
|
5686
|
+
var states28 = [
|
|
5432
5687
|
States.hover,
|
|
5433
5688
|
States.focus,
|
|
5434
5689
|
States.selected,
|
|
5435
5690
|
States.disabled
|
|
5436
5691
|
];
|
|
5437
|
-
var
|
|
5438
|
-
var
|
|
5692
|
+
var options24 = {};
|
|
5693
|
+
var defaultProps25 = {};
|
|
5439
5694
|
var ListOptionLabel = (props) => {
|
|
5440
5695
|
const {
|
|
5441
5696
|
text,
|
|
@@ -5445,7 +5700,7 @@ var ListOptionLabel = (props) => {
|
|
|
5445
5700
|
disabled,
|
|
5446
5701
|
...other
|
|
5447
5702
|
} = props;
|
|
5448
|
-
return /* @__PURE__ */
|
|
5703
|
+
return /* @__PURE__ */ jsx72(
|
|
5449
5704
|
"div",
|
|
5450
5705
|
{
|
|
5451
5706
|
...other,
|
|
@@ -5462,39 +5717,39 @@ var ListOptionLabel = (props) => {
|
|
|
5462
5717
|
}
|
|
5463
5718
|
);
|
|
5464
5719
|
};
|
|
5465
|
-
ListOptionLabel.states =
|
|
5466
|
-
ListOptionLabel.options =
|
|
5720
|
+
ListOptionLabel.states = states28;
|
|
5721
|
+
ListOptionLabel.options = options24;
|
|
5467
5722
|
ListOptionLabel.className = LIST_OPTIONLABEL_CLASSNAME;
|
|
5468
|
-
ListOptionLabel.defaultProps =
|
|
5723
|
+
ListOptionLabel.defaultProps = defaultProps25;
|
|
5469
5724
|
|
|
5470
5725
|
// src/list/templates/list-normal.tsx
|
|
5471
|
-
import { jsx as
|
|
5726
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
5472
5727
|
|
|
5473
5728
|
// src/list/templates/list-virtualization.tsx
|
|
5474
|
-
import { jsx as
|
|
5729
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
5475
5730
|
|
|
5476
5731
|
// src/list/templates/list-grouping.tsx
|
|
5477
|
-
import { jsx as
|
|
5732
|
+
import { jsx as jsx75, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
5478
5733
|
|
|
5479
5734
|
// src/list/templates/list-virualization-grouping.tsx
|
|
5480
|
-
import { jsx as
|
|
5735
|
+
import { jsx as jsx76, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5481
5736
|
|
|
5482
5737
|
// src/list/templates/list-virtualization-angular.tsx
|
|
5483
|
-
import { jsx as
|
|
5738
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
5484
5739
|
|
|
5485
5740
|
// src/list/templates/list-grouping-angular.tsx
|
|
5486
|
-
import { jsx as
|
|
5741
|
+
import { jsx as jsx78, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5487
5742
|
|
|
5488
5743
|
// src/list/templates/list-virualization-grouping-angular.tsx
|
|
5489
|
-
import { jsx as
|
|
5744
|
+
import { jsx as jsx79, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
5490
5745
|
|
|
5491
5746
|
// src/dropdownlist/templates/dropdownlist-popup.tsx
|
|
5492
|
-
import { jsx as
|
|
5747
|
+
import { jsx as jsx80, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5493
5748
|
|
|
5494
5749
|
// src/searchbox/searchbox.spec.tsx
|
|
5495
|
-
import { jsx as
|
|
5750
|
+
import { jsx as jsx81, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
5496
5751
|
var SEARCHBOX_CLASSNAME = `k-searchbox`;
|
|
5497
|
-
var
|
|
5752
|
+
var states29 = [
|
|
5498
5753
|
States.hover,
|
|
5499
5754
|
States.focus,
|
|
5500
5755
|
States.valid,
|
|
@@ -5503,12 +5758,12 @@ var states22 = [
|
|
|
5503
5758
|
States.disabled,
|
|
5504
5759
|
States.loading
|
|
5505
5760
|
];
|
|
5506
|
-
var
|
|
5761
|
+
var options25 = {
|
|
5507
5762
|
size: [Size.small, Size.medium, Size.large],
|
|
5508
5763
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
5509
5764
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
5510
5765
|
};
|
|
5511
|
-
var
|
|
5766
|
+
var defaultProps26 = {
|
|
5512
5767
|
showIcon: true,
|
|
5513
5768
|
icon: "search",
|
|
5514
5769
|
size: Input.defaultProps.size,
|
|
@@ -5529,11 +5784,11 @@ var Searchbox = (props) => {
|
|
|
5529
5784
|
required,
|
|
5530
5785
|
loading,
|
|
5531
5786
|
disabled,
|
|
5532
|
-
showIcon =
|
|
5533
|
-
icon =
|
|
5787
|
+
showIcon = defaultProps26.showIcon,
|
|
5788
|
+
icon = defaultProps26.icon,
|
|
5534
5789
|
...other
|
|
5535
5790
|
} = props;
|
|
5536
|
-
return /* @__PURE__ */
|
|
5791
|
+
return /* @__PURE__ */ jsxs23(
|
|
5537
5792
|
Input,
|
|
5538
5793
|
{
|
|
5539
5794
|
...other,
|
|
@@ -5549,51 +5804,51 @@ var Searchbox = (props) => {
|
|
|
5549
5804
|
disabled,
|
|
5550
5805
|
className: classNames(props.className, SEARCHBOX_CLASSNAME),
|
|
5551
5806
|
children: [
|
|
5552
|
-
showIcon && /* @__PURE__ */
|
|
5553
|
-
/* @__PURE__ */
|
|
5554
|
-
/* @__PURE__ */
|
|
5555
|
-
/* @__PURE__ */
|
|
5556
|
-
/* @__PURE__ */
|
|
5807
|
+
showIcon && /* @__PURE__ */ jsx81(Icon, { className: "k-input-icon", icon }),
|
|
5808
|
+
/* @__PURE__ */ jsx81(InputInnerInput, { placeholder, value }),
|
|
5809
|
+
/* @__PURE__ */ jsx81(InputLoadingIcon, { ...props }),
|
|
5810
|
+
/* @__PURE__ */ jsx81(InputValidationIcon, { ...props }),
|
|
5811
|
+
/* @__PURE__ */ jsx81(InputClearValue, { ...props })
|
|
5557
5812
|
]
|
|
5558
5813
|
}
|
|
5559
5814
|
);
|
|
5560
5815
|
};
|
|
5561
|
-
Searchbox.states =
|
|
5562
|
-
Searchbox.options =
|
|
5816
|
+
Searchbox.states = states29;
|
|
5817
|
+
Searchbox.options = options25;
|
|
5563
5818
|
Searchbox.className = SEARCHBOX_CLASSNAME;
|
|
5564
|
-
Searchbox.defaultProps =
|
|
5819
|
+
Searchbox.defaultProps = defaultProps26;
|
|
5565
5820
|
|
|
5566
5821
|
// src/searchbox/templates/searchbox-normal.tsx
|
|
5567
|
-
import { jsx as
|
|
5822
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
5568
5823
|
|
|
5569
5824
|
// src/dropdownlist/templates/dropdownlist-filtering.tsx
|
|
5570
|
-
import { Fragment as Fragment14, jsx as
|
|
5825
|
+
import { Fragment as Fragment14, jsx as jsx83, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5571
5826
|
|
|
5572
5827
|
// src/dropdownlist/templates/dropdownlist-grouping.tsx
|
|
5573
|
-
import { jsx as
|
|
5828
|
+
import { jsx as jsx84, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5574
5829
|
|
|
5575
5830
|
// src/dropdownlist/templates/dropdownlist-grouping-filtering.tsx
|
|
5576
|
-
import { Fragment as Fragment15, jsx as
|
|
5831
|
+
import { Fragment as Fragment15, jsx as jsx85, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5577
5832
|
|
|
5578
5833
|
// src/spinbutton/spinbutton.spec.tsx
|
|
5579
|
-
import { jsx as
|
|
5834
|
+
import { jsx as jsx86, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5580
5835
|
var SPINBUTTON_CLASSNAME = `k-spin-button`;
|
|
5581
|
-
var
|
|
5582
|
-
var
|
|
5836
|
+
var states30 = [];
|
|
5837
|
+
var options26 = {
|
|
5583
5838
|
size: [Size.small, Size.medium, Size.large],
|
|
5584
5839
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
|
|
5585
5840
|
};
|
|
5586
|
-
var
|
|
5841
|
+
var defaultProps27 = {
|
|
5587
5842
|
size: Size.medium,
|
|
5588
5843
|
fillMode: FillMode.solid
|
|
5589
5844
|
};
|
|
5590
5845
|
var SpinButton = (props) => {
|
|
5591
5846
|
const {
|
|
5592
|
-
size =
|
|
5593
|
-
fillMode =
|
|
5847
|
+
size = defaultProps27.size,
|
|
5848
|
+
fillMode = defaultProps27.fillMode,
|
|
5594
5849
|
...other
|
|
5595
5850
|
} = props;
|
|
5596
|
-
return /* @__PURE__ */
|
|
5851
|
+
return /* @__PURE__ */ jsxs27(
|
|
5597
5852
|
"span",
|
|
5598
5853
|
{
|
|
5599
5854
|
...other,
|
|
@@ -5602,7 +5857,7 @@ var SpinButton = (props) => {
|
|
|
5602
5857
|
props.className
|
|
5603
5858
|
),
|
|
5604
5859
|
children: [
|
|
5605
|
-
/* @__PURE__ */
|
|
5860
|
+
/* @__PURE__ */ jsx86(
|
|
5606
5861
|
Button,
|
|
5607
5862
|
{
|
|
5608
5863
|
className: "k-spinner-increase",
|
|
@@ -5612,7 +5867,7 @@ var SpinButton = (props) => {
|
|
|
5612
5867
|
fillMode
|
|
5613
5868
|
}
|
|
5614
5869
|
),
|
|
5615
|
-
/* @__PURE__ */
|
|
5870
|
+
/* @__PURE__ */ jsx86(
|
|
5616
5871
|
Button,
|
|
5617
5872
|
{
|
|
5618
5873
|
className: "k-spinner-decrease",
|
|
@@ -5626,15 +5881,15 @@ var SpinButton = (props) => {
|
|
|
5626
5881
|
}
|
|
5627
5882
|
);
|
|
5628
5883
|
};
|
|
5629
|
-
SpinButton.states =
|
|
5630
|
-
SpinButton.options =
|
|
5884
|
+
SpinButton.states = states30;
|
|
5885
|
+
SpinButton.options = options26;
|
|
5631
5886
|
SpinButton.className = SPINBUTTON_CLASSNAME;
|
|
5632
|
-
SpinButton.defaultProps =
|
|
5887
|
+
SpinButton.defaultProps = defaultProps27;
|
|
5633
5888
|
|
|
5634
5889
|
// src/numerictextbox/numerictextbox.spec.tsx
|
|
5635
|
-
import { Fragment as Fragment16, jsx as
|
|
5890
|
+
import { Fragment as Fragment16, jsx as jsx87, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5636
5891
|
var NUMERICTEXTBOX_CLASSNAME = `k-numerictextbox`;
|
|
5637
|
-
var
|
|
5892
|
+
var states31 = [
|
|
5638
5893
|
States.hover,
|
|
5639
5894
|
States.focus,
|
|
5640
5895
|
States.valid,
|
|
@@ -5644,12 +5899,12 @@ var states24 = [
|
|
|
5644
5899
|
States.disabled,
|
|
5645
5900
|
States.readonly
|
|
5646
5901
|
];
|
|
5647
|
-
var
|
|
5902
|
+
var options27 = {
|
|
5648
5903
|
size: [Size.small, Size.medium, Size.large],
|
|
5649
5904
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
5650
5905
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
5651
5906
|
};
|
|
5652
|
-
var
|
|
5907
|
+
var defaultProps28 = {
|
|
5653
5908
|
showSpinButton: true,
|
|
5654
5909
|
showClearButton: true,
|
|
5655
5910
|
size: Input.defaultProps.size,
|
|
@@ -5673,11 +5928,11 @@ var NumericTextbox = (props) => {
|
|
|
5673
5928
|
loading,
|
|
5674
5929
|
disabled,
|
|
5675
5930
|
readonly,
|
|
5676
|
-
showClearButton =
|
|
5677
|
-
showSpinButton =
|
|
5931
|
+
showClearButton = defaultProps28.showClearButton,
|
|
5932
|
+
showSpinButton = defaultProps28.showSpinButton,
|
|
5678
5933
|
...other
|
|
5679
5934
|
} = props;
|
|
5680
|
-
return /* @__PURE__ */
|
|
5935
|
+
return /* @__PURE__ */ jsxs28(
|
|
5681
5936
|
Input,
|
|
5682
5937
|
{
|
|
5683
5938
|
...other,
|
|
@@ -5694,12 +5949,12 @@ var NumericTextbox = (props) => {
|
|
|
5694
5949
|
readonly,
|
|
5695
5950
|
className: classNames(props.className, NUMERICTEXTBOX_CLASSNAME),
|
|
5696
5951
|
children: [
|
|
5697
|
-
prefix && /* @__PURE__ */
|
|
5698
|
-
/* @__PURE__ */
|
|
5699
|
-
/* @__PURE__ */
|
|
5952
|
+
prefix && /* @__PURE__ */ jsxs28(Fragment16, { children: [
|
|
5953
|
+
/* @__PURE__ */ jsx87(InputPrefix, { children: prefix }),
|
|
5954
|
+
/* @__PURE__ */ jsx87(InputSeparator, {})
|
|
5700
5955
|
] }),
|
|
5701
|
-
/* @__PURE__ */
|
|
5702
|
-
/* @__PURE__ */
|
|
5956
|
+
/* @__PURE__ */ jsx87(InputInnerInput, { placeholder, value }),
|
|
5957
|
+
/* @__PURE__ */ jsx87(
|
|
5703
5958
|
InputValidationIcon,
|
|
5704
5959
|
{
|
|
5705
5960
|
valid,
|
|
@@ -5708,14 +5963,14 @@ var NumericTextbox = (props) => {
|
|
|
5708
5963
|
disabled
|
|
5709
5964
|
}
|
|
5710
5965
|
),
|
|
5711
|
-
/* @__PURE__ */
|
|
5966
|
+
/* @__PURE__ */ jsx87(
|
|
5712
5967
|
InputLoadingIcon,
|
|
5713
5968
|
{
|
|
5714
5969
|
loading,
|
|
5715
5970
|
disabled
|
|
5716
5971
|
}
|
|
5717
5972
|
),
|
|
5718
|
-
showClearButton && /* @__PURE__ */
|
|
5973
|
+
showClearButton && /* @__PURE__ */ jsx87(
|
|
5719
5974
|
InputClearValue,
|
|
5720
5975
|
{
|
|
5721
5976
|
loading,
|
|
@@ -5724,11 +5979,11 @@ var NumericTextbox = (props) => {
|
|
|
5724
5979
|
value
|
|
5725
5980
|
}
|
|
5726
5981
|
),
|
|
5727
|
-
suffix && /* @__PURE__ */
|
|
5728
|
-
/* @__PURE__ */
|
|
5729
|
-
/* @__PURE__ */
|
|
5982
|
+
suffix && /* @__PURE__ */ jsxs28(Fragment16, { children: [
|
|
5983
|
+
/* @__PURE__ */ jsx87(InputSeparator, {}),
|
|
5984
|
+
/* @__PURE__ */ jsx87(InputSuffix, { children: suffix })
|
|
5730
5985
|
] }),
|
|
5731
|
-
showSpinButton && /* @__PURE__ */
|
|
5986
|
+
showSpinButton && /* @__PURE__ */ jsx87(
|
|
5732
5987
|
SpinButton,
|
|
5733
5988
|
{
|
|
5734
5989
|
className: "k-input-spinner",
|
|
@@ -5740,31 +5995,31 @@ var NumericTextbox = (props) => {
|
|
|
5740
5995
|
}
|
|
5741
5996
|
);
|
|
5742
5997
|
};
|
|
5743
|
-
NumericTextbox.states =
|
|
5744
|
-
NumericTextbox.options =
|
|
5998
|
+
NumericTextbox.states = states31;
|
|
5999
|
+
NumericTextbox.options = options27;
|
|
5745
6000
|
NumericTextbox.className = NUMERICTEXTBOX_CLASSNAME;
|
|
5746
|
-
NumericTextbox.defaultProps =
|
|
6001
|
+
NumericTextbox.defaultProps = defaultProps28;
|
|
5747
6002
|
|
|
5748
6003
|
// src/numerictextbox/templates/numerictextbox-normal.tsx
|
|
5749
|
-
import { jsx as
|
|
6004
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
5750
6005
|
|
|
5751
6006
|
// src/numerictextbox/templates/numerictextbox-prefix.tsx
|
|
5752
|
-
import { Fragment as Fragment17, jsx as
|
|
6007
|
+
import { Fragment as Fragment17, jsx as jsx89 } from "react/jsx-runtime";
|
|
5753
6008
|
|
|
5754
6009
|
// src/numerictextbox/templates/numerictextbox-suffix.tsx
|
|
5755
|
-
import { Fragment as Fragment18, jsx as
|
|
6010
|
+
import { Fragment as Fragment18, jsx as jsx90 } from "react/jsx-runtime";
|
|
5756
6011
|
|
|
5757
6012
|
// src/pager/pager.spec.tsx
|
|
5758
|
-
import { jsx as
|
|
6013
|
+
import { jsx as jsx91, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
5759
6014
|
var PAGER_CLASSNAME = `k-pager`;
|
|
5760
|
-
var
|
|
6015
|
+
var states32 = [
|
|
5761
6016
|
States.focus,
|
|
5762
6017
|
States.disabled
|
|
5763
6018
|
];
|
|
5764
|
-
var
|
|
6019
|
+
var options28 = {
|
|
5765
6020
|
size: [Size.small, Size.medium, Size.large]
|
|
5766
6021
|
};
|
|
5767
|
-
var
|
|
6022
|
+
var defaultProps29 = {
|
|
5768
6023
|
size: Size.medium,
|
|
5769
6024
|
adaptive: false,
|
|
5770
6025
|
itemsPerPage: true,
|
|
@@ -5775,19 +6030,19 @@ var defaultProps25 = {
|
|
|
5775
6030
|
};
|
|
5776
6031
|
var Pager = (props) => {
|
|
5777
6032
|
const {
|
|
5778
|
-
size =
|
|
5779
|
-
adaptive =
|
|
5780
|
-
itemsPerPage =
|
|
5781
|
-
type =
|
|
5782
|
-
pageSizes =
|
|
5783
|
-
refresh =
|
|
5784
|
-
info =
|
|
6033
|
+
size = defaultProps29.size,
|
|
6034
|
+
adaptive = defaultProps29.adaptive,
|
|
6035
|
+
itemsPerPage = defaultProps29.itemsPerPage,
|
|
6036
|
+
type = defaultProps29.type,
|
|
6037
|
+
pageSizes = defaultProps29.pageSizes,
|
|
6038
|
+
refresh = defaultProps29.refresh,
|
|
6039
|
+
info = defaultProps29.info,
|
|
5785
6040
|
focus,
|
|
5786
6041
|
disabled,
|
|
5787
6042
|
dir,
|
|
5788
6043
|
...other
|
|
5789
6044
|
} = props;
|
|
5790
|
-
return /* @__PURE__ */
|
|
6045
|
+
return /* @__PURE__ */ jsxs29(
|
|
5791
6046
|
"div",
|
|
5792
6047
|
{
|
|
5793
6048
|
dir,
|
|
@@ -5804,14 +6059,14 @@ var Pager = (props) => {
|
|
|
5804
6059
|
})
|
|
5805
6060
|
),
|
|
5806
6061
|
children: [
|
|
5807
|
-
/* @__PURE__ */
|
|
6062
|
+
/* @__PURE__ */ jsxs29(
|
|
5808
6063
|
"div",
|
|
5809
6064
|
{
|
|
5810
6065
|
className: classNames(
|
|
5811
6066
|
"k-pager-numbers-wrap"
|
|
5812
6067
|
),
|
|
5813
6068
|
children: [
|
|
5814
|
-
/* @__PURE__ */
|
|
6069
|
+
/* @__PURE__ */ jsx91(
|
|
5815
6070
|
Button,
|
|
5816
6071
|
{
|
|
5817
6072
|
className: classNames(
|
|
@@ -5825,7 +6080,7 @@ var Pager = (props) => {
|
|
|
5825
6080
|
icon: dir === "rtl" ? "caret-alt-to-right" : "caret-alt-to-left"
|
|
5826
6081
|
}
|
|
5827
6082
|
),
|
|
5828
|
-
/* @__PURE__ */
|
|
6083
|
+
/* @__PURE__ */ jsx91(
|
|
5829
6084
|
Button,
|
|
5830
6085
|
{
|
|
5831
6086
|
className: classNames(
|
|
@@ -5838,14 +6093,14 @@ var Pager = (props) => {
|
|
|
5838
6093
|
icon: dir === "rtl" ? "caret-alt-right" : "caret-alt-left"
|
|
5839
6094
|
}
|
|
5840
6095
|
),
|
|
5841
|
-
type === "numeric" && !adaptive && /* @__PURE__ */
|
|
6096
|
+
type === "numeric" && !adaptive && /* @__PURE__ */ jsxs29(
|
|
5842
6097
|
"div",
|
|
5843
6098
|
{
|
|
5844
6099
|
className: classNames(
|
|
5845
6100
|
"k-pager-numbers"
|
|
5846
6101
|
),
|
|
5847
6102
|
children: [
|
|
5848
|
-
/* @__PURE__ */
|
|
6103
|
+
/* @__PURE__ */ jsx91(
|
|
5849
6104
|
Button,
|
|
5850
6105
|
{
|
|
5851
6106
|
selected: true,
|
|
@@ -5856,7 +6111,7 @@ var Pager = (props) => {
|
|
|
5856
6111
|
children: "1"
|
|
5857
6112
|
}
|
|
5858
6113
|
),
|
|
5859
|
-
/* @__PURE__ */
|
|
6114
|
+
/* @__PURE__ */ jsx91(
|
|
5860
6115
|
Button,
|
|
5861
6116
|
{
|
|
5862
6117
|
fillMode: "flat",
|
|
@@ -5866,7 +6121,7 @@ var Pager = (props) => {
|
|
|
5866
6121
|
children: "2"
|
|
5867
6122
|
}
|
|
5868
6123
|
),
|
|
5869
|
-
/* @__PURE__ */
|
|
6124
|
+
/* @__PURE__ */ jsx91(
|
|
5870
6125
|
Button,
|
|
5871
6126
|
{
|
|
5872
6127
|
fillMode: "flat",
|
|
@@ -5876,7 +6131,7 @@ var Pager = (props) => {
|
|
|
5876
6131
|
children: "3"
|
|
5877
6132
|
}
|
|
5878
6133
|
),
|
|
5879
|
-
/* @__PURE__ */
|
|
6134
|
+
/* @__PURE__ */ jsx91(
|
|
5880
6135
|
Button,
|
|
5881
6136
|
{
|
|
5882
6137
|
fillMode: "flat",
|
|
@@ -5886,7 +6141,7 @@ var Pager = (props) => {
|
|
|
5886
6141
|
children: "4"
|
|
5887
6142
|
}
|
|
5888
6143
|
),
|
|
5889
|
-
/* @__PURE__ */
|
|
6144
|
+
/* @__PURE__ */ jsx91(
|
|
5890
6145
|
Button,
|
|
5891
6146
|
{
|
|
5892
6147
|
fillMode: "flat",
|
|
@@ -5896,7 +6151,7 @@ var Pager = (props) => {
|
|
|
5896
6151
|
children: "5"
|
|
5897
6152
|
}
|
|
5898
6153
|
),
|
|
5899
|
-
/* @__PURE__ */
|
|
6154
|
+
/* @__PURE__ */ jsx91(
|
|
5900
6155
|
Button,
|
|
5901
6156
|
{
|
|
5902
6157
|
fillMode: "flat",
|
|
@@ -5909,7 +6164,7 @@ var Pager = (props) => {
|
|
|
5909
6164
|
]
|
|
5910
6165
|
}
|
|
5911
6166
|
),
|
|
5912
|
-
type === "numeric" && /* @__PURE__ */
|
|
6167
|
+
type === "numeric" && /* @__PURE__ */ jsx91(
|
|
5913
6168
|
"select",
|
|
5914
6169
|
{
|
|
5915
6170
|
className: classNames(
|
|
@@ -5925,23 +6180,23 @@ var Pager = (props) => {
|
|
|
5925
6180
|
["k-hidden"]: !adaptive
|
|
5926
6181
|
}
|
|
5927
6182
|
),
|
|
5928
|
-
children: /* @__PURE__ */
|
|
6183
|
+
children: /* @__PURE__ */ jsx91("option", { children: "99" })
|
|
5929
6184
|
}
|
|
5930
6185
|
),
|
|
5931
|
-
type === "input" && /* @__PURE__ */
|
|
6186
|
+
type === "input" && /* @__PURE__ */ jsxs29(
|
|
5932
6187
|
"span",
|
|
5933
6188
|
{
|
|
5934
6189
|
className: classNames(
|
|
5935
6190
|
"k-pager-input"
|
|
5936
6191
|
),
|
|
5937
6192
|
children: [
|
|
5938
|
-
!adaptive && /* @__PURE__ */
|
|
5939
|
-
/* @__PURE__ */
|
|
5940
|
-
!adaptive && /* @__PURE__ */
|
|
6193
|
+
!adaptive && /* @__PURE__ */ jsx91("span", { children: "Page" }),
|
|
6194
|
+
/* @__PURE__ */ jsx91(NumericTextbox, { value: "999", size, showSpinButton: false, showClearButton: false }),
|
|
6195
|
+
!adaptive && /* @__PURE__ */ jsx91("span", { children: "of 8" })
|
|
5941
6196
|
]
|
|
5942
6197
|
}
|
|
5943
6198
|
),
|
|
5944
|
-
/* @__PURE__ */
|
|
6199
|
+
/* @__PURE__ */ jsx91(
|
|
5945
6200
|
Button,
|
|
5946
6201
|
{
|
|
5947
6202
|
className: classNames(
|
|
@@ -5953,7 +6208,7 @@ var Pager = (props) => {
|
|
|
5953
6208
|
icon: dir === "rtl" ? "caret-alt-left" : "caret-alt-right"
|
|
5954
6209
|
}
|
|
5955
6210
|
),
|
|
5956
|
-
/* @__PURE__ */
|
|
6211
|
+
/* @__PURE__ */ jsx91(
|
|
5957
6212
|
Button,
|
|
5958
6213
|
{
|
|
5959
6214
|
className: classNames(
|
|
@@ -5969,19 +6224,19 @@ var Pager = (props) => {
|
|
|
5969
6224
|
]
|
|
5970
6225
|
}
|
|
5971
6226
|
),
|
|
5972
|
-
pageSizes && /* @__PURE__ */
|
|
6227
|
+
pageSizes && /* @__PURE__ */ jsxs29(
|
|
5973
6228
|
"span",
|
|
5974
6229
|
{
|
|
5975
6230
|
className: classNames(
|
|
5976
6231
|
"k-pager-sizes"
|
|
5977
6232
|
),
|
|
5978
6233
|
children: [
|
|
5979
|
-
/* @__PURE__ */
|
|
5980
|
-
itemsPerPage && /* @__PURE__ */
|
|
6234
|
+
/* @__PURE__ */ jsx91(DropdownList, { value: "99", size }),
|
|
6235
|
+
itemsPerPage && /* @__PURE__ */ jsx91("span", { children: "items per page" })
|
|
5981
6236
|
]
|
|
5982
6237
|
}
|
|
5983
6238
|
),
|
|
5984
|
-
refresh && /* @__PURE__ */
|
|
6239
|
+
refresh && /* @__PURE__ */ jsx91(
|
|
5985
6240
|
Button,
|
|
5986
6241
|
{
|
|
5987
6242
|
className: classNames(
|
|
@@ -5993,7 +6248,7 @@ var Pager = (props) => {
|
|
|
5993
6248
|
icon: "arrow-rotate-cw"
|
|
5994
6249
|
}
|
|
5995
6250
|
),
|
|
5996
|
-
info && /* @__PURE__ */
|
|
6251
|
+
info && /* @__PURE__ */ jsx91(
|
|
5997
6252
|
"span",
|
|
5998
6253
|
{
|
|
5999
6254
|
className: classNames(
|
|
@@ -6006,30 +6261,2135 @@ var Pager = (props) => {
|
|
|
6006
6261
|
}
|
|
6007
6262
|
);
|
|
6008
6263
|
};
|
|
6009
|
-
Pager.states =
|
|
6010
|
-
Pager.options =
|
|
6264
|
+
Pager.states = states32;
|
|
6265
|
+
Pager.options = options28;
|
|
6011
6266
|
Pager.className = PAGER_CLASSNAME;
|
|
6012
|
-
Pager.defaultProps =
|
|
6267
|
+
Pager.defaultProps = defaultProps29;
|
|
6013
6268
|
|
|
6014
6269
|
// src/pager/templates/pager-normal.tsx
|
|
6015
|
-
import { jsx as
|
|
6270
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
6016
6271
|
|
|
6017
6272
|
// src/pager/templates/pager-input.tsx
|
|
6018
|
-
import { jsx as
|
|
6273
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
6019
6274
|
|
|
6020
6275
|
// src/pager/templates/pager-adaptive.tsx
|
|
6021
|
-
import { jsx as
|
|
6276
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
6022
6277
|
|
|
6023
6278
|
// src/pager/templates/pager-adaptive-input.tsx
|
|
6024
|
-
import { jsx as
|
|
6279
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
6280
|
+
|
|
6281
|
+
// src/grid/grid-pager.spec.tsx
|
|
6282
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
6283
|
+
var className14 = `k-grid-pager`;
|
|
6284
|
+
var GridPager = (props) => /* @__PURE__ */ jsx96(
|
|
6285
|
+
Pager,
|
|
6286
|
+
{
|
|
6287
|
+
...props,
|
|
6288
|
+
className: classNames(
|
|
6289
|
+
props.className,
|
|
6290
|
+
className14
|
|
6291
|
+
),
|
|
6292
|
+
children: props.children
|
|
6293
|
+
}
|
|
6294
|
+
);
|
|
6295
|
+
|
|
6296
|
+
// src/button-group/button-group.spec.tsx
|
|
6297
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
6298
|
+
var BUTTONGROUP_CLASSNAME = `k-button-group`;
|
|
6299
|
+
var states33 = [
|
|
6300
|
+
States.disabled
|
|
6301
|
+
];
|
|
6302
|
+
var options29 = {
|
|
6303
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
|
|
6304
|
+
};
|
|
6305
|
+
var defaultProps30 = {
|
|
6306
|
+
fillMode: FillMode.solid
|
|
6307
|
+
};
|
|
6308
|
+
var ButtonGroup = (props) => {
|
|
6309
|
+
const {
|
|
6310
|
+
fillMode = defaultProps30.fillMode,
|
|
6311
|
+
disabled,
|
|
6312
|
+
stretched,
|
|
6313
|
+
...other
|
|
6314
|
+
} = props;
|
|
6315
|
+
return /* @__PURE__ */ jsx97(
|
|
6316
|
+
"div",
|
|
6317
|
+
{
|
|
6318
|
+
...other,
|
|
6319
|
+
className: classNames(
|
|
6320
|
+
props.className,
|
|
6321
|
+
BUTTONGROUP_CLASSNAME,
|
|
6322
|
+
optionClassNames(BUTTONGROUP_CLASSNAME, {
|
|
6323
|
+
fillMode
|
|
6324
|
+
}),
|
|
6325
|
+
stateClassNames(BUTTONGROUP_CLASSNAME, {
|
|
6326
|
+
disabled
|
|
6327
|
+
}),
|
|
6328
|
+
{
|
|
6329
|
+
[`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
|
|
6330
|
+
}
|
|
6331
|
+
),
|
|
6332
|
+
children: props.children
|
|
6333
|
+
}
|
|
6334
|
+
);
|
|
6335
|
+
};
|
|
6336
|
+
ButtonGroup.states = states33;
|
|
6337
|
+
ButtonGroup.options = options29;
|
|
6338
|
+
ButtonGroup.className = BUTTONGROUP_CLASSNAME;
|
|
6339
|
+
ButtonGroup.defaultProps = defaultProps30;
|
|
6340
|
+
|
|
6341
|
+
// src/button-group/templates/icon-button-group.tsx
|
|
6342
|
+
import { jsx as jsx98, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6343
|
+
|
|
6344
|
+
// src/button-group/templates/icon-text-button-group.tsx
|
|
6345
|
+
import { jsx as jsx99, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6346
|
+
|
|
6347
|
+
// src/button-group/templates/text-button-group.tsx
|
|
6348
|
+
import { jsx as jsx100, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6349
|
+
|
|
6350
|
+
// src/button-group/templates/mixed-button-group.tsx
|
|
6351
|
+
import { jsx as jsx101, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6352
|
+
|
|
6353
|
+
// src/color-preview/color-preview.tsx
|
|
6354
|
+
import { jsx as jsx102, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6355
|
+
var COLORPREVIEW_CLASSNAME = `k-color-preview`;
|
|
6356
|
+
var states34 = [];
|
|
6357
|
+
var options30 = {};
|
|
6358
|
+
var ColorPreview = (props) => {
|
|
6359
|
+
const {
|
|
6360
|
+
color,
|
|
6361
|
+
iconName,
|
|
6362
|
+
...other
|
|
6363
|
+
} = props;
|
|
6364
|
+
return /* @__PURE__ */ jsxs34(
|
|
6365
|
+
"span",
|
|
6366
|
+
{
|
|
6367
|
+
...other,
|
|
6368
|
+
className: classNames(
|
|
6369
|
+
props.className,
|
|
6370
|
+
COLORPREVIEW_CLASSNAME,
|
|
6371
|
+
{
|
|
6372
|
+
"k-icon-color-preview": iconName,
|
|
6373
|
+
"k-no-color": !color
|
|
6374
|
+
}
|
|
6375
|
+
),
|
|
6376
|
+
children: [
|
|
6377
|
+
iconName && /* @__PURE__ */ jsx102(Icon, { icon: iconName, className: "k-color-preview-icon" }),
|
|
6378
|
+
/* @__PURE__ */ jsx102(
|
|
6379
|
+
"span",
|
|
6380
|
+
{
|
|
6381
|
+
className: "k-color-preview-mask",
|
|
6382
|
+
style: { backgroundColor: color }
|
|
6383
|
+
}
|
|
6384
|
+
)
|
|
6385
|
+
]
|
|
6386
|
+
}
|
|
6387
|
+
);
|
|
6388
|
+
};
|
|
6389
|
+
ColorPreview.states = states34;
|
|
6390
|
+
ColorPreview.options = options30;
|
|
6391
|
+
ColorPreview.className = COLORPREVIEW_CLASSNAME;
|
|
6392
|
+
|
|
6393
|
+
// src/colorpicker/colorpicker.spec.tsx
|
|
6394
|
+
import { Fragment as Fragment19, jsx as jsx103, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6395
|
+
var COLORPICKER_CLASSNAME = `k-colorpicker`;
|
|
6396
|
+
var states35 = [
|
|
6397
|
+
States.hover,
|
|
6398
|
+
States.focus,
|
|
6399
|
+
States.valid,
|
|
6400
|
+
States.invalid,
|
|
6401
|
+
States.required,
|
|
6402
|
+
States.disabled
|
|
6403
|
+
];
|
|
6404
|
+
var options31 = {
|
|
6405
|
+
size: [Size.small, Size.medium, Size.large],
|
|
6406
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
6407
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
6408
|
+
};
|
|
6409
|
+
var defaultProps31 = {
|
|
6410
|
+
arrowIconName: "caret-alt-down",
|
|
6411
|
+
size: Picker.defaultProps.size,
|
|
6412
|
+
rounded: Picker.defaultProps.rounded,
|
|
6413
|
+
fillMode: Picker.defaultProps.fillMode
|
|
6414
|
+
};
|
|
6415
|
+
var ColorPicker = (props) => {
|
|
6416
|
+
const {
|
|
6417
|
+
prefix,
|
|
6418
|
+
suffix,
|
|
6419
|
+
value,
|
|
6420
|
+
placeholder,
|
|
6421
|
+
size,
|
|
6422
|
+
rounded,
|
|
6423
|
+
fillMode,
|
|
6424
|
+
hover,
|
|
6425
|
+
focus,
|
|
6426
|
+
valid,
|
|
6427
|
+
invalid,
|
|
6428
|
+
required,
|
|
6429
|
+
disabled,
|
|
6430
|
+
valueIconName,
|
|
6431
|
+
arrowIconName = defaultProps31.arrowIconName,
|
|
6432
|
+
popup,
|
|
6433
|
+
opened,
|
|
6434
|
+
...other
|
|
6435
|
+
} = props;
|
|
6436
|
+
return /* @__PURE__ */ jsxs35(Fragment19, { children: [
|
|
6437
|
+
/* @__PURE__ */ jsxs35(
|
|
6438
|
+
Picker,
|
|
6439
|
+
{
|
|
6440
|
+
...other,
|
|
6441
|
+
size,
|
|
6442
|
+
rounded,
|
|
6443
|
+
fillMode,
|
|
6444
|
+
hover,
|
|
6445
|
+
focus,
|
|
6446
|
+
valid,
|
|
6447
|
+
invalid,
|
|
6448
|
+
required,
|
|
6449
|
+
disabled,
|
|
6450
|
+
className: classNames(
|
|
6451
|
+
props.className,
|
|
6452
|
+
COLORPICKER_CLASSNAME,
|
|
6453
|
+
"k-icon-picker"
|
|
6454
|
+
),
|
|
6455
|
+
children: [
|
|
6456
|
+
/* @__PURE__ */ jsx103(InputPrefix, { children: prefix }),
|
|
6457
|
+
/* @__PURE__ */ jsx103(
|
|
6458
|
+
InputInnerSpan,
|
|
6459
|
+
{
|
|
6460
|
+
placeholder,
|
|
6461
|
+
value,
|
|
6462
|
+
showValue: false,
|
|
6463
|
+
valueIcon: /* @__PURE__ */ jsx103(
|
|
6464
|
+
ColorPreview,
|
|
6465
|
+
{
|
|
6466
|
+
className: "k-value-icon",
|
|
6467
|
+
color: value,
|
|
6468
|
+
iconName: valueIconName
|
|
6469
|
+
}
|
|
6470
|
+
),
|
|
6471
|
+
valueIconName
|
|
6472
|
+
}
|
|
6473
|
+
),
|
|
6474
|
+
/* @__PURE__ */ jsx103(InputSuffix, { children: suffix }),
|
|
6475
|
+
/* @__PURE__ */ jsx103(
|
|
6476
|
+
Button,
|
|
6477
|
+
{
|
|
6478
|
+
className: "k-input-button",
|
|
6479
|
+
icon: arrowIconName,
|
|
6480
|
+
rounded: null,
|
|
6481
|
+
size,
|
|
6482
|
+
fillMode
|
|
6483
|
+
}
|
|
6484
|
+
)
|
|
6485
|
+
]
|
|
6486
|
+
}
|
|
6487
|
+
),
|
|
6488
|
+
opened && popup && /* @__PURE__ */ jsx103(Popup, { className: "k-color-picker-popup", children: popup })
|
|
6489
|
+
] });
|
|
6490
|
+
};
|
|
6491
|
+
ColorPicker.states = states35;
|
|
6492
|
+
ColorPicker.options = options31;
|
|
6493
|
+
ColorPicker.className = COLORPICKER_CLASSNAME;
|
|
6494
|
+
ColorPicker.defaultProps = defaultProps31;
|
|
6495
|
+
|
|
6496
|
+
// src/colorpicker/templates/colorpicker-normal.tsx
|
|
6497
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
|
6498
|
+
|
|
6499
|
+
// src/action-buttons/action-buttons.spec.tsx
|
|
6500
|
+
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
6501
|
+
var ACTIONBUTTONS_CLASSNAME = `k-actions`;
|
|
6502
|
+
var states36 = [];
|
|
6503
|
+
var options32 = {};
|
|
6504
|
+
var defaultProps32 = {
|
|
6505
|
+
alignment: "start",
|
|
6506
|
+
orientation: "horizontal"
|
|
6507
|
+
};
|
|
6508
|
+
var ActionButtons = (props) => {
|
|
6509
|
+
const {
|
|
6510
|
+
alignment = defaultProps32.alignment,
|
|
6511
|
+
orientation = defaultProps32.orientation,
|
|
6512
|
+
...other
|
|
6513
|
+
} = props;
|
|
6514
|
+
return /* @__PURE__ */ jsx105(
|
|
6515
|
+
"div",
|
|
6516
|
+
{
|
|
6517
|
+
...other,
|
|
6518
|
+
className: classNames(
|
|
6519
|
+
ACTIONBUTTONS_CLASSNAME,
|
|
6520
|
+
{
|
|
6521
|
+
[`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
|
|
6522
|
+
[`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
|
|
6523
|
+
},
|
|
6524
|
+
props.className
|
|
6525
|
+
),
|
|
6526
|
+
children: props.children
|
|
6527
|
+
}
|
|
6528
|
+
);
|
|
6529
|
+
};
|
|
6530
|
+
ActionButtons.states = states36;
|
|
6531
|
+
ActionButtons.options = options32;
|
|
6532
|
+
ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
|
|
6533
|
+
ActionButtons.defaultProps = defaultProps32;
|
|
6534
|
+
var action_buttons_spec_default = ActionButtons;
|
|
6535
|
+
|
|
6536
|
+
// src/slider/slider.spec.tsx
|
|
6537
|
+
import { jsx as jsx106, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6538
|
+
var SLIDER_CLASSNAME = "k-slider";
|
|
6539
|
+
var states37 = [
|
|
6540
|
+
States.hover,
|
|
6541
|
+
States.focus,
|
|
6542
|
+
States.active,
|
|
6543
|
+
States.disabled,
|
|
6544
|
+
States.readonly
|
|
6545
|
+
];
|
|
6546
|
+
var options33 = {};
|
|
6547
|
+
var defaultProps33 = {
|
|
6548
|
+
type: "single",
|
|
6549
|
+
orientation: "horizontal",
|
|
6550
|
+
readonly: false,
|
|
6551
|
+
disabled: false,
|
|
6552
|
+
handlePosition: "end",
|
|
6553
|
+
showButtons: true,
|
|
6554
|
+
showTicks: true
|
|
6555
|
+
};
|
|
6556
|
+
var Slider = (props) => {
|
|
6557
|
+
const {
|
|
6558
|
+
type = defaultProps33.type,
|
|
6559
|
+
orientation = defaultProps33.orientation,
|
|
6560
|
+
readonly = defaultProps33.readonly,
|
|
6561
|
+
disabled = defaultProps33.disabled,
|
|
6562
|
+
handlePosition = defaultProps33.handlePosition,
|
|
6563
|
+
showButtons = defaultProps33.showButtons,
|
|
6564
|
+
showTicks = defaultProps33.showTicks,
|
|
6565
|
+
hover,
|
|
6566
|
+
focus,
|
|
6567
|
+
active,
|
|
6568
|
+
trackStyle,
|
|
6569
|
+
dir
|
|
6570
|
+
} = props;
|
|
6571
|
+
let iconIncrease;
|
|
6572
|
+
let iconDecrease;
|
|
6573
|
+
if (orientation === "horizontal") {
|
|
6574
|
+
iconIncrease = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
|
|
6575
|
+
iconDecrease = dir === "rtl" ? "caret-alt-right" : "caret-alt-left";
|
|
6576
|
+
} else if (orientation === "vertical") {
|
|
6577
|
+
iconIncrease = "caret-alt-up";
|
|
6578
|
+
iconDecrease = "caret-alt-down";
|
|
6579
|
+
}
|
|
6580
|
+
return /* @__PURE__ */ jsxs36("div", { className: classNames(
|
|
6581
|
+
SLIDER_CLASSNAME,
|
|
6582
|
+
props.className,
|
|
6583
|
+
stateClassNames(SLIDER_CLASSNAME, {
|
|
6584
|
+
readonly,
|
|
6585
|
+
disabled
|
|
6586
|
+
}),
|
|
6587
|
+
{
|
|
6588
|
+
[`k-slider-${orientation}`]: orientation,
|
|
6589
|
+
"k-colorgradient-slider": type === "gradient",
|
|
6590
|
+
"k-range-slider": type === "range"
|
|
6591
|
+
}
|
|
6592
|
+
), dir, children: [
|
|
6593
|
+
showButtons && /* @__PURE__ */ jsx106(Button, { className: "k-button-decrease", rounded: "full", icon: iconDecrease }),
|
|
6594
|
+
/* @__PURE__ */ jsxs36("div", { className: "k-slider-track-wrap", children: [
|
|
6595
|
+
showTicks && /* @__PURE__ */ jsx106("ul", { className: "k-reset k-slider-items", children: props.children }),
|
|
6596
|
+
/* @__PURE__ */ jsxs36("div", { className: "k-slider-track", style: trackStyle, children: [
|
|
6597
|
+
/* @__PURE__ */ jsx106("div", { className: "k-slider-selection" }),
|
|
6598
|
+
type === "range" && /* @__PURE__ */ jsx106("span", { className: classNames(
|
|
6599
|
+
"k-draghandle",
|
|
6600
|
+
"k-draghandle-start",
|
|
6601
|
+
stateClassNames(SLIDER_CLASSNAME, {
|
|
6602
|
+
hover,
|
|
6603
|
+
focus,
|
|
6604
|
+
active
|
|
6605
|
+
})
|
|
6606
|
+
) }),
|
|
6607
|
+
/* @__PURE__ */ jsx106("span", { className: classNames(
|
|
6608
|
+
"k-draghandle",
|
|
6609
|
+
`k-draghandle-${handlePosition}`,
|
|
6610
|
+
stateClassNames(SLIDER_CLASSNAME, {
|
|
6611
|
+
hover,
|
|
6612
|
+
focus,
|
|
6613
|
+
active
|
|
6614
|
+
})
|
|
6615
|
+
) })
|
|
6616
|
+
] })
|
|
6617
|
+
] }),
|
|
6618
|
+
showButtons && /* @__PURE__ */ jsx106(Button, { className: "k-button-increase", rounded: "full", icon: iconIncrease })
|
|
6619
|
+
] });
|
|
6620
|
+
};
|
|
6621
|
+
Slider.states = states37;
|
|
6622
|
+
Slider.options = options33;
|
|
6623
|
+
Slider.className = SLIDER_CLASSNAME;
|
|
6624
|
+
Slider.defaultProps = defaultProps33;
|
|
6625
|
+
|
|
6626
|
+
// src/slider/slider-tick.tsx
|
|
6627
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
6628
|
+
var SLIDER_TICK_CLASSNAME = "k-tick";
|
|
6629
|
+
var states38 = [];
|
|
6630
|
+
var options34 = {};
|
|
6631
|
+
var defaultProps34 = {
|
|
6632
|
+
label: false
|
|
6633
|
+
};
|
|
6634
|
+
var SliderTick = (props) => {
|
|
6635
|
+
const {
|
|
6636
|
+
style,
|
|
6637
|
+
label = defaultProps34.label,
|
|
6638
|
+
orientation,
|
|
6639
|
+
large,
|
|
6640
|
+
text
|
|
6641
|
+
} = props;
|
|
6642
|
+
return /* @__PURE__ */ jsx107("li", { className: classNames(
|
|
6643
|
+
props.className,
|
|
6644
|
+
SLIDER_TICK_CLASSNAME,
|
|
6645
|
+
{
|
|
6646
|
+
[`k-tick-${orientation}`]: orientation,
|
|
6647
|
+
"k-tick-large": large
|
|
6648
|
+
}
|
|
6649
|
+
), style, children: label && /* @__PURE__ */ jsx107("span", { className: "k-label", children: text }) });
|
|
6650
|
+
};
|
|
6651
|
+
SliderTick.states = states38;
|
|
6652
|
+
SliderTick.options = options34;
|
|
6653
|
+
SliderTick.className = SLIDER_TICK_CLASSNAME;
|
|
6654
|
+
SliderTick.defaultProps = defaultProps34;
|
|
6655
|
+
|
|
6656
|
+
// src/slider/templates/slider-normal.tsx
|
|
6657
|
+
import { Fragment as Fragment20, jsx as jsx108, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6658
|
+
|
|
6659
|
+
// src/slider/templates/slider-vertical.tsx
|
|
6660
|
+
import { Fragment as Fragment21, jsx as jsx109, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
6661
|
+
|
|
6662
|
+
// src/slider/templates/slider-range.tsx
|
|
6663
|
+
import { Fragment as Fragment22, jsx as jsx110, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
6664
|
+
|
|
6665
|
+
// src/slider/templates/slider-range-vertical.tsx
|
|
6666
|
+
import { Fragment as Fragment23, jsx as jsx111, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
6667
|
+
|
|
6668
|
+
// src/slider/templates/slider-gradient.tsx
|
|
6669
|
+
import { Fragment as Fragment24, jsx as jsx112, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
6670
|
+
|
|
6671
|
+
// src/slider/templates/slider-gradient-vertical.tsx
|
|
6672
|
+
import { Fragment as Fragment25, jsx as jsx113, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
6673
|
+
var SliderGradientVertical = (props) => /* @__PURE__ */ jsx113(
|
|
6674
|
+
Slider,
|
|
6675
|
+
{
|
|
6676
|
+
type: "gradient",
|
|
6677
|
+
orientation: "vertical",
|
|
6678
|
+
showButtons: false,
|
|
6679
|
+
showTicks: false,
|
|
6680
|
+
children: /* @__PURE__ */ jsxs42(Fragment25, { children: [
|
|
6681
|
+
/* @__PURE__ */ jsx113(SliderTick, { label: true, large: true, text: "0" }),
|
|
6682
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6683
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6684
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6685
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6686
|
+
/* @__PURE__ */ jsx113(SliderTick, { label: true, large: true, text: "5" }),
|
|
6687
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6688
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6689
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6690
|
+
/* @__PURE__ */ jsx113(SliderTick, {}),
|
|
6691
|
+
/* @__PURE__ */ jsx113(SliderTick, { label: true, large: true, text: "10" })
|
|
6692
|
+
] }),
|
|
6693
|
+
...props
|
|
6694
|
+
}
|
|
6695
|
+
);
|
|
6696
|
+
|
|
6697
|
+
// src/textbox/textbox.spec.tsx
|
|
6698
|
+
import { Fragment as Fragment26, jsx as jsx114, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
6699
|
+
var TEXTBOX_CLASSNAME = `k-textbox`;
|
|
6700
|
+
var states39 = [
|
|
6701
|
+
States.hover,
|
|
6702
|
+
States.focus,
|
|
6703
|
+
States.valid,
|
|
6704
|
+
States.invalid,
|
|
6705
|
+
States.required,
|
|
6706
|
+
States.disabled,
|
|
6707
|
+
States.loading,
|
|
6708
|
+
States.readonly
|
|
6709
|
+
];
|
|
6710
|
+
var options35 = {
|
|
6711
|
+
size: [Size.small, Size.medium, Size.large],
|
|
6712
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
6713
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
6714
|
+
};
|
|
6715
|
+
var defaultProps35 = {
|
|
6716
|
+
showClearButton: true,
|
|
6717
|
+
size: Input.defaultProps.size,
|
|
6718
|
+
rounded: Input.defaultProps.rounded,
|
|
6719
|
+
fillMode: Input.defaultProps.fillMode
|
|
6720
|
+
};
|
|
6721
|
+
var Textbox = (props) => {
|
|
6722
|
+
const {
|
|
6723
|
+
prefix,
|
|
6724
|
+
suffix,
|
|
6725
|
+
value,
|
|
6726
|
+
placeholder,
|
|
6727
|
+
size,
|
|
6728
|
+
rounded,
|
|
6729
|
+
fillMode,
|
|
6730
|
+
hover,
|
|
6731
|
+
focus,
|
|
6732
|
+
valid,
|
|
6733
|
+
invalid,
|
|
6734
|
+
required,
|
|
6735
|
+
loading,
|
|
6736
|
+
disabled,
|
|
6737
|
+
readonly,
|
|
6738
|
+
showClearButton = defaultProps35.showClearButton,
|
|
6739
|
+
...other
|
|
6740
|
+
} = props;
|
|
6741
|
+
return /* @__PURE__ */ jsxs43(
|
|
6742
|
+
Input,
|
|
6743
|
+
{
|
|
6744
|
+
...other,
|
|
6745
|
+
size,
|
|
6746
|
+
rounded,
|
|
6747
|
+
fillMode,
|
|
6748
|
+
hover,
|
|
6749
|
+
focus,
|
|
6750
|
+
valid,
|
|
6751
|
+
invalid,
|
|
6752
|
+
required,
|
|
6753
|
+
loading,
|
|
6754
|
+
disabled,
|
|
6755
|
+
readonly,
|
|
6756
|
+
className: classNames(props.className, TEXTBOX_CLASSNAME),
|
|
6757
|
+
children: [
|
|
6758
|
+
prefix && /* @__PURE__ */ jsxs43(Fragment26, { children: [
|
|
6759
|
+
/* @__PURE__ */ jsx114(InputPrefix, { children: prefix }),
|
|
6760
|
+
/* @__PURE__ */ jsx114(InputSeparator, {})
|
|
6761
|
+
] }),
|
|
6762
|
+
/* @__PURE__ */ jsx114(InputInnerInput, { placeholder, value }),
|
|
6763
|
+
/* @__PURE__ */ jsx114(
|
|
6764
|
+
InputValidationIcon,
|
|
6765
|
+
{
|
|
6766
|
+
valid,
|
|
6767
|
+
invalid,
|
|
6768
|
+
loading,
|
|
6769
|
+
disabled
|
|
6770
|
+
}
|
|
6771
|
+
),
|
|
6772
|
+
/* @__PURE__ */ jsx114(
|
|
6773
|
+
InputLoadingIcon,
|
|
6774
|
+
{
|
|
6775
|
+
loading,
|
|
6776
|
+
disabled
|
|
6777
|
+
}
|
|
6778
|
+
),
|
|
6779
|
+
showClearButton && /* @__PURE__ */ jsx114(
|
|
6780
|
+
InputClearValue,
|
|
6781
|
+
{
|
|
6782
|
+
loading,
|
|
6783
|
+
disabled,
|
|
6784
|
+
readonly,
|
|
6785
|
+
value
|
|
6786
|
+
}
|
|
6787
|
+
),
|
|
6788
|
+
suffix && /* @__PURE__ */ jsxs43(Fragment26, { children: [
|
|
6789
|
+
/* @__PURE__ */ jsx114(InputSeparator, {}),
|
|
6790
|
+
/* @__PURE__ */ jsx114(InputSuffix, { children: suffix })
|
|
6791
|
+
] })
|
|
6792
|
+
]
|
|
6793
|
+
}
|
|
6794
|
+
);
|
|
6795
|
+
};
|
|
6796
|
+
Textbox.states = states39;
|
|
6797
|
+
Textbox.options = options35;
|
|
6798
|
+
Textbox.className = TEXTBOX_CLASSNAME;
|
|
6799
|
+
Textbox.defaultProps = defaultProps35;
|
|
6800
|
+
|
|
6801
|
+
// src/textbox/templates/textbox-normal.tsx
|
|
6802
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
6803
|
+
|
|
6804
|
+
// src/textbox/templates/textbox-prefix.tsx
|
|
6805
|
+
import { Fragment as Fragment27, jsx as jsx116 } from "react/jsx-runtime";
|
|
6806
|
+
|
|
6807
|
+
// src/textbox/templates/textbox-suffix.tsx
|
|
6808
|
+
import { Fragment as Fragment28, jsx as jsx117 } from "react/jsx-runtime";
|
|
6809
|
+
|
|
6810
|
+
// src/colorgradient/color-input.tsx
|
|
6811
|
+
import { Fragment as Fragment29, jsx as jsx118, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
6812
|
+
var COLOR_INPUT_CLASSNAME = "k-colorgradient-inputs";
|
|
6813
|
+
var states40 = [];
|
|
6814
|
+
var options36 = {};
|
|
6815
|
+
var defaultProps36 = {
|
|
6816
|
+
mode: "rgba"
|
|
6817
|
+
};
|
|
6818
|
+
var ColorInput = (props) => {
|
|
6819
|
+
const {
|
|
6820
|
+
mode = defaultProps36.mode
|
|
6821
|
+
} = props;
|
|
6822
|
+
return /* @__PURE__ */ jsxs44("div", { className: classNames(COLOR_INPUT_CLASSNAME, "k-hstack"), children: [
|
|
6823
|
+
/* @__PURE__ */ jsx118("div", { className: "k-vstack", children: /* @__PURE__ */ jsx118(Button, { fillMode: "flat", icon: "caret-alt-expand", className: "k-colorgradient-toggle-mode" }) }),
|
|
6824
|
+
mode === "rgba" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
|
|
6825
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6826
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6827
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "R" })
|
|
6828
|
+
] }),
|
|
6829
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6830
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6831
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "G" })
|
|
6832
|
+
] }),
|
|
6833
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6834
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6835
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "B" })
|
|
6836
|
+
] }),
|
|
6837
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6838
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "1.00" }),
|
|
6839
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "A" })
|
|
6840
|
+
] })
|
|
6841
|
+
] }),
|
|
6842
|
+
mode === "rgb" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
|
|
6843
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6844
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6845
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "R" })
|
|
6846
|
+
] }),
|
|
6847
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6848
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6849
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "G" })
|
|
6850
|
+
] }),
|
|
6851
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6852
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6853
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "B" })
|
|
6854
|
+
] })
|
|
6855
|
+
] }),
|
|
6856
|
+
mode === "hsva" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
|
|
6857
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6858
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6859
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "H" })
|
|
6860
|
+
] }),
|
|
6861
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6862
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6863
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "S" })
|
|
6864
|
+
] }),
|
|
6865
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6866
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6867
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "V" })
|
|
6868
|
+
] }),
|
|
6869
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6870
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "1.00" }),
|
|
6871
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "A" })
|
|
6872
|
+
] })
|
|
6873
|
+
] }),
|
|
6874
|
+
mode === "hsv" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
|
|
6875
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6876
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6877
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "H" })
|
|
6878
|
+
] }),
|
|
6879
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6880
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6881
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "S" })
|
|
6882
|
+
] }),
|
|
6883
|
+
/* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
|
|
6884
|
+
/* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
|
|
6885
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "V" })
|
|
6886
|
+
] })
|
|
6887
|
+
] }),
|
|
6888
|
+
mode === "hex" && /* @__PURE__ */ jsx118(Fragment29, { children: /* @__PURE__ */ jsxs44("div", { className: "k-vstack k-flex-1", children: [
|
|
6889
|
+
/* @__PURE__ */ jsx118(Textbox, { showClearButton: false, value: "#b88484AA", className: "k-hex-value" }),
|
|
6890
|
+
/* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "HEX" })
|
|
6891
|
+
] }) })
|
|
6892
|
+
] });
|
|
6893
|
+
};
|
|
6894
|
+
ColorInput.states = states40;
|
|
6895
|
+
ColorInput.options = options36;
|
|
6896
|
+
ColorInput.className = COLOR_INPUT_CLASSNAME;
|
|
6897
|
+
ColorInput.defaultProps = defaultProps36;
|
|
6898
|
+
|
|
6899
|
+
// src/colorgradient/color-contrast.tsx
|
|
6900
|
+
import { jsx as jsx119, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
6901
|
+
var COLOR_CONTRAST_CLASSNAME = "k-colorgradient-color-contrast";
|
|
6902
|
+
var states41 = [];
|
|
6903
|
+
var options37 = {};
|
|
6904
|
+
var defaultProps37 = {};
|
|
6905
|
+
var ColorContrast = () => /* @__PURE__ */ jsxs45("div", { className: classNames(COLOR_CONTRAST_CLASSNAME, "k-vbox"), children: [
|
|
6906
|
+
/* @__PURE__ */ jsxs45("div", { className: "k-contrast-ratio", children: [
|
|
6907
|
+
/* @__PURE__ */ jsx119("span", { className: "k-contrast-ratio-text", children: "Contrast ratio: 7.1" }),
|
|
6908
|
+
/* @__PURE__ */ jsxs45("span", { className: "k-contrast-validation !k-text-success", children: [
|
|
6909
|
+
/* @__PURE__ */ jsx119(Icon, { icon: "check" }),
|
|
6910
|
+
/* @__PURE__ */ jsx119(Icon, { icon: "check" })
|
|
6911
|
+
] })
|
|
6912
|
+
] }),
|
|
6913
|
+
/* @__PURE__ */ jsxs45("div", { children: [
|
|
6914
|
+
/* @__PURE__ */ jsx119("span", { children: "AA: 4.5" }),
|
|
6915
|
+
/* @__PURE__ */ jsxs45("span", { className: "k-contrast-validation !k-text-success", children: [
|
|
6916
|
+
"Pass",
|
|
6917
|
+
/* @__PURE__ */ jsx119(Icon, { icon: "check" })
|
|
6918
|
+
] })
|
|
6919
|
+
] }),
|
|
6920
|
+
/* @__PURE__ */ jsxs45("div", { children: [
|
|
6921
|
+
/* @__PURE__ */ jsx119("span", { children: "AAA: 7.0" }),
|
|
6922
|
+
/* @__PURE__ */ jsxs45("span", { className: "k-contrast-validation !k-text-error", children: [
|
|
6923
|
+
"Fail",
|
|
6924
|
+
/* @__PURE__ */ jsx119(Icon, { icon: "x" })
|
|
6925
|
+
] })
|
|
6926
|
+
] })
|
|
6927
|
+
] });
|
|
6928
|
+
ColorContrast.states = states41;
|
|
6929
|
+
ColorContrast.options = options37;
|
|
6930
|
+
ColorContrast.className = COLOR_CONTRAST_CLASSNAME;
|
|
6931
|
+
ColorContrast.defaultProps = defaultProps37;
|
|
6932
|
+
|
|
6933
|
+
// src/colorgradient/color-gradient.spec.tsx
|
|
6934
|
+
import { jsx as jsx120, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
6935
|
+
var COLOR_GRADIENT_CLASSNAME = "k-colorgradient";
|
|
6936
|
+
var states42 = [
|
|
6937
|
+
States.hover,
|
|
6938
|
+
States.focus,
|
|
6939
|
+
States.readonly,
|
|
6940
|
+
States.disabled
|
|
6941
|
+
];
|
|
6942
|
+
var options38 = {};
|
|
6943
|
+
var defaultProps38 = {
|
|
6944
|
+
mode: "rgba",
|
|
6945
|
+
readonly: false,
|
|
6946
|
+
disabled: false,
|
|
6947
|
+
contrast: false,
|
|
6948
|
+
gradientStyle: { background: "rgb(255, 0, 0 )" },
|
|
6949
|
+
dragHandleStyle: { top: "50px", left: "73px" },
|
|
6950
|
+
alphaStyle: { background: "linear-gradient(to top, transparent, rgb(255, 0, 0))" }
|
|
6951
|
+
};
|
|
6952
|
+
var ColorGradient = (props) => {
|
|
6953
|
+
const {
|
|
6954
|
+
mode = defaultProps38.mode,
|
|
6955
|
+
readonly = defaultProps38.readonly,
|
|
6956
|
+
disabled = defaultProps38.disabled,
|
|
6957
|
+
dir,
|
|
6958
|
+
contrast = defaultProps38.contrast,
|
|
6959
|
+
hover,
|
|
6960
|
+
focus,
|
|
6961
|
+
hoverHandle,
|
|
6962
|
+
focusHandle,
|
|
6963
|
+
gradientStyle = defaultProps38.gradientStyle,
|
|
6964
|
+
dragHandleStyle = defaultProps38.dragHandleStyle,
|
|
6965
|
+
alphaStyle = defaultProps38.alphaStyle
|
|
6966
|
+
} = props;
|
|
6967
|
+
return /* @__PURE__ */ jsxs46("div", { className: classNames(
|
|
6968
|
+
props.className,
|
|
6969
|
+
COLOR_GRADIENT_CLASSNAME,
|
|
6970
|
+
stateClassNames(COLOR_GRADIENT_CLASSNAME, {
|
|
6971
|
+
hover,
|
|
6972
|
+
focus,
|
|
6973
|
+
readonly,
|
|
6974
|
+
disabled
|
|
6975
|
+
})
|
|
6976
|
+
), dir, children: [
|
|
6977
|
+
/* @__PURE__ */ jsxs46("div", { className: "k-colorgradient-canvas k-hstack", children: [
|
|
6978
|
+
/* @__PURE__ */ jsx120("div", { className: "k-hsv-rectangle", style: gradientStyle, children: /* @__PURE__ */ jsx120("div", { className: "k-hsv-gradient", children: /* @__PURE__ */ jsx120("div", { className: classNames(
|
|
6979
|
+
"k-hsv-draghandle",
|
|
6980
|
+
"k-draghandle",
|
|
6981
|
+
{
|
|
6982
|
+
"k-hover": hoverHandle,
|
|
6983
|
+
"k-focus": focusHandle
|
|
6984
|
+
}
|
|
6985
|
+
), style: dragHandleStyle }) }) }),
|
|
6986
|
+
/* @__PURE__ */ jsxs46("div", { className: "k-hsv-controls k-hstack", children: [
|
|
6987
|
+
/* @__PURE__ */ jsx120(SliderGradientVertical, { className: "k-hue-slider", hover: hoverHandle, focus: focusHandle }),
|
|
6988
|
+
mode !== "rgb" && mode !== "hsv" && /* @__PURE__ */ jsx120(SliderGradientVertical, { className: "k-alpha-slider", hover: hoverHandle, focus: focusHandle, trackStyle: alphaStyle })
|
|
6989
|
+
] })
|
|
6990
|
+
] }),
|
|
6991
|
+
/* @__PURE__ */ jsx120(ColorInput, { mode: props.mode }),
|
|
6992
|
+
contrast && /* @__PURE__ */ jsx120(ColorContrast, {})
|
|
6993
|
+
] });
|
|
6994
|
+
};
|
|
6995
|
+
ColorGradient.states = states42;
|
|
6996
|
+
ColorGradient.options = options38;
|
|
6997
|
+
ColorGradient.className = COLOR_GRADIENT_CLASSNAME;
|
|
6998
|
+
ColorGradient.defaultProps = defaultProps38;
|
|
6999
|
+
|
|
7000
|
+
// src/colorgradient/templates/colorgradient-normal.tsx
|
|
7001
|
+
import { jsx as jsx121 } from "react/jsx-runtime";
|
|
7002
|
+
|
|
7003
|
+
// src/colorgradient/templates/colorgradient-contrast.tsx
|
|
7004
|
+
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
7005
|
+
|
|
7006
|
+
// src/colorpalette/colorpalette-row.tsx
|
|
7007
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
7008
|
+
var ColorPaletteRow = (props) => /* @__PURE__ */ jsx123("tr", { children: props.children });
|
|
7009
|
+
|
|
7010
|
+
// src/colorpalette/colorpalette-tile.tsx
|
|
7011
|
+
import { jsx as jsx124 } from "react/jsx-runtime";
|
|
7012
|
+
var COLORPALETTETILE_CLASSNAME = `k-colorpalette-tile`;
|
|
7013
|
+
var states43 = [
|
|
7014
|
+
States.hover,
|
|
7015
|
+
States.focus,
|
|
7016
|
+
States.selected
|
|
7017
|
+
];
|
|
7018
|
+
var options39 = {};
|
|
7019
|
+
var ColorPaletteTile = (props) => {
|
|
7020
|
+
const {
|
|
7021
|
+
color,
|
|
7022
|
+
tileSize,
|
|
7023
|
+
hover,
|
|
7024
|
+
focus,
|
|
7025
|
+
selected,
|
|
7026
|
+
...other
|
|
7027
|
+
} = props;
|
|
7028
|
+
const styles = {
|
|
7029
|
+
"background-color": color,
|
|
7030
|
+
"width": tileSize ? tileSize + "px" : "",
|
|
7031
|
+
"height": tileSize ? tileSize + "px" : ""
|
|
7032
|
+
};
|
|
7033
|
+
return /* @__PURE__ */ jsx124(
|
|
7034
|
+
"td",
|
|
7035
|
+
{
|
|
7036
|
+
...other,
|
|
7037
|
+
className: classNames(
|
|
7038
|
+
props.className,
|
|
7039
|
+
COLORPALETTETILE_CLASSNAME,
|
|
7040
|
+
stateClassNames(COLORPALETTETILE_CLASSNAME, {
|
|
7041
|
+
hover,
|
|
7042
|
+
focus,
|
|
7043
|
+
selected
|
|
7044
|
+
})
|
|
7045
|
+
),
|
|
7046
|
+
style: styles
|
|
7047
|
+
}
|
|
7048
|
+
);
|
|
7049
|
+
};
|
|
7050
|
+
ColorPaletteTile.states = states43;
|
|
7051
|
+
ColorPaletteTile.options = options39;
|
|
7052
|
+
ColorPaletteTile.className = COLORPALETTETILE_CLASSNAME;
|
|
7053
|
+
|
|
7054
|
+
// src/colorpalette/colorpalette.spec.tsx
|
|
7055
|
+
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
7056
|
+
var COLORPALETTE_CLASSNAME = `k-colorpalette`;
|
|
7057
|
+
var states44 = [
|
|
7058
|
+
States.disabled
|
|
7059
|
+
];
|
|
7060
|
+
var options40 = {};
|
|
7061
|
+
var defaultProps39 = {
|
|
7062
|
+
columns: 10
|
|
7063
|
+
};
|
|
7064
|
+
var ColorPalette = (props) => {
|
|
7065
|
+
const {
|
|
7066
|
+
palette,
|
|
7067
|
+
columns = defaultProps39.columns,
|
|
7068
|
+
tileSize,
|
|
7069
|
+
disabled,
|
|
7070
|
+
...other
|
|
7071
|
+
} = props;
|
|
7072
|
+
const newChildren = [];
|
|
7073
|
+
if (palette) {
|
|
7074
|
+
const cols = columns || palette.columns;
|
|
7075
|
+
const colors = palette.colors ? palette.colors : palette;
|
|
7076
|
+
if (Array.isArray(colors)) {
|
|
7077
|
+
Array.from({ length: Math.ceil(colors.length / cols) }, (_, i) => {
|
|
7078
|
+
const items = [];
|
|
7079
|
+
colors.slice(i * cols, (i + 1) * cols).map((color) => {
|
|
7080
|
+
items.push(/* @__PURE__ */ jsx125(ColorPaletteTile, { color, tileSize }));
|
|
7081
|
+
});
|
|
7082
|
+
const row = /* @__PURE__ */ jsx125(ColorPaletteRow, { children: items });
|
|
7083
|
+
newChildren.push(row);
|
|
7084
|
+
});
|
|
7085
|
+
}
|
|
7086
|
+
}
|
|
7087
|
+
return /* @__PURE__ */ jsx125(
|
|
7088
|
+
"div",
|
|
7089
|
+
{
|
|
7090
|
+
...other,
|
|
7091
|
+
className: classNames(
|
|
7092
|
+
props.className,
|
|
7093
|
+
COLORPALETTE_CLASSNAME,
|
|
7094
|
+
stateClassNames(COLORPALETTE_CLASSNAME, {
|
|
7095
|
+
disabled
|
|
7096
|
+
})
|
|
7097
|
+
),
|
|
7098
|
+
children: /* @__PURE__ */ jsx125("table", { className: "k-colorpalette-table", children: newChildren.length > 0 ? newChildren : props.children })
|
|
7099
|
+
}
|
|
7100
|
+
);
|
|
7101
|
+
};
|
|
7102
|
+
ColorPalette.states = states44;
|
|
7103
|
+
ColorPalette.options = options40;
|
|
7104
|
+
ColorPalette.className = COLORPALETTE_CLASSNAME;
|
|
7105
|
+
ColorPalette.defaultProps = defaultProps39;
|
|
7106
|
+
|
|
7107
|
+
// src/colorpalette/templates/colorpalette-normal.tsx
|
|
7108
|
+
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
7109
|
+
|
|
7110
|
+
// src/colorpalette/colorpalette-presets.tsx
|
|
7111
|
+
var PALETTEPRESETS = {
|
|
7112
|
+
basic: {
|
|
7113
|
+
colors: ["#000000", "#7f7f7f", "#880015", "#ed1c24", "#ff7f27", "#fff200", "#22b14c", "#00a2e8", "#3f48cc", "#a349a4", "#ffffff", "#c3c3c3", "#b97a57", "#ffaec9", "#ffc90e", "#efe4b0", "#b5e61d", "#99d9ea", "#7092be", "#c8bfe7"],
|
|
7114
|
+
columns: 10
|
|
7115
|
+
},
|
|
7116
|
+
office: {
|
|
7117
|
+
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"],
|
|
7118
|
+
columns: 10
|
|
7119
|
+
},
|
|
7120
|
+
apex: {
|
|
7121
|
+
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"],
|
|
7122
|
+
columns: 10
|
|
7123
|
+
},
|
|
7124
|
+
austin: {
|
|
7125
|
+
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"],
|
|
7126
|
+
columns: 10
|
|
7127
|
+
},
|
|
7128
|
+
clarity: {
|
|
7129
|
+
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"],
|
|
7130
|
+
columns: 10
|
|
7131
|
+
},
|
|
7132
|
+
slipstream: {
|
|
7133
|
+
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"],
|
|
7134
|
+
columns: 10
|
|
7135
|
+
},
|
|
7136
|
+
metro: {
|
|
7137
|
+
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"],
|
|
7138
|
+
columns: 10
|
|
7139
|
+
},
|
|
7140
|
+
flow: {
|
|
7141
|
+
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"],
|
|
7142
|
+
columns: 10
|
|
7143
|
+
},
|
|
7144
|
+
hardcover: {
|
|
7145
|
+
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"],
|
|
7146
|
+
columns: 10
|
|
7147
|
+
},
|
|
7148
|
+
trek: {
|
|
7149
|
+
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"],
|
|
7150
|
+
columns: 10
|
|
7151
|
+
},
|
|
7152
|
+
verve: {
|
|
7153
|
+
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"],
|
|
7154
|
+
columns: 10
|
|
7155
|
+
},
|
|
7156
|
+
monochrome: {
|
|
7157
|
+
colors: ["#000000", "#1a1a1a", "#333333", "#4d4d4d", "#666666", "#808080", "#999999", "#b3b3b3", "#cccccc", "#e6e6e6", "#f2f2f2", "#ffffff"],
|
|
7158
|
+
columns: 12
|
|
7159
|
+
}
|
|
7160
|
+
};
|
|
7161
|
+
|
|
7162
|
+
// src/coloreditor/color-editor.spec.tsx
|
|
7163
|
+
import { jsx as jsx127, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7164
|
+
var COLOREDITOR_CLASSNAME = "k-coloreditor";
|
|
7165
|
+
var states45 = [
|
|
7166
|
+
States.focus
|
|
7167
|
+
];
|
|
7168
|
+
var options41 = {};
|
|
7169
|
+
var defaultProps40 = {
|
|
7170
|
+
view: "gradient",
|
|
7171
|
+
currentColor: "fuchsia",
|
|
7172
|
+
palette: PALETTEPRESETS.office
|
|
7173
|
+
};
|
|
7174
|
+
var ColorEditor = (props) => {
|
|
7175
|
+
const {
|
|
7176
|
+
view = defaultProps40.view,
|
|
7177
|
+
color,
|
|
7178
|
+
currentColor = defaultProps40.currentColor,
|
|
7179
|
+
focus,
|
|
7180
|
+
focusView,
|
|
7181
|
+
dir,
|
|
7182
|
+
group,
|
|
7183
|
+
palette = defaultProps40.palette
|
|
7184
|
+
} = props;
|
|
7185
|
+
return /* @__PURE__ */ jsxs47("div", { className: classNames(
|
|
7186
|
+
props.className,
|
|
7187
|
+
"k-flatcolorpicker",
|
|
7188
|
+
COLOREDITOR_CLASSNAME,
|
|
7189
|
+
stateClassNames(COLOREDITOR_CLASSNAME, { focus })
|
|
7190
|
+
), dir, children: [
|
|
7191
|
+
/* @__PURE__ */ jsxs47("div", { className: "k-coloreditor-header k-hstack", children: [
|
|
7192
|
+
/* @__PURE__ */ jsx127("div", { className: "k-coloreditor-header-actions k-hstack", children: group && /* @__PURE__ */ jsxs47(ButtonGroup, { children: [
|
|
7193
|
+
/* @__PURE__ */ jsx127(Button, { fillMode: "flat", icon: "droplet-slider", selected: view === "gradient" }),
|
|
7194
|
+
/* @__PURE__ */ jsx127(Button, { fillMode: "flat", icon: "palette", selected: view === "palette" })
|
|
7195
|
+
] }) }),
|
|
7196
|
+
/* @__PURE__ */ jsx127("div", { className: "k-spacer" }),
|
|
7197
|
+
/* @__PURE__ */ jsxs47("div", { className: "k-coloreditor-header-actions k-hstack", children: [
|
|
7198
|
+
/* @__PURE__ */ jsx127(Button, { fillMode: "flat", icon: "droplet-slash" }),
|
|
7199
|
+
/* @__PURE__ */ jsxs47("div", { className: "k-coloreditor-preview k-vstack", children: [
|
|
7200
|
+
/* @__PURE__ */ jsx127(ColorPreview, { className: "k-coloreditor-preview-color", color }),
|
|
7201
|
+
/* @__PURE__ */ jsx127(ColorPreview, { className: "k-coloreditor-current-color", color: currentColor })
|
|
7202
|
+
] })
|
|
7203
|
+
] })
|
|
7204
|
+
] }),
|
|
7205
|
+
/* @__PURE__ */ jsx127("div", { className: "k-coloreditor-views k-vstack", children: view === "gradient" ? /* @__PURE__ */ jsx127(ColorGradient, { focus: focusView }) : /* @__PURE__ */ jsx127(ColorPalette, { palette }) }),
|
|
7206
|
+
/* @__PURE__ */ jsxs47(ActionButtons, { className: "k-coloreditor-footer", alignment: "end", children: [
|
|
7207
|
+
/* @__PURE__ */ jsx127(Button, { className: "k-coloreditor-cancel", children: "Cancel" }),
|
|
7208
|
+
/* @__PURE__ */ jsx127(Button, { themeColor: "primary", className: "k-coloreditor-apply", children: "Apply" })
|
|
7209
|
+
] })
|
|
7210
|
+
] });
|
|
7211
|
+
};
|
|
7212
|
+
ColorEditor.states = states45;
|
|
7213
|
+
ColorEditor.options = options41;
|
|
7214
|
+
ColorEditor.className = COLOREDITOR_CLASSNAME;
|
|
7215
|
+
ColorEditor.defaultProps = defaultProps40;
|
|
7216
|
+
|
|
7217
|
+
// src/coloreditor/templates/coloreditor-normal.tsx
|
|
7218
|
+
import { jsx as jsx128 } from "react/jsx-runtime";
|
|
7219
|
+
|
|
7220
|
+
// src/coloreditor/templates/coloreditor-palette.tsx
|
|
7221
|
+
import { jsx as jsx129 } from "react/jsx-runtime";
|
|
7222
|
+
|
|
7223
|
+
// src/coloreditor/templates/coloreditor-group.tsx
|
|
7224
|
+
import { jsx as jsx130 } from "react/jsx-runtime";
|
|
7225
|
+
|
|
7226
|
+
// src/coloreditor/templates/coloreditor-palette-group.tsx
|
|
7227
|
+
import { jsx as jsx131 } from "react/jsx-runtime";
|
|
7228
|
+
|
|
7229
|
+
// src/colorpicker/templates/colorpicker-popup-gradient.tsx
|
|
7230
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
|
7231
|
+
|
|
7232
|
+
// src/colorpicker/templates/colorpicker-popup-palette.tsx
|
|
7233
|
+
import { jsx as jsx133 } from "react/jsx-runtime";
|
|
7234
|
+
|
|
7235
|
+
// src/action-sheet/action-sheet.spec.tsx
|
|
7236
|
+
import { Fragment as Fragment30, jsx as jsx134, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7237
|
+
var ACTIONSHEET_CLASSNAME = `k-actionsheet`;
|
|
7238
|
+
var states46 = [];
|
|
7239
|
+
var options42 = {};
|
|
7240
|
+
var defaultProps41 = {
|
|
7241
|
+
side: "bottom",
|
|
7242
|
+
fullscreen: false,
|
|
7243
|
+
adaptive: false,
|
|
7244
|
+
overlay: true
|
|
7245
|
+
};
|
|
7246
|
+
var ActionSheet = (props) => {
|
|
7247
|
+
const {
|
|
7248
|
+
children,
|
|
7249
|
+
title,
|
|
7250
|
+
header,
|
|
7251
|
+
footer,
|
|
7252
|
+
actions,
|
|
7253
|
+
side = defaultProps41.side,
|
|
7254
|
+
fullscreen = defaultProps41.fullscreen,
|
|
7255
|
+
adaptive = defaultProps41.adaptive,
|
|
7256
|
+
overlay = defaultProps41.overlay,
|
|
7257
|
+
...other
|
|
7258
|
+
} = props;
|
|
7259
|
+
const _ActionSheetHeader = title ? /* @__PURE__ */ jsx134(ActionSheetHeader, { title }) : header ? header : Array.isArray(children) && children.find((child) => child.type === ActionSheetHeader);
|
|
7260
|
+
const _ActionSheetFooter = actions ? /* @__PURE__ */ jsx134(ActionSheetFooter, { className: "k-actions", actions }) : footer ? typeof footer === "string" ? /* @__PURE__ */ jsx134(ActionSheetFooter, { children: footer }) : footer : Array.isArray(children) && children.find((child) => child.type === ActionSheetFooter);
|
|
7261
|
+
const _ActionSheetContent = Array.isArray(children) ? children.filter((child) => {
|
|
7262
|
+
switch (child.type) {
|
|
7263
|
+
case ActionSheetHeader:
|
|
7264
|
+
case ActionSheetFooter:
|
|
7265
|
+
return false;
|
|
7266
|
+
default:
|
|
7267
|
+
return true;
|
|
7268
|
+
}
|
|
7269
|
+
return true;
|
|
7270
|
+
}) : children.type === ActionSheetItems ? children : /* @__PURE__ */ jsx134(Fragment30, {});
|
|
7271
|
+
return /* @__PURE__ */ jsxs48("div", { className: "k-actionsheet-container", children: [
|
|
7272
|
+
overlay && /* @__PURE__ */ jsx134("div", { className: "k-overlay" }),
|
|
7273
|
+
/* @__PURE__ */ jsx134(
|
|
7274
|
+
AnimationContainer,
|
|
7275
|
+
{
|
|
7276
|
+
animationStyle: {
|
|
7277
|
+
[`${fullscreen === true ? "top" : side}`]: 0,
|
|
7278
|
+
[`${fullscreen === true ? "width" : null}`]: "100%",
|
|
7279
|
+
[`${fullscreen === true ? "height" : null}`]: "100%",
|
|
7280
|
+
[`${side === "top" || side === "bottom" ? "width" : null}`]: "100%",
|
|
7281
|
+
[`${side === "left" || side === "right" ? "height" : null}`]: "100%"
|
|
7282
|
+
},
|
|
7283
|
+
children: /* @__PURE__ */ jsx134(
|
|
7284
|
+
"div",
|
|
7285
|
+
{
|
|
7286
|
+
...other,
|
|
7287
|
+
className: classNames(
|
|
7288
|
+
props.className,
|
|
7289
|
+
ACTIONSHEET_CLASSNAME,
|
|
7290
|
+
{
|
|
7291
|
+
[`k-actionsheet-${side}`]: fullscreen === false,
|
|
7292
|
+
"k-actionsheet-fullscreen": fullscreen === true,
|
|
7293
|
+
"k-adaptive-actionsheet": adaptive
|
|
7294
|
+
}
|
|
7295
|
+
),
|
|
7296
|
+
children: /* @__PURE__ */ jsxs48(Fragment30, { children: [
|
|
7297
|
+
_ActionSheetHeader,
|
|
7298
|
+
/* @__PURE__ */ jsx134("div", { className: classNames(
|
|
7299
|
+
"k-actionsheet-content",
|
|
7300
|
+
{
|
|
7301
|
+
"!k-overflow-hidden": adaptive
|
|
7302
|
+
}
|
|
7303
|
+
), children: _ActionSheetContent }),
|
|
7304
|
+
_ActionSheetFooter
|
|
7305
|
+
] })
|
|
7306
|
+
}
|
|
7307
|
+
)
|
|
7308
|
+
}
|
|
7309
|
+
)
|
|
7310
|
+
] });
|
|
7311
|
+
};
|
|
7312
|
+
ActionSheet.states = states46;
|
|
7313
|
+
ActionSheet.options = options42;
|
|
7314
|
+
ActionSheet.className = ACTIONSHEET_CLASSNAME;
|
|
7315
|
+
ActionSheet.defaultProps = defaultProps41;
|
|
7316
|
+
|
|
7317
|
+
// src/action-sheet/actionsheet-header.tsx
|
|
7318
|
+
import { Fragment as Fragment31, jsx as jsx135, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
7319
|
+
var ACTIONSHEETHEADER_CLASSNAME = `k-actionsheet-titlebar`;
|
|
7320
|
+
var ActionSheetHeader = (props) => {
|
|
7321
|
+
const {
|
|
7322
|
+
title,
|
|
7323
|
+
subTitle,
|
|
7324
|
+
actions,
|
|
7325
|
+
filter,
|
|
7326
|
+
...other
|
|
7327
|
+
} = props;
|
|
7328
|
+
return /* @__PURE__ */ jsx135(
|
|
7329
|
+
"div",
|
|
7330
|
+
{
|
|
7331
|
+
...other,
|
|
7332
|
+
className: classNames(
|
|
7333
|
+
props.className,
|
|
7334
|
+
ACTIONSHEETHEADER_CLASSNAME
|
|
7335
|
+
),
|
|
7336
|
+
children: /* @__PURE__ */ jsxs49(Fragment31, { children: [
|
|
7337
|
+
/* @__PURE__ */ jsxs49("div", { className: "k-actionsheet-titlebar-group k-hbox", children: [
|
|
7338
|
+
!props.children && (title || subTitle) && /* @__PURE__ */ jsx135(Fragment31, { children: /* @__PURE__ */ jsxs49("div", { className: "k-actionsheet-title", children: [
|
|
7339
|
+
title !== "" && /* @__PURE__ */ jsx135("div", { className: "k-text-center", children: title }),
|
|
7340
|
+
subTitle !== "" && /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-subtitle k-text-center", children: subTitle })
|
|
7341
|
+
] }) }),
|
|
7342
|
+
props.children && /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-title", children: props.children }),
|
|
7343
|
+
actions && /* @__PURE__ */ jsx135(Fragment31, { children: /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-actions", children: actions.map((actionName) => /* @__PURE__ */ jsx135(Button, { icon: actionName, size: "large", fillMode: "flat" }, actionName)) }) })
|
|
7344
|
+
] }),
|
|
7345
|
+
filter && /* @__PURE__ */ jsx135(Fragment31, { children: /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter", children: /* @__PURE__ */ jsx135(Searchbox, { placeholder: "Filter", size: "large" }) }) })
|
|
7346
|
+
] })
|
|
7347
|
+
}
|
|
7348
|
+
);
|
|
7349
|
+
};
|
|
7350
|
+
|
|
7351
|
+
// src/action-sheet/actionsheet-footer.tsx
|
|
7352
|
+
import { Fragment as Fragment32, jsx as jsx136, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
7353
|
+
var ACTIONSHEETFOOTER_CLASSNAME = `k-actionsheet-footer`;
|
|
7354
|
+
var ActionSheetFooter = (props) => {
|
|
7355
|
+
const {
|
|
7356
|
+
actions,
|
|
7357
|
+
...other
|
|
7358
|
+
} = props;
|
|
7359
|
+
return /* @__PURE__ */ jsx136(
|
|
7360
|
+
action_buttons_spec_default,
|
|
7361
|
+
{
|
|
7362
|
+
...other,
|
|
7363
|
+
className: classNames(
|
|
7364
|
+
props.className,
|
|
7365
|
+
ACTIONSHEETFOOTER_CLASSNAME
|
|
7366
|
+
),
|
|
7367
|
+
alignment: "stretched",
|
|
7368
|
+
children: /* @__PURE__ */ jsxs50(Fragment32, { children: [
|
|
7369
|
+
actions && actions.map((action, index) => {
|
|
7370
|
+
if (action === "|") {
|
|
7371
|
+
return /* @__PURE__ */ jsx136("span", { className: "k-separator" }, index);
|
|
7372
|
+
}
|
|
7373
|
+
if (action === " ") {
|
|
7374
|
+
return /* @__PURE__ */ jsx136("span", { className: "k-spacer" }, index);
|
|
7375
|
+
}
|
|
7376
|
+
const importantFlag = action.startsWith("!");
|
|
7377
|
+
const actionName = importantFlag ? action.substring(1) : action;
|
|
7378
|
+
return /* @__PURE__ */ jsx136(Button, { text: actionName, size: "large", themeColor: importantFlag ? "primary" : "base" }, index);
|
|
7379
|
+
}),
|
|
7380
|
+
!actions && props.children
|
|
7381
|
+
] })
|
|
7382
|
+
}
|
|
7383
|
+
);
|
|
7384
|
+
};
|
|
7385
|
+
|
|
7386
|
+
// src/action-sheet/actionsheet-items.tsx
|
|
7387
|
+
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
7388
|
+
var ActionSheetItems = (props) => {
|
|
7389
|
+
const {
|
|
7390
|
+
...other
|
|
7391
|
+
} = props;
|
|
7392
|
+
return /* @__PURE__ */ jsx137(
|
|
7393
|
+
"div",
|
|
7394
|
+
{
|
|
7395
|
+
...other,
|
|
7396
|
+
className: classNames(
|
|
7397
|
+
props.className,
|
|
7398
|
+
"k-list-ul"
|
|
7399
|
+
),
|
|
7400
|
+
children: props.children
|
|
7401
|
+
}
|
|
7402
|
+
);
|
|
7403
|
+
};
|
|
7404
|
+
|
|
7405
|
+
// src/action-sheet/actionsheet-item.tsx
|
|
7406
|
+
import { Fragment as Fragment33, jsx as jsx138, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
7407
|
+
var states47 = [
|
|
7408
|
+
States.hover,
|
|
7409
|
+
States.focus,
|
|
7410
|
+
States.selected,
|
|
7411
|
+
States.disabled
|
|
7412
|
+
];
|
|
7413
|
+
|
|
7414
|
+
// src/combobox/combobox.spec.tsx
|
|
7415
|
+
import { Fragment as Fragment34, jsx as jsx139, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
7416
|
+
var COMBOBOX_CLASSNAME = `k-combobox`;
|
|
7417
|
+
var states48 = [
|
|
7418
|
+
States.hover,
|
|
7419
|
+
States.focus,
|
|
7420
|
+
States.valid,
|
|
7421
|
+
States.invalid,
|
|
7422
|
+
States.loading,
|
|
7423
|
+
States.required,
|
|
7424
|
+
States.disabled,
|
|
7425
|
+
States.readonly
|
|
7426
|
+
];
|
|
7427
|
+
var defaultProps42 = {
|
|
7428
|
+
size: Input.defaultProps.size,
|
|
7429
|
+
rounded: Input.defaultProps.rounded,
|
|
7430
|
+
fillMode: Input.defaultProps.fillMode
|
|
7431
|
+
};
|
|
7432
|
+
var options43 = {
|
|
7433
|
+
size: [Size.small, Size.medium, Size.large],
|
|
7434
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
7435
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
7436
|
+
};
|
|
7437
|
+
var Combobox = (props) => {
|
|
7438
|
+
const {
|
|
7439
|
+
prefix,
|
|
7440
|
+
suffix,
|
|
7441
|
+
value,
|
|
7442
|
+
placeholder,
|
|
7443
|
+
size,
|
|
7444
|
+
rounded,
|
|
7445
|
+
fillMode,
|
|
7446
|
+
hover,
|
|
7447
|
+
focus,
|
|
7448
|
+
valid,
|
|
7449
|
+
invalid,
|
|
7450
|
+
required,
|
|
7451
|
+
loading,
|
|
7452
|
+
disabled,
|
|
7453
|
+
popup,
|
|
7454
|
+
opened,
|
|
7455
|
+
readonly,
|
|
7456
|
+
adaptive,
|
|
7457
|
+
adaptiveSettings,
|
|
7458
|
+
...other
|
|
7459
|
+
} = props;
|
|
7460
|
+
return /* @__PURE__ */ jsxs52(Fragment34, { children: [
|
|
7461
|
+
/* @__PURE__ */ jsxs52(
|
|
7462
|
+
Input,
|
|
7463
|
+
{
|
|
7464
|
+
...other,
|
|
7465
|
+
size,
|
|
7466
|
+
rounded,
|
|
7467
|
+
fillMode,
|
|
7468
|
+
hover,
|
|
7469
|
+
focus,
|
|
7470
|
+
valid,
|
|
7471
|
+
invalid,
|
|
7472
|
+
required,
|
|
7473
|
+
loading,
|
|
7474
|
+
disabled,
|
|
7475
|
+
readonly,
|
|
7476
|
+
className: classNames(props.className, COMBOBOX_CLASSNAME),
|
|
7477
|
+
children: [
|
|
7478
|
+
prefix && /* @__PURE__ */ jsxs52(Fragment34, { children: [
|
|
7479
|
+
/* @__PURE__ */ jsx139(InputPrefix, { children: prefix }),
|
|
7480
|
+
/* @__PURE__ */ jsx139(InputSeparator, {})
|
|
7481
|
+
] }),
|
|
7482
|
+
/* @__PURE__ */ jsx139(InputInnerInput, { placeholder, value }),
|
|
7483
|
+
/* @__PURE__ */ jsx139(
|
|
7484
|
+
InputValidationIcon,
|
|
7485
|
+
{
|
|
7486
|
+
valid,
|
|
7487
|
+
invalid,
|
|
7488
|
+
loading,
|
|
7489
|
+
disabled
|
|
7490
|
+
}
|
|
7491
|
+
),
|
|
7492
|
+
/* @__PURE__ */ jsx139(
|
|
7493
|
+
InputLoadingIcon,
|
|
7494
|
+
{
|
|
7495
|
+
loading,
|
|
7496
|
+
disabled
|
|
7497
|
+
}
|
|
7498
|
+
),
|
|
7499
|
+
/* @__PURE__ */ jsx139(
|
|
7500
|
+
InputClearValue,
|
|
7501
|
+
{
|
|
7502
|
+
loading,
|
|
7503
|
+
disabled,
|
|
7504
|
+
readonly,
|
|
7505
|
+
value
|
|
7506
|
+
}
|
|
7507
|
+
),
|
|
7508
|
+
suffix && /* @__PURE__ */ jsxs52(Fragment34, { children: [
|
|
7509
|
+
/* @__PURE__ */ jsx139(InputSeparator, {}),
|
|
7510
|
+
/* @__PURE__ */ jsx139(InputSuffix, { children: suffix })
|
|
7511
|
+
] }),
|
|
7512
|
+
/* @__PURE__ */ jsx139(
|
|
7513
|
+
Button,
|
|
7514
|
+
{
|
|
7515
|
+
className: "k-input-button",
|
|
7516
|
+
icon: "caret-alt-down",
|
|
7517
|
+
rounded: null,
|
|
7518
|
+
size,
|
|
7519
|
+
fillMode
|
|
7520
|
+
}
|
|
7521
|
+
)
|
|
7522
|
+
]
|
|
7523
|
+
}
|
|
7524
|
+
),
|
|
7525
|
+
opened && popup && /* @__PURE__ */ jsx139(Popup, { className: "k-list-container k-combobox-popup", children: popup }),
|
|
7526
|
+
adaptive && /* @__PURE__ */ jsxs52(ActionSheet, { adaptive: true, ...adaptiveSettings, children: [
|
|
7527
|
+
/* @__PURE__ */ jsx139(
|
|
7528
|
+
ActionSheetHeader,
|
|
7529
|
+
{
|
|
7530
|
+
actions: ["x"],
|
|
7531
|
+
filter: true,
|
|
7532
|
+
title: "Select Item"
|
|
7533
|
+
}
|
|
7534
|
+
),
|
|
7535
|
+
/* @__PURE__ */ jsx139("div", { className: "k-list-container", children: /* @__PURE__ */ jsxs52(List, { size: "large", children: [
|
|
7536
|
+
/* @__PURE__ */ jsx139(ListItem, { text: "List item" }),
|
|
7537
|
+
/* @__PURE__ */ jsx139(ListItem, { text: "List item" }),
|
|
7538
|
+
/* @__PURE__ */ jsx139(ListItem, { text: "List item" })
|
|
7539
|
+
] }) })
|
|
7540
|
+
] })
|
|
7541
|
+
] });
|
|
7542
|
+
};
|
|
7543
|
+
Combobox.states = states48;
|
|
7544
|
+
Combobox.options = options43;
|
|
7545
|
+
Combobox.className = COMBOBOX_CLASSNAME;
|
|
7546
|
+
Combobox.defaultProps = defaultProps42;
|
|
7547
|
+
|
|
7548
|
+
// src/combobox/templates/combobox-normal.tsx
|
|
7549
|
+
import { jsx as jsx140 } from "react/jsx-runtime";
|
|
7550
|
+
|
|
7551
|
+
// src/combobox/templates/combobox-popup.tsx
|
|
7552
|
+
import { jsx as jsx141, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
7553
|
+
|
|
7554
|
+
// src/combobox/templates/combobox-grouping.tsx
|
|
7555
|
+
import { jsx as jsx142, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
7556
|
+
|
|
7557
|
+
// src/combobox/templates/combobox-adaptive.tsx
|
|
7558
|
+
import { jsx as jsx143 } from "react/jsx-runtime";
|
|
7559
|
+
|
|
7560
|
+
// src/combobox/templates/combobox-prefix.tsx
|
|
7561
|
+
import { Fragment as Fragment35, jsx as jsx144 } from "react/jsx-runtime";
|
|
7562
|
+
|
|
7563
|
+
// src/combobox/templates/combobox-suffix.tsx
|
|
7564
|
+
import { Fragment as Fragment36, jsx as jsx145 } from "react/jsx-runtime";
|
|
7565
|
+
|
|
7566
|
+
// src/menu-button/menu-button.spec.tsx
|
|
7567
|
+
import { Fragment as Fragment37, jsx as jsx146, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
7568
|
+
var MENUBUTTON_CLASSNAME = `k-menu-button`;
|
|
7569
|
+
var states49 = [
|
|
7570
|
+
States.hover,
|
|
7571
|
+
States.focus,
|
|
7572
|
+
States.active,
|
|
7573
|
+
States.selected,
|
|
7574
|
+
States.disabled
|
|
7575
|
+
];
|
|
7576
|
+
var options44 = {
|
|
7577
|
+
size: [Size.small, Size.medium, Size.large],
|
|
7578
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
7579
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
|
|
7580
|
+
themeColor: [
|
|
7581
|
+
ThemeColor.base,
|
|
7582
|
+
ThemeColor.primary,
|
|
7583
|
+
ThemeColor.secondary,
|
|
7584
|
+
ThemeColor.tertiary,
|
|
7585
|
+
ThemeColor.success,
|
|
7586
|
+
ThemeColor.warning,
|
|
7587
|
+
ThemeColor.error,
|
|
7588
|
+
ThemeColor.info,
|
|
7589
|
+
ThemeColor.light,
|
|
7590
|
+
ThemeColor.dark,
|
|
7591
|
+
ThemeColor.inverse
|
|
7592
|
+
]
|
|
7593
|
+
};
|
|
7594
|
+
var defaultProps43 = {
|
|
7595
|
+
size: Size.medium,
|
|
7596
|
+
rounded: Roundness.medium,
|
|
7597
|
+
fillMode: FillMode.solid,
|
|
7598
|
+
themeColor: ThemeColor.base,
|
|
7599
|
+
showArrow: true,
|
|
7600
|
+
arrowIconName: "caret-alt-down"
|
|
7601
|
+
};
|
|
7602
|
+
var MenuButton = (props) => {
|
|
7603
|
+
const {
|
|
7604
|
+
size = defaultProps43.size,
|
|
7605
|
+
rounded = defaultProps43.rounded,
|
|
7606
|
+
fillMode = defaultProps43.fillMode,
|
|
7607
|
+
themeColor = defaultProps43.themeColor,
|
|
7608
|
+
hover,
|
|
7609
|
+
focus,
|
|
7610
|
+
active,
|
|
7611
|
+
selected,
|
|
7612
|
+
disabled,
|
|
7613
|
+
icon,
|
|
7614
|
+
text,
|
|
7615
|
+
showArrow = defaultProps43.showArrow,
|
|
7616
|
+
arrowIconName = defaultProps43.arrowIconName,
|
|
7617
|
+
popup,
|
|
7618
|
+
opened,
|
|
7619
|
+
...other
|
|
7620
|
+
} = props;
|
|
7621
|
+
return /* @__PURE__ */ jsxs55(Fragment37, { children: [
|
|
7622
|
+
/* @__PURE__ */ jsx146(
|
|
7623
|
+
Button,
|
|
7624
|
+
{
|
|
7625
|
+
...other,
|
|
7626
|
+
className: classNames(
|
|
7627
|
+
props.className,
|
|
7628
|
+
MENUBUTTON_CLASSNAME
|
|
7629
|
+
),
|
|
7630
|
+
text,
|
|
7631
|
+
size,
|
|
7632
|
+
rounded,
|
|
7633
|
+
fillMode,
|
|
7634
|
+
themeColor,
|
|
7635
|
+
hover,
|
|
7636
|
+
focus,
|
|
7637
|
+
active,
|
|
7638
|
+
selected,
|
|
7639
|
+
disabled,
|
|
7640
|
+
icon,
|
|
7641
|
+
showArrow,
|
|
7642
|
+
arrowIconName
|
|
7643
|
+
}
|
|
7644
|
+
),
|
|
7645
|
+
opened && popup && /* @__PURE__ */ jsx146(Popup, { className: "k-menu-popup", children: popup })
|
|
7646
|
+
] });
|
|
7647
|
+
};
|
|
7648
|
+
MenuButton.states = states49;
|
|
7649
|
+
MenuButton.options = options44;
|
|
7650
|
+
MenuButton.className = MENUBUTTON_CLASSNAME;
|
|
7651
|
+
MenuButton.defaultProps = defaultProps43;
|
|
7652
|
+
|
|
7653
|
+
// src/menu-button/templates/icon-menu-button.tsx
|
|
7654
|
+
import { jsx as jsx147 } from "react/jsx-runtime";
|
|
7655
|
+
|
|
7656
|
+
// src/menu-button/templates/icon-text-menu-button.tsx
|
|
7657
|
+
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
7658
|
+
|
|
7659
|
+
// src/menu-button/templates/text-menu-button.tsx
|
|
7660
|
+
import { jsx as jsx149 } from "react/jsx-runtime";
|
|
7661
|
+
|
|
7662
|
+
// src/menu/menu-item.spec.tsx
|
|
7663
|
+
import { Fragment as Fragment38, jsx as jsx150, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
7664
|
+
var MENUITEM_CLASSNAME = `k-menu-item`;
|
|
7665
|
+
var states50 = [
|
|
7666
|
+
States.hover,
|
|
7667
|
+
States.focus,
|
|
7668
|
+
States.active,
|
|
7669
|
+
States.selected,
|
|
7670
|
+
States.disabled
|
|
7671
|
+
];
|
|
7672
|
+
var options45 = {};
|
|
7673
|
+
var defaultProps44 = {
|
|
7674
|
+
dir: "ltr"
|
|
7675
|
+
};
|
|
7676
|
+
var MenuItem = (props) => {
|
|
7677
|
+
const {
|
|
7678
|
+
hover,
|
|
7679
|
+
focus,
|
|
7680
|
+
active,
|
|
7681
|
+
selected,
|
|
7682
|
+
disabled,
|
|
7683
|
+
icon,
|
|
7684
|
+
text,
|
|
7685
|
+
showArrow,
|
|
7686
|
+
arrowIconName,
|
|
7687
|
+
dir = defaultProps44.dir,
|
|
7688
|
+
children,
|
|
7689
|
+
...other
|
|
7690
|
+
} = props;
|
|
7691
|
+
const contentTemplate = /* @__PURE__ */ jsx150(Fragment38, {});
|
|
7692
|
+
if (children) {
|
|
7693
|
+
children.forEach((child) => {
|
|
7694
|
+
const component = child.type;
|
|
7695
|
+
if (component === "MenuItemContent") {
|
|
7696
|
+
contentTemplate.props.children.push(child);
|
|
7697
|
+
return;
|
|
7698
|
+
}
|
|
7699
|
+
});
|
|
7700
|
+
}
|
|
7701
|
+
let expandArrowName = arrowIconName;
|
|
7702
|
+
if (!expandArrowName) {
|
|
7703
|
+
expandArrowName = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
|
|
7704
|
+
}
|
|
7705
|
+
return /* @__PURE__ */ jsxs56(
|
|
7706
|
+
"li",
|
|
7707
|
+
{
|
|
7708
|
+
...other,
|
|
7709
|
+
className: classNames(
|
|
7710
|
+
props.className,
|
|
7711
|
+
MENUITEM_CLASSNAME,
|
|
7712
|
+
//TODO
|
|
7713
|
+
"k-item",
|
|
7714
|
+
stateClassNames(MENUITEM_CLASSNAME, {
|
|
7715
|
+
focus,
|
|
7716
|
+
disabled
|
|
7717
|
+
})
|
|
7718
|
+
),
|
|
7719
|
+
children: [
|
|
7720
|
+
/* @__PURE__ */ jsxs56(
|
|
7721
|
+
"span",
|
|
7722
|
+
{
|
|
7723
|
+
className: classNames(
|
|
7724
|
+
"k-link k-menu-link",
|
|
7725
|
+
stateClassNames("k-menu-link", {
|
|
7726
|
+
hover,
|
|
7727
|
+
active,
|
|
7728
|
+
selected,
|
|
7729
|
+
disabled
|
|
7730
|
+
})
|
|
7731
|
+
),
|
|
7732
|
+
children: [
|
|
7733
|
+
icon && /* @__PURE__ */ jsx150(Icon, { className: "k-menu-link-icon", icon }),
|
|
7734
|
+
/* @__PURE__ */ jsx150("span", { className: "k-menu-link-text", children: text }),
|
|
7735
|
+
showArrow && /* @__PURE__ */ jsx150("span", { className: "k-menu-expand-arrow", children: /* @__PURE__ */ jsx150(Icon, { icon: expandArrowName }) })
|
|
7736
|
+
]
|
|
7737
|
+
}
|
|
7738
|
+
),
|
|
7739
|
+
contentTemplate
|
|
7740
|
+
]
|
|
7741
|
+
}
|
|
7742
|
+
);
|
|
7743
|
+
};
|
|
7744
|
+
MenuItem.states = states50;
|
|
7745
|
+
MenuItem.options = options45;
|
|
7746
|
+
MenuItem.className = MENUITEM_CLASSNAME;
|
|
7747
|
+
MenuItem.defaultProps = defaultProps44;
|
|
7748
|
+
var menu_item_spec_default = MenuItem;
|
|
7749
|
+
|
|
7750
|
+
// src/menu/menu-separator.spec.tsx
|
|
7751
|
+
import { jsx as jsx151 } from "react/jsx-runtime";
|
|
7752
|
+
var SEPARATOR_CLASSNAME = `k-separator`;
|
|
7753
|
+
var defaultProps45 = {
|
|
7754
|
+
orientation: "horizontal"
|
|
7755
|
+
};
|
|
7756
|
+
var MenuSeparator = (props) => {
|
|
7757
|
+
const {
|
|
7758
|
+
orientation = defaultProps45.orientation,
|
|
7759
|
+
...other
|
|
7760
|
+
} = props;
|
|
7761
|
+
return /* @__PURE__ */ jsx151(
|
|
7762
|
+
"li",
|
|
7763
|
+
{
|
|
7764
|
+
...other,
|
|
7765
|
+
className: classNames(
|
|
7766
|
+
props.className,
|
|
7767
|
+
"k-item",
|
|
7768
|
+
SEPARATOR_CLASSNAME,
|
|
7769
|
+
{
|
|
7770
|
+
[`${SEPARATOR_CLASSNAME}-${orientation}`]: orientation
|
|
7771
|
+
}
|
|
7772
|
+
)
|
|
7773
|
+
}
|
|
7774
|
+
);
|
|
7775
|
+
};
|
|
7776
|
+
var menu_separator_spec_default = MenuSeparator;
|
|
7777
|
+
|
|
7778
|
+
// src/menu/menu-item-content.tsx
|
|
7779
|
+
import { Fragment as Fragment39, jsx as jsx152 } from "react/jsx-runtime";
|
|
7780
|
+
|
|
7781
|
+
// src/menu/menu-list.spec.tsx
|
|
7782
|
+
import { jsx as jsx153 } from "react/jsx-runtime";
|
|
7783
|
+
import { createElement } from "react";
|
|
7784
|
+
var MENULIST_CLASSNAME = `k-menu-group`;
|
|
7785
|
+
var states51 = [];
|
|
7786
|
+
var options46 = {
|
|
7787
|
+
size: [Size.small, Size.medium, Size.large]
|
|
7788
|
+
};
|
|
7789
|
+
var defaultProps46 = {
|
|
7790
|
+
size: Size.medium,
|
|
7791
|
+
dir: "ltr"
|
|
7792
|
+
};
|
|
7793
|
+
var MenuList = (props) => {
|
|
7794
|
+
const {
|
|
7795
|
+
children,
|
|
7796
|
+
size = defaultProps46.size,
|
|
7797
|
+
dir = defaultProps46.dir,
|
|
7798
|
+
...other
|
|
7799
|
+
} = props;
|
|
7800
|
+
const listChildren = [];
|
|
7801
|
+
if (children) {
|
|
7802
|
+
if (Array.isArray(children)) {
|
|
7803
|
+
children.map((child, index) => {
|
|
7804
|
+
if (child.type === menu_item_spec_default) {
|
|
7805
|
+
listChildren.push(
|
|
7806
|
+
/* @__PURE__ */ createElement(menu_item_spec_default, { ...child.props, dir, key: index })
|
|
7807
|
+
);
|
|
7808
|
+
} else if (child.type === menu_separator_spec_default) {
|
|
7809
|
+
listChildren.push(
|
|
7810
|
+
/* @__PURE__ */ jsx153(menu_separator_spec_default, {})
|
|
7811
|
+
);
|
|
7812
|
+
} else {
|
|
7813
|
+
listChildren.push(child);
|
|
7814
|
+
}
|
|
7815
|
+
});
|
|
7816
|
+
}
|
|
7817
|
+
}
|
|
7818
|
+
return /* @__PURE__ */ jsx153(
|
|
7819
|
+
"ul",
|
|
7820
|
+
{
|
|
7821
|
+
...other,
|
|
7822
|
+
className: classNames(
|
|
7823
|
+
props.className,
|
|
7824
|
+
MENULIST_CLASSNAME,
|
|
7825
|
+
optionClassNames(MENULIST_CLASSNAME, {
|
|
7826
|
+
size
|
|
7827
|
+
})
|
|
7828
|
+
),
|
|
7829
|
+
children: listChildren
|
|
7830
|
+
}
|
|
7831
|
+
);
|
|
7832
|
+
};
|
|
7833
|
+
MenuList.states = states51;
|
|
7834
|
+
MenuList.options = options46;
|
|
7835
|
+
MenuList.className = MENULIST_CLASSNAME;
|
|
7836
|
+
MenuList.defaultProps = defaultProps46;
|
|
7837
|
+
|
|
7838
|
+
// src/menu-button/templates/menu-button-popup.tsx
|
|
7839
|
+
import { jsx as jsx154, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
7840
|
+
|
|
7841
|
+
// src/split-button/split-button.spec.tsx
|
|
7842
|
+
import { Fragment as Fragment40, jsx as jsx155, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
7843
|
+
var SPLITBUTTON_CLASSNAME = `k-split-button`;
|
|
7844
|
+
var states52 = [
|
|
7845
|
+
States.hover,
|
|
7846
|
+
States.focus,
|
|
7847
|
+
States.active,
|
|
7848
|
+
States.selected,
|
|
7849
|
+
States.disabled
|
|
7850
|
+
];
|
|
7851
|
+
var options47 = {
|
|
7852
|
+
size: [Size.small, Size.medium, Size.large],
|
|
7853
|
+
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
7854
|
+
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
|
|
7855
|
+
themeColor: [
|
|
7856
|
+
ThemeColor.base,
|
|
7857
|
+
ThemeColor.primary,
|
|
7858
|
+
ThemeColor.secondary,
|
|
7859
|
+
ThemeColor.tertiary,
|
|
7860
|
+
ThemeColor.success,
|
|
7861
|
+
ThemeColor.warning,
|
|
7862
|
+
ThemeColor.error,
|
|
7863
|
+
ThemeColor.info,
|
|
7864
|
+
ThemeColor.light,
|
|
7865
|
+
ThemeColor.dark,
|
|
7866
|
+
ThemeColor.inverse
|
|
7867
|
+
]
|
|
7868
|
+
};
|
|
7869
|
+
var defaultProps47 = {
|
|
7870
|
+
size: Size.medium,
|
|
7871
|
+
rounded: Roundness.medium,
|
|
7872
|
+
fillMode: FillMode.solid,
|
|
7873
|
+
themeColor: ThemeColor.base,
|
|
7874
|
+
arrowIconName: "caret-alt-down"
|
|
7875
|
+
};
|
|
7876
|
+
var SplitButton = (props) => {
|
|
7877
|
+
const {
|
|
7878
|
+
size = defaultProps47.size,
|
|
7879
|
+
rounded = defaultProps47.rounded,
|
|
7880
|
+
fillMode = defaultProps47.fillMode,
|
|
7881
|
+
themeColor = defaultProps47.themeColor,
|
|
7882
|
+
hover,
|
|
7883
|
+
focus,
|
|
7884
|
+
active,
|
|
7885
|
+
selected,
|
|
7886
|
+
disabled,
|
|
7887
|
+
icon,
|
|
7888
|
+
text,
|
|
7889
|
+
arrowIconName = defaultProps47.arrowIconName,
|
|
7890
|
+
popup,
|
|
7891
|
+
opened,
|
|
7892
|
+
...other
|
|
7893
|
+
} = props;
|
|
7894
|
+
return /* @__PURE__ */ jsxs58(Fragment40, { children: [
|
|
7895
|
+
/* @__PURE__ */ jsxs58(
|
|
7896
|
+
"div",
|
|
7897
|
+
{
|
|
7898
|
+
...other,
|
|
7899
|
+
className: classNames(
|
|
7900
|
+
props.className,
|
|
7901
|
+
SPLITBUTTON_CLASSNAME,
|
|
7902
|
+
"k-button-group",
|
|
7903
|
+
optionClassNames(SPLITBUTTON_CLASSNAME, {
|
|
7904
|
+
rounded
|
|
7905
|
+
})
|
|
7906
|
+
),
|
|
7907
|
+
children: [
|
|
7908
|
+
/* @__PURE__ */ jsx155(
|
|
7909
|
+
Button,
|
|
7910
|
+
{
|
|
7911
|
+
text,
|
|
7912
|
+
icon,
|
|
7913
|
+
size,
|
|
7914
|
+
rounded,
|
|
7915
|
+
fillMode,
|
|
7916
|
+
themeColor,
|
|
7917
|
+
hover,
|
|
7918
|
+
focus,
|
|
7919
|
+
active,
|
|
7920
|
+
selected,
|
|
7921
|
+
disabled,
|
|
7922
|
+
children: props.children
|
|
7923
|
+
}
|
|
7924
|
+
),
|
|
7925
|
+
/* @__PURE__ */ jsx155(
|
|
7926
|
+
Button,
|
|
7927
|
+
{
|
|
7928
|
+
className: "k-split-button-arrow",
|
|
7929
|
+
icon: arrowIconName,
|
|
7930
|
+
size,
|
|
7931
|
+
rounded,
|
|
7932
|
+
fillMode,
|
|
7933
|
+
disabled
|
|
7934
|
+
}
|
|
7935
|
+
)
|
|
7936
|
+
]
|
|
7937
|
+
}
|
|
7938
|
+
),
|
|
7939
|
+
opened && popup && /* @__PURE__ */ jsx155(Popup, { className: "k-menu-popup", children: popup })
|
|
7940
|
+
] });
|
|
7941
|
+
};
|
|
7942
|
+
SplitButton.states = states52;
|
|
7943
|
+
SplitButton.options = options47;
|
|
7944
|
+
SplitButton.className = SPLITBUTTON_CLASSNAME;
|
|
7945
|
+
SplitButton.defaultProps = defaultProps47;
|
|
7946
|
+
var split_button_spec_default = SplitButton;
|
|
7947
|
+
|
|
7948
|
+
// src/toolbar/toolbar.spec.tsx
|
|
7949
|
+
import { jsx as jsx156 } from "react/jsx-runtime";
|
|
7950
|
+
var TOOLBAR_CLASSNAME = `k-toolbar`;
|
|
7951
|
+
var states53 = [
|
|
7952
|
+
States.focus
|
|
7953
|
+
];
|
|
7954
|
+
var options48 = {
|
|
7955
|
+
size: [Size.small, Size.medium, Size.large]
|
|
7956
|
+
};
|
|
7957
|
+
var defaultProps48 = {
|
|
7958
|
+
size: Size.medium
|
|
7959
|
+
};
|
|
7960
|
+
var Toolbar = (props) => {
|
|
7961
|
+
const {
|
|
7962
|
+
size = defaultProps48.size,
|
|
7963
|
+
focus,
|
|
7964
|
+
resizable,
|
|
7965
|
+
...other
|
|
7966
|
+
} = props;
|
|
7967
|
+
const toolbarChildren = [];
|
|
7968
|
+
const addUniqueToolClass = (child, index) => {
|
|
7969
|
+
const tempToolbarChildren = [];
|
|
7970
|
+
if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
|
|
7971
|
+
tempToolbarChildren.push(
|
|
7972
|
+
/* @__PURE__ */ jsx156(
|
|
7973
|
+
Button,
|
|
7974
|
+
{
|
|
7975
|
+
...child.props,
|
|
7976
|
+
className: `${child.props.className ? child.props.className : ""}`
|
|
7977
|
+
},
|
|
7978
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
7979
|
+
)
|
|
7980
|
+
);
|
|
7981
|
+
} else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
|
|
7982
|
+
tempToolbarChildren.push(
|
|
7983
|
+
/* @__PURE__ */ jsx156(
|
|
7984
|
+
Button,
|
|
7985
|
+
{
|
|
7986
|
+
...child.props,
|
|
7987
|
+
className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
|
|
7988
|
+
},
|
|
7989
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
7990
|
+
)
|
|
7991
|
+
);
|
|
7992
|
+
} else if (child.type === Button) {
|
|
7993
|
+
tempToolbarChildren.push(
|
|
7994
|
+
/* @__PURE__ */ jsx156(
|
|
7995
|
+
Button,
|
|
7996
|
+
{
|
|
7997
|
+
...child.props,
|
|
7998
|
+
className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
|
|
7999
|
+
},
|
|
8000
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8001
|
+
)
|
|
8002
|
+
);
|
|
8003
|
+
} else if (child.type === MenuButton) {
|
|
8004
|
+
tempToolbarChildren.push(
|
|
8005
|
+
/* @__PURE__ */ jsx156(
|
|
8006
|
+
MenuButton,
|
|
8007
|
+
{
|
|
8008
|
+
...child.props,
|
|
8009
|
+
className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
|
|
8010
|
+
},
|
|
8011
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8012
|
+
)
|
|
8013
|
+
);
|
|
8014
|
+
} else if (child.type === split_button_spec_default) {
|
|
8015
|
+
tempToolbarChildren.push(
|
|
8016
|
+
/* @__PURE__ */ jsx156(
|
|
8017
|
+
split_button_spec_default,
|
|
8018
|
+
{
|
|
8019
|
+
...child.props,
|
|
8020
|
+
className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
|
|
8021
|
+
},
|
|
8022
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8023
|
+
)
|
|
8024
|
+
);
|
|
8025
|
+
} else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
|
|
8026
|
+
const buttonGroupItems = [];
|
|
8027
|
+
const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
|
|
8028
|
+
childrenArray.forEach((button, bindex) => {
|
|
8029
|
+
buttonGroupItems.push(
|
|
8030
|
+
/* @__PURE__ */ jsx156(
|
|
8031
|
+
Button,
|
|
8032
|
+
{
|
|
8033
|
+
...button.props,
|
|
8034
|
+
className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
|
|
8035
|
+
},
|
|
8036
|
+
`${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8037
|
+
)
|
|
8038
|
+
);
|
|
8039
|
+
});
|
|
8040
|
+
tempToolbarChildren.push(
|
|
8041
|
+
/* @__PURE__ */ jsx156(
|
|
8042
|
+
ButtonGroup,
|
|
8043
|
+
{
|
|
8044
|
+
...child.props,
|
|
8045
|
+
className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
|
|
8046
|
+
children: buttonGroupItems
|
|
8047
|
+
},
|
|
8048
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8049
|
+
)
|
|
8050
|
+
);
|
|
8051
|
+
} else if (child.type === Combobox) {
|
|
8052
|
+
tempToolbarChildren.push(
|
|
8053
|
+
/* @__PURE__ */ jsx156(
|
|
8054
|
+
Combobox,
|
|
8055
|
+
{
|
|
8056
|
+
...child.props,
|
|
8057
|
+
className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
|
|
8058
|
+
},
|
|
8059
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8060
|
+
)
|
|
8061
|
+
);
|
|
8062
|
+
} else if (child.type === DropdownList) {
|
|
8063
|
+
tempToolbarChildren.push(
|
|
8064
|
+
/* @__PURE__ */ jsx156(
|
|
8065
|
+
DropdownList,
|
|
8066
|
+
{
|
|
8067
|
+
...child.props,
|
|
8068
|
+
className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
|
|
8069
|
+
},
|
|
8070
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8071
|
+
)
|
|
8072
|
+
);
|
|
8073
|
+
} else if (child.type === ColorPicker) {
|
|
8074
|
+
tempToolbarChildren.push(
|
|
8075
|
+
/* @__PURE__ */ jsx156(
|
|
8076
|
+
ColorPicker,
|
|
8077
|
+
{
|
|
8078
|
+
...child.props,
|
|
8079
|
+
className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
|
|
8080
|
+
},
|
|
8081
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8082
|
+
)
|
|
8083
|
+
);
|
|
8084
|
+
} else {
|
|
8085
|
+
tempToolbarChildren.push(child);
|
|
8086
|
+
}
|
|
8087
|
+
tempToolbarChildren.forEach((item) => {
|
|
8088
|
+
toolbarChildren.push(item);
|
|
8089
|
+
});
|
|
8090
|
+
};
|
|
8091
|
+
if (props.children) {
|
|
8092
|
+
const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
|
|
8093
|
+
childrenArray.forEach((child, index) => {
|
|
8094
|
+
addUniqueToolClass(child, index);
|
|
8095
|
+
});
|
|
8096
|
+
}
|
|
8097
|
+
return /* @__PURE__ */ jsx156(
|
|
8098
|
+
"div",
|
|
8099
|
+
{
|
|
8100
|
+
...other,
|
|
8101
|
+
className: classNames(
|
|
8102
|
+
props.className,
|
|
8103
|
+
TOOLBAR_CLASSNAME,
|
|
8104
|
+
optionClassNames(TOOLBAR_CLASSNAME, {
|
|
8105
|
+
size
|
|
8106
|
+
}),
|
|
8107
|
+
stateClassNames(TOOLBAR_CLASSNAME, {
|
|
8108
|
+
focus
|
|
8109
|
+
}),
|
|
8110
|
+
{
|
|
8111
|
+
[`${TOOLBAR_CLASSNAME}-resizable`]: resizable
|
|
8112
|
+
}
|
|
8113
|
+
),
|
|
8114
|
+
children: toolbarChildren
|
|
8115
|
+
}
|
|
8116
|
+
);
|
|
8117
|
+
};
|
|
8118
|
+
Toolbar.states = states53;
|
|
8119
|
+
Toolbar.options = options48;
|
|
8120
|
+
Toolbar.className = TOOLBAR_CLASSNAME;
|
|
8121
|
+
Toolbar.defaultProps = defaultProps48;
|
|
8122
|
+
|
|
8123
|
+
// src/toolbar/toolbar-angular.spec.tsx
|
|
8124
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
8125
|
+
var TOOLBARANGULAR_CLASSNAME = `k-toolbar`;
|
|
8126
|
+
var states54 = [
|
|
8127
|
+
States.focus
|
|
8128
|
+
];
|
|
8129
|
+
var options49 = {
|
|
8130
|
+
size: [Size.small, Size.medium, Size.large]
|
|
8131
|
+
};
|
|
8132
|
+
var defaultProps49 = {
|
|
8133
|
+
size: Size.medium
|
|
8134
|
+
};
|
|
8135
|
+
var ToolbarAngular = (props) => {
|
|
8136
|
+
const {
|
|
8137
|
+
size = defaultProps49.size,
|
|
8138
|
+
focus,
|
|
8139
|
+
resizable,
|
|
8140
|
+
...other
|
|
8141
|
+
} = props;
|
|
8142
|
+
const toolbarChildren = [];
|
|
8143
|
+
const addUniqueToolClass = (child, index) => {
|
|
8144
|
+
const tempToolbarChildren = [];
|
|
8145
|
+
if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
|
|
8146
|
+
tempToolbarChildren.push(
|
|
8147
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
8148
|
+
Button,
|
|
8149
|
+
{
|
|
8150
|
+
...child.props,
|
|
8151
|
+
className: `${child.props.className ? child.props.className : ""}`
|
|
8152
|
+
},
|
|
8153
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8154
|
+
) })
|
|
8155
|
+
);
|
|
8156
|
+
} else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
|
|
8157
|
+
tempToolbarChildren.push(
|
|
8158
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
8159
|
+
Button,
|
|
8160
|
+
{
|
|
8161
|
+
...child.props,
|
|
8162
|
+
className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
|
|
8163
|
+
},
|
|
8164
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8165
|
+
) })
|
|
8166
|
+
);
|
|
8167
|
+
} else if (child.type === Button) {
|
|
8168
|
+
tempToolbarChildren.push(
|
|
8169
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
8170
|
+
Button,
|
|
8171
|
+
{
|
|
8172
|
+
...child.props,
|
|
8173
|
+
className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
|
|
8174
|
+
},
|
|
8175
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8176
|
+
) })
|
|
8177
|
+
);
|
|
8178
|
+
} else if (child.type === MenuButton) {
|
|
8179
|
+
tempToolbarChildren.push(
|
|
8180
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
8181
|
+
MenuButton,
|
|
8182
|
+
{
|
|
8183
|
+
...child.props,
|
|
8184
|
+
className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
|
|
8185
|
+
},
|
|
8186
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8187
|
+
) })
|
|
8188
|
+
);
|
|
8189
|
+
} else if (child.type === split_button_spec_default) {
|
|
8190
|
+
tempToolbarChildren.push(
|
|
8191
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
8192
|
+
split_button_spec_default,
|
|
8193
|
+
{
|
|
8194
|
+
...child.props,
|
|
8195
|
+
className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
|
|
8196
|
+
},
|
|
8197
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8198
|
+
) })
|
|
8199
|
+
);
|
|
8200
|
+
} else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
|
|
8201
|
+
const buttonGroupItems = [];
|
|
8202
|
+
const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
|
|
8203
|
+
childrenArray.forEach((button, bindex) => {
|
|
8204
|
+
buttonGroupItems.push(
|
|
8205
|
+
/* @__PURE__ */ jsx157(
|
|
8206
|
+
Button,
|
|
8207
|
+
{
|
|
8208
|
+
...button.props,
|
|
8209
|
+
className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
|
|
8210
|
+
},
|
|
8211
|
+
`${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8212
|
+
)
|
|
8213
|
+
);
|
|
8214
|
+
});
|
|
8215
|
+
tempToolbarChildren.push(
|
|
8216
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
8217
|
+
ButtonGroup,
|
|
8218
|
+
{
|
|
8219
|
+
...child.props,
|
|
8220
|
+
className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
|
|
8221
|
+
children: buttonGroupItems
|
|
8222
|
+
},
|
|
8223
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8224
|
+
) })
|
|
8225
|
+
);
|
|
8226
|
+
} else if (child.type === Combobox) {
|
|
8227
|
+
tempToolbarChildren.push(
|
|
8228
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
8229
|
+
Combobox,
|
|
8230
|
+
{
|
|
8231
|
+
...child.props,
|
|
8232
|
+
className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
|
|
8233
|
+
},
|
|
8234
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8235
|
+
) })
|
|
8236
|
+
);
|
|
8237
|
+
} else if (child.type === DropdownList) {
|
|
8238
|
+
tempToolbarChildren.push(
|
|
8239
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
8240
|
+
DropdownList,
|
|
8241
|
+
{
|
|
8242
|
+
...child.props,
|
|
8243
|
+
className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
|
|
8244
|
+
},
|
|
8245
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8246
|
+
) })
|
|
8247
|
+
);
|
|
8248
|
+
} else if (child.type === ColorPicker) {
|
|
8249
|
+
tempToolbarChildren.push(
|
|
8250
|
+
/* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
|
|
8251
|
+
ColorPicker,
|
|
8252
|
+
{
|
|
8253
|
+
...child.props,
|
|
8254
|
+
className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
|
|
8255
|
+
},
|
|
8256
|
+
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
8257
|
+
) })
|
|
8258
|
+
);
|
|
8259
|
+
} else {
|
|
8260
|
+
tempToolbarChildren.push(child);
|
|
8261
|
+
}
|
|
8262
|
+
tempToolbarChildren.forEach((item) => {
|
|
8263
|
+
toolbarChildren.push(item);
|
|
8264
|
+
});
|
|
8265
|
+
};
|
|
8266
|
+
if (props.children) {
|
|
8267
|
+
const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
|
|
8268
|
+
childrenArray.forEach((child, index) => {
|
|
8269
|
+
addUniqueToolClass(child, index);
|
|
8270
|
+
});
|
|
8271
|
+
}
|
|
8272
|
+
return /* @__PURE__ */ jsx157(
|
|
8273
|
+
"div",
|
|
8274
|
+
{
|
|
8275
|
+
...other,
|
|
8276
|
+
className: classNames(
|
|
8277
|
+
props.className,
|
|
8278
|
+
TOOLBARANGULAR_CLASSNAME,
|
|
8279
|
+
optionClassNames(TOOLBARANGULAR_CLASSNAME, {
|
|
8280
|
+
size
|
|
8281
|
+
}),
|
|
8282
|
+
stateClassNames(TOOLBARANGULAR_CLASSNAME, {
|
|
8283
|
+
focus
|
|
8284
|
+
}),
|
|
8285
|
+
{
|
|
8286
|
+
[`${TOOLBARANGULAR_CLASSNAME}-resizable`]: resizable
|
|
8287
|
+
}
|
|
8288
|
+
),
|
|
8289
|
+
children: toolbarChildren
|
|
8290
|
+
}
|
|
8291
|
+
);
|
|
8292
|
+
};
|
|
8293
|
+
ToolbarAngular.states = states54;
|
|
8294
|
+
ToolbarAngular.options = options49;
|
|
8295
|
+
ToolbarAngular.className = TOOLBARANGULAR_CLASSNAME;
|
|
8296
|
+
ToolbarAngular.defaultProps = defaultProps49;
|
|
8297
|
+
|
|
8298
|
+
// src/toolbar/toolbar-separator.tsx
|
|
8299
|
+
import { jsx as jsx158 } from "react/jsx-runtime";
|
|
8300
|
+
|
|
8301
|
+
// src/toolbar/toolbar-item.spec.tsx
|
|
8302
|
+
import { jsx as jsx159 } from "react/jsx-runtime";
|
|
8303
|
+
var TOOLBARITEM_CLASSNAME = `k-toolbar-item`;
|
|
8304
|
+
var states55 = [
|
|
8305
|
+
States.focus
|
|
8306
|
+
];
|
|
8307
|
+
var options50 = {};
|
|
8308
|
+
var defaultProps50 = {};
|
|
8309
|
+
var ToolbarItem = (props) => {
|
|
8310
|
+
const {
|
|
8311
|
+
focus,
|
|
8312
|
+
...other
|
|
8313
|
+
} = props;
|
|
8314
|
+
return /* @__PURE__ */ jsx159(
|
|
8315
|
+
"div",
|
|
8316
|
+
{
|
|
8317
|
+
...other,
|
|
8318
|
+
className: classNames(
|
|
8319
|
+
props.className,
|
|
8320
|
+
TOOLBARITEM_CLASSNAME,
|
|
8321
|
+
stateClassNames(TOOLBARITEM_CLASSNAME, {
|
|
8322
|
+
focus
|
|
8323
|
+
})
|
|
8324
|
+
),
|
|
8325
|
+
children: props.children
|
|
8326
|
+
}
|
|
8327
|
+
);
|
|
8328
|
+
};
|
|
8329
|
+
ToolbarItem.states = states55;
|
|
8330
|
+
ToolbarItem.options = options50;
|
|
8331
|
+
ToolbarItem.className = TOOLBARITEM_CLASSNAME;
|
|
8332
|
+
ToolbarItem.defaultProps = defaultProps50;
|
|
8333
|
+
|
|
8334
|
+
// src/toolbar/toolbar-popup.spec.tsx
|
|
8335
|
+
import { jsx as jsx160 } from "react/jsx-runtime";
|
|
8336
|
+
var TOOLBARPOPUP_CLASSNAME = `k-toolbar-popup`;
|
|
8337
|
+
var states56 = [];
|
|
8338
|
+
var options51 = {};
|
|
8339
|
+
var defaultProps51 = {};
|
|
8340
|
+
var ToolbarPopup = (props) => {
|
|
8341
|
+
const { ...other } = props;
|
|
8342
|
+
return /* @__PURE__ */ jsx160(
|
|
8343
|
+
Popup,
|
|
8344
|
+
{
|
|
8345
|
+
...other,
|
|
8346
|
+
className: classNames(
|
|
8347
|
+
props.className,
|
|
8348
|
+
TOOLBARPOPUP_CLASSNAME
|
|
8349
|
+
),
|
|
8350
|
+
children: props.children
|
|
8351
|
+
}
|
|
8352
|
+
);
|
|
8353
|
+
};
|
|
8354
|
+
ToolbarPopup.states = states56;
|
|
8355
|
+
ToolbarPopup.options = options51;
|
|
8356
|
+
ToolbarPopup.className = TOOLBARPOPUP_CLASSNAME;
|
|
8357
|
+
ToolbarPopup.defaultProps = defaultProps51;
|
|
8358
|
+
|
|
8359
|
+
// src/split-button/templates/icon-split-button.tsx
|
|
8360
|
+
import { jsx as jsx161 } from "react/jsx-runtime";
|
|
8361
|
+
|
|
8362
|
+
// src/split-button/templates/icon-text-split-button.tsx
|
|
8363
|
+
import { jsx as jsx162 } from "react/jsx-runtime";
|
|
8364
|
+
|
|
8365
|
+
// src/split-button/templates/text-split-button.tsx
|
|
8366
|
+
import { jsx as jsx163 } from "react/jsx-runtime";
|
|
8367
|
+
|
|
8368
|
+
// src/split-button/templates/split-button-popup.tsx
|
|
8369
|
+
import { jsx as jsx164, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
8370
|
+
|
|
8371
|
+
// src/toolbar/templates/toolbar-normal.tsx
|
|
8372
|
+
import { Fragment as Fragment41, jsx as jsx165, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
8373
|
+
|
|
8374
|
+
// src/toolbar/templates/toolbar-resizable.tsx
|
|
8375
|
+
import { jsx as jsx166 } from "react/jsx-runtime";
|
|
8376
|
+
|
|
8377
|
+
// src/toolbar/templates/toolbar-angular-normal.tsx
|
|
8378
|
+
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
8379
|
+
|
|
8380
|
+
// src/toolbar/templates/toolbar-angular-resizable.tsx
|
|
8381
|
+
import { jsx as jsx168 } from "react/jsx-runtime";
|
|
8382
|
+
|
|
8383
|
+
// src/grid/grid-toolbar.spec.tsx
|
|
8384
|
+
import { jsx as jsx169 } from "react/jsx-runtime";
|
|
6025
8385
|
|
|
6026
8386
|
// src/grid/tests/grid-adaptive-pager.tsx
|
|
6027
|
-
import { Fragment as
|
|
6028
|
-
var grid_adaptive_pager_default = () => /* @__PURE__ */
|
|
6029
|
-
/* @__PURE__ */
|
|
6030
|
-
/* @__PURE__ */
|
|
6031
|
-
/* @__PURE__ */
|
|
6032
|
-
/* @__PURE__ */
|
|
8387
|
+
import { Fragment as Fragment42, jsx as jsx170, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
8388
|
+
var grid_adaptive_pager_default = () => /* @__PURE__ */ jsx170(Fragment42, { children: /* @__PURE__ */ jsxs61("div", { id: "test-area", className: "k-d-grid k-grid-cols-1", children: [
|
|
8389
|
+
/* @__PURE__ */ jsx170("span", { children: "LTR" }),
|
|
8390
|
+
/* @__PURE__ */ jsx170("section", { children: /* @__PURE__ */ jsx170("div", { className: "k-pane-wrapper k-widget", children: /* @__PURE__ */ jsx170("div", { className: "k-pane", children: /* @__PURE__ */ jsx170("div", { className: "k-view k-widget", children: /* @__PURE__ */ jsx170("div", { className: "k-stretched-view k-content", children: /* @__PURE__ */ jsx170(Grid, { className: "k-grid-display-block k-grid-mobile k-editable", pager: /* @__PURE__ */ jsx170(GridPager, { adaptive: true, info: false, pageSizes: false }) }) }) }) }) }) }),
|
|
8391
|
+
/* @__PURE__ */ jsx170("span", { children: "RTL" }),
|
|
8392
|
+
/* @__PURE__ */ jsx170("section", { className: "k-rtl", children: /* @__PURE__ */ jsx170("div", { className: "k-pane-wrapper k-widget", children: /* @__PURE__ */ jsx170("div", { className: "k-pane", children: /* @__PURE__ */ jsx170("div", { className: "k-view k-widget", children: /* @__PURE__ */ jsx170("div", { className: "k-stretched-view k-content", children: /* @__PURE__ */ jsx170(Grid, { className: "k-grid-display-block k-grid-mobile k-editable", pager: /* @__PURE__ */ jsx170(GridPager, { adaptive: true, info: false, pageSizes: false, dir: "rtl" }) }) }) }) }) }) })
|
|
6033
8393
|
] }) });
|
|
6034
8394
|
export {
|
|
6035
8395
|
grid_adaptive_pager_default as default
|