@steroidsjs/bootstrap 3.0.0-beta.11 → 3.0.0-beta.110
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 +262 -0
- package/content/Accordion/AccordionView.d.ts +2 -0
- package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
- package/content/Accordion/AccordionView.scss +28 -0
- package/content/Alert/AlertView.js +4 -3
- package/content/Alert/AlertView.scss +75 -24
- package/content/Avatar/AvatarView.js +2 -3
- package/content/Avatar/AvatarView.scss +43 -48
- package/content/Badge/BadgeView.d.ts +0 -1
- package/content/Badge/BadgeView.js +8 -7
- package/content/Badge/BadgeView.scss +141 -0
- package/content/Calendar/CalendarView.js +6 -3
- package/content/Calendar/CalendarView.scss +270 -175
- package/content/Calendar/CaptionElement.js +26 -15
- package/content/Calendar/CaptionElement.scss +168 -106
- package/content/CalendarSystem/AsideCalendars/AsideCalendars.d.ts +12 -0
- package/content/CalendarSystem/AsideCalendars/AsideCalendars.js +41 -0
- package/content/CalendarSystem/AsideCalendars/AsideCalendars.scss +81 -0
- package/content/CalendarSystem/AsideCalendars/index.d.ts +2 -0
- package/content/CalendarSystem/AsideCalendars/index.js +7 -0
- package/content/CalendarSystem/AsideHeader/AsideHeader.d.ts +9 -0
- package/content/CalendarSystem/AsideHeader/AsideHeader.js +40 -0
- package/content/CalendarSystem/AsideHeader/AsideHeader.scss +41 -0
- package/content/CalendarSystem/AsideHeader/index.d.ts +2 -0
- package/content/CalendarSystem/AsideHeader/index.js +7 -0
- package/content/CalendarSystem/CalendarSystemModalView.d.ts +2 -0
- package/content/CalendarSystem/CalendarSystemModalView.js +39 -0
- package/content/CalendarSystem/CalendarSystemModalView.scss +80 -0
- package/content/CalendarSystem/CalendarSystemView.d.ts +2 -0
- package/content/CalendarSystem/CalendarSystemView.js +28 -0
- package/content/CalendarSystem/CalendarSystemView.scss +50 -0
- package/content/CalendarSystem/ContentHeader/ContentHeader.d.ts +10 -0
- package/content/CalendarSystem/ContentHeader/ContentHeader.js +26 -0
- package/content/CalendarSystem/ContentHeader/ContentHeader.scss +57 -0
- package/content/CalendarSystem/ContentHeader/index.d.ts +2 -0
- package/content/CalendarSystem/ContentHeader/index.js +7 -0
- package/content/CalendarSystem/MonthGrid/MonthGrid.d.ts +14 -0
- package/content/CalendarSystem/MonthGrid/MonthGrid.js +39 -0
- package/content/CalendarSystem/MonthGrid/MonthGrid.scss +41 -0
- package/content/CalendarSystem/MonthGrid/index.d.ts +2 -0
- package/content/CalendarSystem/MonthGrid/index.js +7 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/MonthDay.d.ts +11 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/MonthDay.js +69 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/MonthDay.scss +126 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/index.d.ts +2 -0
- package/content/CalendarSystem/MonthGrid/views/MonthDay/index.js +7 -0
- package/content/CalendarSystem/WeekGrid/WeekGrid.d.ts +13 -0
- package/content/CalendarSystem/WeekGrid/WeekGrid.js +25 -0
- package/content/CalendarSystem/WeekGrid/WeekGrid.scss +154 -0
- package/content/CalendarSystem/WeekGrid/index.d.ts +2 -0
- package/content/CalendarSystem/WeekGrid/index.js +7 -0
- package/content/CalendarSystem/WeekGrid/views/WeekHour/WeekHour.d.ts +12 -0
- package/content/CalendarSystem/WeekGrid/views/WeekHour/WeekHour.js +75 -0
- package/content/CalendarSystem/WeekGrid/views/WeekHour/WeekHour.scss +108 -0
- package/content/CalendarSystem/WeekGrid/views/WeekHour/index.d.ts +2 -0
- package/content/CalendarSystem/WeekGrid/views/WeekHour/index.js +7 -0
- package/content/Card/CardView.js +37 -14
- package/content/Card/CardView.scss +139 -108
- package/content/Chart/ChartView.d.ts +2 -0
- package/content/Chart/ChartView.js +47 -0
- package/content/Chart/ChartView.scss +8 -0
- 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 +79 -57
- package/content/DropDown/DropDownView.d.ts +0 -1
- package/content/DropDown/DropDownView.js +7 -4
- package/content/DropDown/DropDownView.scss +208 -27
- package/content/Icon/IconView.d.ts +1 -2
- package/content/Icon/IconView.js +18 -2
- package/content/Icon/IconView.scss +1 -23
- package/content/Kanban/KanbanView.d.ts +2 -0
- package/content/Kanban/KanbanView.js +29 -0
- package/content/Kanban/KanbanView.scss +12 -0
- package/content/Kanban/views/KanbanColumn/KanbanColumnView.d.ts +2 -0
- package/content/Kanban/views/KanbanColumn/KanbanColumnView.js +36 -0
- package/content/Kanban/views/KanbanColumn/KanbanColumnView.scss +75 -0
- package/content/Kanban/views/KanbanColumn/index.d.ts +2 -0
- package/content/Kanban/views/KanbanColumn/index.js +7 -0
- package/content/Kanban/views/KanbanModal/KanbanModalView.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/KanbanModalView.js +57 -0
- package/content/Kanban/views/KanbanModal/KanbanModalView.scss +199 -0
- package/content/Kanban/views/KanbanModal/index.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/index.js +7 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/CreateOrEditTaskModalContentView.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/CreateOrEditTaskModalContentView.js +93 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/index.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/index.js +7 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/Label/Label.d.ts +6 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/Label/Label.js +11 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/Label/index.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/Label/index.js +7 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/TagsSelector/TagsSelector.d.ts +8 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/TagsSelector/TagsSelector.js +49 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/TagsSelector/TagsSelector.scss +30 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/TagsSelector/index.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/CreateOrEditTaskModalContent/views/TagsSelector/index.js +7 -0
- package/content/Kanban/views/KanbanModal/views/TaskDetailsModalContent/TaskDetailsModalContentView.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/TaskDetailsModalContent/TaskDetailsModalContentView.js +53 -0
- package/content/Kanban/views/KanbanModal/views/TaskDetailsModalContent/index.d.ts +2 -0
- package/content/Kanban/views/KanbanModal/views/TaskDetailsModalContent/index.js +7 -0
- package/content/Kanban/views/KanbanTask/KanbanTaskView.d.ts +5 -0
- package/content/Kanban/views/KanbanTask/KanbanTaskView.js +66 -0
- package/content/Kanban/views/KanbanTask/KanbanTaskView.scss +110 -0
- package/content/Kanban/views/KanbanTask/index.d.ts +2 -0
- package/content/Kanban/views/KanbanTask/index.js +7 -0
- package/content/Kanban/views/TaskTags/TaskTags.d.ts +9 -0
- package/content/Kanban/views/TaskTags/TaskTags.js +14 -0
- package/content/Kanban/views/TaskTags/TaskTags.scss +7 -0
- package/content/Kanban/views/TaskTags/index.d.ts +2 -0
- package/content/Kanban/views/TaskTags/index.js +7 -0
- package/content/Menu/MenuItemView.d.ts +2 -0
- package/content/Menu/MenuItemView.js +15 -0
- package/content/Menu/MenuItemView.scss +67 -0
- package/content/Menu/MenuView.d.ts +2 -0
- package/content/Menu/MenuView.js +33 -0
- package/content/Menu/MenuView.scss +46 -0
- package/content/Slider/SliderView.d.ts +3 -0
- package/content/Slider/SliderView.js +21 -0
- package/content/Slider/SliderView.scss +5 -0
- package/form/AutoCompleteField/AutoCompleteFieldView.d.ts +1 -3
- package/form/AutoCompleteField/AutoCompleteFieldView.js +62 -9
- package/form/AutoCompleteField/AutoCompleteFieldView.scss +201 -142
- package/form/Button/ButtonView.d.ts +1 -2
- package/form/Button/ButtonView.js +13 -9
- package/form/Button/ButtonView.scss +176 -68
- package/form/CheckboxField/CheckboxFieldView.d.ts +1 -2
- package/form/CheckboxField/CheckboxFieldView.js +9 -4
- package/form/CheckboxField/CheckboxFieldView.scss +225 -37
- package/form/CheckboxListField/CheckboxListFieldView.d.ts +1 -2
- package/form/CheckboxListField/CheckboxListFieldView.js +19 -15
- package/form/CheckboxListField/CheckboxListFieldView.scss +7 -41
- package/form/DateField/DateFieldView.js +7 -6
- package/form/DateField/DateFieldView.scss +15 -70
- package/form/DateRangeField/DateRangeFieldView.js +10 -13
- package/form/DateRangeField/DateRangeFieldView.scss +41 -73
- package/form/DateTimeField/DateTimeFieldView.d.ts +1 -2
- package/form/DateTimeField/DateTimeFieldView.js +6 -6
- package/form/DateTimeField/DateTimeFieldView.scss +13 -107
- package/form/DateTimeRangeField/DateTimeRangeFieldView.js +10 -8
- package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +32 -87
- package/form/DropDownField/DropDownFieldView.js +35 -47
- package/form/DropDownField/DropDownFieldView.scss +381 -179
- 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 +220 -0
- package/form/FieldLayout/FieldLayoutView.d.ts +1 -2
- package/form/FieldLayout/FieldLayoutView.js +13 -9
- package/form/FieldLayout/FieldLayoutView.scss +116 -19
- package/form/FieldList/FieldListItemView.js +6 -4
- package/form/FieldList/FieldListItemView.scss +18 -38
- package/form/FieldList/FieldListView.js +9 -8
- package/form/FieldList/FieldListView.scss +77 -24
- package/form/FieldSet/FieldSetView.js +4 -2
- package/form/FieldSet/FieldSetView.scss +42 -0
- package/form/FileField/FileFieldItemView.d.ts +1 -2
- package/form/FileField/FileFieldItemView.js +31 -6
- package/form/FileField/FileFieldItemView.scss +259 -14
- package/form/FileField/FileFieldView.d.ts +1 -2
- package/form/FileField/FileFieldView.js +6 -8
- package/form/FileField/FileFieldView.scss +46 -13
- 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 +7 -1
- package/form/ImageField/ImageFieldModalView.js +3 -1
- package/form/ImageField/ImageFieldView.js +15 -3
- package/form/ImageField/ImageFieldView.scss +7 -24
- package/form/InputField/InputFieldView.d.ts +1 -2
- package/form/InputField/InputFieldView.js +33 -14
- package/form/InputField/InputFieldView.scss +277 -99
- package/form/NumberField/NumberFieldView.d.ts +1 -2
- package/form/NumberField/NumberFieldView.js +19 -24
- package/form/NumberField/NumberFieldView.scss +197 -89
- package/form/PasswordField/PasswordFieldView.d.ts +1 -2
- package/form/PasswordField/PasswordFieldView.js +14 -9
- package/form/PasswordField/PasswordFieldView.scss +253 -63
- package/form/RadioField/RadioFieldView.d.ts +2 -0
- package/form/RadioField/RadioFieldView.js +57 -0
- package/form/RadioField/RadioFieldView.scss +228 -0
- package/form/RadioListField/RadioListFieldView.d.ts +1 -2
- package/form/RadioListField/RadioListFieldView.js +18 -16
- package/form/RadioListField/RadioListFieldView.scss +11 -1
- package/form/RateField/RateFieldView.js +17 -10
- package/form/RateField/RateFieldView.scss +118 -40
- package/form/ReCaptchaField/ReCaptchaFieldView.d.ts +1 -2
- package/form/ReCaptchaField/ReCaptchaFieldView.js +18 -9
- package/form/ReCaptchaField/ReCaptchaFieldView.scss +1 -5
- package/form/SliderField/SliderFieldView.d.ts +1 -2
- package/form/SliderField/SliderFieldView.js +4 -2
- package/form/SliderField/SliderFieldView.scss +338 -299
- package/form/SwitcherField/SwitcherFieldView.d.ts +1 -2
- package/form/SwitcherField/SwitcherFieldView.js +12 -7
- package/form/SwitcherField/SwitcherFieldView.scss +192 -1
- package/form/TextField/TextFieldView.d.ts +1 -2
- package/form/TextField/TextFieldView.js +10 -2
- package/form/TextField/TextFieldView.scss +147 -2
- package/form/TimeField/TimeFieldView.d.ts +1 -2
- package/form/TimeField/TimeFieldView.js +16 -14
- package/form/TimeField/TimeFieldView.scss +22 -68
- package/form/TimeField/TimePanelView.scss +65 -68
- package/form/TimeRangeField/TimeRangeFieldView.d.ts +2 -0
- package/form/TimeRangeField/TimeRangeFieldView.js +67 -0
- package/form/TimeRangeField/TimeRangeFieldView.scss +81 -0
- package/icons/index.d.ts +2 -0
- package/icons/index.js +110 -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 +5 -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/burger.svg +5 -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/facebook.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/instagram.svg +5 -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/sort.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/telegram.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/vk.svg +3 -0
- package/icons/svgs/warning_16x16.svg +5 -0
- package/icons/svgs/warning_24x24.svg +12 -0
- package/icons/svgs/whatsapp.svg +7 -0
- package/index.d.ts +59 -2
- package/index.js +61 -4
- package/index.scss +97 -68
- package/layout/Header/HeaderView.js +43 -6
- package/layout/Header/HeaderView.scss +137 -23
- package/layout/Loader/LoaderView.d.ts +2 -2
- package/layout/Loader/LoaderView.js +6 -2
- package/layout/Loader/LoaderView.scss +70 -22
- package/layout/Notifications/NotificationsItemView.d.ts +1 -2
- package/layout/Notifications/NotificationsItemView.js +9 -8
- package/layout/Notifications/NotificationsItemView.scss +56 -84
- package/layout/Notifications/NotificationsView.d.ts +1 -2
- package/layout/Notifications/NotificationsView.scss +4 -1
- package/layout/ProgressBar/CircleProgressBarView.d.ts +1 -2
- package/layout/ProgressBar/CircleProgressBarView.scss +9 -7
- package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
- package/layout/ProgressBar/LineProgressBarView.scss +10 -8
- package/layout/Sidebar/FooterIcons/FooterIcons.d.ts +10 -0
- package/layout/Sidebar/FooterIcons/FooterIcons.js +54 -0
- package/layout/Sidebar/FooterIcons/FooterIcons.scss +36 -0
- package/layout/Sidebar/FooterIcons/index.d.ts +2 -0
- package/layout/Sidebar/FooterIcons/index.js +7 -0
- package/layout/Sidebar/SidebarLogo/SidebarLogo.d.ts +10 -0
- package/layout/Sidebar/SidebarLogo/SidebarLogo.js +44 -0
- package/layout/Sidebar/SidebarLogo/SidebarLogo.scss +52 -0
- package/layout/Sidebar/SidebarLogo/index.d.ts +2 -0
- package/layout/Sidebar/SidebarLogo/index.js +7 -0
- package/layout/Sidebar/SidebarUser/SidebarUser.d.ts +11 -0
- package/layout/Sidebar/SidebarUser/SidebarUser.js +53 -0
- package/layout/Sidebar/SidebarUser/SidebarUser.scss +45 -0
- package/layout/Sidebar/SidebarUser/index.d.ts +2 -0
- package/layout/Sidebar/SidebarUser/index.js +7 -0
- package/layout/Sidebar/SidebarView.d.ts +2 -0
- package/layout/Sidebar/SidebarView.js +26 -0
- package/layout/Sidebar/SidebarView.scss +304 -0
- package/layout/Sidebar/index.d.ts +2 -0
- package/layout/Sidebar/index.js +7 -0
- package/layout/Skeleton/SkeletonView.scss +7 -5
- package/layout/Tooltip/TooltipView.d.ts +1 -2
- package/layout/Tooltip/TooltipView.js +5 -5
- package/layout/Tooltip/TooltipView.scss +46 -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/ControlsColumnView/ControlsColumnView.scss +7 -1
- package/list/Empty/EmptyView.js +1 -1
- package/list/Empty/EmptyView.scss +5 -1
- package/list/FlexGrid/FlexGridView.d.ts +2 -0
- package/list/FlexGrid/FlexGridView.js +71 -0
- package/list/FlexGrid/FlexGridView.scss +60 -0
- package/list/Grid/GridView.js +10 -4
- package/list/Grid/GridView.scss +152 -37
- package/list/Grid/views/ContentColumnView/ContentColumnView.d.ts +2 -0
- package/list/Grid/views/ContentColumnView/ContentColumnView.js +50 -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/Grid/views/DiagramColumnView/DiagramColumnView.d.ts +3 -0
- package/list/Grid/views/DiagramColumnView/DiagramColumnView.js +60 -0
- package/list/Grid/views/DiagramColumnView/DiagramColumnView.scss +170 -0
- package/list/Grid/views/DiagramColumnView/index.d.ts +2 -0
- package/list/Grid/views/DiagramColumnView/index.js +7 -0
- package/list/Grid/views/TreeColumnView/TreeColumnView.d.ts +2 -0
- package/list/Grid/views/TreeColumnView/TreeColumnView.js +41 -0
- package/list/Grid/views/TreeColumnView/TreeColumnView.scss +46 -0
- package/list/List/ListItemView.d.ts +1 -2
- package/list/List/ListView.js +5 -7
- package/list/List/ListView.scss +28 -1
- package/list/Pagination/PaginationButtonView.js +34 -5
- package/list/Pagination/PaginationButtonView.scss +277 -1
- package/list/Pagination/PaginationMoreView.js +1 -1
- package/list/Pagination/PaginationMoreView.scss +4 -1
- package/list/PaginationSize/PaginationSizeView.js +5 -5
- package/list/PaginationSize/PaginationSizeView.scss +0 -8
- package/list/Steps/StepItemView.scss +13 -12
- package/list/Steps/StepsView.scss +3 -1
- package/modal/Modal/ModalView.d.ts +1 -2
- package/modal/Modal/ModalView.js +5 -8
- package/modal/Modal/ModalView.scss +140 -93
- package/modal/TwoFactorModal/TwoFactorModalView.d.ts +1 -3
- package/modal/TwoFactorModal/TwoFactorModalView.js +0 -1
- package/modal/TwoFactorModal/TwoFactorModalView.scss +0 -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 +33 -0
- package/nav/ButtonGroup/ButtonGroupView.scss +84 -0
- package/nav/Controls/ControlsView.d.ts +1 -2
- package/nav/Controls/ControlsView.js +1 -1
- package/nav/Controls/ControlsView.scss +18 -3
- package/nav/Nav/NavBarView.d.ts +1 -2
- package/nav/Nav/NavBarView.js +9 -4
- package/nav/Nav/NavBarView.scss +35 -1
- package/nav/Nav/NavButtonView.d.ts +1 -2
- package/nav/Nav/NavButtonView.js +8 -2
- package/nav/Nav/NavButtonView.scss +6 -5
- package/nav/Nav/NavIconView.d.ts +1 -2
- package/nav/Nav/NavIconView.js +21 -2
- package/nav/Nav/NavIconView.scss +33 -6
- package/nav/Nav/NavLinkView.d.ts +1 -2
- package/nav/Nav/NavLinkView.js +9 -2
- package/nav/Nav/NavLinkView.scss +14 -5
- package/nav/Nav/NavListView.d.ts +1 -2
- package/nav/Nav/NavListView.js +11 -7
- package/nav/Nav/NavListView.scss +11 -10
- package/nav/Nav/NavTabsView.d.ts +1 -2
- package/nav/Nav/NavTabsView.js +9 -4
- package/nav/Nav/NavTabsView.scss +50 -1
- package/nav/Tree/TreeView.d.ts +1 -2
- package/nav/Tree/TreeView.scss +63 -54
- package/package.json +8 -6
- 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 +99 -24
- package/scss/mixins/customMixins.scss +6 -0
- package/scss/mixins/date.scss +436 -0
- package/scss/mixins/index.scss +7 -2
- package/scss/mixins/navs.scss +39 -0
- package/scss/mixins/scroll.scss +31 -0
- package/scss/mixins/tooltip.scss +23 -0
- package/scss/mixins/typography.scss +29 -0
- package/scss/normalize.scss +25 -0
- package/scss/variables/common/colors.scss +202 -83
- package/scss/variables/common/media.scss +3 -0
- package/scss/variables/common/typography.scss +112 -28
- package/scss/variables/common/variables.scss +1 -0
- package/scss/variables/components/calendar.scss +8 -6
- package/scss/variables/components/input.scss +10 -7
- package/scss/variables/components/ratefield.scss +3 -1
- package/scss/variables/index.scss +10 -11
- package/typography/Text/TextView.d.ts +3 -0
- package/typography/Text/TextView.js +46 -0
- package/typography/Text/TextView.scss +19 -0
- package/typography/Title/TitleView.d.ts +3 -0
- package/typography/Title/TitleView.js +50 -0
- package/typography/Title/TitleView.scss +19 -0
- package/utils/getFormattedExpandLabel.d.ts +1 -0
- package/utils/getFormattedExpandLabel.js +5 -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/content/Collapse/CollapseView.scss +0 -15
- package/icons/fontawesome.d.ts +0 -2
- package/icons/fontawesome.js +0 -259
- package/list/List/ListItemView.scss +0 -3
- package/scss/mixins/card.scss +0 -26
- package/scss/variables/components/card.scss +0 -20
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
+
@use "../../scss/variables";
|
|
2
3
|
|
|
3
|
-
$tooltip-arrow-
|
|
4
|
-
$tooltip-arrow-
|
|
5
|
-
$tooltip-arrow-height: 8px;
|
|
4
|
+
$tooltip-arrow-width: 10px;
|
|
5
|
+
$tooltip-arrow-height: 10px;
|
|
6
6
|
$tooltip-arrow-border: math.div($tooltip-arrow-width, 2);
|
|
7
7
|
$tooltip-gap: 12px;
|
|
8
8
|
|
|
@@ -10,10 +10,18 @@ $tooltip-arrow-offset-horizontal: 20px;
|
|
|
10
10
|
$tooltip-arrow-offset-vertical-top: 15px;
|
|
11
11
|
$tooltip-arrow-offset-vertical-bottom: 7px;
|
|
12
12
|
|
|
13
|
+
$tooltip-background-color: rgba(65, 65, 65, 0.95);
|
|
14
|
+
|
|
13
15
|
.TooltipView {
|
|
14
16
|
position: absolute;
|
|
15
17
|
top: 0;
|
|
16
18
|
left: 0;
|
|
19
|
+
max-width: 300px;
|
|
20
|
+
word-break: break-all;
|
|
21
|
+
padding: 8px 12px;
|
|
22
|
+
border-radius: 6px;
|
|
23
|
+
background: $tooltip-background-color;
|
|
24
|
+
|
|
17
25
|
transform: translate(0,0);
|
|
18
26
|
opacity: 0;
|
|
19
27
|
transition: opacity .15s ease-in, transform .15s ease-in;
|
|
@@ -22,99 +30,100 @@ $tooltip-arrow-offset-vertical-bottom: 7px;
|
|
|
22
30
|
&_show {
|
|
23
31
|
opacity: 1;
|
|
24
32
|
}
|
|
25
|
-
|
|
33
|
+
|
|
34
|
+
&_position{
|
|
35
|
+
&_top, &_topLeft, &_topRight {
|
|
26
36
|
transform: translateY(-$tooltip-gap);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&_bottom, &_bottomLeft, &_bottomRight {
|
|
40
|
+
transform: translateY($tooltip-gap);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&_left, &_leftTop, &_leftBottom {
|
|
44
|
+
transform: translateX(-$tooltip-gap);
|
|
45
|
+
}
|
|
37
46
|
|
|
47
|
+
&_right, &_rightTop, &_rightBottom {
|
|
48
|
+
transform: translateX($tooltip-gap);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
38
51
|
|
|
39
52
|
&__arrow{
|
|
40
53
|
position: absolute;
|
|
41
|
-
|
|
54
|
+
|
|
42
55
|
width: $tooltip-arrow-width;
|
|
43
56
|
height: $tooltip-arrow-height;
|
|
44
57
|
|
|
45
58
|
border-style: solid;
|
|
46
59
|
border-width: math.div($tooltip-arrow-height, 2);
|
|
60
|
+
border-color: $tooltip-background-color;
|
|
47
61
|
box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
|
|
48
62
|
|
|
49
|
-
|
|
50
|
-
&_position-top, &_position-topLeft, &_position-topRight{
|
|
63
|
+
&_position_top, &_position_topLeft, &_position_topRight{
|
|
51
64
|
bottom: -$tooltip-arrow-border;
|
|
52
65
|
left: 50%;
|
|
53
|
-
|
|
54
66
|
border-top-color: transparent;
|
|
55
67
|
border-left-color: transparent;
|
|
56
|
-
border-right-color: $tooltip-arrow-color;
|
|
57
|
-
border-bottom-color: $tooltip-arrow-color;
|
|
58
68
|
transform: translateX(-50%) rotate(45deg);
|
|
59
69
|
}
|
|
60
|
-
&
|
|
70
|
+
&_position_topLeft{
|
|
61
71
|
left: $tooltip-arrow-offset-horizontal;
|
|
62
72
|
}
|
|
63
|
-
&
|
|
73
|
+
&_position_topRight{
|
|
64
74
|
left: unset;
|
|
65
75
|
right: $tooltip-arrow-offset-horizontal;
|
|
66
76
|
}
|
|
67
77
|
|
|
68
|
-
&
|
|
78
|
+
&_position_bottom, &_position_bottomLeft, &_position_bottomRight{
|
|
69
79
|
top: -$tooltip-arrow-border;
|
|
70
80
|
left: 50%;
|
|
71
|
-
border-top-color: $tooltip-arrow-color;
|
|
72
|
-
border-left-color: $tooltip-arrow-color;
|
|
73
81
|
border-right-color: transparent;
|
|
74
82
|
border-bottom-color: transparent;
|
|
75
83
|
transform: translateX(-50%) rotate(45deg);
|
|
76
84
|
}
|
|
77
|
-
&
|
|
85
|
+
&_position_bottomLeft{
|
|
78
86
|
left: $tooltip-arrow-offset-horizontal;
|
|
79
87
|
}
|
|
80
|
-
&
|
|
88
|
+
&_position_bottomRight{
|
|
81
89
|
left: unset;
|
|
82
90
|
right: $tooltip-arrow-offset-horizontal;
|
|
83
91
|
}
|
|
84
92
|
|
|
85
|
-
&
|
|
93
|
+
&_position_left, &_position_leftTop, &_position_leftBottom{
|
|
86
94
|
right: -$tooltip-arrow-border;
|
|
87
95
|
top: 50%;
|
|
88
|
-
border-top-color: $tooltip-arrow-color;
|
|
89
96
|
border-left-color: transparent;
|
|
90
|
-
border-right-color: $tooltip-arrow-color;
|
|
91
97
|
border-bottom-color: transparent;
|
|
92
98
|
transform: translateY(-50%) rotate(45deg);
|
|
93
99
|
}
|
|
94
|
-
&
|
|
100
|
+
&_position_leftTop{
|
|
95
101
|
top: $tooltip-arrow-offset-vertical-top;
|
|
96
102
|
}
|
|
97
|
-
&
|
|
103
|
+
&_position_leftBottom{
|
|
98
104
|
top: unset;
|
|
99
105
|
bottom: $tooltip-arrow-offset-vertical-bottom;
|
|
100
106
|
}
|
|
101
107
|
|
|
102
|
-
&
|
|
108
|
+
&_position_right, &_position_rightTop, &_position_rightBottom{
|
|
103
109
|
left: -$tooltip-arrow-border;
|
|
104
110
|
top: 50%;
|
|
105
111
|
border-top-color: transparent;
|
|
106
|
-
border-left-color: $tooltip-arrow-color;
|
|
107
112
|
border-right-color: transparent;
|
|
108
|
-
border-bottom-color: $tooltip-arrow-color;
|
|
109
113
|
transform: translateY(-50%) rotate(45deg);
|
|
110
114
|
}
|
|
111
|
-
&
|
|
115
|
+
&_position_rightTop{
|
|
112
116
|
top: $tooltip-arrow-offset-vertical-top;
|
|
113
117
|
}
|
|
114
|
-
&
|
|
118
|
+
&_position_rightBottom{
|
|
115
119
|
top: unset;
|
|
116
120
|
bottom: $tooltip-arrow-offset-vertical-bottom;
|
|
117
121
|
}
|
|
118
122
|
}
|
|
119
123
|
|
|
124
|
+
&__content{
|
|
125
|
+
color: variables.$white;
|
|
126
|
+
font-size: 14px;
|
|
127
|
+
line-height: 24px;
|
|
128
|
+
}
|
|
120
129
|
}
|
|
@@ -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/Empty/EmptyView.js
CHANGED
|
@@ -27,6 +27,6 @@ var React = __importStar(require("react"));
|
|
|
27
27
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
28
28
|
function EmptyView(props) {
|
|
29
29
|
var bem = (0, hooks_1.useBem)('EmptyView');
|
|
30
|
-
return (React.createElement("div", { className: bem(bem.block(),
|
|
30
|
+
return (React.createElement("div", { className: bem(bem.block(), props.className), style: props.style }, props.text));
|
|
31
31
|
}
|
|
32
32
|
exports["default"] = EmptyView;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
exports.__esModule = true;
|
|
37
|
+
var React = __importStar(require("react"));
|
|
38
|
+
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
39
|
+
function FlexGridView(props) {
|
|
40
|
+
var _a;
|
|
41
|
+
var bem = (0, hooks_1.useBem)('FlexGridView');
|
|
42
|
+
var halfColGap = props.colGap / 2;
|
|
43
|
+
var hasItems = !!((_a = props.items) === null || _a === void 0 ? void 0 : _a.length);
|
|
44
|
+
var colGapStyle = hasItems
|
|
45
|
+
? {
|
|
46
|
+
marginRight: -halfColGap,
|
|
47
|
+
marginLeft: -halfColGap
|
|
48
|
+
}
|
|
49
|
+
: {
|
|
50
|
+
columnGap: props.colGap
|
|
51
|
+
};
|
|
52
|
+
return (React.createElement("div", { className: bem(bem.block({
|
|
53
|
+
wrap: props.wrap,
|
|
54
|
+
align: props.align,
|
|
55
|
+
direction: props.direction,
|
|
56
|
+
justify: props.justify
|
|
57
|
+
}), props.className), style: __assign(__assign(__assign({}, props.style), colGapStyle), { rowGap: props.rowGap }) },
|
|
58
|
+
hasItems && props.items.map(function (item, index) { return (React.createElement("div", { key: index, className: bem(bem.element('item', {
|
|
59
|
+
col: item.col,
|
|
60
|
+
lg: item.lg,
|
|
61
|
+
md: item.md,
|
|
62
|
+
sm: item.sm,
|
|
63
|
+
offset: item.offset
|
|
64
|
+
}), props.itemClassName), style: {
|
|
65
|
+
paddingRight: halfColGap,
|
|
66
|
+
paddingLeft: halfColGap,
|
|
67
|
+
order: item.order
|
|
68
|
+
} }, item.content)); }),
|
|
69
|
+
props.children));
|
|
70
|
+
}
|
|
71
|
+
exports["default"] = FlexGridView;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
$justifyValues: center, end, start, stretch, flex-start, flex-end, left, right, space-between, space-around, space-evenly;
|
|
5
|
+
$alignValues: center, end, start, stretch, flex-start, flex-end;
|
|
6
|
+
$directionValues: column-reverse column row-reverse row;
|
|
7
|
+
$colValues: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12;
|
|
8
|
+
$colMaxValue: 12;
|
|
9
|
+
|
|
10
|
+
@mixin col($className, $root, $property: flex-basis) {
|
|
11
|
+
@each $colValue in $colValues {
|
|
12
|
+
&_#{$className}_#{$colValue} {
|
|
13
|
+
#{$property}: calc((100% / $colMaxValue) * $colValue);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.FlexGridView {
|
|
19
|
+
$root: &;
|
|
20
|
+
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-wrap: nowrap;
|
|
23
|
+
|
|
24
|
+
&_wrap {
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@each $alignValue in $alignValues {
|
|
29
|
+
&_align_#{$alignValue} {
|
|
30
|
+
align-items: $alignValue;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@each $justifyValue in $justifyValues {
|
|
35
|
+
&_justify_#{$justifyValue} {
|
|
36
|
+
justify-content: $justifyValue;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@each $directionValue in $directionValues {
|
|
41
|
+
&_direction_#{$directionValue} {
|
|
42
|
+
flex-direction: $directionValue;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__item {
|
|
47
|
+
@include col(col, $root);
|
|
48
|
+
@include col(offset, $root, margin-inline-start);
|
|
49
|
+
|
|
50
|
+
@media (max-width: variables.$desktop-width) {
|
|
51
|
+
@include col(lg, $root);
|
|
52
|
+
}
|
|
53
|
+
@media (max-width: variables.$tablet-width) {
|
|
54
|
+
@include col(md, $root);
|
|
55
|
+
}
|
|
56
|
+
@media (max-width: variables.$mobile-width) {
|
|
57
|
+
@include col(sm, $root);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
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,9 @@ 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:
|
|
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', {
|
|
94
|
+
isDiagram: !!column.diagram
|
|
95
|
+
}), column.className), "data-label": (0, isString_1["default"])(column.label) ? column.label : null }, props.renderValue(item, column))); }))); }),
|
|
90
96
|
emptyContent && (React.createElement("tr", null,
|
|
91
97
|
React.createElement("td", { colSpan: props.columns.length }, emptyContent))))),
|
|
92
98
|
props.renderPagination()));
|
package/list/Grid/GridView.scss
CHANGED
|
@@ -1,53 +1,168 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--grid-header-background-color: var(--light-gray);
|
|
5
|
+
--grid-border-color: var(--gray);
|
|
6
|
+
|
|
7
|
+
--grid-td-background-color: #FFFFFF;
|
|
8
|
+
--grid-td-alternating-color: var(--additional-light-gray);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
html[data-theme="dark"] {
|
|
12
|
+
--grid-header-background-color: var(--additional-gray-dark);
|
|
13
|
+
--grid-border-color: var(--additional-gray-dark);
|
|
14
|
+
|
|
15
|
+
--grid-td-background-color: var(--graphite);
|
|
16
|
+
--grid-td-alternating-color: var(--graphite-dark);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
$grid-header-background-color: var(--grid-header-background-color);
|
|
20
|
+
$grid-border-color: var(--grid-border-color);
|
|
21
|
+
|
|
22
|
+
$grid-td-background-color: var(--grid-td-background-color);
|
|
23
|
+
$grid-td-alternating-color: var(--grid-td-alternating-color);
|
|
2
24
|
|
|
3
25
|
.GridView {
|
|
4
|
-
|
|
5
|
-
transition: opacity .2s;
|
|
26
|
+
$root: &;
|
|
6
27
|
|
|
7
|
-
|
|
8
|
-
opacity: .4;
|
|
9
|
-
}
|
|
28
|
+
text-align: left;
|
|
10
29
|
|
|
11
|
-
|
|
12
|
-
@include media-breakpoint-down(sm) {
|
|
13
|
-
thead, tbody, th, tr {
|
|
14
|
-
display: block;
|
|
15
|
-
}
|
|
30
|
+
width: 100%;
|
|
16
31
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
&__table {
|
|
33
|
+
width: 100%;
|
|
34
|
+
border-spacing: 0;
|
|
35
|
+
border-collapse: separate;
|
|
36
|
+
border: 1px solid $grid-border-color;
|
|
37
|
+
border-radius: variables.$radius-large;
|
|
38
|
+
margin: 24px 0;
|
|
39
|
+
|
|
40
|
+
th,
|
|
41
|
+
td {
|
|
42
|
+
color: variables.$text-color;
|
|
43
|
+
background-color: $grid-td-background-color;
|
|
44
|
+
}
|
|
45
|
+
th {
|
|
46
|
+
font-weight: variables.$font-weight-lg;
|
|
47
|
+
background-color: $grid-header-background-color;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
th:not(:last-child),
|
|
51
|
+
td:not(:last-child) {
|
|
52
|
+
border-right: 1px solid $grid-border-color;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
thead > tr > th,
|
|
56
|
+
tbody > tr:not(:last-child) > td,
|
|
57
|
+
tr:not(:last-child) > td,
|
|
58
|
+
thead:not(:last-child),
|
|
59
|
+
tbody:not(:last-child) {
|
|
60
|
+
border-bottom: 1px solid $grid-border-color;
|
|
61
|
+
}
|
|
22
62
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
63
|
+
thead > tr > th {
|
|
64
|
+
&:first-child {
|
|
65
|
+
border-top-left-radius: variables.$radius-large;
|
|
66
|
+
}
|
|
67
|
+
&:last-child {
|
|
68
|
+
border-top-right-radius: variables.$radius-large;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
27
71
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
72
|
+
tbody > tr:last-child > td {
|
|
73
|
+
&:first-child {
|
|
74
|
+
border-bottom-left-radius: variables.$radius-large;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:last-child {
|
|
78
|
+
border-bottom-right-radius: variables.$radius-large;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
31
81
|
}
|
|
32
82
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
content: attr(data-label);
|
|
83
|
+
&_alternatingColors{
|
|
84
|
+
#{$root}__table tbody tr:nth-child(even) td {
|
|
85
|
+
background-color: $grid-td-alternating-color;
|
|
86
|
+
}
|
|
38
87
|
}
|
|
39
|
-
}
|
|
40
88
|
|
|
41
|
-
|
|
42
|
-
|
|
89
|
+
&_size {
|
|
90
|
+
&_lg {
|
|
91
|
+
#{$root}__table {
|
|
92
|
+
font-size: variables.$font-size-lg;
|
|
93
|
+
line-height: variables.$line-height-lg;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
th,
|
|
97
|
+
td:not(#{$root}__column_isDiagram) {
|
|
98
|
+
padding: 24px 16px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&_md {
|
|
103
|
+
#{$root}__table {
|
|
104
|
+
font-size: variables.$font-size-base;
|
|
105
|
+
line-height: variables.$line-height-base;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
th,
|
|
109
|
+
td:not(#{$root}__column_isDiagram) {
|
|
110
|
+
padding: 21px 12px;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
43
113
|
|
|
44
|
-
|
|
45
|
-
|
|
114
|
+
&_sm {
|
|
115
|
+
#{$root}__table {
|
|
116
|
+
font-size: variables.$font-size-sm;
|
|
117
|
+
line-height: variables.$line-height-sm;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
th,
|
|
121
|
+
td:not(#{$root}__column_isDiagram) {
|
|
122
|
+
padding: 16px 8px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
46
125
|
}
|
|
47
126
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
127
|
+
|
|
128
|
+
&__column {
|
|
129
|
+
|
|
130
|
+
.IconView {
|
|
131
|
+
display: inline-block;
|
|
132
|
+
width: 24px;
|
|
133
|
+
height: 24px;
|
|
134
|
+
|
|
135
|
+
svg {
|
|
136
|
+
width: 100%;
|
|
137
|
+
height: 100%;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&_hasIcon {
|
|
142
|
+
display: flex;
|
|
143
|
+
flex-flow: row nowrap;
|
|
144
|
+
align-items: center;
|
|
145
|
+
|
|
146
|
+
.IconView {
|
|
147
|
+
margin-left: 8px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&-left {
|
|
151
|
+
span {
|
|
152
|
+
&:nth-child(1) {
|
|
153
|
+
order: 2;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&:nth-child(2) {
|
|
157
|
+
order: 1;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.IconView {
|
|
162
|
+
margin-left: 0;
|
|
163
|
+
margin-right: 8px;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
51
167
|
}
|
|
52
|
-
}
|
|
53
168
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
exports.__esModule = true;
|
|
17
|
+
var react_1 = __importDefault(require("react"));
|
|
18
|
+
var useBem_1 = __importDefault(require("@steroidsjs/core/hooks/useBem"));
|
|
19
|
+
var Format_1 = __importDefault(require("@steroidsjs/core/ui/format/Format"));
|
|
20
|
+
var get_1 = __importDefault(require("lodash-es/get"));
|
|
21
|
+
var nav_1 = require("@steroidsjs/core/ui/nav");
|
|
22
|
+
var content_1 = require("@steroidsjs/core/ui/content");
|
|
23
|
+
function ContentColumnView(props) {
|
|
24
|
+
var _a, _b, _c, _d, _e;
|
|
25
|
+
var bem = (0, useBem_1["default"])('ContentColumnView');
|
|
26
|
+
var hasLink = !!((_a = props.link) === null || _a === void 0 ? void 0 : _a.attribute);
|
|
27
|
+
var hasPicture = !!((_b = props.picture) === null || _b === void 0 ? void 0 : _b.attribute);
|
|
28
|
+
var hasIcon = !!((_c = props.icon) === null || _c === void 0 ? void 0 : _c.attribute);
|
|
29
|
+
var hasSubtitle = !!props.subtitleAttribute;
|
|
30
|
+
var hasTextData = !!props.attribute || !!props.subtitleAttribute || hasLink;
|
|
31
|
+
var renderFormat = function () { return (react_1["default"].createElement(Format_1["default"], __assign({}, props, (props.formatter || {}), { attribute: hasLink ? props.link.attribute : props.attribute }))); };
|
|
32
|
+
var renderValue = function () {
|
|
33
|
+
var _a;
|
|
34
|
+
if (hasLink) {
|
|
35
|
+
return (react_1["default"].createElement(nav_1.Link, __assign({}, props.link.linkProps, { url: (0, get_1["default"])(props.item, (_a = props.link) === null || _a === void 0 ? void 0 : _a.urlAttribute), className: bem.element('link') }), renderFormat()));
|
|
36
|
+
}
|
|
37
|
+
return (react_1["default"].createElement("span", { className: bem.element('value') }, renderFormat()));
|
|
38
|
+
};
|
|
39
|
+
return (react_1["default"].createElement("div", { className: bem(bem.block({
|
|
40
|
+
size: props.size,
|
|
41
|
+
isLeft: ((_d = props.picture) === null || _d === void 0 ? void 0 : _d.isLeft) || ((_e = props.icon) === null || _e === void 0 ? void 0 : _e.isLeft)
|
|
42
|
+
})) },
|
|
43
|
+
hasTextData && (react_1["default"].createElement("div", { className: bem.element('data') },
|
|
44
|
+
renderValue(),
|
|
45
|
+
hasSubtitle && react_1["default"].createElement("span", { className: bem.element('subtitle') }, (0, get_1["default"])(props.item, props.subtitleAttribute)))),
|
|
46
|
+
hasPicture && (react_1["default"].createElement("span", { className: bem.element('picture') },
|
|
47
|
+
react_1["default"].createElement("img", { src: (0, get_1["default"])(props.item, props.picture.attribute), alt: "cell element" }))),
|
|
48
|
+
hasIcon && (react_1["default"].createElement(content_1.Icon, { name: (0, get_1["default"])(props.item, props.icon.attribute), className: bem.element('icon') }))));
|
|
49
|
+
}
|
|
50
|
+
exports["default"] = ContentColumnView;
|