@steroidsjs/bootstrap 3.0.0-beta.6 → 3.0.0-beta.61
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/README.md +1 -2
- package/content/Accordion/AccordionItemView.d.ts +2 -0
- package/content/{Collapse/CollapseItemView.js → Accordion/AccordionItemView.js} +47 -22
- package/content/Accordion/AccordionItemView.scss +209 -0
- package/content/Accordion/AccordionView.d.ts +2 -0
- package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
- package/content/{Collapse/CollapseView.scss → Accordion/AccordionView.scss} +3 -4
- package/content/Alert/AlertView.js +3 -2
- package/content/Alert/AlertView.scss +19 -4
- package/content/Avatar/AvatarView.js +2 -3
- package/content/Avatar/AvatarView.scss +32 -39
- package/content/Badge/BadgeView.d.ts +3 -0
- package/content/Badge/BadgeView.js +25 -0
- package/content/Badge/BadgeView.scss +135 -0
- package/content/Calendar/CalendarView.js +1 -1
- package/content/Calendar/CalendarView.scss +240 -161
- package/content/Calendar/CaptionElement.js +23 -15
- package/content/Calendar/CaptionElement.scss +164 -106
- package/content/Card/CardView.js +37 -14
- package/content/Card/CardView.scss +139 -107
- package/content/CopyToClipboard/CopyToClipboardView.d.ts +3 -0
- package/content/CopyToClipboard/CopyToClipboardView.js +19 -0
- package/content/CopyToClipboard/CopyToClipboardView.scss +41 -0
- package/content/Detail/DetailView.scss +75 -52
- package/content/DropDown/DropDownView.d.ts +0 -1
- package/content/DropDown/DropDownView.js +6 -4
- package/content/DropDown/DropDownView.scss +196 -27
- package/content/Icon/IconView.d.ts +1 -2
- package/content/Icon/IconView.js +2 -2
- package/content/Icon/IconView.scss +1 -23
- package/content/Menu/MenuItemView.d.ts +2 -0
- package/content/Menu/MenuItemView.js +15 -0
- package/content/Menu/MenuItemView.scss +63 -0
- package/content/Menu/MenuView.d.ts +2 -0
- package/content/Menu/MenuView.js +30 -0
- package/content/Menu/MenuView.scss +43 -0
- package/form/AutoCompleteField/AutoCompleteFieldView.d.ts +1 -2
- package/form/AutoCompleteField/AutoCompleteFieldView.js +62 -8
- package/form/AutoCompleteField/AutoCompleteFieldView.scss +199 -142
- package/form/Button/ButtonView.d.ts +1 -2
- package/form/Button/ButtonView.js +13 -9
- package/form/Button/ButtonView.scss +168 -68
- package/form/CheckboxField/CheckboxFieldView.d.ts +1 -2
- package/form/CheckboxField/CheckboxFieldView.js +6 -4
- package/form/CheckboxField/CheckboxFieldView.scss +195 -36
- package/form/CheckboxListField/CheckboxListFieldView.d.ts +1 -2
- package/form/CheckboxListField/CheckboxListFieldView.js +18 -15
- package/form/CheckboxListField/CheckboxListFieldView.scss +7 -41
- package/form/DateField/DateFieldView.js +7 -6
- package/form/DateField/DateFieldView.scss +7 -74
- package/form/DateRangeField/DateRangeFieldView.js +10 -13
- package/form/DateRangeField/DateRangeFieldView.scss +29 -78
- package/form/DateTimeField/DateTimeFieldView.d.ts +1 -2
- package/form/DateTimeField/DateTimeFieldView.js +5 -5
- package/form/DateTimeField/DateTimeFieldView.scss +7 -109
- package/form/DateTimeRangeField/DateTimeRangeFieldView.js +9 -7
- package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +25 -90
- package/form/DropDownField/DropDownFieldView.js +35 -47
- package/form/DropDownField/DropDownFieldView.scss +388 -182
- package/form/DropDownField/utils.d.ts +2 -0
- package/form/DropDownField/utils.js +15 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.d.ts +2 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.js +81 -0
- package/form/DropDownFieldItem/DropDownFieldItemView.scss +218 -0
- package/form/FieldLayout/FieldLayoutView.d.ts +1 -2
- package/form/FieldLayout/FieldLayoutView.js +13 -9
- package/form/FieldLayout/FieldLayoutView.scss +114 -19
- package/form/FieldList/FieldListItemView.js +6 -4
- package/form/FieldList/FieldListItemView.scss +17 -39
- package/form/FieldList/FieldListView.js +9 -8
- package/form/FieldList/FieldListView.scss +58 -18
- package/form/FieldSet/FieldSetView.js +4 -2
- package/form/FieldSet/FieldSetView.scss +39 -0
- package/form/FileField/FileFieldItemView.d.ts +1 -2
- package/form/FileField/FileFieldItemView.js +31 -6
- package/form/FileField/FileFieldItemView.scss +254 -13
- package/form/FileField/FileFieldView.d.ts +1 -2
- package/form/FileField/FileFieldView.js +6 -8
- package/form/FileField/FileFieldView.scss +34 -4
- package/form/Form/FormView.js +1 -4
- package/form/Form/FormView.scss +1 -14
- package/form/HtmlField/HtmlFieldView.d.ts +1 -2
- package/form/HtmlField/HtmlFieldView.scss +6 -3
- package/form/ImageField/ImageFieldView.js +1 -1
- package/form/InputField/InputFieldView.d.ts +1 -2
- package/form/InputField/InputFieldView.js +30 -13
- package/form/InputField/InputFieldView.scss +265 -99
- package/form/NumberField/NumberFieldView.d.ts +1 -2
- package/form/NumberField/NumberFieldView.js +19 -13
- package/form/NumberField/NumberFieldView.scss +195 -89
- package/form/PasswordField/PasswordFieldView.d.ts +1 -2
- package/form/PasswordField/PasswordFieldView.js +11 -9
- package/form/PasswordField/PasswordFieldView.scss +231 -63
- package/form/RadioField/RadioFieldView.d.ts +2 -0
- package/form/RadioField/RadioFieldView.js +57 -0
- package/form/RadioField/RadioFieldView.scss +226 -0
- package/form/RadioListField/RadioListFieldView.d.ts +1 -2
- package/form/RadioListField/RadioListFieldView.js +20 -16
- package/form/RadioListField/RadioListFieldView.scss +11 -1
- package/form/ReCaptchaField/ReCaptchaFieldView.d.ts +1 -2
- package/form/ReCaptchaField/ReCaptchaFieldView.js +2 -2
- package/form/SliderField/SliderFieldView.d.ts +1 -2
- package/form/SliderField/SliderFieldView.js +1 -1
- package/form/SliderField/SliderFieldView.scss +336 -299
- package/form/SwitcherField/SwitcherFieldView.d.ts +1 -2
- package/form/SwitcherField/SwitcherFieldView.js +12 -7
- package/form/SwitcherField/SwitcherFieldView.scss +188 -1
- package/form/TextField/TextFieldView.d.ts +1 -2
- package/form/TextField/TextFieldView.js +10 -2
- package/form/TextField/TextFieldView.scss +144 -2
- package/form/TimeField/TimeFieldView.d.ts +1 -2
- package/icons/index.d.ts +2 -0
- package/icons/index.js +103 -0
- package/icons/svgs/add.svg +4 -0
- package/icons/svgs/add_square.svg +5 -0
- package/icons/svgs/arrow_down_18x18.svg +4 -0
- package/icons/svgs/arrow_down_24x24.svg +4 -0
- package/icons/svgs/arrow_drop_down_10x10.svg +3 -0
- package/icons/svgs/arrow_left_18x18.svg +4 -0
- package/icons/svgs/arrow_left_24x24.svg +4 -0
- package/icons/svgs/arrow_right_18x18.svg +4 -0
- package/icons/svgs/arrow_right_24x24.svg +4 -0
- package/icons/svgs/arrow_up_18x18.svg +4 -0
- package/icons/svgs/arrow_up_24x24.svg +4 -0
- package/icons/svgs/blank.svg +4 -0
- package/icons/svgs/calendar_check.svg +5 -0
- package/icons/svgs/calendar_range.svg +8 -0
- package/icons/svgs/cancel_ellips.svg +4 -0
- package/icons/svgs/chart.svg +6 -0
- package/icons/svgs/checkmark_12x12.svg +4 -0
- package/icons/svgs/checkmark_8x8.svg +4 -0
- package/icons/svgs/circle_cross_12x12.svg +4 -0
- package/icons/svgs/circle_cross_16x16.svg +4 -0
- package/icons/svgs/circle_cross_18x18.svg +4 -0
- package/icons/svgs/clip.svg +3 -0
- package/icons/svgs/copy.svg +5 -0
- package/icons/svgs/cross_12x12.svg +4 -0
- package/icons/svgs/cross_4x4.svg +3 -0
- package/icons/svgs/cross_8x8.svg +4 -0
- package/icons/svgs/cut.svg +3 -0
- package/icons/svgs/date_range.svg +8 -0
- package/icons/svgs/default_16x16.svg +4 -0
- package/icons/svgs/default_24x24.svg +11 -0
- package/icons/svgs/double_arrow_down.svg +5 -0
- package/icons/svgs/double_arrow_left.svg +5 -0
- package/icons/svgs/double_arrow_right.svg +5 -0
- package/icons/svgs/double_arrow_up.svg +5 -0
- package/icons/svgs/doughnut_chart.svg +5 -0
- package/icons/svgs/edit.svg +4 -0
- package/icons/svgs/error_16x16.svg +5 -0
- package/icons/svgs/error_24x24.svg +12 -0
- package/icons/svgs/expand_down.svg +3 -0
- package/icons/svgs/expand_left.svg +3 -0
- package/icons/svgs/expand_left_double.svg +4 -0
- package/icons/svgs/expand_right.svg +3 -0
- package/icons/svgs/expand_right_double.svg +4 -0
- package/icons/svgs/expand_up.svg +3 -0
- package/icons/svgs/file_dock.svg +6 -0
- package/icons/svgs/filter.svg +3 -0
- package/icons/svgs/fluid.svg +4 -0
- package/icons/svgs/folder.svg +3 -0
- package/icons/svgs/group.svg +8 -0
- package/icons/svgs/home.svg +4 -0
- package/icons/svgs/img_box.svg +5 -0
- package/icons/svgs/import.svg +4 -0
- package/icons/svgs/info_16x16.svg +5 -0
- package/icons/svgs/info_24x24.svg +12 -0
- package/icons/svgs/left_12x12.svg +3 -0
- package/icons/svgs/loading_default.svg +3 -0
- package/icons/svgs/loading_icon_thick.svg +3 -0
- package/icons/svgs/loading_purple.svg +9 -0
- package/icons/svgs/map.svg +7 -0
- package/icons/svgs/menu_dots.svg +5 -0
- package/icons/svgs/menu_left.svg +5 -0
- package/icons/svgs/minis_sq.svg +4 -0
- package/icons/svgs/paste.svg +8 -0
- package/icons/svgs/pie_chart.svg +5 -0
- package/icons/svgs/pin.svg +4 -0
- package/icons/svgs/sad.svg +6 -0
- package/icons/svgs/search.svg +4 -0
- package/icons/svgs/setting_line.svg +3 -0
- package/icons/svgs/share.svg +7 -0
- package/icons/svgs/star.svg +3 -0
- package/icons/svgs/success_16x16.svg +4 -0
- package/icons/svgs/success_24x24.svg +11 -0
- package/icons/svgs/support.svg +3 -0
- package/icons/svgs/trash.svg +6 -0
- package/icons/svgs/upload.svg +4 -0
- package/icons/svgs/user.svg +4 -0
- package/icons/svgs/view.svg +4 -0
- package/icons/svgs/view_hide.svg +5 -0
- package/icons/svgs/warning_16x16.svg +5 -0
- package/icons/svgs/warning_24x24.svg +12 -0
- package/index.d.ts +26 -2
- package/index.js +28 -4
- package/index.scss +16 -3
- package/layout/Header/HeaderView.scss +3 -3
- package/layout/Loader/LoaderView.d.ts +2 -2
- package/layout/Loader/LoaderView.js +6 -2
- package/layout/Loader/LoaderView.scss +67 -22
- package/layout/Notifications/NotificationsItemView.d.ts +1 -2
- package/layout/Notifications/NotificationsView.d.ts +1 -2
- package/layout/ProgressBar/CircleProgressBarView.d.ts +1 -2
- package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
- package/layout/Tooltip/TooltipView.d.ts +1 -2
- package/layout/Tooltip/TooltipView.js +6 -6
- package/layout/Tooltip/TooltipView.scss +45 -37
- package/list/CheckboxColumn/CheckboxColumnView.d.ts +1 -2
- package/list/CheckboxColumn/CheckboxColumnView.js +2 -1
- package/list/ControlsColumnView/ControlsColumnView.d.ts +1 -2
- package/list/Grid/GridView.js +8 -4
- package/list/Grid/GridView.scss +148 -37
- package/list/Grid/views/ContentColumnView/ContentColumnView.d.ts +3 -0
- package/list/Grid/views/ContentColumnView/ContentColumnView.js +51 -0
- package/list/Grid/views/ContentColumnView/ContentColumnView.scss +88 -0
- package/list/Grid/views/ContentColumnView/index.d.ts +2 -0
- package/list/Grid/views/ContentColumnView/index.js +7 -0
- package/list/List/ListItemView.d.ts +1 -2
- package/list/List/ListView.js +5 -7
- package/list/List/ListView.scss +32 -1
- package/list/Pagination/PaginationButtonView.js +34 -5
- package/list/Pagination/PaginationButtonView.scss +265 -1
- package/list/Pagination/PaginationMoreView.js +1 -1
- package/list/Pagination/PaginationMoreView.scss +4 -1
- package/modal/Modal/ModalView.d.ts +1 -2
- package/modal/Modal/ModalView.js +4 -7
- package/modal/Modal/ModalView.scss +128 -93
- package/modal/TwoFactorModal/TwoFactorModalView.d.ts +1 -2
- package/nav/Breadcrubms/BreadcrumbsView.js +9 -1
- package/nav/Breadcrubms/BreadcrumbsView.scss +49 -0
- package/nav/ButtonGroup/ButtonGroupView.d.ts +2 -0
- package/nav/ButtonGroup/ButtonGroupView.js +32 -0
- package/nav/ButtonGroup/ButtonGroupView.scss +83 -0
- package/nav/Controls/ControlsView.d.ts +1 -2
- package/nav/Controls/ControlsView.scss +9 -3
- package/nav/Nav/NavBarView.d.ts +1 -2
- package/nav/Nav/NavButtonView.d.ts +1 -2
- package/nav/Nav/NavIconView.d.ts +1 -2
- package/nav/Nav/NavIconView.js +1 -1
- package/nav/Nav/NavLinkView.d.ts +1 -2
- package/nav/Nav/NavListView.d.ts +1 -2
- package/nav/Nav/NavListView.js +1 -1
- package/nav/Nav/NavTabsView.d.ts +1 -2
- package/nav/Nav/NavTabsView.js +1 -1
- package/nav/Tree/TreeView.d.ts +1 -2
- package/nav/Tree/TreeView.scss +14 -11
- package/package.json +56 -56
- package/scss/animations/index.scss +1 -0
- package/scss/animations/loading.scss +13 -0
- package/scss/fonts.scss +6 -0
- package/scss/mixins/button.scss +80 -24
- package/scss/mixins/customMixins.scss +5 -0
- package/scss/mixins/date.scss +397 -0
- package/scss/mixins/index.scss +4 -1
- package/scss/mixins/scroll.scss +31 -0
- package/scss/mixins/typography.scss +26 -0
- package/scss/variables/common/colors.scss +119 -69
- package/scss/variables/common/media.scss +2 -0
- package/scss/variables/common/typography.scss +96 -28
- package/scss/variables/common/variables.scss +1 -0
- package/scss/variables/components/input.scss +7 -6
- package/scss/variables/index.scss +3 -2
- package/scss/variables/normalize.scss +25 -0
- package/typography/Text/TextView.d.ts +3 -0
- package/typography/Text/TextView.js +46 -0
- package/typography/Text/TextView.scss +16 -0
- package/typography/Title/TitleView.d.ts +3 -0
- package/typography/Title/TitleView.js +50 -0
- package/typography/Title/TitleView.scss +16 -0
- package/utils/renderIcon.d.ts +9 -0
- package/utils/renderIcon.js +27 -0
- package/content/Collapse/CollapseItemView.d.ts +0 -2
- package/content/Collapse/CollapseItemView.scss +0 -88
- package/content/Collapse/CollapseView.d.ts +0 -2
- package/icons/fontawesome.d.ts +0 -2
- package/icons/fontawesome.js +0 -254
- package/list/List/ListItemView.scss +0 -3
- package/scss/mixins/card.scss +0 -26
- package/scss/variables/components/card.scss +0 -20
package/index.d.ts
CHANGED
|
@@ -2,6 +2,12 @@ declare const _default: {
|
|
|
2
2
|
'crud.CrudView': {
|
|
3
3
|
lazy: () => any;
|
|
4
4
|
};
|
|
5
|
+
'content.MenuView': {
|
|
6
|
+
lazy: () => any;
|
|
7
|
+
};
|
|
8
|
+
'content.MenuItemView': {
|
|
9
|
+
lazy: () => any;
|
|
10
|
+
};
|
|
5
11
|
'content.DropDownView': {
|
|
6
12
|
lazy: () => any;
|
|
7
13
|
};
|
|
@@ -23,6 +29,12 @@ declare const _default: {
|
|
|
23
29
|
'content.IconView': {
|
|
24
30
|
lazy: () => any;
|
|
25
31
|
};
|
|
32
|
+
'content.BadgeView': {
|
|
33
|
+
lazy: () => any;
|
|
34
|
+
};
|
|
35
|
+
'content.CopyToClipboardView': {
|
|
36
|
+
lazy: () => any;
|
|
37
|
+
};
|
|
26
38
|
'form.AutoCompleteFieldView': {
|
|
27
39
|
lazy: () => any;
|
|
28
40
|
};
|
|
@@ -32,10 +44,10 @@ declare const _default: {
|
|
|
32
44
|
'content.CardView': {
|
|
33
45
|
lazy: () => any;
|
|
34
46
|
};
|
|
35
|
-
'content.
|
|
47
|
+
'content.AccordionView': {
|
|
36
48
|
lazy: () => any;
|
|
37
49
|
};
|
|
38
|
-
'content.
|
|
50
|
+
'content.AccordionItemView': {
|
|
39
51
|
lazy: () => any;
|
|
40
52
|
};
|
|
41
53
|
'form.CheckboxFieldView': {
|
|
@@ -161,6 +173,9 @@ declare const _default: {
|
|
|
161
173
|
'list.GridView': {
|
|
162
174
|
lazy: () => any;
|
|
163
175
|
};
|
|
176
|
+
'list.ContentColumnView': {
|
|
177
|
+
lazy: () => any;
|
|
178
|
+
};
|
|
164
179
|
'list.ListView': {
|
|
165
180
|
lazy: () => any;
|
|
166
181
|
};
|
|
@@ -215,5 +230,14 @@ declare const _default: {
|
|
|
215
230
|
'nav.TreeView': {
|
|
216
231
|
lazy: () => any;
|
|
217
232
|
};
|
|
233
|
+
'nav.ButtonGroupView': {
|
|
234
|
+
lazy: () => any;
|
|
235
|
+
};
|
|
236
|
+
'typography.TextView': {
|
|
237
|
+
lazy: () => any;
|
|
238
|
+
};
|
|
239
|
+
'typography.TitleView': {
|
|
240
|
+
lazy: () => any;
|
|
241
|
+
};
|
|
218
242
|
};
|
|
219
243
|
export default _default;
|
package/index.js
CHANGED
|
@@ -5,6 +5,12 @@ exports["default"] = {
|
|
|
5
5
|
'crud.CrudView': {
|
|
6
6
|
lazy: function () { return require('./crud/Crud/CrudView')["default"]; }
|
|
7
7
|
},
|
|
8
|
+
'content.MenuView': {
|
|
9
|
+
lazy: function () { return require('./content/Menu/MenuView')["default"]; }
|
|
10
|
+
},
|
|
11
|
+
'content.MenuItemView': {
|
|
12
|
+
lazy: function () { return require('./content/Menu/MenuItemView')["default"]; }
|
|
13
|
+
},
|
|
8
14
|
'content.DropDownView': {
|
|
9
15
|
lazy: function () { return require('./content/DropDown/DropDownView')["default"]; }
|
|
10
16
|
},
|
|
@@ -26,6 +32,12 @@ exports["default"] = {
|
|
|
26
32
|
'content.IconView': {
|
|
27
33
|
lazy: function () { return require('./content/Icon/IconView')["default"]; }
|
|
28
34
|
},
|
|
35
|
+
'content.BadgeView': {
|
|
36
|
+
lazy: function () { return require('./content/Badge/BadgeView')["default"]; }
|
|
37
|
+
},
|
|
38
|
+
'content.CopyToClipboardView': {
|
|
39
|
+
lazy: function () { return require('./content/CopyToClipboard/CopyToClipboardView')["default"]; }
|
|
40
|
+
},
|
|
29
41
|
'form.AutoCompleteFieldView': {
|
|
30
42
|
lazy: function () { return require('./form/AutoCompleteField/AutoCompleteFieldView')["default"]; }
|
|
31
43
|
},
|
|
@@ -35,11 +47,11 @@ exports["default"] = {
|
|
|
35
47
|
'content.CardView': {
|
|
36
48
|
lazy: function () { return require('./content/Card/CardView')["default"]; }
|
|
37
49
|
},
|
|
38
|
-
'content.
|
|
39
|
-
lazy: function () { return require('./content/
|
|
50
|
+
'content.AccordionView': {
|
|
51
|
+
lazy: function () { return require('./content/Accordion/AccordionView')["default"]; }
|
|
40
52
|
},
|
|
41
|
-
'content.
|
|
42
|
-
lazy: function () { return require('./content/
|
|
53
|
+
'content.AccordionItemView': {
|
|
54
|
+
lazy: function () { return require('./content/Accordion/AccordionItemView')["default"]; }
|
|
43
55
|
},
|
|
44
56
|
'form.CheckboxFieldView': {
|
|
45
57
|
lazy: function () { return require('./form/CheckboxField/CheckboxFieldView')["default"]; }
|
|
@@ -164,6 +176,9 @@ exports["default"] = {
|
|
|
164
176
|
'list.GridView': {
|
|
165
177
|
lazy: function () { return require('./list/Grid/GridView')["default"]; }
|
|
166
178
|
},
|
|
179
|
+
'list.ContentColumnView': {
|
|
180
|
+
lazy: function () { return require('./list/Grid/views/ContentColumnView/ContentColumnView')["default"]; }
|
|
181
|
+
},
|
|
167
182
|
'list.ListView': {
|
|
168
183
|
lazy: function () { return require('./list/List/ListView')["default"]; }
|
|
169
184
|
},
|
|
@@ -217,5 +232,14 @@ exports["default"] = {
|
|
|
217
232
|
},
|
|
218
233
|
'nav.TreeView': {
|
|
219
234
|
lazy: function () { return require('./nav/Tree/TreeView')["default"]; }
|
|
235
|
+
},
|
|
236
|
+
'nav.ButtonGroupView': {
|
|
237
|
+
lazy: function () { return require('./nav/ButtonGroup/ButtonGroupView')["default"]; }
|
|
238
|
+
},
|
|
239
|
+
'typography.TextView': {
|
|
240
|
+
lazy: function () { return require('./typography/Text/TextView')["default"]; }
|
|
241
|
+
},
|
|
242
|
+
'typography.TitleView': {
|
|
243
|
+
lazy: function () { return require('./typography/Title/TitleView')["default"]; }
|
|
220
244
|
}
|
|
221
245
|
};
|
package/index.scss
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
@import './scss/mixins';
|
|
2
2
|
@import './scss/variables';
|
|
3
|
+
@import './scss/animations';
|
|
4
|
+
@import './scss/fonts';
|
|
3
5
|
|
|
4
6
|
@import './crud/Crud/CrudView';
|
|
5
7
|
@import './content/Alert/AlertView';
|
|
6
8
|
@import './content/Avatar/AvatarView';
|
|
7
9
|
@import './content/Avatar/AvatarGroupView';
|
|
10
|
+
@import './content/Badge/BadgeView';
|
|
8
11
|
@import './content/Calendar/CalendarView';
|
|
9
12
|
@import './content/Calendar/CaptionElement';
|
|
10
13
|
@import './content/Card/CardView';
|
|
11
|
-
@import './content/
|
|
12
|
-
@import './content/
|
|
14
|
+
@import './content/Accordion/AccordionView';
|
|
15
|
+
@import './content/Accordion/AccordionItemView';
|
|
13
16
|
@import './content/Detail/DetailView';
|
|
17
|
+
@import './content/DropDown/DropDownView.scss';
|
|
18
|
+
@import './content/Menu/MenuItemView';
|
|
19
|
+
@import './content/Menu/MenuView';
|
|
20
|
+
@import './content/Icon/IconView';
|
|
21
|
+
@import './content/CopyToClipboard/CopyToClipboardView';
|
|
14
22
|
@import './form/AutoCompleteField/AutoCompleteFieldView';
|
|
15
23
|
@import './form/Button/ButtonView';
|
|
16
24
|
@import './form/CheckboxField/CheckboxFieldView';
|
|
@@ -19,18 +27,21 @@
|
|
|
19
27
|
@import './form/DateRangeField/DateRangeFieldView';
|
|
20
28
|
@import './form/DateTimeField/DateTimeFieldView';
|
|
21
29
|
@import './form/DateTimeRangeField/DateTimeRangeFieldView';
|
|
30
|
+
@import './form/DropDownFieldItem/DropDownFieldItemView';
|
|
22
31
|
@import './form/DropDownField/DropDownFieldView';
|
|
23
32
|
@import './form/FieldLayout/FieldLayoutView';
|
|
24
33
|
@import './form/FieldList/FieldListView';
|
|
25
34
|
@import './form/FieldList/FieldListItemView';
|
|
26
35
|
@import './form/FileField/FileFieldView';
|
|
27
36
|
@import './form/FileField/FileFieldItemView';
|
|
37
|
+
@import './form/FieldSet/FieldSetView';
|
|
28
38
|
@import './form/Form/FormView';
|
|
29
39
|
@import './form/HtmlField/HtmlFieldView';
|
|
30
40
|
@import './form/InputField/InputFieldView';
|
|
31
41
|
@import './form/NumberField/NumberFieldView';
|
|
32
42
|
@import './form/PasswordField/PasswordFieldView';
|
|
33
43
|
@import './form/RateField/RateFieldView';
|
|
44
|
+
@import './form/RadioField/RadioFieldView';
|
|
34
45
|
@import './form/RadioListField/RadioListFieldView';
|
|
35
46
|
@import './form/ReCaptchaField/ReCaptchaFieldView';
|
|
36
47
|
@import './form/SliderField/SliderFieldView';
|
|
@@ -38,7 +49,6 @@
|
|
|
38
49
|
@import './form/TextField/TextFieldView';
|
|
39
50
|
@import './form/TimeField/TimeFieldView';
|
|
40
51
|
@import './form/TimeField/TimePanelView';
|
|
41
|
-
@import './content/Icon/IconView';
|
|
42
52
|
@import './layout/Header/HeaderView';
|
|
43
53
|
@import './layout/Tooltip/TooltipView';
|
|
44
54
|
@import './layout/Notifications/NotificationsView';
|
|
@@ -67,3 +77,6 @@
|
|
|
67
77
|
@import './nav/Nav/NavListView';
|
|
68
78
|
@import './nav/Nav/NavTabsView';
|
|
69
79
|
@import './nav/Tree/TreeView';
|
|
80
|
+
@import './nav/ButtonGroup/ButtonGroupView';
|
|
81
|
+
@import './typography/Text/TextView';
|
|
82
|
+
@import './typography/Title/TitleView';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default function LoaderView(props:
|
|
1
|
+
import { ILoaderViewProps } from '@steroidsjs/core/ui/layout/Loader/Loader';
|
|
2
|
+
export default function LoaderView(props: ILoaderViewProps): JSX.Element;
|
|
@@ -25,9 +25,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
exports.__esModule = true;
|
|
26
26
|
var React = __importStar(require("react"));
|
|
27
27
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
28
|
+
var content_1 = require("@steroidsjs/core/ui/content");
|
|
28
29
|
function LoaderView(props) {
|
|
29
30
|
var bem = (0, hooks_1.useBem)('LoaderView');
|
|
30
|
-
return (React.createElement("div", { className: bem.block(
|
|
31
|
-
|
|
31
|
+
return (React.createElement("div", { className: bem.block({
|
|
32
|
+
color: props.color,
|
|
33
|
+
size: props.size
|
|
34
|
+
}) },
|
|
35
|
+
React.createElement(content_1.Icon, { className: bem.element('icon'), name: 'loading_purple' })));
|
|
32
36
|
}
|
|
33
37
|
exports["default"] = LoaderView;
|
|
@@ -1,27 +1,72 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--gradient-color-primary-first: #651FFF;
|
|
3
|
+
--gradient-color-primary-second: #BA9BFF;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
html[data-theme="dark"] {
|
|
7
|
+
--gradient-color-primary-first: #9362FF;
|
|
8
|
+
--gradient-color-primary-second: #B898FF;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
$gradient-color-primary-first: var(--gradient-color-primary-first);
|
|
12
|
+
$gradient-color-primary-second: var(--gradient-color-primary-second);
|
|
13
|
+
|
|
1
14
|
.LoaderView {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
$root: &;
|
|
16
|
+
height: 100%;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
|
|
21
|
+
&_size {
|
|
22
|
+
&_sm {
|
|
23
|
+
svg {
|
|
24
|
+
height: 33px;
|
|
25
|
+
width: 33px;
|
|
26
|
+
path {
|
|
27
|
+
stroke-width: 4px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
&_md {
|
|
32
|
+
svg {
|
|
33
|
+
height: 44px;
|
|
34
|
+
width: 44px;
|
|
35
|
+
path {
|
|
36
|
+
stroke-width: 6px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
&_lg {
|
|
41
|
+
svg {
|
|
42
|
+
height: 55px;
|
|
43
|
+
width: 55px;
|
|
44
|
+
path {
|
|
45
|
+
stroke-width: 7px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&__icon {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
18
55
|
animation: Loader-spin 1.1s infinite linear;
|
|
19
|
-
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&_color_gradient {
|
|
59
|
+
svg stop:first-child {
|
|
60
|
+
stop-color: $gradient-color-primary-first;
|
|
61
|
+
}
|
|
62
|
+
svg stop:last-child {
|
|
63
|
+
stop-color: $gradient-color-primary-second;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
20
66
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
height: 5em;
|
|
67
|
+
@each $colorName, $colorMap in $color-themes {
|
|
68
|
+
&_color_#{$colorName} {
|
|
69
|
+
@include loader-color($colorMap, $colorName, $root);
|
|
25
70
|
}
|
|
26
71
|
}
|
|
27
72
|
}
|
|
@@ -35,4 +80,4 @@
|
|
|
35
80
|
-webkit-transform: rotate(360deg);
|
|
36
81
|
transform: rotate(360deg);
|
|
37
82
|
}
|
|
38
|
-
}
|
|
83
|
+
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { INotificationsItemViewProps } from '@steroidsjs/core/ui/layout/Notifications/Notifications';
|
|
3
|
-
export default function NotificationsItemView(props: INotificationsItemViewProps
|
|
2
|
+
export default function NotificationsItemView(props: INotificationsItemViewProps): JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { INotificationsViewProps } from '@steroidsjs/core/ui/layout/Notifications/Notifications';
|
|
3
|
-
export default function NotificationsView(props: INotificationsViewProps
|
|
2
|
+
export default function NotificationsView(props: INotificationsViewProps): JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { IProgressBarViewProps } from '@steroidsjs/core/ui/layout/ProgressBar/ProgressBar';
|
|
3
|
-
export default function CircleProgressBarView(props: IProgressBarViewProps
|
|
2
|
+
export default function CircleProgressBarView(props: IProgressBarViewProps): JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { IProgressBarViewProps } from '@steroidsjs/core/ui/layout/ProgressBar/ProgressBar';
|
|
3
|
-
export default function LineProgressBarView(props: IProgressBarViewProps
|
|
2
|
+
export default function LineProgressBarView(props: IProgressBarViewProps): JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { ITooltipViewProps } from '@steroidsjs/core/ui/layout/Tooltip/Tooltip';
|
|
2
|
-
|
|
3
|
-
export default function TooltipView(props: ITooltipViewProps & IBemHocOutput): JSX.Element;
|
|
2
|
+
export default function TooltipView(props: ITooltipViewProps): JSX.Element;
|
|
@@ -27,18 +27,18 @@ var React = __importStar(require("react"));
|
|
|
27
27
|
var react_1 = require("react");
|
|
28
28
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
29
29
|
function TooltipView(props) {
|
|
30
|
-
var _a;
|
|
31
30
|
var tooltipRef = (0, react_1.useRef)(null);
|
|
32
31
|
var arrowRef = (0, react_1.useRef)(null);
|
|
33
32
|
(0, react_1.useEffect)(function () {
|
|
34
33
|
props.calculatePosition(tooltipRef.current.getBoundingClientRect(), arrowRef.current.getBoundingClientRect());
|
|
35
34
|
}, [props.calculatePosition]);
|
|
36
35
|
var bem = (0, hooks_1.useBem)('TooltipView');
|
|
37
|
-
return (React.createElement("div", { ref: tooltipRef, className: bem
|
|
38
|
-
show: props.isTooltipVisible
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
React.createElement("div", { className: bem
|
|
36
|
+
return (React.createElement("div", { ref: tooltipRef, className: bem.block({
|
|
37
|
+
show: props.isTooltipVisible,
|
|
38
|
+
position: props.position
|
|
39
|
+
}), style: props.style },
|
|
40
|
+
React.createElement("div", { ref: arrowRef, className: bem.element('arrow', { position: props.position }), style: props.arrowPosition }),
|
|
41
|
+
React.createElement("div", { className: bem.element('content') },
|
|
42
42
|
React.createElement("span", null, props.content))));
|
|
43
43
|
}
|
|
44
44
|
exports["default"] = TooltipView;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
|
|
3
|
-
$tooltip-arrow-
|
|
4
|
-
$tooltip-arrow-
|
|
5
|
-
$tooltip-arrow-height: 8px;
|
|
3
|
+
$tooltip-arrow-width: 10px;
|
|
4
|
+
$tooltip-arrow-height: 10px;
|
|
6
5
|
$tooltip-arrow-border: math.div($tooltip-arrow-width, 2);
|
|
7
6
|
$tooltip-gap: 12px;
|
|
8
7
|
|
|
@@ -10,10 +9,18 @@ $tooltip-arrow-offset-horizontal: 20px;
|
|
|
10
9
|
$tooltip-arrow-offset-vertical-top: 15px;
|
|
11
10
|
$tooltip-arrow-offset-vertical-bottom: 7px;
|
|
12
11
|
|
|
12
|
+
$tooltip-background-color: rgba(65, 65, 65, 0.95);
|
|
13
|
+
|
|
13
14
|
.TooltipView {
|
|
14
15
|
position: absolute;
|
|
15
16
|
top: 0;
|
|
16
17
|
left: 0;
|
|
18
|
+
max-width: 300px;
|
|
19
|
+
word-break: break-all;
|
|
20
|
+
padding: 8px 12px;
|
|
21
|
+
border-radius: 6px;
|
|
22
|
+
background: $tooltip-background-color;
|
|
23
|
+
|
|
17
24
|
transform: translate(0,0);
|
|
18
25
|
opacity: 0;
|
|
19
26
|
transition: opacity .15s ease-in, transform .15s ease-in;
|
|
@@ -22,99 +29,100 @@ $tooltip-arrow-offset-vertical-bottom: 7px;
|
|
|
22
29
|
&_show {
|
|
23
30
|
opacity: 1;
|
|
24
31
|
}
|
|
25
|
-
|
|
32
|
+
|
|
33
|
+
&_position{
|
|
34
|
+
&_top, &_topLeft, &_topRight {
|
|
26
35
|
transform: translateY(-$tooltip-gap);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&_bottom, &_bottomLeft, &_bottomRight {
|
|
39
|
+
transform: translateY($tooltip-gap);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&_left, &_leftTop, &_leftBottom {
|
|
43
|
+
transform: translateX(-$tooltip-gap);
|
|
44
|
+
}
|
|
37
45
|
|
|
46
|
+
&_right, &_rightTop, &_rightBottom {
|
|
47
|
+
transform: translateX($tooltip-gap);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
38
50
|
|
|
39
51
|
&__arrow{
|
|
40
52
|
position: absolute;
|
|
41
|
-
|
|
53
|
+
|
|
42
54
|
width: $tooltip-arrow-width;
|
|
43
55
|
height: $tooltip-arrow-height;
|
|
44
56
|
|
|
45
57
|
border-style: solid;
|
|
46
58
|
border-width: math.div($tooltip-arrow-height, 2);
|
|
59
|
+
border-color: $tooltip-background-color;
|
|
47
60
|
box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
|
|
48
61
|
|
|
49
|
-
|
|
50
|
-
&_position-top, &_position-topLeft, &_position-topRight{
|
|
62
|
+
&_position_top, &_position_topLeft, &_position_topRight{
|
|
51
63
|
bottom: -$tooltip-arrow-border;
|
|
52
64
|
left: 50%;
|
|
53
|
-
|
|
54
65
|
border-top-color: transparent;
|
|
55
66
|
border-left-color: transparent;
|
|
56
|
-
border-right-color: $tooltip-arrow-color;
|
|
57
|
-
border-bottom-color: $tooltip-arrow-color;
|
|
58
67
|
transform: translateX(-50%) rotate(45deg);
|
|
59
68
|
}
|
|
60
|
-
&
|
|
69
|
+
&_position_topLeft{
|
|
61
70
|
left: $tooltip-arrow-offset-horizontal;
|
|
62
71
|
}
|
|
63
|
-
&
|
|
72
|
+
&_position_topRight{
|
|
64
73
|
left: unset;
|
|
65
74
|
right: $tooltip-arrow-offset-horizontal;
|
|
66
75
|
}
|
|
67
76
|
|
|
68
|
-
&
|
|
77
|
+
&_position_bottom, &_position_bottomLeft, &_position_bottomRight{
|
|
69
78
|
top: -$tooltip-arrow-border;
|
|
70
79
|
left: 50%;
|
|
71
|
-
border-top-color: $tooltip-arrow-color;
|
|
72
|
-
border-left-color: $tooltip-arrow-color;
|
|
73
80
|
border-right-color: transparent;
|
|
74
81
|
border-bottom-color: transparent;
|
|
75
82
|
transform: translateX(-50%) rotate(45deg);
|
|
76
83
|
}
|
|
77
|
-
&
|
|
84
|
+
&_position_bottomLeft{
|
|
78
85
|
left: $tooltip-arrow-offset-horizontal;
|
|
79
86
|
}
|
|
80
|
-
&
|
|
87
|
+
&_position_bottomRight{
|
|
81
88
|
left: unset;
|
|
82
89
|
right: $tooltip-arrow-offset-horizontal;
|
|
83
90
|
}
|
|
84
91
|
|
|
85
|
-
&
|
|
92
|
+
&_position_left, &_position_leftTop, &_position_leftBottom{
|
|
86
93
|
right: -$tooltip-arrow-border;
|
|
87
94
|
top: 50%;
|
|
88
|
-
border-top-color: $tooltip-arrow-color;
|
|
89
95
|
border-left-color: transparent;
|
|
90
|
-
border-right-color: $tooltip-arrow-color;
|
|
91
96
|
border-bottom-color: transparent;
|
|
92
97
|
transform: translateY(-50%) rotate(45deg);
|
|
93
98
|
}
|
|
94
|
-
&
|
|
99
|
+
&_position_leftTop{
|
|
95
100
|
top: $tooltip-arrow-offset-vertical-top;
|
|
96
101
|
}
|
|
97
|
-
&
|
|
102
|
+
&_position_leftBottom{
|
|
98
103
|
top: unset;
|
|
99
104
|
bottom: $tooltip-arrow-offset-vertical-bottom;
|
|
100
105
|
}
|
|
101
106
|
|
|
102
|
-
&
|
|
107
|
+
&_position_right, &_position_rightTop, &_position_rightBottom{
|
|
103
108
|
left: -$tooltip-arrow-border;
|
|
104
109
|
top: 50%;
|
|
105
110
|
border-top-color: transparent;
|
|
106
|
-
border-left-color: $tooltip-arrow-color;
|
|
107
111
|
border-right-color: transparent;
|
|
108
|
-
border-bottom-color: $tooltip-arrow-color;
|
|
109
112
|
transform: translateY(-50%) rotate(45deg);
|
|
110
113
|
}
|
|
111
|
-
&
|
|
114
|
+
&_position_rightTop{
|
|
112
115
|
top: $tooltip-arrow-offset-vertical-top;
|
|
113
116
|
}
|
|
114
|
-
&
|
|
117
|
+
&_position_rightBottom{
|
|
115
118
|
top: unset;
|
|
116
119
|
bottom: $tooltip-arrow-offset-vertical-bottom;
|
|
117
120
|
}
|
|
118
121
|
}
|
|
119
122
|
|
|
123
|
+
&__content{
|
|
124
|
+
color: $white;
|
|
125
|
+
font-size: 14px;
|
|
126
|
+
line-height: 24px;
|
|
127
|
+
}
|
|
120
128
|
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
|
|
2
1
|
import { ICheckboxColumnViewProps } from '@steroidsjs/core/ui/list/CheckboxColumn/CheckboxColumn';
|
|
3
|
-
export default function CheckboxColumnView(props: ICheckboxColumnViewProps
|
|
2
|
+
export default function CheckboxColumnView(props: ICheckboxColumnViewProps): JSX.Element;
|
|
@@ -40,10 +40,11 @@ exports.__esModule = true;
|
|
|
40
40
|
var React = __importStar(require("react"));
|
|
41
41
|
var CheckboxField_1 = __importDefault(require("@steroidsjs/core/ui/form/CheckboxField"));
|
|
42
42
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
43
|
+
var get_1 = __importDefault(require("lodash-es/get"));
|
|
43
44
|
function CheckboxColumnView(props) {
|
|
44
45
|
var bem = (0, hooks_1.useBem)('CheckboxColumnView');
|
|
45
46
|
var CheckboxFieldInternal = CheckboxField_1["default"].WrappedComponent;
|
|
46
47
|
return (React.createElement("div", { className: bem.block() },
|
|
47
|
-
React.createElement(CheckboxFieldInternal, __assign({}, props.fieldProps, { input: props.input }))));
|
|
48
|
+
React.createElement(CheckboxFieldInternal, __assign({}, props.fieldProps, { input: props.input, size: props.size, label: (0, get_1["default"])(props.item, props.attribute) }))));
|
|
48
49
|
}
|
|
49
50
|
exports["default"] = CheckboxColumnView;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { IControlsColumnViewProps } from '@steroidsjs/core/ui/list/ControlsColumn/ControlsColumn';
|
|
2
|
-
|
|
3
|
-
export default function ControlsColumnView(props: IControlsColumnViewProps & IBemHocOutput): JSX.Element;
|
|
2
|
+
export default function ControlsColumnView(props: IControlsColumnViewProps): JSX.Element;
|
package/list/Grid/GridView.js
CHANGED
|
@@ -58,7 +58,7 @@ function GridView(props) {
|
|
|
58
58
|
var fields = (0, keyBy_1["default"])(props.searchForm.fields.map(function (column) { return (0, isString_1["default"])(column) ? { attribute: column } : column; }), 'attribute');
|
|
59
59
|
return (React.createElement("tr", null, props.columns.map(function (column, columnIndex) {
|
|
60
60
|
var _a;
|
|
61
|
-
return (React.createElement("td", { key: columnIndex, className: column.headerClassName }, column.attribute && fields[column.attribute] && (React.createElement(Field_1["default"], __assign({
|
|
61
|
+
return (React.createElement("td", { key: columnIndex, className: column.headerClassName }, column.attribute && fields[column.attribute] && (React.createElement(Field_1["default"], __assign({ size: (_a = props.searchForm) === null || _a === void 0 ? void 0 : _a.size }, fields[column.attribute])))));
|
|
62
62
|
})));
|
|
63
63
|
}, [props.searchForm, props.columns]);
|
|
64
64
|
var renderSortButton = (0, react_1.useCallback)(function (attribute, direction) {
|
|
@@ -73,10 +73,14 @@ function GridView(props) {
|
|
|
73
73
|
} }));
|
|
74
74
|
}, [bem, props]);
|
|
75
75
|
var emptyContent = (0, react_1.useMemo)(function () { return props.renderEmpty(); }, [props]);
|
|
76
|
-
return props.renderList(React.createElement("div", { className: bem(bem.block({
|
|
76
|
+
return props.renderList(React.createElement("div", { className: bem(bem.block({
|
|
77
|
+
loading: props.isLoading || ((_a = props.list) === null || _a === void 0 ? void 0 : _a.isLoading),
|
|
78
|
+
size: props.size,
|
|
79
|
+
alternatingColors: props.hasAlternatingColors
|
|
80
|
+
}), props.className) },
|
|
77
81
|
props.renderSearchForm(),
|
|
78
82
|
props.renderPaginationSize(),
|
|
79
|
-
React.createElement("table", { className: 'table
|
|
83
|
+
React.createElement("table", { className: bem.element('table') },
|
|
80
84
|
React.createElement("thead", null,
|
|
81
85
|
React.createElement("tr", null, props.columns.map(function (column, columnIndex) { return (React.createElement("th", { key: columnIndex, className: column.headerClassName },
|
|
82
86
|
column.label,
|
|
@@ -86,7 +90,7 @@ function GridView(props) {
|
|
|
86
90
|
renderSortButton(column.attribute, 'desc'))))); })),
|
|
87
91
|
renderInsideSearchForm()),
|
|
88
92
|
React.createElement("tbody", null,
|
|
89
|
-
props.items && props.items.map(function (item, rowIndex) { return (React.createElement("tr", { key: item[props.primaryKey] || rowIndex }, props.columns.map(function (column, columnIndex) { return (React.createElement("td", { key: columnIndex, className: column.className, "data-label": (0, isString_1["default"])(column.label) ? column.label : null }, props.renderValue(item, column))); }))); }),
|
|
93
|
+
props.items && props.items.map(function (item, rowIndex) { return (React.createElement("tr", { key: item[props.primaryKey] || rowIndex }, props.columns.map(function (column, columnIndex) { return (React.createElement("td", { key: columnIndex, className: bem(bem.element('column'), column.className), "data-label": (0, isString_1["default"])(column.label) ? column.label : null }, props.renderValue(item, column))); }))); }),
|
|
90
94
|
emptyContent && (React.createElement("tr", null,
|
|
91
95
|
React.createElement("td", { colSpan: props.columns.length }, emptyContent))))),
|
|
92
96
|
props.renderPagination()));
|