@progress/kendo-themes-html 6.7.0-dev.2 → 6.7.0-dev.4
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/chat/chat.spec.js +146 -2150
- package/dist/cjs/chat/tests/chat-rtl.js +333 -2337
- package/dist/cjs/chat/tests/chat-scrollable-deck.js +332 -2336
- package/dist/cjs/chat/tests/chat.js +346 -2350
- package/dist/cjs/grid/tests/grid-adaptive-pager.js +18 -6
- package/dist/cjs/grid/tests/grid-angular.js +160 -148
- package/dist/cjs/grid/tests/grid-column-reordering-actions.js +275 -263
- package/dist/cjs/grid/tests/grid-column-reordering.js +280 -268
- package/dist/cjs/grid/tests/grid-column-resizing-actions.js +311 -299
- package/dist/cjs/grid/tests/grid-grouping-actions.js +241 -229
- package/dist/cjs/grid/tests/grid-pager.js +104 -92
- package/dist/cjs/grid/tests/grid-row-reordering.js +233 -221
- package/dist/cjs/grid/tests/grid-rtl-angular.js +106 -94
- package/dist/cjs/grid/tests/grid-rtl.js +99 -87
- package/dist/cjs/grid/tests/grid-selection-aggregates.js +108 -96
- package/dist/cjs/grid/tests/grid-size-sm-comp-sm.js +348 -336
- package/dist/cjs/grid/tests/grid-size-sm.js +348 -336
- package/dist/cjs/grid/tests/grid-sticky-columns-rtl.js +135 -123
- package/dist/cjs/grid/tests/grid.js +124 -112
- package/dist/cjs/index.js +3434 -3239
- package/dist/cjs/listview/listview.spec.js +22 -10
- package/dist/cjs/listview/tests/listview-layout.js +63 -51
- package/dist/cjs/listview/tests/listview-loading.js +34 -22
- package/dist/cjs/listview/tests/listview.js +49 -37
- package/dist/cjs/pager/index.js +41 -1
- package/dist/cjs/pager/templates/pager-adaptive-input.js +5806 -0
- package/dist/cjs/pager/templates/pager-adaptive.js +5805 -0
- package/dist/cjs/pager/templates/pager-input.js +5805 -0
- package/dist/cjs/pager/templates/pager-normal.js +5799 -0
- package/dist/cjs/pager/tests/pager-adaptive.js +49 -13
- package/dist/cjs/pager/tests/pager-sizes.js +34 -21
- package/dist/cjs/pager/tests/pager.js +27 -10
- package/dist/cjs/pdf-viewer/tests/pdf-viewer-blank-page-blazor.js +25 -13
- package/dist/cjs/pdf-viewer/tests/pdf-viewer-blank-page.js +31 -19
- package/dist/cjs/pdf-viewer/tests/pdf-viewer-search-panel.js +36 -24
- package/dist/cjs/pdf-viewer/tests/pdf-viewer.js +25 -13
- package/dist/esm/chat/chat.spec.js +161 -2165
- package/dist/esm/chat/tests/chat-rtl.js +283 -2287
- package/dist/esm/chat/tests/chat-scrollable-deck.js +282 -2286
- package/dist/esm/chat/tests/chat.js +296 -2300
- package/dist/esm/grid/tests/grid-adaptive-pager.js +18 -6
- package/dist/esm/grid/tests/grid-angular.js +130 -118
- package/dist/esm/grid/tests/grid-column-reordering-actions.js +232 -220
- package/dist/esm/grid/tests/grid-column-reordering.js +235 -223
- package/dist/esm/grid/tests/grid-column-resizing-actions.js +268 -256
- package/dist/esm/grid/tests/grid-grouping-actions.js +210 -198
- package/dist/esm/grid/tests/grid-pager.js +82 -70
- package/dist/esm/grid/tests/grid-row-reordering.js +206 -194
- package/dist/esm/grid/tests/grid-rtl-angular.js +88 -76
- package/dist/esm/grid/tests/grid-rtl.js +84 -72
- package/dist/esm/grid/tests/grid-selection-aggregates.js +80 -68
- package/dist/esm/grid/tests/grid-size-sm-comp-sm.js +289 -277
- package/dist/esm/grid/tests/grid-size-sm.js +289 -277
- package/dist/esm/grid/tests/grid-sticky-columns-rtl.js +124 -112
- package/dist/esm/grid/tests/grid.js +104 -92
- package/dist/esm/index.js +3434 -3239
- package/dist/esm/listview/listview.spec.js +20 -8
- package/dist/esm/listview/tests/listview-layout.js +49 -37
- package/dist/esm/listview/tests/listview-loading.js +29 -17
- package/dist/esm/listview/tests/listview.js +39 -27
- package/dist/esm/pager/index.js +41 -1
- package/dist/esm/pager/templates/pager-adaptive-input.js +5790 -0
- package/dist/esm/pager/templates/pager-adaptive.js +5789 -0
- package/dist/esm/pager/templates/pager-input.js +5789 -0
- package/dist/esm/pager/templates/pager-normal.js +5783 -0
- package/dist/esm/pager/tests/pager-adaptive.js +47 -11
- package/dist/esm/pager/tests/pager-sizes.js +34 -21
- package/dist/esm/pager/tests/pager.js +27 -10
- package/dist/esm/pdf-viewer/tests/pdf-viewer-blank-page-blazor.js +23 -11
- package/dist/esm/pdf-viewer/tests/pdf-viewer-blank-page.js +27 -15
- package/dist/esm/pdf-viewer/tests/pdf-viewer-search-panel.js +30 -18
- package/dist/esm/pdf-viewer/tests/pdf-viewer.js +23 -11
- package/dist/types/floating-label/floating-label.spec.d.ts +6 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/pager/index.d.ts +4 -0
- package/dist/types/pager/templates/pager-adaptive-input.d.ts +1 -0
- package/dist/types/pager/templates/pager-adaptive.d.ts +1 -0
- package/dist/types/pager/templates/pager-input.d.ts +1 -0
- package/dist/types/pager/templates/pager-normal.d.ts +1 -0
- package/package.json +2 -2
- package/src/chat/chat.spec.tsx +13 -14
- package/src/floating-label/floating-label.spec.tsx +7 -2
- package/src/index.ts +1 -0
- package/src/pager/index.tsx +4 -0
- package/src/pager/templates/pager-adaptive-input.tsx +9 -0
- package/src/pager/templates/pager-adaptive.tsx +8 -0
- package/src/pager/templates/pager-input.tsx +8 -0
- package/src/pager/templates/pager-normal.tsx +3 -0
- package/src/pager/tests/pager-adaptive.tsx +7 -7
- package/src/pager/tests/pager-sizes.tsx +9 -22
- package/src/pager/tests/pager.tsx +21 -19
|
@@ -4574,67 +4574,10 @@ var CardDeck = (props) => {
|
|
|
4574
4574
|
);
|
|
4575
4575
|
};
|
|
4576
4576
|
|
|
4577
|
-
// src/button-group/button-group.spec.tsx
|
|
4578
|
-
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
4579
|
-
var BUTTONGROUP_CLASSNAME = `k-button-group`;
|
|
4580
|
-
var states7 = [
|
|
4581
|
-
States.disabled
|
|
4582
|
-
];
|
|
4583
|
-
var options6 = {
|
|
4584
|
-
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
|
|
4585
|
-
};
|
|
4586
|
-
var defaultProps6 = {
|
|
4587
|
-
fillMode: FillMode.solid
|
|
4588
|
-
};
|
|
4589
|
-
var ButtonGroup = (props) => {
|
|
4590
|
-
const {
|
|
4591
|
-
fillMode = defaultProps6.fillMode,
|
|
4592
|
-
disabled,
|
|
4593
|
-
stretched,
|
|
4594
|
-
...other
|
|
4595
|
-
} = props;
|
|
4596
|
-
return /* @__PURE__ */ jsx17(
|
|
4597
|
-
"div",
|
|
4598
|
-
{
|
|
4599
|
-
...other,
|
|
4600
|
-
className: classNames(
|
|
4601
|
-
props.className,
|
|
4602
|
-
BUTTONGROUP_CLASSNAME,
|
|
4603
|
-
optionClassNames(BUTTONGROUP_CLASSNAME, {
|
|
4604
|
-
fillMode
|
|
4605
|
-
}),
|
|
4606
|
-
stateClassNames(BUTTONGROUP_CLASSNAME, {
|
|
4607
|
-
disabled
|
|
4608
|
-
}),
|
|
4609
|
-
{
|
|
4610
|
-
[`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
|
|
4611
|
-
}
|
|
4612
|
-
),
|
|
4613
|
-
children: props.children
|
|
4614
|
-
}
|
|
4615
|
-
);
|
|
4616
|
-
};
|
|
4617
|
-
ButtonGroup.states = states7;
|
|
4618
|
-
ButtonGroup.options = options6;
|
|
4619
|
-
ButtonGroup.className = BUTTONGROUP_CLASSNAME;
|
|
4620
|
-
ButtonGroup.defaultProps = defaultProps6;
|
|
4621
|
-
|
|
4622
|
-
// src/button-group/templates/icon-button-group.tsx
|
|
4623
|
-
import { jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
4624
|
-
|
|
4625
|
-
// src/button-group/templates/icon-text-button-group.tsx
|
|
4626
|
-
import { jsx as jsx19, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
4627
|
-
|
|
4628
|
-
// src/button-group/templates/text-button-group.tsx
|
|
4629
|
-
import { jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
4630
|
-
|
|
4631
|
-
// src/button-group/templates/mixed-button-group.tsx
|
|
4632
|
-
import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
4633
|
-
|
|
4634
4577
|
// src/input/input.spec.tsx
|
|
4635
|
-
import { jsx as
|
|
4578
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
4636
4579
|
var INPUT_CLASSNAME = `k-input`;
|
|
4637
|
-
var
|
|
4580
|
+
var states7 = [
|
|
4638
4581
|
States.hover,
|
|
4639
4582
|
States.focus,
|
|
4640
4583
|
States.valid,
|
|
@@ -4644,12 +4587,12 @@ var states8 = [
|
|
|
4644
4587
|
States.loading,
|
|
4645
4588
|
States.readonly
|
|
4646
4589
|
];
|
|
4647
|
-
var
|
|
4590
|
+
var options6 = {
|
|
4648
4591
|
size: [Size.small, Size.medium, Size.large],
|
|
4649
4592
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
4650
4593
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
4651
4594
|
};
|
|
4652
|
-
var
|
|
4595
|
+
var defaultProps6 = {
|
|
4653
4596
|
size: Size.medium,
|
|
4654
4597
|
rounded: Size.medium,
|
|
4655
4598
|
fillMode: FillMode.solid
|
|
@@ -4663,12 +4606,12 @@ var Input = (props) => {
|
|
|
4663
4606
|
valid,
|
|
4664
4607
|
loading,
|
|
4665
4608
|
readonly,
|
|
4666
|
-
size =
|
|
4667
|
-
rounded =
|
|
4668
|
-
fillMode =
|
|
4609
|
+
size = defaultProps6.size,
|
|
4610
|
+
rounded = defaultProps6.rounded,
|
|
4611
|
+
fillMode = defaultProps6.fillMode,
|
|
4669
4612
|
...other
|
|
4670
4613
|
} = props;
|
|
4671
|
-
return /* @__PURE__ */
|
|
4614
|
+
return /* @__PURE__ */ jsx17(
|
|
4672
4615
|
"span",
|
|
4673
4616
|
{
|
|
4674
4617
|
...other,
|
|
@@ -4681,13 +4624,13 @@ var Input = (props) => {
|
|
|
4681
4624
|
}
|
|
4682
4625
|
);
|
|
4683
4626
|
};
|
|
4684
|
-
Input.states =
|
|
4685
|
-
Input.options =
|
|
4627
|
+
Input.states = states7;
|
|
4628
|
+
Input.options = options6;
|
|
4686
4629
|
Input.className = INPUT_CLASSNAME;
|
|
4687
|
-
Input.defaultProps =
|
|
4630
|
+
Input.defaultProps = defaultProps6;
|
|
4688
4631
|
|
|
4689
4632
|
// src/input/picker.spec.tsx
|
|
4690
|
-
import { jsx as
|
|
4633
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
4691
4634
|
var PICKER_CLASSNAME = `k-picker`;
|
|
4692
4635
|
var pickerStates = [
|
|
4693
4636
|
States.hover,
|
|
@@ -4704,7 +4647,7 @@ var pickerOptions = {
|
|
|
4704
4647
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
4705
4648
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
4706
4649
|
};
|
|
4707
|
-
var
|
|
4650
|
+
var defaultProps7 = {
|
|
4708
4651
|
size: Size.medium,
|
|
4709
4652
|
rounded: Roundness.medium,
|
|
4710
4653
|
fillMode: FillMode.solid
|
|
@@ -4718,12 +4661,12 @@ var Picker = (props) => {
|
|
|
4718
4661
|
valid,
|
|
4719
4662
|
loading,
|
|
4720
4663
|
readonly,
|
|
4721
|
-
size =
|
|
4722
|
-
rounded =
|
|
4723
|
-
fillMode =
|
|
4664
|
+
size = defaultProps7.size,
|
|
4665
|
+
rounded = defaultProps7.rounded,
|
|
4666
|
+
fillMode = defaultProps7.fillMode,
|
|
4724
4667
|
...other
|
|
4725
4668
|
} = props;
|
|
4726
|
-
return /* @__PURE__ */
|
|
4669
|
+
return /* @__PURE__ */ jsx18(
|
|
4727
4670
|
"span",
|
|
4728
4671
|
{
|
|
4729
4672
|
...other,
|
|
@@ -4740,17 +4683,17 @@ var Picker = (props) => {
|
|
|
4740
4683
|
Picker.states = pickerStates;
|
|
4741
4684
|
Picker.options = pickerOptions;
|
|
4742
4685
|
Picker.className = PICKER_CLASSNAME;
|
|
4743
|
-
Picker.defaultProps =
|
|
4686
|
+
Picker.defaultProps = defaultProps7;
|
|
4744
4687
|
|
|
4745
4688
|
// src/input/input-clear-value.tsx
|
|
4746
|
-
import { Fragment as Fragment9, jsx as
|
|
4689
|
+
import { Fragment as Fragment9, jsx as jsx19 } from "react/jsx-runtime";
|
|
4747
4690
|
var className = `k-clear-value`;
|
|
4748
|
-
var
|
|
4691
|
+
var states8 = [
|
|
4749
4692
|
States.disabled,
|
|
4750
4693
|
States.loading,
|
|
4751
4694
|
States.readonly
|
|
4752
4695
|
];
|
|
4753
|
-
var
|
|
4696
|
+
var options7 = {};
|
|
4754
4697
|
var InputClearValue = (props) => {
|
|
4755
4698
|
const {
|
|
4756
4699
|
disabled,
|
|
@@ -4759,20 +4702,20 @@ var InputClearValue = (props) => {
|
|
|
4759
4702
|
value
|
|
4760
4703
|
} = props;
|
|
4761
4704
|
if (disabled || readonly || loading || !value) {
|
|
4762
|
-
return /* @__PURE__ */
|
|
4705
|
+
return /* @__PURE__ */ jsx19(Fragment9, {});
|
|
4763
4706
|
}
|
|
4764
|
-
return /* @__PURE__ */
|
|
4707
|
+
return /* @__PURE__ */ jsx19("span", { className: classNames(props.className, className), children: /* @__PURE__ */ jsx19(Icon, { icon: "x" }) });
|
|
4765
4708
|
};
|
|
4766
|
-
InputClearValue.states =
|
|
4767
|
-
InputClearValue.options =
|
|
4709
|
+
InputClearValue.states = states8;
|
|
4710
|
+
InputClearValue.options = options7;
|
|
4768
4711
|
InputClearValue.className = className;
|
|
4769
4712
|
|
|
4770
4713
|
// src/input/input-inner-input.tsx
|
|
4771
|
-
import { jsx as
|
|
4714
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
4772
4715
|
var className2 = `k-input-inner`;
|
|
4773
|
-
var
|
|
4774
|
-
var
|
|
4775
|
-
var
|
|
4716
|
+
var states9 = [];
|
|
4717
|
+
var options8 = {};
|
|
4718
|
+
var defaultProps8 = {
|
|
4776
4719
|
type: "text",
|
|
4777
4720
|
autocomplete: "off",
|
|
4778
4721
|
value: "",
|
|
@@ -4780,13 +4723,13 @@ var defaultProps9 = {
|
|
|
4780
4723
|
};
|
|
4781
4724
|
var InputInnerInput = (props) => {
|
|
4782
4725
|
const {
|
|
4783
|
-
value =
|
|
4784
|
-
type =
|
|
4785
|
-
placeholder =
|
|
4786
|
-
autocomplete =
|
|
4726
|
+
value = defaultProps8.value,
|
|
4727
|
+
type = defaultProps8.type,
|
|
4728
|
+
placeholder = defaultProps8.placeholder,
|
|
4729
|
+
autocomplete = defaultProps8.autocomplete,
|
|
4787
4730
|
...other
|
|
4788
4731
|
} = props;
|
|
4789
|
-
return /* @__PURE__ */
|
|
4732
|
+
return /* @__PURE__ */ jsx20(
|
|
4790
4733
|
"input",
|
|
4791
4734
|
{
|
|
4792
4735
|
...other,
|
|
@@ -4798,15 +4741,15 @@ var InputInnerInput = (props) => {
|
|
|
4798
4741
|
}
|
|
4799
4742
|
);
|
|
4800
4743
|
};
|
|
4801
|
-
InputInnerInput.states =
|
|
4802
|
-
InputInnerInput.options =
|
|
4744
|
+
InputInnerInput.states = states9;
|
|
4745
|
+
InputInnerInput.options = options8;
|
|
4803
4746
|
InputInnerInput.className = className2;
|
|
4804
4747
|
|
|
4805
4748
|
// src/input/input-inner-span.tsx
|
|
4806
|
-
import { jsx as
|
|
4749
|
+
import { jsx as jsx21, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
4807
4750
|
var className3 = `k-input-inner`;
|
|
4808
|
-
var
|
|
4809
|
-
var
|
|
4751
|
+
var states10 = [];
|
|
4752
|
+
var options9 = {};
|
|
4810
4753
|
var InputInnerSpan = (props) => {
|
|
4811
4754
|
const {
|
|
4812
4755
|
value,
|
|
@@ -4816,41 +4759,41 @@ var InputInnerSpan = (props) => {
|
|
|
4816
4759
|
valueIconName,
|
|
4817
4760
|
...other
|
|
4818
4761
|
} = props;
|
|
4819
|
-
return /* @__PURE__ */
|
|
4762
|
+
return /* @__PURE__ */ jsxs5(
|
|
4820
4763
|
"span",
|
|
4821
4764
|
{
|
|
4822
4765
|
...other,
|
|
4823
4766
|
className: classNames(props.className, className3, optionClassNames(className3, props)),
|
|
4824
4767
|
children: [
|
|
4825
4768
|
valueIcon,
|
|
4826
|
-
!valueIcon && valueIconName && /* @__PURE__ */
|
|
4769
|
+
!valueIcon && valueIconName && /* @__PURE__ */ jsx21(Icon, { className: "k-input-value-icon", icon: valueIconName }),
|
|
4827
4770
|
showValue && !value && placeholder,
|
|
4828
|
-
showValue && value && /* @__PURE__ */
|
|
4771
|
+
showValue && value && /* @__PURE__ */ jsx21("span", { className: "k-input-value-text", children: value })
|
|
4829
4772
|
]
|
|
4830
4773
|
}
|
|
4831
4774
|
);
|
|
4832
4775
|
};
|
|
4833
|
-
InputInnerSpan.states =
|
|
4834
|
-
InputInnerSpan.options =
|
|
4776
|
+
InputInnerSpan.states = states10;
|
|
4777
|
+
InputInnerSpan.options = options9;
|
|
4835
4778
|
InputInnerSpan.className = className3;
|
|
4836
4779
|
|
|
4837
4780
|
// src/input/input-inner-textarea.tsx
|
|
4838
|
-
import { jsx as
|
|
4839
|
-
var
|
|
4781
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
4782
|
+
var defaultProps9 = {
|
|
4840
4783
|
value: "",
|
|
4841
4784
|
placeholder: ""
|
|
4842
4785
|
};
|
|
4843
4786
|
var className4 = `k-input-inner`;
|
|
4844
|
-
var
|
|
4845
|
-
var
|
|
4787
|
+
var states11 = [];
|
|
4788
|
+
var options10 = {};
|
|
4846
4789
|
var InputInnerTextarea = (props) => {
|
|
4847
4790
|
const {
|
|
4848
|
-
value =
|
|
4849
|
-
placeholder =
|
|
4791
|
+
value = defaultProps9.value,
|
|
4792
|
+
placeholder = defaultProps9.placeholder,
|
|
4850
4793
|
rows,
|
|
4851
4794
|
...other
|
|
4852
4795
|
} = props;
|
|
4853
|
-
return /* @__PURE__ */
|
|
4796
|
+
return /* @__PURE__ */ jsx22(
|
|
4854
4797
|
"textarea",
|
|
4855
4798
|
{
|
|
4856
4799
|
...other,
|
|
@@ -4861,14 +4804,14 @@ var InputInnerTextarea = (props) => {
|
|
|
4861
4804
|
}
|
|
4862
4805
|
);
|
|
4863
4806
|
};
|
|
4864
|
-
InputInnerTextarea.states =
|
|
4865
|
-
InputInnerTextarea.options =
|
|
4807
|
+
InputInnerTextarea.states = states11;
|
|
4808
|
+
InputInnerTextarea.options = options10;
|
|
4866
4809
|
InputInnerTextarea.className = className4;
|
|
4867
4810
|
|
|
4868
4811
|
// src/input/input-loading-icon.tsx
|
|
4869
|
-
import { Fragment as Fragment10, jsx as
|
|
4812
|
+
import { Fragment as Fragment10, jsx as jsx23 } from "react/jsx-runtime";
|
|
4870
4813
|
var className5 = `k-input-loading-icon`;
|
|
4871
|
-
var
|
|
4814
|
+
var states12 = [
|
|
4872
4815
|
States.disabled,
|
|
4873
4816
|
States.loading
|
|
4874
4817
|
];
|
|
@@ -4878,21 +4821,21 @@ var InputLoadingIcon = (props) => {
|
|
|
4878
4821
|
loading
|
|
4879
4822
|
} = props;
|
|
4880
4823
|
if (disabled || !loading) {
|
|
4881
|
-
return /* @__PURE__ */
|
|
4824
|
+
return /* @__PURE__ */ jsx23(Fragment10, {});
|
|
4882
4825
|
}
|
|
4883
|
-
return /* @__PURE__ */
|
|
4826
|
+
return /* @__PURE__ */ jsx23(Icon, { className: classNames(props.className, className5), icon: "loading", type: "font" });
|
|
4884
4827
|
};
|
|
4885
4828
|
|
|
4886
4829
|
// src/input/input-validation-icon.tsx
|
|
4887
|
-
import { Fragment as Fragment11, jsx as
|
|
4830
|
+
import { Fragment as Fragment11, jsx as jsx24 } from "react/jsx-runtime";
|
|
4888
4831
|
var className6 = `k-input-validation-icon`;
|
|
4889
|
-
var
|
|
4832
|
+
var states13 = [
|
|
4890
4833
|
States.valid,
|
|
4891
4834
|
States.invalid,
|
|
4892
4835
|
States.disabled,
|
|
4893
4836
|
States.loading
|
|
4894
4837
|
];
|
|
4895
|
-
var
|
|
4838
|
+
var options11 = {};
|
|
4896
4839
|
var InputValidationIcon = (props) => {
|
|
4897
4840
|
const {
|
|
4898
4841
|
valid,
|
|
@@ -4903,100 +4846,62 @@ var InputValidationIcon = (props) => {
|
|
|
4903
4846
|
const iconName = invalid ? "exclamation-circle" : "check";
|
|
4904
4847
|
const renderValidationIcon = Boolean(valid || invalid);
|
|
4905
4848
|
if (disabled || loading || !renderValidationIcon) {
|
|
4906
|
-
return /* @__PURE__ */
|
|
4849
|
+
return /* @__PURE__ */ jsx24(Fragment11, {});
|
|
4907
4850
|
}
|
|
4908
|
-
return /* @__PURE__ */
|
|
4851
|
+
return /* @__PURE__ */ jsx24(Icon, { className: classNames(className6), icon: iconName });
|
|
4909
4852
|
};
|
|
4910
|
-
InputValidationIcon.states =
|
|
4911
|
-
InputValidationIcon.options =
|
|
4853
|
+
InputValidationIcon.states = states13;
|
|
4854
|
+
InputValidationIcon.options = options11;
|
|
4912
4855
|
InputValidationIcon.className = className6;
|
|
4913
4856
|
|
|
4914
4857
|
// src/input/input-prefix.tsx
|
|
4915
|
-
import { Fragment as Fragment12, jsx as
|
|
4858
|
+
import { Fragment as Fragment12, jsx as jsx25 } from "react/jsx-runtime";
|
|
4916
4859
|
var className7 = `k-input-prefix`;
|
|
4917
4860
|
var InputPrefix = (props) => {
|
|
4918
4861
|
if (!props.children) {
|
|
4919
|
-
return /* @__PURE__ */
|
|
4862
|
+
return /* @__PURE__ */ jsx25(Fragment12, {});
|
|
4920
4863
|
}
|
|
4921
|
-
return /* @__PURE__ */
|
|
4864
|
+
return /* @__PURE__ */ jsx25("span", { className: classNames(className7, props.className), children: props.children });
|
|
4922
4865
|
};
|
|
4923
4866
|
|
|
4924
4867
|
// src/input/input-suffix.tsx
|
|
4925
|
-
import { Fragment as Fragment13, jsx as
|
|
4868
|
+
import { Fragment as Fragment13, jsx as jsx26 } from "react/jsx-runtime";
|
|
4926
4869
|
var className8 = `k-input-suffix`;
|
|
4927
4870
|
var InputSuffix = (props) => {
|
|
4928
4871
|
if (!props.children) {
|
|
4929
|
-
return /* @__PURE__ */
|
|
4872
|
+
return /* @__PURE__ */ jsx26(Fragment13, {});
|
|
4930
4873
|
}
|
|
4931
|
-
return /* @__PURE__ */
|
|
4874
|
+
return /* @__PURE__ */ jsx26("span", { className: classNames(className8, props.className), children: props.children });
|
|
4932
4875
|
};
|
|
4933
4876
|
|
|
4934
4877
|
// src/input/input-separator.tsx
|
|
4935
|
-
import { jsx as
|
|
4936
|
-
|
|
4937
|
-
// src/color-preview/color-preview.tsx
|
|
4938
|
-
import { jsx as jsx33, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
4939
|
-
var COLORPREVIEW_CLASSNAME = `k-color-preview`;
|
|
4940
|
-
var states15 = [];
|
|
4941
|
-
var options13 = {};
|
|
4942
|
-
var ColorPreview = (props) => {
|
|
4943
|
-
const {
|
|
4944
|
-
color,
|
|
4945
|
-
iconName,
|
|
4946
|
-
...other
|
|
4947
|
-
} = props;
|
|
4948
|
-
return /* @__PURE__ */ jsxs10(
|
|
4949
|
-
"span",
|
|
4950
|
-
{
|
|
4951
|
-
...other,
|
|
4952
|
-
className: classNames(
|
|
4953
|
-
props.className,
|
|
4954
|
-
COLORPREVIEW_CLASSNAME,
|
|
4955
|
-
{
|
|
4956
|
-
"k-icon-color-preview": iconName,
|
|
4957
|
-
"k-no-color": !color
|
|
4958
|
-
}
|
|
4959
|
-
),
|
|
4960
|
-
children: [
|
|
4961
|
-
iconName && /* @__PURE__ */ jsx33(Icon, { icon: iconName, className: "k-color-preview-icon" }),
|
|
4962
|
-
/* @__PURE__ */ jsx33(
|
|
4963
|
-
"span",
|
|
4964
|
-
{
|
|
4965
|
-
className: "k-color-preview-mask",
|
|
4966
|
-
style: { backgroundColor: color }
|
|
4967
|
-
}
|
|
4968
|
-
)
|
|
4969
|
-
]
|
|
4970
|
-
}
|
|
4971
|
-
);
|
|
4972
|
-
};
|
|
4973
|
-
ColorPreview.states = states15;
|
|
4974
|
-
ColorPreview.options = options13;
|
|
4975
|
-
ColorPreview.className = COLORPREVIEW_CLASSNAME;
|
|
4878
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
4976
4879
|
|
|
4977
|
-
// src/
|
|
4978
|
-
import { jsx as
|
|
4979
|
-
var
|
|
4980
|
-
var
|
|
4880
|
+
// src/textbox/textbox.spec.tsx
|
|
4881
|
+
import { jsx as jsx28, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
4882
|
+
var TEXTBOX_CLASSNAME = `k-textbox`;
|
|
4883
|
+
var states14 = [
|
|
4981
4884
|
States.hover,
|
|
4982
4885
|
States.focus,
|
|
4983
4886
|
States.valid,
|
|
4984
4887
|
States.invalid,
|
|
4985
4888
|
States.required,
|
|
4986
|
-
States.disabled
|
|
4889
|
+
States.disabled,
|
|
4890
|
+
States.loading,
|
|
4891
|
+
States.readonly
|
|
4987
4892
|
];
|
|
4988
|
-
var
|
|
4893
|
+
var options12 = {
|
|
4989
4894
|
size: [Size.small, Size.medium, Size.large],
|
|
4990
4895
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
4991
4896
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
4992
4897
|
};
|
|
4993
|
-
var
|
|
4994
|
-
|
|
4995
|
-
size:
|
|
4996
|
-
rounded:
|
|
4997
|
-
fillMode:
|
|
4898
|
+
var defaultProps10 = {
|
|
4899
|
+
showClearButton: true,
|
|
4900
|
+
size: Input.defaultProps.size,
|
|
4901
|
+
rounded: Input.defaultProps.rounded,
|
|
4902
|
+
fillMode: Input.defaultProps.fillMode
|
|
4998
4903
|
};
|
|
4999
|
-
var
|
|
4904
|
+
var Textbox = (props) => {
|
|
5000
4905
|
const {
|
|
5001
4906
|
prefix,
|
|
5002
4907
|
suffix,
|
|
@@ -5010,13 +4915,14 @@ var ColorPicker = (props) => {
|
|
|
5010
4915
|
valid,
|
|
5011
4916
|
invalid,
|
|
5012
4917
|
required,
|
|
4918
|
+
loading,
|
|
5013
4919
|
disabled,
|
|
5014
|
-
|
|
5015
|
-
|
|
4920
|
+
readonly,
|
|
4921
|
+
showClearButton = defaultProps10.showClearButton,
|
|
5016
4922
|
...other
|
|
5017
4923
|
} = props;
|
|
5018
|
-
return /* @__PURE__ */
|
|
5019
|
-
|
|
4924
|
+
return /* @__PURE__ */ jsxs6(
|
|
4925
|
+
Input,
|
|
5020
4926
|
{
|
|
5021
4927
|
...other,
|
|
5022
4928
|
size,
|
|
@@ -5027,2084 +4933,174 @@ var ColorPicker = (props) => {
|
|
|
5027
4933
|
valid,
|
|
5028
4934
|
invalid,
|
|
5029
4935
|
required,
|
|
4936
|
+
loading,
|
|
5030
4937
|
disabled,
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
COLORPICKER_CLASSNAME,
|
|
5034
|
-
"k-icon-picker"
|
|
5035
|
-
),
|
|
4938
|
+
readonly,
|
|
4939
|
+
className: classNames(props.className, TEXTBOX_CLASSNAME),
|
|
5036
4940
|
children: [
|
|
5037
|
-
/* @__PURE__ */
|
|
5038
|
-
/* @__PURE__ */
|
|
5039
|
-
|
|
4941
|
+
/* @__PURE__ */ jsx28(InputPrefix, { children: prefix }),
|
|
4942
|
+
/* @__PURE__ */ jsx28(InputInnerInput, { placeholder, value }),
|
|
4943
|
+
/* @__PURE__ */ jsx28(
|
|
4944
|
+
InputValidationIcon,
|
|
5040
4945
|
{
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
ColorPreview,
|
|
5046
|
-
{
|
|
5047
|
-
className: "k-value-icon",
|
|
5048
|
-
color: value,
|
|
5049
|
-
iconName: valueIconName
|
|
5050
|
-
}
|
|
5051
|
-
),
|
|
5052
|
-
valueIconName
|
|
4946
|
+
valid,
|
|
4947
|
+
invalid,
|
|
4948
|
+
loading,
|
|
4949
|
+
disabled
|
|
5053
4950
|
}
|
|
5054
4951
|
),
|
|
5055
|
-
/* @__PURE__ */
|
|
5056
|
-
|
|
5057
|
-
Button,
|
|
4952
|
+
/* @__PURE__ */ jsx28(
|
|
4953
|
+
InputLoadingIcon,
|
|
5058
4954
|
{
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
rounded: null,
|
|
5062
|
-
size,
|
|
5063
|
-
fillMode
|
|
4955
|
+
loading,
|
|
4956
|
+
disabled
|
|
5064
4957
|
}
|
|
5065
|
-
)
|
|
4958
|
+
),
|
|
4959
|
+
showClearButton && /* @__PURE__ */ jsx28(
|
|
4960
|
+
InputClearValue,
|
|
4961
|
+
{
|
|
4962
|
+
loading,
|
|
4963
|
+
disabled,
|
|
4964
|
+
readonly,
|
|
4965
|
+
value
|
|
4966
|
+
}
|
|
4967
|
+
),
|
|
4968
|
+
/* @__PURE__ */ jsx28(InputSuffix, { children: suffix })
|
|
5066
4969
|
]
|
|
5067
4970
|
}
|
|
5068
4971
|
);
|
|
5069
4972
|
};
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
4973
|
+
Textbox.states = states14;
|
|
4974
|
+
Textbox.options = options12;
|
|
4975
|
+
Textbox.className = TEXTBOX_CLASSNAME;
|
|
4976
|
+
Textbox.defaultProps = defaultProps10;
|
|
5074
4977
|
|
|
5075
|
-
// src/
|
|
5076
|
-
import { jsx as
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
4978
|
+
// src/textbox/templates/textbox-normal.tsx
|
|
4979
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
4980
|
+
|
|
4981
|
+
// src/textbox/templates/textbox-prefix.tsx
|
|
4982
|
+
import { jsx as jsx30, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
4983
|
+
|
|
4984
|
+
// src/textbox/templates/textbox-suffix.tsx
|
|
4985
|
+
import { jsx as jsx31, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
4986
|
+
|
|
4987
|
+
// src/chat/chat.spec.tsx
|
|
4988
|
+
import { Fragment as Fragment14, jsx as jsx32, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
4989
|
+
var CHAT_CLASSNAME = "k-chat";
|
|
4990
|
+
var states15 = [];
|
|
4991
|
+
var options13 = {};
|
|
4992
|
+
var defaultOptions = {
|
|
4993
|
+
showToolbar: true,
|
|
4994
|
+
showMessageBox: true,
|
|
4995
|
+
showMoreButton: true
|
|
5082
4996
|
};
|
|
5083
|
-
var
|
|
4997
|
+
var Chat = (props) => {
|
|
5084
4998
|
const {
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
4999
|
+
dir,
|
|
5000
|
+
showToolbar = defaultOptions.showToolbar,
|
|
5001
|
+
showMessageBox = defaultOptions.showMessageBox,
|
|
5002
|
+
showMoreButton = defaultOptions.showMoreButton,
|
|
5088
5003
|
...other
|
|
5089
5004
|
} = props;
|
|
5090
|
-
return /* @__PURE__ */
|
|
5005
|
+
return /* @__PURE__ */ jsxs9(
|
|
5091
5006
|
"div",
|
|
5092
5007
|
{
|
|
5093
5008
|
...other,
|
|
5094
|
-
style: { ...offset, ...props.style },
|
|
5095
5009
|
className: classNames(
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
{
|
|
5099
|
-
["k-animation-container-fixed"]: positionMode === "fixed"
|
|
5100
|
-
}
|
|
5010
|
+
CHAT_CLASSNAME,
|
|
5011
|
+
props.className
|
|
5101
5012
|
),
|
|
5102
|
-
|
|
5013
|
+
dir,
|
|
5014
|
+
children: [
|
|
5015
|
+
/* @__PURE__ */ jsx32("div", { className: "k-message-list k-avatars", children: /* @__PURE__ */ jsx32("div", { className: "k-message-list-content", children: props.children }) }),
|
|
5016
|
+
showMessageBox && /* @__PURE__ */ jsx32(
|
|
5017
|
+
Textbox,
|
|
5018
|
+
{
|
|
5019
|
+
className: "k-message-box",
|
|
5020
|
+
placeholder: "Type a message...",
|
|
5021
|
+
suffix: /* @__PURE__ */ jsxs9(Fragment14, { children: [
|
|
5022
|
+
showMoreButton && /* @__PURE__ */ jsx32(Button, { fillMode: "flat", icon: "more-horizontal" }),
|
|
5023
|
+
/* @__PURE__ */ jsx32(Button, { fillMode: "flat", icon: "paper-plane", className: "k-chat-send" })
|
|
5024
|
+
] })
|
|
5025
|
+
}
|
|
5026
|
+
),
|
|
5027
|
+
showToolbar && /* @__PURE__ */ jsxs9("div", { className: "k-chat-toolbar k-toolbar", children: [
|
|
5028
|
+
/* @__PURE__ */ jsx32(Button, { className: "k-scroll-button k-scroll-button-left k-hidden", icon: "chevron-left" }),
|
|
5029
|
+
/* @__PURE__ */ jsxs9("div", { className: "k-toolbar-group k-button-list", children: [
|
|
5030
|
+
/* @__PURE__ */ jsx32(Button, { icon: "arrow-rotate-cw" }),
|
|
5031
|
+
/* @__PURE__ */ jsx32(Button, { icon: "gear" }),
|
|
5032
|
+
/* @__PURE__ */ jsx32(Button, { icon: "wrench" }),
|
|
5033
|
+
/* @__PURE__ */ jsx32(Button, { icon: "plus" }),
|
|
5034
|
+
/* @__PURE__ */ jsx32(Button, { icon: "search" }),
|
|
5035
|
+
/* @__PURE__ */ jsx32(Button, { icon: "star" }),
|
|
5036
|
+
/* @__PURE__ */ jsx32(Button, { icon: "bell" }),
|
|
5037
|
+
/* @__PURE__ */ jsx32(Button, { icon: "question-circle" }),
|
|
5038
|
+
/* @__PURE__ */ jsx32(Button, { icon: "trash" })
|
|
5039
|
+
] }),
|
|
5040
|
+
/* @__PURE__ */ jsx32(Button, { className: "k-scroll-button k-scroll-button-right", icon: "chevron-right" })
|
|
5041
|
+
] })
|
|
5042
|
+
]
|
|
5103
5043
|
}
|
|
5104
5044
|
);
|
|
5105
5045
|
};
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5046
|
+
Chat.states = states15;
|
|
5047
|
+
Chat.options = options13;
|
|
5048
|
+
Chat.className = CHAT_CLASSNAME;
|
|
5049
|
+
Chat.defaultOptions = defaultOptions;
|
|
5110
5050
|
|
|
5111
|
-
// src/
|
|
5112
|
-
import { jsx as
|
|
5113
|
-
var
|
|
5114
|
-
var
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5051
|
+
// src/chat/chat-message.tsx
|
|
5052
|
+
import { jsx as jsx33, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
5053
|
+
var CHATMESSAGE_CLASSNAME = "k-message";
|
|
5054
|
+
var states16 = [
|
|
5055
|
+
States.selected
|
|
5056
|
+
];
|
|
5057
|
+
var options14 = {};
|
|
5058
|
+
var defaultProps11 = {
|
|
5059
|
+
time: "Thu Feb 08 2018",
|
|
5060
|
+
text: "How can I help you?",
|
|
5061
|
+
status: "Seen"
|
|
5118
5062
|
};
|
|
5119
|
-
var
|
|
5063
|
+
var ChatMessage = (props) => {
|
|
5120
5064
|
const {
|
|
5121
|
-
|
|
5122
|
-
|
|
5065
|
+
time = defaultProps11.time,
|
|
5066
|
+
text = defaultProps11.text,
|
|
5067
|
+
status = defaultProps11.status,
|
|
5068
|
+
selected,
|
|
5123
5069
|
...other
|
|
5124
5070
|
} = props;
|
|
5125
|
-
return /* @__PURE__ */
|
|
5126
|
-
|
|
5071
|
+
return /* @__PURE__ */ jsxs10(
|
|
5072
|
+
"div",
|
|
5127
5073
|
{
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5074
|
+
...other,
|
|
5075
|
+
className: classNames(
|
|
5076
|
+
CHATMESSAGE_CLASSNAME,
|
|
5077
|
+
props.className,
|
|
5078
|
+
stateClassNames(CHATMESSAGE_CLASSNAME, { selected })
|
|
5079
|
+
),
|
|
5080
|
+
children: [
|
|
5081
|
+
/* @__PURE__ */ jsx33("time", { className: "k-message-time", children: time }),
|
|
5082
|
+
/* @__PURE__ */ jsx33("div", { className: "k-chat-bubble", children: text }),
|
|
5083
|
+
/* @__PURE__ */ jsx33("span", { className: "k-message-status", children: status })
|
|
5084
|
+
]
|
|
5131
5085
|
}
|
|
5132
5086
|
);
|
|
5133
5087
|
};
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
// src/action-sheet/action-sheet.spec.tsx
|
|
5140
|
-
import { Fragment as Fragment14, jsx as jsx37, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
5141
|
-
var ACTIONSHEET_CLASSNAME = `k-actionsheet`;
|
|
5142
|
-
var states19 = [];
|
|
5143
|
-
var options17 = {};
|
|
5144
|
-
var defaultProps14 = {
|
|
5145
|
-
side: "bottom",
|
|
5146
|
-
fullscreen: false,
|
|
5147
|
-
adaptive: false,
|
|
5148
|
-
overlay: true
|
|
5149
|
-
};
|
|
5150
|
-
var ActionSheet = (props) => {
|
|
5151
|
-
const {
|
|
5152
|
-
children,
|
|
5153
|
-
title,
|
|
5154
|
-
header,
|
|
5155
|
-
footer,
|
|
5156
|
-
actions,
|
|
5157
|
-
side = defaultProps14.side,
|
|
5158
|
-
fullscreen = defaultProps14.fullscreen,
|
|
5159
|
-
adaptive = defaultProps14.adaptive,
|
|
5160
|
-
overlay = defaultProps14.overlay,
|
|
5161
|
-
...other
|
|
5162
|
-
} = props;
|
|
5163
|
-
const _ActionSheetHeader = title ? /* @__PURE__ */ jsx37(ActionSheetHeader, { title }) : header ? header : Array.isArray(children) && children.find((child) => child.type === ActionSheetHeader);
|
|
5164
|
-
const _ActionSheetFooter = actions ? /* @__PURE__ */ jsx37(ActionSheetFooter, { className: "k-actions", actions }) : footer ? typeof footer === "string" ? /* @__PURE__ */ jsx37(ActionSheetFooter, { children: footer }) : footer : Array.isArray(children) && children.find((child) => child.type === ActionSheetFooter);
|
|
5165
|
-
const _ActionSheetContent = Array.isArray(children) ? children.filter((child) => {
|
|
5166
|
-
switch (child.type) {
|
|
5167
|
-
case ActionSheetHeader:
|
|
5168
|
-
case ActionSheetFooter:
|
|
5169
|
-
return false;
|
|
5170
|
-
default:
|
|
5171
|
-
return true;
|
|
5172
|
-
}
|
|
5173
|
-
return true;
|
|
5174
|
-
}) : children.type === ActionSheetItems ? children : /* @__PURE__ */ jsx37(Fragment14, {});
|
|
5175
|
-
return /* @__PURE__ */ jsxs12("div", { className: "k-actionsheet-container", children: [
|
|
5176
|
-
overlay && /* @__PURE__ */ jsx37("div", { className: "k-overlay" }),
|
|
5177
|
-
/* @__PURE__ */ jsx37(
|
|
5178
|
-
AnimationContainer,
|
|
5179
|
-
{
|
|
5180
|
-
animationStyle: {
|
|
5181
|
-
[`${fullscreen === true ? "top" : side}`]: 0,
|
|
5182
|
-
[`${fullscreen === true ? "width" : null}`]: "100%",
|
|
5183
|
-
[`${fullscreen === true ? "height" : null}`]: "100%",
|
|
5184
|
-
[`${side === "top" || side === "bottom" ? "width" : null}`]: "100%",
|
|
5185
|
-
[`${side === "left" || side === "right" ? "height" : null}`]: "100%"
|
|
5186
|
-
},
|
|
5187
|
-
children: /* @__PURE__ */ jsx37(
|
|
5188
|
-
"div",
|
|
5189
|
-
{
|
|
5190
|
-
...other,
|
|
5191
|
-
className: classNames(
|
|
5192
|
-
props.className,
|
|
5193
|
-
ACTIONSHEET_CLASSNAME,
|
|
5194
|
-
{
|
|
5195
|
-
[`k-actionsheet-${side}`]: fullscreen === false,
|
|
5196
|
-
"k-actionsheet-fullscreen": fullscreen === true,
|
|
5197
|
-
"k-adaptive-actionsheet": adaptive
|
|
5198
|
-
}
|
|
5199
|
-
),
|
|
5200
|
-
children: /* @__PURE__ */ jsxs12(Fragment14, { children: [
|
|
5201
|
-
_ActionSheetHeader,
|
|
5202
|
-
/* @__PURE__ */ jsx37("div", { className: classNames(
|
|
5203
|
-
"k-actionsheet-content",
|
|
5204
|
-
{
|
|
5205
|
-
"!k-overflow-hidden": adaptive
|
|
5206
|
-
}
|
|
5207
|
-
), children: _ActionSheetContent }),
|
|
5208
|
-
_ActionSheetFooter
|
|
5209
|
-
] })
|
|
5210
|
-
}
|
|
5211
|
-
)
|
|
5212
|
-
}
|
|
5213
|
-
)
|
|
5214
|
-
] });
|
|
5215
|
-
};
|
|
5216
|
-
ActionSheet.states = states19;
|
|
5217
|
-
ActionSheet.options = options17;
|
|
5218
|
-
ActionSheet.className = ACTIONSHEET_CLASSNAME;
|
|
5219
|
-
ActionSheet.defaultProps = defaultProps14;
|
|
5088
|
+
ChatMessage.states = states16;
|
|
5089
|
+
ChatMessage.options = options14;
|
|
5090
|
+
ChatMessage.className = CHATMESSAGE_CLASSNAME;
|
|
5091
|
+
ChatMessage.defaultProps = defaultProps11;
|
|
5220
5092
|
|
|
5221
|
-
// src/
|
|
5222
|
-
import { jsx as
|
|
5223
|
-
var
|
|
5224
|
-
var
|
|
5093
|
+
// src/avatar/avatar.spec.tsx
|
|
5094
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
5095
|
+
var AVATAR_CLASSNAME = `k-avatar`;
|
|
5096
|
+
var states17 = [
|
|
5225
5097
|
States.hover,
|
|
5226
5098
|
States.focus,
|
|
5227
|
-
States.
|
|
5228
|
-
States.
|
|
5229
|
-
States.
|
|
5230
|
-
States.disabled,
|
|
5231
|
-
States.loading
|
|
5099
|
+
States.active,
|
|
5100
|
+
States.selected,
|
|
5101
|
+
States.disabled
|
|
5232
5102
|
];
|
|
5233
|
-
var
|
|
5234
|
-
size: [Size.small, Size.medium, Size.large],
|
|
5235
|
-
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
5236
|
-
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
5237
|
-
};
|
|
5238
|
-
var defaultProps15 = {
|
|
5239
|
-
showIcon: true,
|
|
5240
|
-
icon: "search",
|
|
5241
|
-
size: Input.defaultProps.size,
|
|
5242
|
-
rounded: Input.defaultProps.rounded,
|
|
5243
|
-
fillMode: Input.defaultProps.fillMode
|
|
5244
|
-
};
|
|
5245
|
-
var Searchbox = (props) => {
|
|
5246
|
-
const {
|
|
5247
|
-
value,
|
|
5248
|
-
placeholder,
|
|
5249
|
-
size,
|
|
5250
|
-
rounded,
|
|
5251
|
-
fillMode,
|
|
5252
|
-
hover,
|
|
5253
|
-
focus,
|
|
5254
|
-
valid,
|
|
5255
|
-
invalid,
|
|
5256
|
-
required,
|
|
5257
|
-
loading,
|
|
5258
|
-
disabled,
|
|
5259
|
-
showIcon = defaultProps15.showIcon,
|
|
5260
|
-
icon = defaultProps15.icon,
|
|
5261
|
-
...other
|
|
5262
|
-
} = props;
|
|
5263
|
-
return /* @__PURE__ */ jsxs13(
|
|
5264
|
-
Input,
|
|
5265
|
-
{
|
|
5266
|
-
...other,
|
|
5267
|
-
size,
|
|
5268
|
-
rounded,
|
|
5269
|
-
fillMode,
|
|
5270
|
-
hover,
|
|
5271
|
-
focus,
|
|
5272
|
-
valid,
|
|
5273
|
-
invalid,
|
|
5274
|
-
required,
|
|
5275
|
-
loading,
|
|
5276
|
-
disabled,
|
|
5277
|
-
className: classNames(props.className, SEARCHBOX_CLASSNAME),
|
|
5278
|
-
children: [
|
|
5279
|
-
showIcon && /* @__PURE__ */ jsx38(Icon, { className: "k-input-icon", icon }),
|
|
5280
|
-
/* @__PURE__ */ jsx38(InputInnerInput, { placeholder, value }),
|
|
5281
|
-
/* @__PURE__ */ jsx38(InputLoadingIcon, { ...props }),
|
|
5282
|
-
/* @__PURE__ */ jsx38(InputValidationIcon, { ...props }),
|
|
5283
|
-
/* @__PURE__ */ jsx38(InputClearValue, { ...props })
|
|
5284
|
-
]
|
|
5285
|
-
}
|
|
5286
|
-
);
|
|
5287
|
-
};
|
|
5288
|
-
Searchbox.states = states20;
|
|
5289
|
-
Searchbox.options = options18;
|
|
5290
|
-
Searchbox.className = SEARCHBOX_CLASSNAME;
|
|
5291
|
-
Searchbox.defaultProps = defaultProps15;
|
|
5292
|
-
|
|
5293
|
-
// src/searchbox/templates/searchbox-normal.tsx
|
|
5294
|
-
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
5295
|
-
|
|
5296
|
-
// src/action-sheet/actionsheet-header.tsx
|
|
5297
|
-
import { Fragment as Fragment15, jsx as jsx40, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
5298
|
-
var ACTIONSHEETHEADER_CLASSNAME = `k-actionsheet-titlebar`;
|
|
5299
|
-
var ActionSheetHeader = (props) => {
|
|
5300
|
-
const {
|
|
5301
|
-
title,
|
|
5302
|
-
subTitle,
|
|
5303
|
-
actions,
|
|
5304
|
-
filter,
|
|
5305
|
-
...other
|
|
5306
|
-
} = props;
|
|
5307
|
-
return /* @__PURE__ */ jsx40(
|
|
5308
|
-
"div",
|
|
5309
|
-
{
|
|
5310
|
-
...other,
|
|
5311
|
-
className: classNames(
|
|
5312
|
-
props.className,
|
|
5313
|
-
ACTIONSHEETHEADER_CLASSNAME
|
|
5314
|
-
),
|
|
5315
|
-
children: /* @__PURE__ */ jsxs14(Fragment15, { children: [
|
|
5316
|
-
/* @__PURE__ */ jsxs14("div", { className: "k-actionsheet-titlebar-group k-hbox", children: [
|
|
5317
|
-
!props.children && (title || subTitle) && /* @__PURE__ */ jsx40(Fragment15, { children: /* @__PURE__ */ jsxs14("div", { className: "k-actionsheet-title", children: [
|
|
5318
|
-
title !== "" && /* @__PURE__ */ jsx40("div", { className: "k-text-center", children: title }),
|
|
5319
|
-
subTitle !== "" && /* @__PURE__ */ jsx40("div", { className: "k-actionsheet-subtitle k-text-center", children: subTitle })
|
|
5320
|
-
] }) }),
|
|
5321
|
-
props.children && /* @__PURE__ */ jsx40("div", { className: "k-actionsheet-title", children: props.children }),
|
|
5322
|
-
actions && /* @__PURE__ */ jsx40(Fragment15, { children: /* @__PURE__ */ jsx40("div", { className: "k-actionsheet-actions", children: actions.map((actionName) => /* @__PURE__ */ jsx40(Button, { icon: actionName, size: "large", fillMode: "flat" }, actionName)) }) })
|
|
5323
|
-
] }),
|
|
5324
|
-
filter && /* @__PURE__ */ jsx40(Fragment15, { children: /* @__PURE__ */ jsx40("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter", children: /* @__PURE__ */ jsx40(Searchbox, { placeholder: "Filter", size: "large" }) }) })
|
|
5325
|
-
] })
|
|
5326
|
-
}
|
|
5327
|
-
);
|
|
5328
|
-
};
|
|
5329
|
-
|
|
5330
|
-
// src/action-buttons/action-buttons.spec.tsx
|
|
5331
|
-
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
5332
|
-
var ACTIONBUTTONS_CLASSNAME = `k-actions`;
|
|
5333
|
-
var states21 = [];
|
|
5334
|
-
var options19 = {};
|
|
5335
|
-
var defaultProps16 = {
|
|
5336
|
-
alignment: "start",
|
|
5337
|
-
orientation: "horizontal"
|
|
5338
|
-
};
|
|
5339
|
-
var ActionButtons = (props) => {
|
|
5340
|
-
const {
|
|
5341
|
-
alignment = defaultProps16.alignment,
|
|
5342
|
-
orientation = defaultProps16.orientation,
|
|
5343
|
-
...other
|
|
5344
|
-
} = props;
|
|
5345
|
-
return /* @__PURE__ */ jsx41(
|
|
5346
|
-
"div",
|
|
5347
|
-
{
|
|
5348
|
-
...other,
|
|
5349
|
-
className: classNames(
|
|
5350
|
-
ACTIONBUTTONS_CLASSNAME,
|
|
5351
|
-
{
|
|
5352
|
-
[`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
|
|
5353
|
-
[`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
|
|
5354
|
-
},
|
|
5355
|
-
props.className
|
|
5356
|
-
),
|
|
5357
|
-
children: props.children
|
|
5358
|
-
}
|
|
5359
|
-
);
|
|
5360
|
-
};
|
|
5361
|
-
ActionButtons.states = states21;
|
|
5362
|
-
ActionButtons.options = options19;
|
|
5363
|
-
ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
|
|
5364
|
-
ActionButtons.defaultProps = defaultProps16;
|
|
5365
|
-
var action_buttons_spec_default = ActionButtons;
|
|
5366
|
-
|
|
5367
|
-
// src/action-sheet/actionsheet-footer.tsx
|
|
5368
|
-
import { Fragment as Fragment16, jsx as jsx42, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
5369
|
-
var ACTIONSHEETFOOTER_CLASSNAME = `k-actionsheet-footer`;
|
|
5370
|
-
var ActionSheetFooter = (props) => {
|
|
5371
|
-
const {
|
|
5372
|
-
actions,
|
|
5373
|
-
...other
|
|
5374
|
-
} = props;
|
|
5375
|
-
return /* @__PURE__ */ jsx42(
|
|
5376
|
-
action_buttons_spec_default,
|
|
5377
|
-
{
|
|
5378
|
-
...other,
|
|
5379
|
-
className: classNames(
|
|
5380
|
-
props.className,
|
|
5381
|
-
ACTIONSHEETFOOTER_CLASSNAME
|
|
5382
|
-
),
|
|
5383
|
-
alignment: "stretched",
|
|
5384
|
-
children: /* @__PURE__ */ jsxs15(Fragment16, { children: [
|
|
5385
|
-
actions && actions.map((action, index) => {
|
|
5386
|
-
if (action === "|") {
|
|
5387
|
-
return /* @__PURE__ */ jsx42("span", { className: "k-separator" }, index);
|
|
5388
|
-
}
|
|
5389
|
-
if (action === " ") {
|
|
5390
|
-
return /* @__PURE__ */ jsx42("span", { className: "k-spacer" }, index);
|
|
5391
|
-
}
|
|
5392
|
-
const importantFlag = action.startsWith("!");
|
|
5393
|
-
const actionName = importantFlag ? action.substring(1) : action;
|
|
5394
|
-
return /* @__PURE__ */ jsx42(Button, { text: actionName, size: "large", themeColor: importantFlag ? "primary" : "base" }, index);
|
|
5395
|
-
}),
|
|
5396
|
-
!actions && props.children
|
|
5397
|
-
] })
|
|
5398
|
-
}
|
|
5399
|
-
);
|
|
5400
|
-
};
|
|
5401
|
-
|
|
5402
|
-
// src/action-sheet/actionsheet-items.tsx
|
|
5403
|
-
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
5404
|
-
var ActionSheetItems = (props) => {
|
|
5405
|
-
const {
|
|
5406
|
-
...other
|
|
5407
|
-
} = props;
|
|
5408
|
-
return /* @__PURE__ */ jsx43(
|
|
5409
|
-
"div",
|
|
5410
|
-
{
|
|
5411
|
-
...other,
|
|
5412
|
-
className: classNames(
|
|
5413
|
-
props.className,
|
|
5414
|
-
"k-list-ul"
|
|
5415
|
-
),
|
|
5416
|
-
children: props.children
|
|
5417
|
-
}
|
|
5418
|
-
);
|
|
5419
|
-
};
|
|
5420
|
-
|
|
5421
|
-
// src/action-sheet/actionsheet-item.tsx
|
|
5422
|
-
import { Fragment as Fragment17, jsx as jsx44, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
5423
|
-
var states22 = [
|
|
5424
|
-
States.hover,
|
|
5425
|
-
States.focus,
|
|
5426
|
-
States.selected,
|
|
5427
|
-
States.disabled
|
|
5428
|
-
];
|
|
5429
|
-
|
|
5430
|
-
// src/nodata/nodata.tsx
|
|
5431
|
-
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
5432
|
-
var className9 = `k-nodata`;
|
|
5433
|
-
var NoData = (props) => /* @__PURE__ */ jsx45("span", { className: classNames(className9, props.className), children: props.children });
|
|
5434
|
-
|
|
5435
|
-
// src/list/list.spec.tsx
|
|
5436
|
-
import { jsx as jsx46, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
5437
|
-
var LIST_CLASSNAME = `k-list`;
|
|
5438
|
-
var states23 = [];
|
|
5439
|
-
var options20 = {
|
|
5440
|
-
size: [Size.small, Size.medium, Size.large]
|
|
5441
|
-
};
|
|
5442
|
-
var defaultProps17 = {
|
|
5443
|
-
size: Size.medium
|
|
5444
|
-
};
|
|
5445
|
-
var List = (props) => {
|
|
5446
|
-
const {
|
|
5447
|
-
size = defaultProps17.size,
|
|
5448
|
-
virtualization,
|
|
5449
|
-
children,
|
|
5450
|
-
optionLabel,
|
|
5451
|
-
...other
|
|
5452
|
-
} = props;
|
|
5453
|
-
let listHeader;
|
|
5454
|
-
let listGroup;
|
|
5455
|
-
let listContent;
|
|
5456
|
-
const listChildren = [];
|
|
5457
|
-
if (children) {
|
|
5458
|
-
children.map((child, index) => {
|
|
5459
|
-
if (child.type === ListGroup) {
|
|
5460
|
-
if (child.props.root === true) {
|
|
5461
|
-
listHeader = child.props.label;
|
|
5462
|
-
child.props.children.map((optChild, index2) => {
|
|
5463
|
-
listChildren.push(
|
|
5464
|
-
/* @__PURE__ */ jsx46(
|
|
5465
|
-
ListItem,
|
|
5466
|
-
{
|
|
5467
|
-
...optChild.props
|
|
5468
|
-
},
|
|
5469
|
-
`optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
5470
|
-
)
|
|
5471
|
-
);
|
|
5472
|
-
});
|
|
5473
|
-
} else {
|
|
5474
|
-
child.props.children.forEach((optChild, index2) => {
|
|
5475
|
-
let groupLabel = "";
|
|
5476
|
-
if (index2 === 0) {
|
|
5477
|
-
groupLabel = child.props.label;
|
|
5478
|
-
}
|
|
5479
|
-
listChildren.push(
|
|
5480
|
-
/* @__PURE__ */ jsx46(
|
|
5481
|
-
ListItem,
|
|
5482
|
-
{
|
|
5483
|
-
className: index2 === 0 ? "k-first" : "",
|
|
5484
|
-
...optChild.props,
|
|
5485
|
-
groupLabel
|
|
5486
|
-
},
|
|
5487
|
-
`groupLabel-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
5488
|
-
)
|
|
5489
|
-
);
|
|
5490
|
-
});
|
|
5491
|
-
}
|
|
5492
|
-
listGroup = /* @__PURE__ */ jsx46(ListGroup, { label: listHeader, virtualization, children: listChildren });
|
|
5493
|
-
} else if (child.type === ListItem) {
|
|
5494
|
-
listChildren.push(/* @__PURE__ */ jsx46(ListItem, { ...child.props }, `${child.type}-${index}`));
|
|
5495
|
-
listContent = /* @__PURE__ */ jsx46(ListContent, { virtualization, children: listChildren });
|
|
5496
|
-
}
|
|
5497
|
-
});
|
|
5498
|
-
} else {
|
|
5499
|
-
listContent = /* @__PURE__ */ jsx46(NoData, { children: "No data found." });
|
|
5500
|
-
}
|
|
5501
|
-
return /* @__PURE__ */ jsxs17(
|
|
5502
|
-
"div",
|
|
5503
|
-
{
|
|
5504
|
-
...other,
|
|
5505
|
-
className: classNames(
|
|
5506
|
-
props.className,
|
|
5507
|
-
LIST_CLASSNAME,
|
|
5508
|
-
optionClassNames(LIST_CLASSNAME, {
|
|
5509
|
-
size
|
|
5510
|
-
}),
|
|
5511
|
-
{
|
|
5512
|
-
["k-virtual-list"]: virtualization
|
|
5513
|
-
}
|
|
5514
|
-
),
|
|
5515
|
-
children: [
|
|
5516
|
-
optionLabel,
|
|
5517
|
-
listGroup,
|
|
5518
|
-
listContent
|
|
5519
|
-
]
|
|
5520
|
-
}
|
|
5521
|
-
);
|
|
5522
|
-
};
|
|
5523
|
-
List.states = states23;
|
|
5524
|
-
List.options = options20;
|
|
5525
|
-
List.className = LIST_CLASSNAME;
|
|
5526
|
-
List.defaultProps = defaultProps17;
|
|
5527
|
-
|
|
5528
|
-
// src/list/list-angular.spec.tsx
|
|
5529
|
-
import { jsx as jsx47, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
5530
|
-
var LISTANGULAR_CLASSNAME = `k-list`;
|
|
5531
|
-
var states24 = [];
|
|
5532
|
-
var options21 = {
|
|
5533
|
-
size: [Size.small, Size.medium, Size.large]
|
|
5534
|
-
};
|
|
5535
|
-
var defaultProps18 = {
|
|
5536
|
-
size: Size.medium
|
|
5537
|
-
};
|
|
5538
|
-
var ListAngular = (props) => {
|
|
5539
|
-
const {
|
|
5540
|
-
size = defaultProps18.size,
|
|
5541
|
-
virtualization,
|
|
5542
|
-
children,
|
|
5543
|
-
...other
|
|
5544
|
-
} = props;
|
|
5545
|
-
let listHeader;
|
|
5546
|
-
let listGroup;
|
|
5547
|
-
let listContent;
|
|
5548
|
-
const listChildren = [];
|
|
5549
|
-
if (children) {
|
|
5550
|
-
children.map((child, index) => {
|
|
5551
|
-
if (child.type === ListGroup) {
|
|
5552
|
-
if (child.props.root === true) {
|
|
5553
|
-
listHeader = child.props.label;
|
|
5554
|
-
child.props.children.map((optChild, index2) => {
|
|
5555
|
-
listChildren.push(
|
|
5556
|
-
/* @__PURE__ */ jsx47(
|
|
5557
|
-
ListItem,
|
|
5558
|
-
{
|
|
5559
|
-
...optChild.props
|
|
5560
|
-
},
|
|
5561
|
-
`optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
5562
|
-
)
|
|
5563
|
-
);
|
|
5564
|
-
});
|
|
5565
|
-
} else {
|
|
5566
|
-
listChildren.push(
|
|
5567
|
-
/* @__PURE__ */ jsx47(
|
|
5568
|
-
ListGroupItem,
|
|
5569
|
-
{
|
|
5570
|
-
...child.props,
|
|
5571
|
-
children: child.props.label
|
|
5572
|
-
},
|
|
5573
|
-
`listChild-${index}`
|
|
5574
|
-
)
|
|
5575
|
-
);
|
|
5576
|
-
child.props.children.map((optChild, index2) => {
|
|
5577
|
-
listChildren.push(
|
|
5578
|
-
/* @__PURE__ */ jsx47(
|
|
5579
|
-
ListItem,
|
|
5580
|
-
{
|
|
5581
|
-
...optChild.props
|
|
5582
|
-
},
|
|
5583
|
-
`fwOptChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
5584
|
-
)
|
|
5585
|
-
);
|
|
5586
|
-
});
|
|
5587
|
-
}
|
|
5588
|
-
listGroup = /* @__PURE__ */ jsx47(ListGroup, { label: listHeader, virtualization, children: listChildren });
|
|
5589
|
-
} else if (child.type === ListItem) {
|
|
5590
|
-
listChildren.push(/* @__PURE__ */ jsx47(ListItem, { ...child.props }, `${child.type}-${index}`));
|
|
5591
|
-
listContent = /* @__PURE__ */ jsx47(ListContent, { virtualization, children: listChildren });
|
|
5592
|
-
}
|
|
5593
|
-
});
|
|
5594
|
-
} else {
|
|
5595
|
-
listContent = /* @__PURE__ */ jsx47(NoData, { children: "No data found." });
|
|
5596
|
-
}
|
|
5597
|
-
return /* @__PURE__ */ jsxs18(
|
|
5598
|
-
"div",
|
|
5599
|
-
{
|
|
5600
|
-
...other,
|
|
5601
|
-
className: classNames(
|
|
5602
|
-
props.className,
|
|
5603
|
-
LISTANGULAR_CLASSNAME,
|
|
5604
|
-
optionClassNames(LISTANGULAR_CLASSNAME, {
|
|
5605
|
-
size
|
|
5606
|
-
}),
|
|
5607
|
-
{
|
|
5608
|
-
["k-virtual-list"]: virtualization
|
|
5609
|
-
}
|
|
5610
|
-
),
|
|
5611
|
-
children: [
|
|
5612
|
-
listGroup,
|
|
5613
|
-
listContent
|
|
5614
|
-
]
|
|
5615
|
-
}
|
|
5616
|
-
);
|
|
5617
|
-
};
|
|
5618
|
-
ListAngular.states = states24;
|
|
5619
|
-
ListAngular.options = options21;
|
|
5620
|
-
ListAngular.className = LISTANGULAR_CLASSNAME;
|
|
5621
|
-
ListAngular.defaultProps = defaultProps18;
|
|
5622
|
-
|
|
5623
|
-
// src/checkbox/checkbox.spec.tsx
|
|
5624
|
-
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
5625
|
-
var CHECKBOX_CLASSNAME = `k-checkbox`;
|
|
5626
|
-
var states25 = [
|
|
5627
|
-
States.hover,
|
|
5628
|
-
States.focus,
|
|
5629
|
-
States.valid,
|
|
5630
|
-
States.invalid,
|
|
5631
|
-
States.required,
|
|
5632
|
-
States.disabled,
|
|
5633
|
-
States.checked,
|
|
5634
|
-
States.indeterminate
|
|
5635
|
-
];
|
|
5636
|
-
var options22 = {
|
|
5637
|
-
size: [Size.small, Size.medium, Size.large],
|
|
5638
|
-
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
|
|
5639
|
-
};
|
|
5640
|
-
var defaultProps19 = {
|
|
5641
|
-
size: Size.medium,
|
|
5642
|
-
rounded: Roundness.medium
|
|
5643
|
-
};
|
|
5644
|
-
var Checkbox = (props) => {
|
|
5645
|
-
const {
|
|
5646
|
-
id,
|
|
5647
|
-
checked,
|
|
5648
|
-
indeterminate,
|
|
5649
|
-
hover,
|
|
5650
|
-
focus,
|
|
5651
|
-
disabled,
|
|
5652
|
-
invalid,
|
|
5653
|
-
valid,
|
|
5654
|
-
required,
|
|
5655
|
-
size = defaultProps19.size,
|
|
5656
|
-
rounded = defaultProps19.rounded,
|
|
5657
|
-
...other
|
|
5658
|
-
} = props;
|
|
5659
|
-
return /* @__PURE__ */ jsx48("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ jsx48(
|
|
5660
|
-
"input",
|
|
5661
|
-
{
|
|
5662
|
-
...other,
|
|
5663
|
-
id,
|
|
5664
|
-
type: "checkbox",
|
|
5665
|
-
checked,
|
|
5666
|
-
required,
|
|
5667
|
-
className: classNames(
|
|
5668
|
-
props.className,
|
|
5669
|
-
CHECKBOX_CLASSNAME,
|
|
5670
|
-
optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
|
|
5671
|
-
stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
|
|
5672
|
-
)
|
|
5673
|
-
}
|
|
5674
|
-
) });
|
|
5675
|
-
};
|
|
5676
|
-
Checkbox.states = states25;
|
|
5677
|
-
Checkbox.options = options22;
|
|
5678
|
-
Checkbox.className = CHECKBOX_CLASSNAME;
|
|
5679
|
-
Checkbox.defaultProps = defaultProps19;
|
|
5680
|
-
|
|
5681
|
-
// src/checkbox/templates/checkbox-label.tsx
|
|
5682
|
-
import { Fragment as Fragment18, jsx as jsx49, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5683
|
-
|
|
5684
|
-
// src/checkbox/templates/checkbox-normal.tsx
|
|
5685
|
-
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
5686
|
-
|
|
5687
|
-
// src/list/list-item.spec.tsx
|
|
5688
|
-
import { jsx as jsx51, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5689
|
-
var LISTITEM_CLASSNAME = `k-list-item`;
|
|
5690
|
-
var states26 = [
|
|
5691
|
-
States.hover,
|
|
5692
|
-
States.focus,
|
|
5693
|
-
States.selected,
|
|
5694
|
-
States.disabled
|
|
5695
|
-
];
|
|
5696
|
-
var options23 = {};
|
|
5697
|
-
var defaultProps20 = {};
|
|
5698
|
-
var ListItem = (props) => {
|
|
5699
|
-
const {
|
|
5700
|
-
text,
|
|
5701
|
-
groupLabel,
|
|
5702
|
-
showIcon,
|
|
5703
|
-
iconName,
|
|
5704
|
-
showCheckbox,
|
|
5705
|
-
checked,
|
|
5706
|
-
hover,
|
|
5707
|
-
focus,
|
|
5708
|
-
selected,
|
|
5709
|
-
disabled,
|
|
5710
|
-
...other
|
|
5711
|
-
} = props;
|
|
5712
|
-
const textOrChildren = text ? text : props.children;
|
|
5713
|
-
return /* @__PURE__ */ jsxs20(
|
|
5714
|
-
"li",
|
|
5715
|
-
{
|
|
5716
|
-
...other,
|
|
5717
|
-
className: classNames(
|
|
5718
|
-
props.className,
|
|
5719
|
-
LISTITEM_CLASSNAME,
|
|
5720
|
-
stateClassNames(LISTITEM_CLASSNAME, {
|
|
5721
|
-
hover,
|
|
5722
|
-
focus,
|
|
5723
|
-
disabled,
|
|
5724
|
-
selected
|
|
5725
|
-
})
|
|
5726
|
-
),
|
|
5727
|
-
children: [
|
|
5728
|
-
showCheckbox && /* @__PURE__ */ jsx51(Checkbox, { checked }),
|
|
5729
|
-
showIcon && /* @__PURE__ */ jsx51(Icon, { icon: iconName }),
|
|
5730
|
-
/* @__PURE__ */ jsx51("span", { className: "k-list-item-text", children: textOrChildren }),
|
|
5731
|
-
groupLabel && groupLabel !== "" && /* @__PURE__ */ jsx51("div", { className: "k-list-item-group-label", children: groupLabel })
|
|
5732
|
-
]
|
|
5733
|
-
}
|
|
5734
|
-
);
|
|
5735
|
-
};
|
|
5736
|
-
ListItem.states = states26;
|
|
5737
|
-
ListItem.options = options23;
|
|
5738
|
-
ListItem.className = LISTITEM_CLASSNAME;
|
|
5739
|
-
ListItem.defaultProps = defaultProps20;
|
|
5740
|
-
|
|
5741
|
-
// src/list/list-content.tsx
|
|
5742
|
-
import { jsx as jsx52, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
5743
|
-
var className10 = `k-list-content`;
|
|
5744
|
-
var ListContent = (props) => {
|
|
5745
|
-
const {
|
|
5746
|
-
virtualization
|
|
5747
|
-
} = props;
|
|
5748
|
-
return /* @__PURE__ */ jsxs21("div", { className: classNames(className10, props.className), children: [
|
|
5749
|
-
/* @__PURE__ */ jsx52("ul", { className: classNames("k-list-ul"), children: props.children }),
|
|
5750
|
-
virtualization && /* @__PURE__ */ jsx52("div", { className: "k-height-container", children: /* @__PURE__ */ jsx52("div", {}) })
|
|
5751
|
-
] });
|
|
5752
|
-
};
|
|
5753
|
-
|
|
5754
|
-
// src/list/list-header.tsx
|
|
5755
|
-
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
5756
|
-
var className11 = `k-list-group-sticky-header`;
|
|
5757
|
-
var ListHeader = (props) => /* @__PURE__ */ jsx53("div", { className: classNames(className11, props.className), children: /* @__PURE__ */ jsx53("div", { className: "k-list-header-text", children: props.children }) });
|
|
5758
|
-
|
|
5759
|
-
// src/list/list-group.tsx
|
|
5760
|
-
import { Fragment as Fragment19, jsx as jsx54, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5761
|
-
var ListGroup = (props) => {
|
|
5762
|
-
const {
|
|
5763
|
-
virtualization,
|
|
5764
|
-
label
|
|
5765
|
-
} = props;
|
|
5766
|
-
return /* @__PURE__ */ jsxs22(Fragment19, { children: [
|
|
5767
|
-
label && /* @__PURE__ */ jsx54(ListHeader, { children: label }),
|
|
5768
|
-
props.children && /* @__PURE__ */ jsx54(ListContent, { virtualization, children: props.children })
|
|
5769
|
-
] });
|
|
5770
|
-
};
|
|
5771
|
-
|
|
5772
|
-
// src/list/list-group-item.tsx
|
|
5773
|
-
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
5774
|
-
var className12 = `k-list-group-item`;
|
|
5775
|
-
var ListGroupItem = (props) => /* @__PURE__ */ jsx55("li", { className: classNames(className12, props.className), children: /* @__PURE__ */ jsx55("span", { className: "k-list-item-text", children: props.children }) });
|
|
5776
|
-
|
|
5777
|
-
// src/list/list-option-label.tsx
|
|
5778
|
-
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
5779
|
-
var LIST_OPTIONLABEL_CLASSNAME = `k-list-optionlabel`;
|
|
5780
|
-
var states27 = [
|
|
5781
|
-
States.hover,
|
|
5782
|
-
States.focus,
|
|
5783
|
-
States.selected,
|
|
5784
|
-
States.disabled
|
|
5785
|
-
];
|
|
5786
|
-
var options24 = {};
|
|
5787
|
-
var defaultProps21 = {};
|
|
5788
|
-
var ListOptionLabel = (props) => {
|
|
5789
|
-
const {
|
|
5790
|
-
text,
|
|
5791
|
-
hover,
|
|
5792
|
-
focus,
|
|
5793
|
-
selected,
|
|
5794
|
-
disabled,
|
|
5795
|
-
...other
|
|
5796
|
-
} = props;
|
|
5797
|
-
return /* @__PURE__ */ jsx56(
|
|
5798
|
-
"div",
|
|
5799
|
-
{
|
|
5800
|
-
...other,
|
|
5801
|
-
className: classNames(
|
|
5802
|
-
LIST_OPTIONLABEL_CLASSNAME,
|
|
5803
|
-
stateClassNames(LIST_OPTIONLABEL_CLASSNAME, {
|
|
5804
|
-
hover,
|
|
5805
|
-
focus,
|
|
5806
|
-
selected,
|
|
5807
|
-
disabled
|
|
5808
|
-
})
|
|
5809
|
-
),
|
|
5810
|
-
children: text
|
|
5811
|
-
}
|
|
5812
|
-
);
|
|
5813
|
-
};
|
|
5814
|
-
ListOptionLabel.states = states27;
|
|
5815
|
-
ListOptionLabel.options = options24;
|
|
5816
|
-
ListOptionLabel.className = LIST_OPTIONLABEL_CLASSNAME;
|
|
5817
|
-
ListOptionLabel.defaultProps = defaultProps21;
|
|
5818
|
-
|
|
5819
|
-
// src/list/templates/list-normal.tsx
|
|
5820
|
-
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
5821
|
-
|
|
5822
|
-
// src/list/templates/list-virtualization.tsx
|
|
5823
|
-
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
5824
|
-
|
|
5825
|
-
// src/list/templates/list-grouping.tsx
|
|
5826
|
-
import { jsx as jsx59, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
5827
|
-
|
|
5828
|
-
// src/list/templates/list-virualization-grouping.tsx
|
|
5829
|
-
import { jsx as jsx60, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5830
|
-
|
|
5831
|
-
// src/list/templates/list-virtualization-angular.tsx
|
|
5832
|
-
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
5833
|
-
|
|
5834
|
-
// src/list/templates/list-grouping-angular.tsx
|
|
5835
|
-
import { jsx as jsx62, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5836
|
-
|
|
5837
|
-
// src/list/templates/list-virualization-grouping-angular.tsx
|
|
5838
|
-
import { jsx as jsx63, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5839
|
-
|
|
5840
|
-
// src/combobox/combobox.spec.tsx
|
|
5841
|
-
import { Fragment as Fragment20, jsx as jsx64, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5842
|
-
var COMBOBOX_CLASSNAME = `k-combobox`;
|
|
5843
|
-
var states28 = [
|
|
5844
|
-
States.hover,
|
|
5845
|
-
States.focus,
|
|
5846
|
-
States.valid,
|
|
5847
|
-
States.invalid,
|
|
5848
|
-
States.loading,
|
|
5849
|
-
States.required,
|
|
5850
|
-
States.disabled,
|
|
5851
|
-
States.readonly
|
|
5852
|
-
];
|
|
5853
|
-
var defaultProps22 = {
|
|
5854
|
-
size: Input.defaultProps.size,
|
|
5855
|
-
rounded: Input.defaultProps.rounded,
|
|
5856
|
-
fillMode: Input.defaultProps.fillMode
|
|
5857
|
-
};
|
|
5858
|
-
var options25 = {
|
|
5859
|
-
size: [Size.small, Size.medium, Size.large],
|
|
5860
|
-
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
5861
|
-
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
5862
|
-
};
|
|
5863
|
-
var Combobox = (props) => {
|
|
5864
|
-
const {
|
|
5865
|
-
prefix,
|
|
5866
|
-
suffix,
|
|
5867
|
-
value,
|
|
5868
|
-
placeholder,
|
|
5869
|
-
size,
|
|
5870
|
-
rounded,
|
|
5871
|
-
fillMode,
|
|
5872
|
-
hover,
|
|
5873
|
-
focus,
|
|
5874
|
-
valid,
|
|
5875
|
-
invalid,
|
|
5876
|
-
required,
|
|
5877
|
-
loading,
|
|
5878
|
-
disabled,
|
|
5879
|
-
popup,
|
|
5880
|
-
opened,
|
|
5881
|
-
readonly,
|
|
5882
|
-
adaptive,
|
|
5883
|
-
adaptiveSettings,
|
|
5884
|
-
...other
|
|
5885
|
-
} = props;
|
|
5886
|
-
return /* @__PURE__ */ jsxs27(Fragment20, { children: [
|
|
5887
|
-
/* @__PURE__ */ jsxs27(
|
|
5888
|
-
Input,
|
|
5889
|
-
{
|
|
5890
|
-
...other,
|
|
5891
|
-
size,
|
|
5892
|
-
rounded,
|
|
5893
|
-
fillMode,
|
|
5894
|
-
hover,
|
|
5895
|
-
focus,
|
|
5896
|
-
valid,
|
|
5897
|
-
invalid,
|
|
5898
|
-
required,
|
|
5899
|
-
loading,
|
|
5900
|
-
disabled,
|
|
5901
|
-
readonly,
|
|
5902
|
-
className: classNames(props.className, COMBOBOX_CLASSNAME),
|
|
5903
|
-
children: [
|
|
5904
|
-
/* @__PURE__ */ jsx64(InputPrefix, { children: prefix }),
|
|
5905
|
-
/* @__PURE__ */ jsx64(InputInnerInput, { placeholder, value }),
|
|
5906
|
-
/* @__PURE__ */ jsx64(
|
|
5907
|
-
InputValidationIcon,
|
|
5908
|
-
{
|
|
5909
|
-
valid,
|
|
5910
|
-
invalid,
|
|
5911
|
-
loading,
|
|
5912
|
-
disabled
|
|
5913
|
-
}
|
|
5914
|
-
),
|
|
5915
|
-
/* @__PURE__ */ jsx64(
|
|
5916
|
-
InputLoadingIcon,
|
|
5917
|
-
{
|
|
5918
|
-
loading,
|
|
5919
|
-
disabled
|
|
5920
|
-
}
|
|
5921
|
-
),
|
|
5922
|
-
/* @__PURE__ */ jsx64(
|
|
5923
|
-
InputClearValue,
|
|
5924
|
-
{
|
|
5925
|
-
loading,
|
|
5926
|
-
disabled,
|
|
5927
|
-
readonly,
|
|
5928
|
-
value
|
|
5929
|
-
}
|
|
5930
|
-
),
|
|
5931
|
-
/* @__PURE__ */ jsx64(InputSuffix, { children: suffix }),
|
|
5932
|
-
/* @__PURE__ */ jsx64(
|
|
5933
|
-
Button,
|
|
5934
|
-
{
|
|
5935
|
-
className: "k-input-button",
|
|
5936
|
-
icon: "caret-alt-down",
|
|
5937
|
-
rounded: null,
|
|
5938
|
-
size,
|
|
5939
|
-
fillMode
|
|
5940
|
-
}
|
|
5941
|
-
)
|
|
5942
|
-
]
|
|
5943
|
-
}
|
|
5944
|
-
),
|
|
5945
|
-
opened && popup && /* @__PURE__ */ jsx64(Popup, { className: "k-list-container k-combobox-popup", children: popup }),
|
|
5946
|
-
adaptive && /* @__PURE__ */ jsxs27(ActionSheet, { adaptive: true, ...adaptiveSettings, children: [
|
|
5947
|
-
/* @__PURE__ */ jsx64(
|
|
5948
|
-
ActionSheetHeader,
|
|
5949
|
-
{
|
|
5950
|
-
actions: ["x"],
|
|
5951
|
-
filter: true,
|
|
5952
|
-
title: "Select Item"
|
|
5953
|
-
}
|
|
5954
|
-
),
|
|
5955
|
-
/* @__PURE__ */ jsx64("div", { className: "k-list-container", children: /* @__PURE__ */ jsxs27(List, { size: "large", children: [
|
|
5956
|
-
/* @__PURE__ */ jsx64(ListItem, { text: "List item" }),
|
|
5957
|
-
/* @__PURE__ */ jsx64(ListItem, { text: "List item" }),
|
|
5958
|
-
/* @__PURE__ */ jsx64(ListItem, { text: "List item" })
|
|
5959
|
-
] }) })
|
|
5960
|
-
] })
|
|
5961
|
-
] });
|
|
5962
|
-
};
|
|
5963
|
-
Combobox.states = states28;
|
|
5964
|
-
Combobox.options = options25;
|
|
5965
|
-
Combobox.className = COMBOBOX_CLASSNAME;
|
|
5966
|
-
Combobox.defaultProps = defaultProps22;
|
|
5967
|
-
|
|
5968
|
-
// src/combobox/templates/combobox-normal.tsx
|
|
5969
|
-
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
5970
|
-
|
|
5971
|
-
// src/combobox/templates/combobox-popup.tsx
|
|
5972
|
-
import { jsx as jsx66, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5973
|
-
|
|
5974
|
-
// src/combobox/templates/combobox-grouping.tsx
|
|
5975
|
-
import { jsx as jsx67, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
5976
|
-
|
|
5977
|
-
// src/combobox/templates/combobox-adaptive.tsx
|
|
5978
|
-
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
5979
|
-
|
|
5980
|
-
// src/dropdownlist/dropdownlist.spec.tsx
|
|
5981
|
-
import { Fragment as Fragment21, jsx as jsx69, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
5982
|
-
var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
|
|
5983
|
-
var states29 = [
|
|
5984
|
-
States.hover,
|
|
5985
|
-
States.focus,
|
|
5986
|
-
States.valid,
|
|
5987
|
-
States.invalid,
|
|
5988
|
-
States.required,
|
|
5989
|
-
States.disabled,
|
|
5990
|
-
States.loading,
|
|
5991
|
-
States.readonly
|
|
5992
|
-
];
|
|
5993
|
-
var options26 = {
|
|
5994
|
-
size: [Size.small, Size.medium, Size.large],
|
|
5995
|
-
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
5996
|
-
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
5997
|
-
};
|
|
5998
|
-
var defaultProps23 = {
|
|
5999
|
-
showValue: true,
|
|
6000
|
-
arrowIconName: "caret-alt-down",
|
|
6001
|
-
size: Size.medium,
|
|
6002
|
-
rounded: Roundness.medium,
|
|
6003
|
-
fillMode: FillMode.solid
|
|
6004
|
-
};
|
|
6005
|
-
var DropdownList = (props) => {
|
|
6006
|
-
const {
|
|
6007
|
-
valueIconName,
|
|
6008
|
-
arrowIconName = defaultProps23.arrowIconName,
|
|
6009
|
-
prefix,
|
|
6010
|
-
suffix,
|
|
6011
|
-
value,
|
|
6012
|
-
placeholder,
|
|
6013
|
-
size,
|
|
6014
|
-
rounded,
|
|
6015
|
-
fillMode,
|
|
6016
|
-
hover,
|
|
6017
|
-
focus,
|
|
6018
|
-
valid,
|
|
6019
|
-
invalid,
|
|
6020
|
-
required,
|
|
6021
|
-
loading,
|
|
6022
|
-
disabled,
|
|
6023
|
-
readonly,
|
|
6024
|
-
showValue = defaultProps23.showValue,
|
|
6025
|
-
popup,
|
|
6026
|
-
opened,
|
|
6027
|
-
...other
|
|
6028
|
-
} = props;
|
|
6029
|
-
return /* @__PURE__ */ jsxs30(Fragment21, { children: [
|
|
6030
|
-
/* @__PURE__ */ jsxs30(
|
|
6031
|
-
Picker,
|
|
6032
|
-
{
|
|
6033
|
-
...other,
|
|
6034
|
-
size,
|
|
6035
|
-
rounded,
|
|
6036
|
-
fillMode,
|
|
6037
|
-
hover,
|
|
6038
|
-
focus,
|
|
6039
|
-
valid,
|
|
6040
|
-
invalid,
|
|
6041
|
-
required,
|
|
6042
|
-
loading,
|
|
6043
|
-
disabled,
|
|
6044
|
-
readonly,
|
|
6045
|
-
className: classNames(
|
|
6046
|
-
props.className,
|
|
6047
|
-
DROPDOWNLIST_CLASSNAME,
|
|
6048
|
-
{
|
|
6049
|
-
"k-icon-picker": !showValue && valueIconName
|
|
6050
|
-
}
|
|
6051
|
-
),
|
|
6052
|
-
children: [
|
|
6053
|
-
/* @__PURE__ */ jsx69(InputPrefix, { children: prefix }),
|
|
6054
|
-
/* @__PURE__ */ jsx69(
|
|
6055
|
-
InputInnerSpan,
|
|
6056
|
-
{
|
|
6057
|
-
placeholder,
|
|
6058
|
-
value,
|
|
6059
|
-
showValue,
|
|
6060
|
-
valueIconName
|
|
6061
|
-
}
|
|
6062
|
-
),
|
|
6063
|
-
/* @__PURE__ */ jsx69(
|
|
6064
|
-
InputValidationIcon,
|
|
6065
|
-
{
|
|
6066
|
-
valid,
|
|
6067
|
-
invalid,
|
|
6068
|
-
loading,
|
|
6069
|
-
disabled
|
|
6070
|
-
}
|
|
6071
|
-
),
|
|
6072
|
-
/* @__PURE__ */ jsx69(
|
|
6073
|
-
InputLoadingIcon,
|
|
6074
|
-
{
|
|
6075
|
-
loading,
|
|
6076
|
-
disabled
|
|
6077
|
-
}
|
|
6078
|
-
),
|
|
6079
|
-
/* @__PURE__ */ jsx69(InputSuffix, { children: suffix }),
|
|
6080
|
-
/* @__PURE__ */ jsx69(
|
|
6081
|
-
Button,
|
|
6082
|
-
{
|
|
6083
|
-
className: "k-input-button",
|
|
6084
|
-
icon: arrowIconName,
|
|
6085
|
-
rounded: null,
|
|
6086
|
-
size: props.size,
|
|
6087
|
-
fillMode: props.fillMode
|
|
6088
|
-
}
|
|
6089
|
-
)
|
|
6090
|
-
]
|
|
6091
|
-
}
|
|
6092
|
-
),
|
|
6093
|
-
opened && popup && /* @__PURE__ */ jsx69(Popup, { className: "k-list-container k-dropdownlist-popup", children: popup })
|
|
6094
|
-
] });
|
|
6095
|
-
};
|
|
6096
|
-
DropdownList.states = states29;
|
|
6097
|
-
DropdownList.options = options26;
|
|
6098
|
-
DropdownList.className = DROPDOWNLIST_CLASSNAME;
|
|
6099
|
-
DropdownList.defaultProps = defaultProps23;
|
|
6100
|
-
|
|
6101
|
-
// src/dropdownlist/templates/dropdownlist-normal.tsx
|
|
6102
|
-
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
6103
|
-
|
|
6104
|
-
// src/dropdownlist/templates/dropdownlist-popup.tsx
|
|
6105
|
-
import { jsx as jsx71, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6106
|
-
|
|
6107
|
-
// src/dropdownlist/templates/dropdownlist-filtering.tsx
|
|
6108
|
-
import { Fragment as Fragment22, jsx as jsx72, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6109
|
-
|
|
6110
|
-
// src/dropdownlist/templates/dropdownlist-grouping.tsx
|
|
6111
|
-
import { jsx as jsx73, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6112
|
-
|
|
6113
|
-
// src/dropdownlist/templates/dropdownlist-grouping-filtering.tsx
|
|
6114
|
-
import { Fragment as Fragment23, jsx as jsx74, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6115
|
-
|
|
6116
|
-
// src/menu-button/menu-button.spec.tsx
|
|
6117
|
-
import { Fragment as Fragment24, jsx as jsx75, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6118
|
-
var MENUBUTTON_CLASSNAME = `k-menu-button`;
|
|
6119
|
-
var states30 = [
|
|
6120
|
-
States.hover,
|
|
6121
|
-
States.focus,
|
|
6122
|
-
States.active,
|
|
6123
|
-
States.selected,
|
|
6124
|
-
States.disabled
|
|
6125
|
-
];
|
|
6126
|
-
var options27 = {
|
|
6127
|
-
size: [Size.small, Size.medium, Size.large],
|
|
6128
|
-
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
6129
|
-
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
|
|
6130
|
-
themeColor: [
|
|
6131
|
-
ThemeColor.base,
|
|
6132
|
-
ThemeColor.primary,
|
|
6133
|
-
ThemeColor.secondary,
|
|
6134
|
-
ThemeColor.tertiary,
|
|
6135
|
-
ThemeColor.success,
|
|
6136
|
-
ThemeColor.warning,
|
|
6137
|
-
ThemeColor.error,
|
|
6138
|
-
ThemeColor.info,
|
|
6139
|
-
ThemeColor.light,
|
|
6140
|
-
ThemeColor.dark,
|
|
6141
|
-
ThemeColor.inverse
|
|
6142
|
-
]
|
|
6143
|
-
};
|
|
6144
|
-
var defaultProps24 = {
|
|
6145
|
-
size: Size.medium,
|
|
6146
|
-
rounded: Roundness.medium,
|
|
6147
|
-
fillMode: FillMode.solid,
|
|
6148
|
-
themeColor: ThemeColor.base,
|
|
6149
|
-
showArrow: true,
|
|
6150
|
-
arrowIconName: "caret-alt-down"
|
|
6151
|
-
};
|
|
6152
|
-
var MenuButton = (props) => {
|
|
6153
|
-
const {
|
|
6154
|
-
size = defaultProps24.size,
|
|
6155
|
-
rounded = defaultProps24.rounded,
|
|
6156
|
-
fillMode = defaultProps24.fillMode,
|
|
6157
|
-
themeColor = defaultProps24.themeColor,
|
|
6158
|
-
hover,
|
|
6159
|
-
focus,
|
|
6160
|
-
active,
|
|
6161
|
-
selected,
|
|
6162
|
-
disabled,
|
|
6163
|
-
icon,
|
|
6164
|
-
text,
|
|
6165
|
-
showArrow = defaultProps24.showArrow,
|
|
6166
|
-
arrowIconName = defaultProps24.arrowIconName,
|
|
6167
|
-
popup,
|
|
6168
|
-
opened,
|
|
6169
|
-
...other
|
|
6170
|
-
} = props;
|
|
6171
|
-
return /* @__PURE__ */ jsxs35(Fragment24, { children: [
|
|
6172
|
-
/* @__PURE__ */ jsx75(
|
|
6173
|
-
Button,
|
|
6174
|
-
{
|
|
6175
|
-
...other,
|
|
6176
|
-
className: classNames(
|
|
6177
|
-
props.className,
|
|
6178
|
-
MENUBUTTON_CLASSNAME
|
|
6179
|
-
),
|
|
6180
|
-
text,
|
|
6181
|
-
size,
|
|
6182
|
-
rounded,
|
|
6183
|
-
fillMode,
|
|
6184
|
-
themeColor,
|
|
6185
|
-
hover,
|
|
6186
|
-
focus,
|
|
6187
|
-
active,
|
|
6188
|
-
selected,
|
|
6189
|
-
disabled,
|
|
6190
|
-
icon,
|
|
6191
|
-
showArrow,
|
|
6192
|
-
arrowIconName
|
|
6193
|
-
}
|
|
6194
|
-
),
|
|
6195
|
-
opened && popup && /* @__PURE__ */ jsx75(Popup, { className: "k-menu-popup", children: popup })
|
|
6196
|
-
] });
|
|
6197
|
-
};
|
|
6198
|
-
MenuButton.states = states30;
|
|
6199
|
-
MenuButton.options = options27;
|
|
6200
|
-
MenuButton.className = MENUBUTTON_CLASSNAME;
|
|
6201
|
-
MenuButton.defaultProps = defaultProps24;
|
|
6202
|
-
|
|
6203
|
-
// src/menu-button/templates/icon-menu-button.tsx
|
|
6204
|
-
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
6205
|
-
|
|
6206
|
-
// src/menu-button/templates/icon-text-menu-button.tsx
|
|
6207
|
-
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
6208
|
-
|
|
6209
|
-
// src/menu-button/templates/text-menu-button.tsx
|
|
6210
|
-
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
6211
|
-
|
|
6212
|
-
// src/menu/menu-item.spec.tsx
|
|
6213
|
-
import { Fragment as Fragment25, jsx as jsx79, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6214
|
-
var MENUITEM_CLASSNAME = `k-menu-item`;
|
|
6215
|
-
var states31 = [
|
|
6216
|
-
States.hover,
|
|
6217
|
-
States.focus,
|
|
6218
|
-
States.active,
|
|
6219
|
-
States.selected,
|
|
6220
|
-
States.disabled
|
|
6221
|
-
];
|
|
6222
|
-
var options28 = {};
|
|
6223
|
-
var defaultProps25 = {
|
|
6224
|
-
dir: "ltr"
|
|
6225
|
-
};
|
|
6226
|
-
var MenuItem = (props) => {
|
|
6227
|
-
const {
|
|
6228
|
-
hover,
|
|
6229
|
-
focus,
|
|
6230
|
-
active,
|
|
6231
|
-
selected,
|
|
6232
|
-
disabled,
|
|
6233
|
-
icon,
|
|
6234
|
-
text,
|
|
6235
|
-
showArrow,
|
|
6236
|
-
arrowIconName,
|
|
6237
|
-
dir = defaultProps25.dir,
|
|
6238
|
-
children,
|
|
6239
|
-
...other
|
|
6240
|
-
} = props;
|
|
6241
|
-
const contentTemplate = /* @__PURE__ */ jsx79(Fragment25, {});
|
|
6242
|
-
if (children) {
|
|
6243
|
-
children.forEach((child) => {
|
|
6244
|
-
const component = child.type;
|
|
6245
|
-
if (component === "MenuItemContent") {
|
|
6246
|
-
contentTemplate.props.children.push(child);
|
|
6247
|
-
return;
|
|
6248
|
-
}
|
|
6249
|
-
});
|
|
6250
|
-
}
|
|
6251
|
-
let expandArrowName = arrowIconName;
|
|
6252
|
-
if (!expandArrowName) {
|
|
6253
|
-
expandArrowName = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
|
|
6254
|
-
}
|
|
6255
|
-
return /* @__PURE__ */ jsxs36(
|
|
6256
|
-
"li",
|
|
6257
|
-
{
|
|
6258
|
-
...other,
|
|
6259
|
-
className: classNames(
|
|
6260
|
-
props.className,
|
|
6261
|
-
MENUITEM_CLASSNAME,
|
|
6262
|
-
//TODO
|
|
6263
|
-
"k-item",
|
|
6264
|
-
stateClassNames(MENUITEM_CLASSNAME, {
|
|
6265
|
-
focus,
|
|
6266
|
-
disabled
|
|
6267
|
-
})
|
|
6268
|
-
),
|
|
6269
|
-
children: [
|
|
6270
|
-
/* @__PURE__ */ jsxs36(
|
|
6271
|
-
"span",
|
|
6272
|
-
{
|
|
6273
|
-
className: classNames(
|
|
6274
|
-
"k-link k-menu-link",
|
|
6275
|
-
stateClassNames("k-menu-link", {
|
|
6276
|
-
hover,
|
|
6277
|
-
active,
|
|
6278
|
-
selected,
|
|
6279
|
-
disabled
|
|
6280
|
-
})
|
|
6281
|
-
),
|
|
6282
|
-
children: [
|
|
6283
|
-
icon && /* @__PURE__ */ jsx79(Icon, { className: "k-menu-link-icon", icon }),
|
|
6284
|
-
/* @__PURE__ */ jsx79("span", { className: "k-menu-link-text", children: text }),
|
|
6285
|
-
showArrow && /* @__PURE__ */ jsx79("span", { className: "k-menu-expand-arrow", children: /* @__PURE__ */ jsx79(Icon, { icon: expandArrowName }) })
|
|
6286
|
-
]
|
|
6287
|
-
}
|
|
6288
|
-
),
|
|
6289
|
-
contentTemplate
|
|
6290
|
-
]
|
|
6291
|
-
}
|
|
6292
|
-
);
|
|
6293
|
-
};
|
|
6294
|
-
MenuItem.states = states31;
|
|
6295
|
-
MenuItem.options = options28;
|
|
6296
|
-
MenuItem.className = MENUITEM_CLASSNAME;
|
|
6297
|
-
MenuItem.defaultProps = defaultProps25;
|
|
6298
|
-
var menu_item_spec_default = MenuItem;
|
|
6299
|
-
|
|
6300
|
-
// src/menu/menu-separator.spec.tsx
|
|
6301
|
-
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
6302
|
-
var SEPARATOR_CLASSNAME = `k-separator`;
|
|
6303
|
-
var defaultProps26 = {
|
|
6304
|
-
orientation: "horizontal"
|
|
6305
|
-
};
|
|
6306
|
-
var MenuSeparator = (props) => {
|
|
6307
|
-
const {
|
|
6308
|
-
orientation = defaultProps26.orientation,
|
|
6309
|
-
...other
|
|
6310
|
-
} = props;
|
|
6311
|
-
return /* @__PURE__ */ jsx80(
|
|
6312
|
-
"li",
|
|
6313
|
-
{
|
|
6314
|
-
...other,
|
|
6315
|
-
className: classNames(
|
|
6316
|
-
props.className,
|
|
6317
|
-
"k-item",
|
|
6318
|
-
SEPARATOR_CLASSNAME,
|
|
6319
|
-
{
|
|
6320
|
-
[`${SEPARATOR_CLASSNAME}-${orientation}`]: orientation
|
|
6321
|
-
}
|
|
6322
|
-
)
|
|
6323
|
-
}
|
|
6324
|
-
);
|
|
6325
|
-
};
|
|
6326
|
-
var menu_separator_spec_default = MenuSeparator;
|
|
6327
|
-
|
|
6328
|
-
// src/menu/menu-item-content.tsx
|
|
6329
|
-
import { Fragment as Fragment26, jsx as jsx81 } from "react/jsx-runtime";
|
|
6330
|
-
|
|
6331
|
-
// src/menu/menu-list.spec.tsx
|
|
6332
|
-
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
6333
|
-
import { createElement } from "react";
|
|
6334
|
-
var MENULIST_CLASSNAME = `k-menu-group`;
|
|
6335
|
-
var states32 = [];
|
|
6336
|
-
var options29 = {
|
|
6337
|
-
size: [Size.small, Size.medium, Size.large]
|
|
6338
|
-
};
|
|
6339
|
-
var defaultProps27 = {
|
|
6340
|
-
size: Size.medium,
|
|
6341
|
-
dir: "ltr"
|
|
6342
|
-
};
|
|
6343
|
-
var MenuList = (props) => {
|
|
6344
|
-
const {
|
|
6345
|
-
children,
|
|
6346
|
-
size = defaultProps27.size,
|
|
6347
|
-
dir = defaultProps27.dir,
|
|
6348
|
-
...other
|
|
6349
|
-
} = props;
|
|
6350
|
-
const listChildren = [];
|
|
6351
|
-
if (children) {
|
|
6352
|
-
if (Array.isArray(children)) {
|
|
6353
|
-
children.map((child, index) => {
|
|
6354
|
-
if (child.type === menu_item_spec_default) {
|
|
6355
|
-
listChildren.push(
|
|
6356
|
-
/* @__PURE__ */ createElement(menu_item_spec_default, { ...child.props, dir, key: index })
|
|
6357
|
-
);
|
|
6358
|
-
} else if (child.type === menu_separator_spec_default) {
|
|
6359
|
-
listChildren.push(
|
|
6360
|
-
/* @__PURE__ */ jsx82(menu_separator_spec_default, {})
|
|
6361
|
-
);
|
|
6362
|
-
} else {
|
|
6363
|
-
listChildren.push(child);
|
|
6364
|
-
}
|
|
6365
|
-
});
|
|
6366
|
-
}
|
|
6367
|
-
}
|
|
6368
|
-
return /* @__PURE__ */ jsx82(
|
|
6369
|
-
"ul",
|
|
6370
|
-
{
|
|
6371
|
-
...other,
|
|
6372
|
-
className: classNames(
|
|
6373
|
-
props.className,
|
|
6374
|
-
MENULIST_CLASSNAME,
|
|
6375
|
-
optionClassNames(MENULIST_CLASSNAME, {
|
|
6376
|
-
size
|
|
6377
|
-
})
|
|
6378
|
-
),
|
|
6379
|
-
children: listChildren
|
|
6380
|
-
}
|
|
6381
|
-
);
|
|
6382
|
-
};
|
|
6383
|
-
MenuList.states = states32;
|
|
6384
|
-
MenuList.options = options29;
|
|
6385
|
-
MenuList.className = MENULIST_CLASSNAME;
|
|
6386
|
-
MenuList.defaultProps = defaultProps27;
|
|
6387
|
-
|
|
6388
|
-
// src/menu-button/templates/menu-button-popup.tsx
|
|
6389
|
-
import { jsx as jsx83, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6390
|
-
|
|
6391
|
-
// src/split-button/split-button.spec.tsx
|
|
6392
|
-
import { Fragment as Fragment27, jsx as jsx84, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
6393
|
-
var SPLITBUTTON_CLASSNAME = `k-split-button`;
|
|
6394
|
-
var states33 = [
|
|
6395
|
-
States.hover,
|
|
6396
|
-
States.focus,
|
|
6397
|
-
States.active,
|
|
6398
|
-
States.selected,
|
|
6399
|
-
States.disabled
|
|
6400
|
-
];
|
|
6401
|
-
var options30 = {
|
|
6402
|
-
size: [Size.small, Size.medium, Size.large],
|
|
6403
|
-
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
6404
|
-
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
|
|
6405
|
-
themeColor: [
|
|
6406
|
-
ThemeColor.base,
|
|
6407
|
-
ThemeColor.primary,
|
|
6408
|
-
ThemeColor.secondary,
|
|
6409
|
-
ThemeColor.tertiary,
|
|
6410
|
-
ThemeColor.success,
|
|
6411
|
-
ThemeColor.warning,
|
|
6412
|
-
ThemeColor.error,
|
|
6413
|
-
ThemeColor.info,
|
|
6414
|
-
ThemeColor.light,
|
|
6415
|
-
ThemeColor.dark,
|
|
6416
|
-
ThemeColor.inverse
|
|
6417
|
-
]
|
|
6418
|
-
};
|
|
6419
|
-
var defaultProps28 = {
|
|
6420
|
-
size: Size.medium,
|
|
6421
|
-
rounded: Roundness.medium,
|
|
6422
|
-
fillMode: FillMode.solid,
|
|
6423
|
-
themeColor: ThemeColor.base,
|
|
6424
|
-
arrowIconName: "caret-alt-down"
|
|
6425
|
-
};
|
|
6426
|
-
var SplitButton = (props) => {
|
|
6427
|
-
const {
|
|
6428
|
-
size = defaultProps28.size,
|
|
6429
|
-
rounded = defaultProps28.rounded,
|
|
6430
|
-
fillMode = defaultProps28.fillMode,
|
|
6431
|
-
themeColor = defaultProps28.themeColor,
|
|
6432
|
-
hover,
|
|
6433
|
-
focus,
|
|
6434
|
-
active,
|
|
6435
|
-
selected,
|
|
6436
|
-
disabled,
|
|
6437
|
-
icon,
|
|
6438
|
-
text,
|
|
6439
|
-
arrowIconName = defaultProps28.arrowIconName,
|
|
6440
|
-
popup,
|
|
6441
|
-
opened,
|
|
6442
|
-
...other
|
|
6443
|
-
} = props;
|
|
6444
|
-
return /* @__PURE__ */ jsxs38(Fragment27, { children: [
|
|
6445
|
-
/* @__PURE__ */ jsxs38(
|
|
6446
|
-
"div",
|
|
6447
|
-
{
|
|
6448
|
-
...other,
|
|
6449
|
-
className: classNames(
|
|
6450
|
-
props.className,
|
|
6451
|
-
SPLITBUTTON_CLASSNAME,
|
|
6452
|
-
"k-button-group",
|
|
6453
|
-
optionClassNames(SPLITBUTTON_CLASSNAME, {
|
|
6454
|
-
rounded
|
|
6455
|
-
})
|
|
6456
|
-
),
|
|
6457
|
-
children: [
|
|
6458
|
-
/* @__PURE__ */ jsx84(
|
|
6459
|
-
Button,
|
|
6460
|
-
{
|
|
6461
|
-
text,
|
|
6462
|
-
icon,
|
|
6463
|
-
size,
|
|
6464
|
-
rounded,
|
|
6465
|
-
fillMode,
|
|
6466
|
-
themeColor,
|
|
6467
|
-
hover,
|
|
6468
|
-
focus,
|
|
6469
|
-
active,
|
|
6470
|
-
selected,
|
|
6471
|
-
disabled,
|
|
6472
|
-
children: props.children
|
|
6473
|
-
}
|
|
6474
|
-
),
|
|
6475
|
-
/* @__PURE__ */ jsx84(
|
|
6476
|
-
Button,
|
|
6477
|
-
{
|
|
6478
|
-
className: "k-split-button-arrow",
|
|
6479
|
-
icon: arrowIconName,
|
|
6480
|
-
size,
|
|
6481
|
-
rounded,
|
|
6482
|
-
fillMode,
|
|
6483
|
-
disabled
|
|
6484
|
-
}
|
|
6485
|
-
)
|
|
6486
|
-
]
|
|
6487
|
-
}
|
|
6488
|
-
),
|
|
6489
|
-
opened && popup && /* @__PURE__ */ jsx84(Popup, { className: "k-menu-popup", children: popup })
|
|
6490
|
-
] });
|
|
6491
|
-
};
|
|
6492
|
-
SplitButton.states = states33;
|
|
6493
|
-
SplitButton.options = options30;
|
|
6494
|
-
SplitButton.className = SPLITBUTTON_CLASSNAME;
|
|
6495
|
-
SplitButton.defaultProps = defaultProps28;
|
|
6496
|
-
var split_button_spec_default = SplitButton;
|
|
6497
|
-
|
|
6498
|
-
// src/toolbar/toolbar.spec.tsx
|
|
6499
|
-
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
6500
|
-
var TOOLBAR_CLASSNAME = `k-toolbar`;
|
|
6501
|
-
var states34 = [
|
|
6502
|
-
States.focus
|
|
6503
|
-
];
|
|
6504
|
-
var options31 = {
|
|
6505
|
-
size: [Size.small, Size.medium, Size.large]
|
|
6506
|
-
};
|
|
6507
|
-
var defaultProps29 = {
|
|
6508
|
-
size: Size.medium
|
|
6509
|
-
};
|
|
6510
|
-
var Toolbar = (props) => {
|
|
6511
|
-
const {
|
|
6512
|
-
size = defaultProps29.size,
|
|
6513
|
-
focus,
|
|
6514
|
-
resizable,
|
|
6515
|
-
...other
|
|
6516
|
-
} = props;
|
|
6517
|
-
const toolbarChildren = [];
|
|
6518
|
-
const addUniqueToolClass = (child, index) => {
|
|
6519
|
-
const tempToolbarChildren = [];
|
|
6520
|
-
if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
|
|
6521
|
-
tempToolbarChildren.push(
|
|
6522
|
-
/* @__PURE__ */ jsx85(
|
|
6523
|
-
Button,
|
|
6524
|
-
{
|
|
6525
|
-
...child.props,
|
|
6526
|
-
className: `${child.props.className ? child.props.className : ""}`
|
|
6527
|
-
},
|
|
6528
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6529
|
-
)
|
|
6530
|
-
);
|
|
6531
|
-
} else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
|
|
6532
|
-
tempToolbarChildren.push(
|
|
6533
|
-
/* @__PURE__ */ jsx85(
|
|
6534
|
-
Button,
|
|
6535
|
-
{
|
|
6536
|
-
...child.props,
|
|
6537
|
-
className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
|
|
6538
|
-
},
|
|
6539
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6540
|
-
)
|
|
6541
|
-
);
|
|
6542
|
-
} else if (child.type === Button) {
|
|
6543
|
-
tempToolbarChildren.push(
|
|
6544
|
-
/* @__PURE__ */ jsx85(
|
|
6545
|
-
Button,
|
|
6546
|
-
{
|
|
6547
|
-
...child.props,
|
|
6548
|
-
className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
|
|
6549
|
-
},
|
|
6550
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6551
|
-
)
|
|
6552
|
-
);
|
|
6553
|
-
} else if (child.type === MenuButton) {
|
|
6554
|
-
tempToolbarChildren.push(
|
|
6555
|
-
/* @__PURE__ */ jsx85(
|
|
6556
|
-
MenuButton,
|
|
6557
|
-
{
|
|
6558
|
-
...child.props,
|
|
6559
|
-
className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
|
|
6560
|
-
},
|
|
6561
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6562
|
-
)
|
|
6563
|
-
);
|
|
6564
|
-
} else if (child.type === split_button_spec_default) {
|
|
6565
|
-
tempToolbarChildren.push(
|
|
6566
|
-
/* @__PURE__ */ jsx85(
|
|
6567
|
-
split_button_spec_default,
|
|
6568
|
-
{
|
|
6569
|
-
...child.props,
|
|
6570
|
-
className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
|
|
6571
|
-
},
|
|
6572
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6573
|
-
)
|
|
6574
|
-
);
|
|
6575
|
-
} else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
|
|
6576
|
-
const buttonGroupItems = [];
|
|
6577
|
-
const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
|
|
6578
|
-
childrenArray.forEach((button, bindex) => {
|
|
6579
|
-
buttonGroupItems.push(
|
|
6580
|
-
/* @__PURE__ */ jsx85(
|
|
6581
|
-
Button,
|
|
6582
|
-
{
|
|
6583
|
-
...button.props,
|
|
6584
|
-
className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
|
|
6585
|
-
},
|
|
6586
|
-
`${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6587
|
-
)
|
|
6588
|
-
);
|
|
6589
|
-
});
|
|
6590
|
-
tempToolbarChildren.push(
|
|
6591
|
-
/* @__PURE__ */ jsx85(
|
|
6592
|
-
ButtonGroup,
|
|
6593
|
-
{
|
|
6594
|
-
...child.props,
|
|
6595
|
-
className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
|
|
6596
|
-
children: buttonGroupItems
|
|
6597
|
-
},
|
|
6598
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6599
|
-
)
|
|
6600
|
-
);
|
|
6601
|
-
} else if (child.type === Combobox) {
|
|
6602
|
-
tempToolbarChildren.push(
|
|
6603
|
-
/* @__PURE__ */ jsx85(
|
|
6604
|
-
Combobox,
|
|
6605
|
-
{
|
|
6606
|
-
...child.props,
|
|
6607
|
-
className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
|
|
6608
|
-
},
|
|
6609
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6610
|
-
)
|
|
6611
|
-
);
|
|
6612
|
-
} else if (child.type === DropdownList) {
|
|
6613
|
-
tempToolbarChildren.push(
|
|
6614
|
-
/* @__PURE__ */ jsx85(
|
|
6615
|
-
DropdownList,
|
|
6616
|
-
{
|
|
6617
|
-
...child.props,
|
|
6618
|
-
className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
|
|
6619
|
-
},
|
|
6620
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6621
|
-
)
|
|
6622
|
-
);
|
|
6623
|
-
} else if (child.type === ColorPicker) {
|
|
6624
|
-
tempToolbarChildren.push(
|
|
6625
|
-
/* @__PURE__ */ jsx85(
|
|
6626
|
-
ColorPicker,
|
|
6627
|
-
{
|
|
6628
|
-
...child.props,
|
|
6629
|
-
className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
|
|
6630
|
-
},
|
|
6631
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6632
|
-
)
|
|
6633
|
-
);
|
|
6634
|
-
} else {
|
|
6635
|
-
tempToolbarChildren.push(child);
|
|
6636
|
-
}
|
|
6637
|
-
tempToolbarChildren.forEach((item) => {
|
|
6638
|
-
toolbarChildren.push(item);
|
|
6639
|
-
});
|
|
6640
|
-
};
|
|
6641
|
-
if (props.children) {
|
|
6642
|
-
const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
|
|
6643
|
-
childrenArray.forEach((child, index) => {
|
|
6644
|
-
addUniqueToolClass(child, index);
|
|
6645
|
-
});
|
|
6646
|
-
}
|
|
6647
|
-
return /* @__PURE__ */ jsx85(
|
|
6648
|
-
"div",
|
|
6649
|
-
{
|
|
6650
|
-
...other,
|
|
6651
|
-
className: classNames(
|
|
6652
|
-
props.className,
|
|
6653
|
-
TOOLBAR_CLASSNAME,
|
|
6654
|
-
optionClassNames(TOOLBAR_CLASSNAME, {
|
|
6655
|
-
size
|
|
6656
|
-
}),
|
|
6657
|
-
stateClassNames(TOOLBAR_CLASSNAME, {
|
|
6658
|
-
focus
|
|
6659
|
-
}),
|
|
6660
|
-
{
|
|
6661
|
-
[`${TOOLBAR_CLASSNAME}-resizable`]: resizable
|
|
6662
|
-
}
|
|
6663
|
-
),
|
|
6664
|
-
children: toolbarChildren
|
|
6665
|
-
}
|
|
6666
|
-
);
|
|
6667
|
-
};
|
|
6668
|
-
Toolbar.states = states34;
|
|
6669
|
-
Toolbar.options = options31;
|
|
6670
|
-
Toolbar.className = TOOLBAR_CLASSNAME;
|
|
6671
|
-
Toolbar.defaultProps = defaultProps29;
|
|
6672
|
-
|
|
6673
|
-
// src/toolbar/toolbar-angular.spec.tsx
|
|
6674
|
-
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
6675
|
-
var TOOLBARANGULAR_CLASSNAME = `k-toolbar`;
|
|
6676
|
-
var states35 = [
|
|
6677
|
-
States.focus
|
|
6678
|
-
];
|
|
6679
|
-
var options32 = {
|
|
6680
|
-
size: [Size.small, Size.medium, Size.large]
|
|
6681
|
-
};
|
|
6682
|
-
var defaultProps30 = {
|
|
6683
|
-
size: Size.medium
|
|
6684
|
-
};
|
|
6685
|
-
var ToolbarAngular = (props) => {
|
|
6686
|
-
const {
|
|
6687
|
-
size = defaultProps30.size,
|
|
6688
|
-
focus,
|
|
6689
|
-
resizable,
|
|
6690
|
-
...other
|
|
6691
|
-
} = props;
|
|
6692
|
-
const toolbarChildren = [];
|
|
6693
|
-
const addUniqueToolClass = (child, index) => {
|
|
6694
|
-
const tempToolbarChildren = [];
|
|
6695
|
-
if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
|
|
6696
|
-
tempToolbarChildren.push(
|
|
6697
|
-
/* @__PURE__ */ jsx86("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx86(
|
|
6698
|
-
Button,
|
|
6699
|
-
{
|
|
6700
|
-
...child.props,
|
|
6701
|
-
className: `${child.props.className ? child.props.className : ""}`
|
|
6702
|
-
},
|
|
6703
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6704
|
-
) })
|
|
6705
|
-
);
|
|
6706
|
-
} else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
|
|
6707
|
-
tempToolbarChildren.push(
|
|
6708
|
-
/* @__PURE__ */ jsx86("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx86(
|
|
6709
|
-
Button,
|
|
6710
|
-
{
|
|
6711
|
-
...child.props,
|
|
6712
|
-
className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
|
|
6713
|
-
},
|
|
6714
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6715
|
-
) })
|
|
6716
|
-
);
|
|
6717
|
-
} else if (child.type === Button) {
|
|
6718
|
-
tempToolbarChildren.push(
|
|
6719
|
-
/* @__PURE__ */ jsx86("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx86(
|
|
6720
|
-
Button,
|
|
6721
|
-
{
|
|
6722
|
-
...child.props,
|
|
6723
|
-
className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
|
|
6724
|
-
},
|
|
6725
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6726
|
-
) })
|
|
6727
|
-
);
|
|
6728
|
-
} else if (child.type === MenuButton) {
|
|
6729
|
-
tempToolbarChildren.push(
|
|
6730
|
-
/* @__PURE__ */ jsx86("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx86(
|
|
6731
|
-
MenuButton,
|
|
6732
|
-
{
|
|
6733
|
-
...child.props,
|
|
6734
|
-
className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
|
|
6735
|
-
},
|
|
6736
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6737
|
-
) })
|
|
6738
|
-
);
|
|
6739
|
-
} else if (child.type === split_button_spec_default) {
|
|
6740
|
-
tempToolbarChildren.push(
|
|
6741
|
-
/* @__PURE__ */ jsx86("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx86(
|
|
6742
|
-
split_button_spec_default,
|
|
6743
|
-
{
|
|
6744
|
-
...child.props,
|
|
6745
|
-
className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
|
|
6746
|
-
},
|
|
6747
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6748
|
-
) })
|
|
6749
|
-
);
|
|
6750
|
-
} else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
|
|
6751
|
-
const buttonGroupItems = [];
|
|
6752
|
-
const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
|
|
6753
|
-
childrenArray.forEach((button, bindex) => {
|
|
6754
|
-
buttonGroupItems.push(
|
|
6755
|
-
/* @__PURE__ */ jsx86(
|
|
6756
|
-
Button,
|
|
6757
|
-
{
|
|
6758
|
-
...button.props,
|
|
6759
|
-
className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
|
|
6760
|
-
},
|
|
6761
|
-
`${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6762
|
-
)
|
|
6763
|
-
);
|
|
6764
|
-
});
|
|
6765
|
-
tempToolbarChildren.push(
|
|
6766
|
-
/* @__PURE__ */ jsx86("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx86(
|
|
6767
|
-
ButtonGroup,
|
|
6768
|
-
{
|
|
6769
|
-
...child.props,
|
|
6770
|
-
className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
|
|
6771
|
-
children: buttonGroupItems
|
|
6772
|
-
},
|
|
6773
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6774
|
-
) })
|
|
6775
|
-
);
|
|
6776
|
-
} else if (child.type === Combobox) {
|
|
6777
|
-
tempToolbarChildren.push(
|
|
6778
|
-
/* @__PURE__ */ jsx86("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx86(
|
|
6779
|
-
Combobox,
|
|
6780
|
-
{
|
|
6781
|
-
...child.props,
|
|
6782
|
-
className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
|
|
6783
|
-
},
|
|
6784
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6785
|
-
) })
|
|
6786
|
-
);
|
|
6787
|
-
} else if (child.type === DropdownList) {
|
|
6788
|
-
tempToolbarChildren.push(
|
|
6789
|
-
/* @__PURE__ */ jsx86("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx86(
|
|
6790
|
-
DropdownList,
|
|
6791
|
-
{
|
|
6792
|
-
...child.props,
|
|
6793
|
-
className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
|
|
6794
|
-
},
|
|
6795
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6796
|
-
) })
|
|
6797
|
-
);
|
|
6798
|
-
} else if (child.type === ColorPicker) {
|
|
6799
|
-
tempToolbarChildren.push(
|
|
6800
|
-
/* @__PURE__ */ jsx86("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx86(
|
|
6801
|
-
ColorPicker,
|
|
6802
|
-
{
|
|
6803
|
-
...child.props,
|
|
6804
|
-
className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
|
|
6805
|
-
},
|
|
6806
|
-
`${index}-${(/* @__PURE__ */ new Date()).getTime()}`
|
|
6807
|
-
) })
|
|
6808
|
-
);
|
|
6809
|
-
} else {
|
|
6810
|
-
tempToolbarChildren.push(child);
|
|
6811
|
-
}
|
|
6812
|
-
tempToolbarChildren.forEach((item) => {
|
|
6813
|
-
toolbarChildren.push(item);
|
|
6814
|
-
});
|
|
6815
|
-
};
|
|
6816
|
-
if (props.children) {
|
|
6817
|
-
const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
|
|
6818
|
-
childrenArray.forEach((child, index) => {
|
|
6819
|
-
addUniqueToolClass(child, index);
|
|
6820
|
-
});
|
|
6821
|
-
}
|
|
6822
|
-
return /* @__PURE__ */ jsx86(
|
|
6823
|
-
"div",
|
|
6824
|
-
{
|
|
6825
|
-
...other,
|
|
6826
|
-
className: classNames(
|
|
6827
|
-
props.className,
|
|
6828
|
-
TOOLBARANGULAR_CLASSNAME,
|
|
6829
|
-
optionClassNames(TOOLBARANGULAR_CLASSNAME, {
|
|
6830
|
-
size
|
|
6831
|
-
}),
|
|
6832
|
-
stateClassNames(TOOLBARANGULAR_CLASSNAME, {
|
|
6833
|
-
focus
|
|
6834
|
-
}),
|
|
6835
|
-
{
|
|
6836
|
-
[`${TOOLBARANGULAR_CLASSNAME}-resizable`]: resizable
|
|
6837
|
-
}
|
|
6838
|
-
),
|
|
6839
|
-
children: toolbarChildren
|
|
6840
|
-
}
|
|
6841
|
-
);
|
|
6842
|
-
};
|
|
6843
|
-
ToolbarAngular.states = states35;
|
|
6844
|
-
ToolbarAngular.options = options32;
|
|
6845
|
-
ToolbarAngular.className = TOOLBARANGULAR_CLASSNAME;
|
|
6846
|
-
ToolbarAngular.defaultProps = defaultProps30;
|
|
6847
|
-
|
|
6848
|
-
// src/toolbar/toolbar-separator.tsx
|
|
6849
|
-
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
6850
|
-
|
|
6851
|
-
// src/toolbar/toolbar-item.spec.tsx
|
|
6852
|
-
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
6853
|
-
var TOOLBARITEM_CLASSNAME = `k-toolbar-item`;
|
|
6854
|
-
var states36 = [
|
|
6855
|
-
States.focus
|
|
6856
|
-
];
|
|
6857
|
-
var options33 = {};
|
|
6858
|
-
var defaultProps31 = {};
|
|
6859
|
-
var ToolbarItem = (props) => {
|
|
6860
|
-
const {
|
|
6861
|
-
focus,
|
|
6862
|
-
...other
|
|
6863
|
-
} = props;
|
|
6864
|
-
return /* @__PURE__ */ jsx88(
|
|
6865
|
-
"div",
|
|
6866
|
-
{
|
|
6867
|
-
...other,
|
|
6868
|
-
className: classNames(
|
|
6869
|
-
props.className,
|
|
6870
|
-
TOOLBARITEM_CLASSNAME,
|
|
6871
|
-
stateClassNames(TOOLBARITEM_CLASSNAME, {
|
|
6872
|
-
focus
|
|
6873
|
-
})
|
|
6874
|
-
),
|
|
6875
|
-
children: props.children
|
|
6876
|
-
}
|
|
6877
|
-
);
|
|
6878
|
-
};
|
|
6879
|
-
ToolbarItem.states = states36;
|
|
6880
|
-
ToolbarItem.options = options33;
|
|
6881
|
-
ToolbarItem.className = TOOLBARITEM_CLASSNAME;
|
|
6882
|
-
ToolbarItem.defaultProps = defaultProps31;
|
|
6883
|
-
|
|
6884
|
-
// src/textbox/textbox.spec.tsx
|
|
6885
|
-
import { jsx as jsx89, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
6886
|
-
var TEXTBOX_CLASSNAME = `k-textbox`;
|
|
6887
|
-
var states37 = [
|
|
6888
|
-
States.hover,
|
|
6889
|
-
States.focus,
|
|
6890
|
-
States.valid,
|
|
6891
|
-
States.invalid,
|
|
6892
|
-
States.required,
|
|
6893
|
-
States.disabled,
|
|
6894
|
-
States.loading,
|
|
6895
|
-
States.readonly
|
|
6896
|
-
];
|
|
6897
|
-
var options34 = {
|
|
6898
|
-
size: [Size.small, Size.medium, Size.large],
|
|
6899
|
-
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
6900
|
-
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
|
|
6901
|
-
};
|
|
6902
|
-
var defaultProps32 = {
|
|
6903
|
-
showClearButton: true,
|
|
6904
|
-
size: Input.defaultProps.size,
|
|
6905
|
-
rounded: Input.defaultProps.rounded,
|
|
6906
|
-
fillMode: Input.defaultProps.fillMode
|
|
6907
|
-
};
|
|
6908
|
-
var Textbox = (props) => {
|
|
6909
|
-
const {
|
|
6910
|
-
prefix,
|
|
6911
|
-
suffix,
|
|
6912
|
-
value,
|
|
6913
|
-
placeholder,
|
|
6914
|
-
size,
|
|
6915
|
-
rounded,
|
|
6916
|
-
fillMode,
|
|
6917
|
-
hover,
|
|
6918
|
-
focus,
|
|
6919
|
-
valid,
|
|
6920
|
-
invalid,
|
|
6921
|
-
required,
|
|
6922
|
-
loading,
|
|
6923
|
-
disabled,
|
|
6924
|
-
readonly,
|
|
6925
|
-
showClearButton = defaultProps32.showClearButton,
|
|
6926
|
-
...other
|
|
6927
|
-
} = props;
|
|
6928
|
-
return /* @__PURE__ */ jsxs39(
|
|
6929
|
-
Input,
|
|
6930
|
-
{
|
|
6931
|
-
...other,
|
|
6932
|
-
size,
|
|
6933
|
-
rounded,
|
|
6934
|
-
fillMode,
|
|
6935
|
-
hover,
|
|
6936
|
-
focus,
|
|
6937
|
-
valid,
|
|
6938
|
-
invalid,
|
|
6939
|
-
required,
|
|
6940
|
-
loading,
|
|
6941
|
-
disabled,
|
|
6942
|
-
readonly,
|
|
6943
|
-
className: classNames(props.className, TEXTBOX_CLASSNAME),
|
|
6944
|
-
children: [
|
|
6945
|
-
/* @__PURE__ */ jsx89(InputPrefix, { children: prefix }),
|
|
6946
|
-
/* @__PURE__ */ jsx89(InputInnerInput, { placeholder, value }),
|
|
6947
|
-
/* @__PURE__ */ jsx89(
|
|
6948
|
-
InputValidationIcon,
|
|
6949
|
-
{
|
|
6950
|
-
valid,
|
|
6951
|
-
invalid,
|
|
6952
|
-
loading,
|
|
6953
|
-
disabled
|
|
6954
|
-
}
|
|
6955
|
-
),
|
|
6956
|
-
/* @__PURE__ */ jsx89(
|
|
6957
|
-
InputLoadingIcon,
|
|
6958
|
-
{
|
|
6959
|
-
loading,
|
|
6960
|
-
disabled
|
|
6961
|
-
}
|
|
6962
|
-
),
|
|
6963
|
-
showClearButton && /* @__PURE__ */ jsx89(
|
|
6964
|
-
InputClearValue,
|
|
6965
|
-
{
|
|
6966
|
-
loading,
|
|
6967
|
-
disabled,
|
|
6968
|
-
readonly,
|
|
6969
|
-
value
|
|
6970
|
-
}
|
|
6971
|
-
),
|
|
6972
|
-
/* @__PURE__ */ jsx89(InputSuffix, { children: suffix })
|
|
6973
|
-
]
|
|
6974
|
-
}
|
|
6975
|
-
);
|
|
6976
|
-
};
|
|
6977
|
-
Textbox.states = states37;
|
|
6978
|
-
Textbox.options = options34;
|
|
6979
|
-
Textbox.className = TEXTBOX_CLASSNAME;
|
|
6980
|
-
Textbox.defaultProps = defaultProps32;
|
|
6981
|
-
|
|
6982
|
-
// src/textbox/templates/textbox-normal.tsx
|
|
6983
|
-
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
6984
|
-
|
|
6985
|
-
// src/textbox/templates/textbox-prefix.tsx
|
|
6986
|
-
import { jsx as jsx91, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
6987
|
-
|
|
6988
|
-
// src/textbox/templates/textbox-suffix.tsx
|
|
6989
|
-
import { jsx as jsx92, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
6990
|
-
|
|
6991
|
-
// src/chat/chat.spec.tsx
|
|
6992
|
-
import { Fragment as Fragment28, jsx as jsx93, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
6993
|
-
var CHAT_CLASSNAME = "k-chat";
|
|
6994
|
-
var states38 = [];
|
|
6995
|
-
var options35 = {};
|
|
6996
|
-
var defaultOptions = {
|
|
6997
|
-
showToolbar: true,
|
|
6998
|
-
showMessageBox: true,
|
|
6999
|
-
showMoreButton: true
|
|
7000
|
-
};
|
|
7001
|
-
var Chat = (props) => {
|
|
7002
|
-
const {
|
|
7003
|
-
dir,
|
|
7004
|
-
showToolbar = defaultOptions.showToolbar,
|
|
7005
|
-
showMessageBox = defaultOptions.showMessageBox,
|
|
7006
|
-
showMoreButton = defaultOptions.showMoreButton,
|
|
7007
|
-
...other
|
|
7008
|
-
} = props;
|
|
7009
|
-
return /* @__PURE__ */ jsxs42(
|
|
7010
|
-
"div",
|
|
7011
|
-
{
|
|
7012
|
-
...other,
|
|
7013
|
-
className: classNames(
|
|
7014
|
-
CHAT_CLASSNAME,
|
|
7015
|
-
props.className
|
|
7016
|
-
),
|
|
7017
|
-
dir,
|
|
7018
|
-
children: [
|
|
7019
|
-
/* @__PURE__ */ jsx93("div", { className: "k-message-list k-avatars", children: /* @__PURE__ */ jsx93("div", { className: "k-message-list-content", children: props.children }) }),
|
|
7020
|
-
showMessageBox && /* @__PURE__ */ jsx93(
|
|
7021
|
-
Textbox,
|
|
7022
|
-
{
|
|
7023
|
-
className: "k-message-box",
|
|
7024
|
-
placeholder: "Type a message...",
|
|
7025
|
-
suffix: /* @__PURE__ */ jsxs42(Fragment28, { children: [
|
|
7026
|
-
showMoreButton && /* @__PURE__ */ jsx93(Button, { fillMode: "flat", icon: "more-horizontal" }),
|
|
7027
|
-
/* @__PURE__ */ jsx93(Button, { fillMode: "flat", icon: "paper-plane", className: "k-chat-send" })
|
|
7028
|
-
] })
|
|
7029
|
-
}
|
|
7030
|
-
),
|
|
7031
|
-
showToolbar && /* @__PURE__ */ jsxs42(Toolbar, { className: "k-chat-toolbar", children: [
|
|
7032
|
-
/* @__PURE__ */ jsx93(Button, { className: "k-scroll-button k-scroll-button-left k-hidden", fillMode: "flat", rounded: null, size: null, icon: "chevron-left" }),
|
|
7033
|
-
/* @__PURE__ */ jsxs42("div", { className: "k-toolbar-group k-button-list", children: [
|
|
7034
|
-
/* @__PURE__ */ jsx93(Button, { fillMode: "flat", icon: "arrow-rotate-cw" }),
|
|
7035
|
-
/* @__PURE__ */ jsx93(Button, { fillMode: "flat", icon: "gear" }),
|
|
7036
|
-
/* @__PURE__ */ jsx93(Button, { fillMode: "flat", icon: "wrench" }),
|
|
7037
|
-
/* @__PURE__ */ jsx93(Button, { fillMode: "flat", icon: "plus" }),
|
|
7038
|
-
/* @__PURE__ */ jsx93(Button, { fillMode: "flat", icon: "search" }),
|
|
7039
|
-
/* @__PURE__ */ jsx93(Button, { fillMode: "flat", icon: "star" }),
|
|
7040
|
-
/* @__PURE__ */ jsx93(Button, { fillMode: "flat", icon: "bell" }),
|
|
7041
|
-
/* @__PURE__ */ jsx93(Button, { fillMode: "flat", icon: "question-circle" }),
|
|
7042
|
-
/* @__PURE__ */ jsx93(Button, { fillMode: "flat", icon: "trash" })
|
|
7043
|
-
] }),
|
|
7044
|
-
/* @__PURE__ */ jsx93(Button, { className: "k-scroll-button k-scroll-button-right", fillMode: "flat", rounded: null, size: null, icon: "chevron-right" })
|
|
7045
|
-
] })
|
|
7046
|
-
]
|
|
7047
|
-
}
|
|
7048
|
-
);
|
|
7049
|
-
};
|
|
7050
|
-
Chat.states = states38;
|
|
7051
|
-
Chat.options = options35;
|
|
7052
|
-
Chat.className = CHAT_CLASSNAME;
|
|
7053
|
-
Chat.defaultOptions = defaultOptions;
|
|
7054
|
-
|
|
7055
|
-
// src/chat/chat-message.tsx
|
|
7056
|
-
import { jsx as jsx94, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
7057
|
-
var CHATMESSAGE_CLASSNAME = "k-message";
|
|
7058
|
-
var states39 = [
|
|
7059
|
-
States.selected
|
|
7060
|
-
];
|
|
7061
|
-
var options36 = {};
|
|
7062
|
-
var defaultProps33 = {
|
|
7063
|
-
time: "Thu Feb 08 2018",
|
|
7064
|
-
text: "How can I help you?",
|
|
7065
|
-
status: "Seen"
|
|
7066
|
-
};
|
|
7067
|
-
var ChatMessage = (props) => {
|
|
7068
|
-
const {
|
|
7069
|
-
time = defaultProps33.time,
|
|
7070
|
-
text = defaultProps33.text,
|
|
7071
|
-
status = defaultProps33.status,
|
|
7072
|
-
selected,
|
|
7073
|
-
...other
|
|
7074
|
-
} = props;
|
|
7075
|
-
return /* @__PURE__ */ jsxs43(
|
|
7076
|
-
"div",
|
|
7077
|
-
{
|
|
7078
|
-
...other,
|
|
7079
|
-
className: classNames(
|
|
7080
|
-
CHATMESSAGE_CLASSNAME,
|
|
7081
|
-
props.className,
|
|
7082
|
-
stateClassNames(CHATMESSAGE_CLASSNAME, { selected })
|
|
7083
|
-
),
|
|
7084
|
-
children: [
|
|
7085
|
-
/* @__PURE__ */ jsx94("time", { className: "k-message-time", children: time }),
|
|
7086
|
-
/* @__PURE__ */ jsx94("div", { className: "k-chat-bubble", children: text }),
|
|
7087
|
-
/* @__PURE__ */ jsx94("span", { className: "k-message-status", children: status })
|
|
7088
|
-
]
|
|
7089
|
-
}
|
|
7090
|
-
);
|
|
7091
|
-
};
|
|
7092
|
-
ChatMessage.states = states39;
|
|
7093
|
-
ChatMessage.options = options36;
|
|
7094
|
-
ChatMessage.className = CHATMESSAGE_CLASSNAME;
|
|
7095
|
-
ChatMessage.defaultProps = defaultProps33;
|
|
7096
|
-
|
|
7097
|
-
// src/avatar/avatar.spec.tsx
|
|
7098
|
-
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
7099
|
-
var AVATAR_CLASSNAME = `k-avatar`;
|
|
7100
|
-
var states40 = [
|
|
7101
|
-
States.hover,
|
|
7102
|
-
States.focus,
|
|
7103
|
-
States.active,
|
|
7104
|
-
States.selected,
|
|
7105
|
-
States.disabled
|
|
7106
|
-
];
|
|
7107
|
-
var options37 = {
|
|
5103
|
+
var options15 = {
|
|
7108
5104
|
size: [Size.small, Size.medium, Size.large],
|
|
7109
5105
|
rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
|
|
7110
5106
|
fillMode: [FillMode.solid, FillMode.flat, FillMode.outline],
|
|
@@ -7122,7 +5118,7 @@ var options37 = {
|
|
|
7122
5118
|
ThemeColor.inverse
|
|
7123
5119
|
]
|
|
7124
5120
|
};
|
|
7125
|
-
var
|
|
5121
|
+
var defaultProps12 = {
|
|
7126
5122
|
type: "text" /* TEXT */,
|
|
7127
5123
|
size: Size.medium,
|
|
7128
5124
|
rounded: Roundness.full,
|
|
@@ -7132,15 +5128,15 @@ var defaultProps34 = {
|
|
|
7132
5128
|
};
|
|
7133
5129
|
var Avatar = (props) => {
|
|
7134
5130
|
const {
|
|
7135
|
-
size =
|
|
7136
|
-
rounded =
|
|
7137
|
-
fillMode =
|
|
7138
|
-
themeColor =
|
|
7139
|
-
type =
|
|
7140
|
-
border =
|
|
5131
|
+
size = defaultProps12.size,
|
|
5132
|
+
rounded = defaultProps12.rounded,
|
|
5133
|
+
fillMode = defaultProps12.fillMode,
|
|
5134
|
+
themeColor = defaultProps12.themeColor,
|
|
5135
|
+
type = defaultProps12.type,
|
|
5136
|
+
border = defaultProps12.border,
|
|
7141
5137
|
...other
|
|
7142
5138
|
} = props;
|
|
7143
|
-
return /* @__PURE__ */
|
|
5139
|
+
return /* @__PURE__ */ jsx34(
|
|
7144
5140
|
"div",
|
|
7145
5141
|
{
|
|
7146
5142
|
...other,
|
|
@@ -7157,45 +5153,45 @@ var Avatar = (props) => {
|
|
|
7157
5153
|
[`${AVATAR_CLASSNAME}-bordered`]: border
|
|
7158
5154
|
}
|
|
7159
5155
|
),
|
|
7160
|
-
children: /* @__PURE__ */
|
|
5156
|
+
children: /* @__PURE__ */ jsx34("span", { className: `${AVATAR_CLASSNAME}-${type}`, children: props.children })
|
|
7161
5157
|
}
|
|
7162
5158
|
);
|
|
7163
5159
|
};
|
|
7164
|
-
Avatar.states =
|
|
7165
|
-
Avatar.options =
|
|
5160
|
+
Avatar.states = states17;
|
|
5161
|
+
Avatar.options = options15;
|
|
7166
5162
|
Avatar.className = AVATAR_CLASSNAME;
|
|
7167
|
-
Avatar.defaultProps =
|
|
5163
|
+
Avatar.defaultProps = defaultProps12;
|
|
7168
5164
|
|
|
7169
5165
|
// src/avatar/templates/avatar-icon.tsx
|
|
7170
|
-
import { jsx as
|
|
5166
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
7171
5167
|
|
|
7172
5168
|
// src/avatar/templates/avatar-text.tsx
|
|
7173
|
-
import { jsx as
|
|
5169
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
7174
5170
|
|
|
7175
5171
|
// src/avatar/templates/avatar-image.tsx
|
|
7176
|
-
import { jsx as
|
|
5172
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
7177
5173
|
|
|
7178
5174
|
// src/chat/chat-message-group.tsx
|
|
7179
|
-
import { jsx as
|
|
5175
|
+
import { jsx as jsx38, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
7180
5176
|
var CHATMESSAGEGROUP_CLASSNAME = "k-message-group";
|
|
7181
|
-
var
|
|
5177
|
+
var states18 = [
|
|
7182
5178
|
States.selected
|
|
7183
5179
|
];
|
|
7184
|
-
var
|
|
7185
|
-
var
|
|
5180
|
+
var options16 = {};
|
|
5181
|
+
var defaultProps13 = {
|
|
7186
5182
|
author: "Bruv",
|
|
7187
5183
|
avatar: "/packages/html/assets/avatar.jpg",
|
|
7188
5184
|
alt: false
|
|
7189
5185
|
};
|
|
7190
5186
|
var ChatMessageGroup = (props) => {
|
|
7191
5187
|
const {
|
|
7192
|
-
alt =
|
|
7193
|
-
author =
|
|
7194
|
-
avatar =
|
|
5188
|
+
alt = defaultProps13.alt,
|
|
5189
|
+
author = defaultProps13.author,
|
|
5190
|
+
avatar = defaultProps13.avatar,
|
|
7195
5191
|
selected,
|
|
7196
5192
|
...other
|
|
7197
5193
|
} = props;
|
|
7198
|
-
return /* @__PURE__ */
|
|
5194
|
+
return /* @__PURE__ */ jsxs11(
|
|
7199
5195
|
"div",
|
|
7200
5196
|
{
|
|
7201
5197
|
...other,
|
|
@@ -7209,23 +5205,23 @@ var ChatMessageGroup = (props) => {
|
|
|
7209
5205
|
}
|
|
7210
5206
|
),
|
|
7211
5207
|
children: [
|
|
7212
|
-
author && /* @__PURE__ */
|
|
7213
|
-
avatar && /* @__PURE__ */
|
|
5208
|
+
author && /* @__PURE__ */ jsx38("p", { className: "k-author", children: author }),
|
|
5209
|
+
avatar && /* @__PURE__ */ jsx38(Avatar, { type: "image", children: /* @__PURE__ */ jsx38("img", { src: avatar }) }),
|
|
7214
5210
|
props.children
|
|
7215
5211
|
]
|
|
7216
5212
|
}
|
|
7217
5213
|
);
|
|
7218
5214
|
};
|
|
7219
|
-
ChatMessageGroup.states =
|
|
7220
|
-
ChatMessageGroup.options =
|
|
5215
|
+
ChatMessageGroup.states = states18;
|
|
5216
|
+
ChatMessageGroup.options = options16;
|
|
7221
5217
|
ChatMessageGroup.className = CHATMESSAGEGROUP_CLASSNAME;
|
|
7222
|
-
ChatMessageGroup.defaultProps =
|
|
5218
|
+
ChatMessageGroup.defaultProps = defaultProps13;
|
|
7223
5219
|
|
|
7224
5220
|
// src/chat/chat-quick-replies.tsx
|
|
7225
|
-
import { jsx as
|
|
5221
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
7226
5222
|
var CHATQUICKREPLY_CLASSNAME = "k-quick-replies";
|
|
7227
|
-
var
|
|
7228
|
-
var
|
|
5223
|
+
var states19 = [];
|
|
5224
|
+
var options17 = {};
|
|
7229
5225
|
var defaultOptions2 = {
|
|
7230
5226
|
actions: ["Quick", "Reply", "Another quick", "Reply with different length"]
|
|
7231
5227
|
};
|
|
@@ -7238,11 +5234,11 @@ var ChatQuickReply = (props) => {
|
|
|
7238
5234
|
if (actions) {
|
|
7239
5235
|
actions.map((action, index) => {
|
|
7240
5236
|
children.push(
|
|
7241
|
-
/* @__PURE__ */
|
|
5237
|
+
/* @__PURE__ */ jsx39("span", { className: "k-quick-reply", children: action }, index)
|
|
7242
5238
|
);
|
|
7243
5239
|
});
|
|
7244
5240
|
}
|
|
7245
|
-
return /* @__PURE__ */
|
|
5241
|
+
return /* @__PURE__ */ jsx39(
|
|
7246
5242
|
"div",
|
|
7247
5243
|
{
|
|
7248
5244
|
...other,
|
|
@@ -7254,65 +5250,65 @@ var ChatQuickReply = (props) => {
|
|
|
7254
5250
|
}
|
|
7255
5251
|
);
|
|
7256
5252
|
};
|
|
7257
|
-
ChatQuickReply.states =
|
|
7258
|
-
ChatQuickReply.options =
|
|
5253
|
+
ChatQuickReply.states = states19;
|
|
5254
|
+
ChatQuickReply.options = options17;
|
|
7259
5255
|
ChatQuickReply.className = CHATQUICKREPLY_CLASSNAME;
|
|
7260
5256
|
ChatQuickReply.defaultOptions = defaultOptions2;
|
|
7261
5257
|
|
|
7262
5258
|
// src/chat/tests/chat.tsx
|
|
7263
|
-
import { Fragment as
|
|
5259
|
+
import { Fragment as Fragment15, jsx as jsx40, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
7264
5260
|
var styles = `
|
|
7265
5261
|
/* needed for test */
|
|
7266
5262
|
.k-chat .k-chat-bubble {
|
|
7267
5263
|
white-space: normal;
|
|
7268
5264
|
}
|
|
7269
5265
|
`;
|
|
7270
|
-
var chat_default = () => /* @__PURE__ */
|
|
7271
|
-
/* @__PURE__ */
|
|
7272
|
-
/* @__PURE__ */
|
|
7273
|
-
/* @__PURE__ */
|
|
7274
|
-
/* @__PURE__ */
|
|
7275
|
-
/* @__PURE__ */
|
|
7276
|
-
/* @__PURE__ */
|
|
7277
|
-
/* @__PURE__ */
|
|
7278
|
-
/* @__PURE__ */
|
|
7279
|
-
/* @__PURE__ */
|
|
7280
|
-
/* @__PURE__ */
|
|
7281
|
-
/* @__PURE__ */
|
|
7282
|
-
/* @__PURE__ */
|
|
7283
|
-
/* @__PURE__ */
|
|
7284
|
-
/* @__PURE__ */
|
|
5266
|
+
var chat_default = () => /* @__PURE__ */ jsxs12(Fragment15, { children: [
|
|
5267
|
+
/* @__PURE__ */ jsx40("style", { children: styles }),
|
|
5268
|
+
/* @__PURE__ */ jsxs12("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
|
|
5269
|
+
/* @__PURE__ */ jsx40("section", { children: /* @__PURE__ */ jsxs12(Chat, { children: [
|
|
5270
|
+
/* @__PURE__ */ jsx40("div", { className: "k-timestamp", children: "Bubbles" }),
|
|
5271
|
+
/* @__PURE__ */ jsx40(ChatMessageGroup, { children: /* @__PURE__ */ jsx40(ChatMessage, { className: "k-only" }) }),
|
|
5272
|
+
/* @__PURE__ */ jsx40(ChatMessageGroup, { alt: true, children: /* @__PURE__ */ jsx40(ChatMessage, { className: "k-only" }) }),
|
|
5273
|
+
/* @__PURE__ */ jsx40("div", { className: "k-timestamp", children: "Quick Replies" }),
|
|
5274
|
+
/* @__PURE__ */ jsx40(ChatQuickReply, {}),
|
|
5275
|
+
/* @__PURE__ */ jsx40("div", { className: "k-timestamp", children: "Card Deck" }),
|
|
5276
|
+
/* @__PURE__ */ jsxs12(CardDeck, { children: [
|
|
5277
|
+
/* @__PURE__ */ jsx40(Card, { children: /* @__PURE__ */ jsxs12(CardBody, { children: [
|
|
5278
|
+
/* @__PURE__ */ jsx40("h5", { className: "k-card-title", children: "Card Title" }),
|
|
5279
|
+
/* @__PURE__ */ jsx40("h6", { className: "k-card-subtitle", children: "Card Subtitle" }),
|
|
5280
|
+
/* @__PURE__ */ jsx40("p", { children: "Some quick example text to build on the card title and make up the bulk of the card's content." })
|
|
7285
5281
|
] }) }),
|
|
7286
|
-
/* @__PURE__ */
|
|
7287
|
-
/* @__PURE__ */
|
|
7288
|
-
/* @__PURE__ */
|
|
7289
|
-
/* @__PURE__ */
|
|
5282
|
+
/* @__PURE__ */ jsx40(Card, { children: /* @__PURE__ */ jsxs12(CardBody, { children: [
|
|
5283
|
+
/* @__PURE__ */ jsx40("h5", { className: "k-card-title", children: "Card Title" }),
|
|
5284
|
+
/* @__PURE__ */ jsx40("h6", { className: "k-card-subtitle", children: "Card Subtitle" }),
|
|
5285
|
+
/* @__PURE__ */ jsx40("p", { children: "Some quick example text to build on the card title and make up the bulk of the card's content." })
|
|
7290
5286
|
] }) }),
|
|
7291
|
-
/* @__PURE__ */
|
|
7292
|
-
/* @__PURE__ */
|
|
7293
|
-
/* @__PURE__ */
|
|
7294
|
-
/* @__PURE__ */
|
|
5287
|
+
/* @__PURE__ */ jsx40(Card, { children: /* @__PURE__ */ jsxs12(CardBody, { children: [
|
|
5288
|
+
/* @__PURE__ */ jsx40("h5", { className: "k-card-title", children: "Card Title" }),
|
|
5289
|
+
/* @__PURE__ */ jsx40("h6", { className: "k-card-subtitle", children: "Card Subtitle" }),
|
|
5290
|
+
/* @__PURE__ */ jsx40("p", { children: "Some quick example text to build on the card title and make up the bulk of the card's content." })
|
|
7295
5291
|
] }) }),
|
|
7296
|
-
/* @__PURE__ */
|
|
7297
|
-
/* @__PURE__ */
|
|
7298
|
-
/* @__PURE__ */
|
|
7299
|
-
/* @__PURE__ */
|
|
5292
|
+
/* @__PURE__ */ jsx40(Card, { children: /* @__PURE__ */ jsxs12(CardBody, { children: [
|
|
5293
|
+
/* @__PURE__ */ jsx40("h5", { className: "k-card-title", children: "Card Title" }),
|
|
5294
|
+
/* @__PURE__ */ jsx40("h6", { className: "k-card-subtitle", children: "Card Subtitle" }),
|
|
5295
|
+
/* @__PURE__ */ jsx40("p", { children: "Some quick example text to build on the card title and make up the bulk of the card's content." })
|
|
7300
5296
|
] }) })
|
|
7301
5297
|
] })
|
|
7302
5298
|
] }) }),
|
|
7303
|
-
/* @__PURE__ */
|
|
7304
|
-
/* @__PURE__ */
|
|
7305
|
-
/* @__PURE__ */
|
|
7306
|
-
/* @__PURE__ */
|
|
7307
|
-
/* @__PURE__ */
|
|
7308
|
-
/* @__PURE__ */
|
|
5299
|
+
/* @__PURE__ */ jsx40("section", { children: /* @__PURE__ */ jsxs12(Chat, { showToolbar: false, children: [
|
|
5300
|
+
/* @__PURE__ */ jsx40("div", { className: "k-timestamp", children: "Bubbles without avatar" }),
|
|
5301
|
+
/* @__PURE__ */ jsx40(ChatMessageGroup, { avatar: null, children: /* @__PURE__ */ jsx40(ChatMessage, { className: "k-only" }) }),
|
|
5302
|
+
/* @__PURE__ */ jsx40(ChatMessageGroup, { alt: true, avatar: null, children: /* @__PURE__ */ jsx40(ChatMessage, { className: "k-only" }) }),
|
|
5303
|
+
/* @__PURE__ */ jsx40(ChatMessageGroup, { avatar: null, children: /* @__PURE__ */ jsx40(ChatMessage, { className: "k-only", text: "Very long message text that tests message overflowing behavior. Very long message text that tests message overflowing behavior." }) }),
|
|
5304
|
+
/* @__PURE__ */ jsx40(ChatMessageGroup, { alt: true, avatar: null, children: /* @__PURE__ */ jsx40(ChatMessage, { className: "k-only", text: "Unusually_long_word_that_tests_word_break_behavior__unusually_long_word_that_tests_word_break_behavior" }) })
|
|
7309
5305
|
] }) }),
|
|
7310
|
-
/* @__PURE__ */
|
|
7311
|
-
/* @__PURE__ */
|
|
7312
|
-
/* @__PURE__ */
|
|
7313
|
-
/* @__PURE__ */
|
|
7314
|
-
/* @__PURE__ */
|
|
7315
|
-
/* @__PURE__ */
|
|
5306
|
+
/* @__PURE__ */ jsx40("section", { children: /* @__PURE__ */ jsxs12(Chat, { showToolbar: false, children: [
|
|
5307
|
+
/* @__PURE__ */ jsx40("div", { className: "k-timestamp", children: "Messages with attachment list" }),
|
|
5308
|
+
/* @__PURE__ */ jsx40(ChatMessageGroup, { avatar: null, children: /* @__PURE__ */ jsx40(ChatMessage, { className: "k-only", text: "A message with attachment" }) }),
|
|
5309
|
+
/* @__PURE__ */ jsx40("div", { className: "k-card-list", children: /* @__PURE__ */ jsx40(Card, { children: /* @__PURE__ */ jsx40(CardBody, { children: /* @__PURE__ */ jsx40("img", { width: "200px", height: "200px", src: "/packages/html/assets/sofia.jpg" }) }) }) }),
|
|
5310
|
+
/* @__PURE__ */ jsx40(ChatMessageGroup, { alt: true, avatar: null, children: /* @__PURE__ */ jsx40(ChatMessage, { className: "k-only", text: "Another message with attachment" }) }),
|
|
5311
|
+
/* @__PURE__ */ jsx40("div", { className: "k-card-list", children: /* @__PURE__ */ jsx40(Card, { children: /* @__PURE__ */ jsx40(CardBody, { children: /* @__PURE__ */ jsx40("img", { width: "200px", height: "200px", src: "/packages/html/assets/sofia.jpg" }) }) }) })
|
|
7316
5312
|
] }) })
|
|
7317
5313
|
] })
|
|
7318
5314
|
] });
|