UNPKG

@linzjs/step-ag-grid

Version:

[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) > Reusable [ag-grid](https://www.ag-grid.com/) component for LINZ / Toitū te whenua.

639 lines (561 loc) 12.2 kB
@charset "UTF-8"; .step-ag-grid-react-menu { /** * Scrollbar (Only Chrome) */ } .step-ag-grid-react-menu ::-webkit-scrollbar { width: 20px; } .step-ag-grid-react-menu ::-webkit-scrollbar-track { background-color: transparent; } .step-ag-grid-react-menu ::-webkit-scrollbar-thumb { background-color: #d6dee1; border-radius: 20px; border: 6px solid transparent; background-clip: content-box; } .step-ag-grid-react-menu ::-webkit-scrollbar-thumb:hover { background-color: #a8bbbf; } .step-ag-grid-react-menu .szh-menu__item, .step-ag-grid-react-menu .szh-menu__header { padding: 0.375rem 0.75rem; } .step-ag-grid-react-menu .LuiCheckboxInput { margin-bottom: 0; } .step-ag-grid-react-menu { /** Free text input */ } .step-ag-grid-react-menu .free-text-input { line-height: 33px; padding-left: 4px; } .step-ag-grid-react-menu textarea.free-text-input { font-weight: 400; line-height: 1.5; width: 300px; height: 150px; resize: none; border: 0.06rem solid #beb9b4; } /** @deprecated */ /** @deprecated */ /** @deprecated */ /** * Here is where we can override the styles of react-menu */ .step-ag-grid-react-menu.szh-menu { z-index: 900; color: #2a292c; font-family: "Open Sans", system-ui, sans-serif; font-style: normal; font-weight: normal; } .step-ag-grid-react-menu.szh-menu div, .step-ag-grid-react-menu.szh-menu a[role=menuitem] { text-decoration: none; color: #2a292c; font-family: "Open Sans", system-ui, sans-serif; font-style: normal; font-weight: normal; } .step-ag-grid-react-menu.szh-menu li[role=menuitem]:hover { background-color: #e2f3f7; } .step-ag-grid-react-menu.szh-menu .szh-menu__header { display: flex; align-items: center; } /** * Here are styles for lui select menu */ .lui-select-menu.szh-menu { z-index: 900; width: 92vw; overflow-y: scroll; color: #2a292c; font-family: "Open Sans", system-ui, sans-serif; font-style: normal; font-weight: 300; } .lui-select-menuItem { padding: 0.5rem 0.75rem 0.5rem 0.5rem; display: flex; line-height: 1; transition: all 0.2s ease-in-out; fill: #6b6966; } .lui-select-menuItem:hover { background-color: #e2f3f7; } .lui-select-menuItem--error p { color: #cc0000; } .lui-select-menuItem--error .LuiIcon { fill: #cc0000; } .lui-select-menuItemText { font-family: "Open Sans", system-ui, sans-serif; font-style: normal; font-weight: normal; color: #2a292c; margin: 0; padding-left: 2rem; } .lui-select-menuItemText--noPadding { padding-left: 0.25rem; } .lui-select-icon + .lui-select-menuItemText { padding-left: 0.5rem; } .lui-select-menu-group { height: 32px; color: #6b6966; padding-left: 0.75rem; text-transform: none; font-family: "Open Sans", system-ui, sans-serif; font-style: normal; font-weight: 600; } .lui-select-submenu { flex: 1; } .lui-select-submenu div[role=menuitem] { padding: 0.5rem 0.5rem 0.5rem 2.5rem; text-decoration: none; font-family: "Open Sans", system-ui, sans-serif; font-style: normal; font-weight: normal; height: 40px; } .lui-select-submenu .szh-menu__item--hover { background-color: #e2f3f7; } .lui-select-submenu-with-icon { flex: 1; } .lui-select-submenu-with-icon div[role=menuitem] { padding-left: 0; text-decoration: none; font-family: "Open Sans", system-ui, sans-serif; font-style: normal; font-weight: normal; height: 40px; } .lui-select-divider { margin: 0.25rem; } .step-ag-grid-react-menu-sub-header-icon { margin: 0.5rem; fill: #6b6966; } .ComponentLoadingWrapper-saveOverlay { position: absolute; inset: 0; background-color: rgba(64, 64, 64, 0.1); z-index: 1000; } .szh-menu { margin: 0; padding: 0; list-style: none; } .szh-menu:focus { outline: none; } .szh-menu { box-sizing: border-box; width: max-content; z-index: 100; border: 1px solid rgba(0, 0, 0, 0.1); background-color: #fff; } .szh-menu__arrow { box-sizing: border-box; width: 0.75rem; height: 0.75rem; background-color: #fff; border: 1px solid transparent; border-left-color: rgba(0, 0, 0, 0.1); border-top-color: rgba(0, 0, 0, 0.1); z-index: -1; } .szh-menu__arrow--dir-left { right: 0.375rem; transform: translateY(-50%) rotate(135deg); } .szh-menu__arrow--dir-right { left: 0.375rem; transform: translateY(-50%) rotate(-45deg); } .szh-menu__arrow--dir-top { bottom: 0.375rem; transform: translateX(-50%) rotate(-135deg); } .szh-menu__arrow--dir-bottom { top: 0.375rem; transform: translateX(-50%) rotate(45deg); } .szh-menu__item:focus { outline: none; } .szh-menu__item { cursor: pointer; } .szh-menu__item--hover { background-color: #ebebeb; } .szh-menu__item--focusable { cursor: default; background-color: inherit; } .szh-menu__item--disabled { cursor: default; color: #989189; } .szh-menu__group { box-sizing: border-box; } .szh-menu__radio-group { margin: 0; padding: 0; list-style: none; } .szh-menu__divider { height: 1px; margin: 0.5rem 0; background-color: rgba(0, 0, 0, 0.12); } .szh-menu-button { box-sizing: border-box; } .szh-menu { user-select: none; color: #212529; border: none; border-radius: 0.25rem; box-shadow: 0 3px 7px rgba(0, 0, 0, 0.133), 0 0.6px 2px rgba(0, 0, 0, 0.1); min-width: 10rem; padding: 0.5rem 0; } .szh-menu__item { display: flex; align-items: center; position: relative; padding: 0.375rem 1.5rem; } .szh-menu-container--itemTransition .szh-menu__item { transition-property: background-color, color; transition-duration: 0.15s; transition-timing-function: ease-in-out; } .szh-menu__item--type-radio { padding-left: 2.2rem; } .szh-menu__item--type-radio::before { content: "○"; position: absolute; left: 0.8rem; top: 0.55rem; font-size: 0.8rem; } .szh-menu__item--type-radio.szh-menu__item--checked::before { content: "●"; } .szh-menu__item--type-checkbox { padding-left: 2.2rem; } .szh-menu__item--type-checkbox::before { position: absolute; left: 0.8rem; } .szh-menu__item--type-checkbox.szh-menu__item--checked::before { content: "✔"; } .szh-menu__submenu > .szh-menu__item { padding-right: 2.5rem; } .szh-menu__submenu > .szh-menu__item::after { content: "❯"; position: absolute; right: 1rem; } .szh-menu__header { color: #888; font-size: 0.8rem; padding: 0.2rem 1.5rem; text-transform: uppercase; } .react-menu-inline-test .szh-menu-container, .react-menu-inline-test .szh-menu { position: static !important; } .LabelPreferencesPanelGridCellAlignCenter .ag-wrapper { margin-left: auto; margin-right: auto; } .ag-cell:not([col-id=ag-Grid-SelectionColumn]) { user-select: text; } .rangeSelectingMultiple .ag-cell { user-select: none; } .LabelPreferencesPanelGridCellAlignCenter .ag-cell-wrapper, .LabelPreferencesPanelGridCellAlignCenter .GridCell-container { display: flex; justify-content: center; } .Grid-container { flex: 1; width: 100%; display: flex; flex-direction: column; } .Grid-wrapper { display: flex; flex-direction: column; flex: 1; } .Grid-sortIsStale span.ag-sort-indicator-icon::before { margin-left: -6px; position: absolute; content: "*"; } .Grid-container-filters { width: 100%; flex: 0; display: flex; align-items: center; flex-direction: row; padding: 12px; background-color: #f9f9f9; border-bottom: 1px solid #beb9b4; border-top: 2px solid #eaeaea; } .Grid-container-filters button { margin-left: 0 !important; } .GridFilterQuick-container:not(:last-child), .GridFilter-container:not(:last-child) { margin-right: 8px; } .GridFilterQuick-container { flex: 1; } .GridFilterQuick-icon { position: absolute; margin: 8px; pointer-events: none; fill: #6b6966; } .GridFilterQuick-input { width: 100%; height: 40px; min-height: 40px; border: 0.06rem solid #beb9b4; border-radius: 3px; padding-left: 36px; padding-right: 0.75rem; font-family: "Open Sans", system-ui, sans-serif; } .GridFilterQuick-input::placeholder { color: #6b6966; font-style: italic; } .Grid-popoverContainer { padding: 0.375rem 0.75rem; } .flex-col-center { display: flex; flex-direction: column; align-items: center; } .flex-row-center { display: flex; flex-direction: row; align-items: center; } .GridFormMessage-container { padding: 4px 8px; max-width: 400px; } .ag-floating-top-container .ag-row { background-color: #f9f9f9; } .ag-floating-bottom-container .ag-row { background-color: #f9f9f9; } .GridHeaderAlignCenter .ag-header-cell-text { margin-left: auto; margin-right: auto; } .GridCellAlignCenter .GridCell-container { display: flex; justify-content: center; } .GridCellAlignCenter .ag-wrapper { margin-left: auto; margin-right: auto; } .GridCellAlignCenter .ag-cell-wrapper, .LabelPreferencesPanelGridCellAlignCenter .GridCell-container { display: flex; justify-content: center; } div.ag-ltr div.ag-header-cell-resize { right: -4px; } .step-ag-grid__alert-icon { max-width: 34px; width: 34px; } .GridNoRowsOverlay { display: flex; gap: 4px; fill: #6b6966; color: #6b6966; font-size: 16px; font-family: "Open Sans", system-ui, sans-serif; font-style: normal; font-weight: normal; } div.ag-row div.ag-cell.rangeSelect { background-color: rgba(72, 160, 244, 0.2); } div.ag-row div.ag-cell.rangeSelectLeft { border-left: 3px solid #48a0f4; } div.ag-row div.ag-cell.rangeSelectRight { border-right: 3px solid #48a0f4; } div.ag-row div.ag-cell.rangeSelectTop { border-top: 3px solid #48a0f4; } div.ag-row div.ag-cell.rangeSelectBottom { border-bottom: 3px solid #48a0f4; } .GridCell-container { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; } .GridCell-hoverRight { position: absolute; right: 8px; display: flex; align-items: center; } .GridPopoverEditDropDown-containerSmall .GridFormDropDown-options { max-height: 120px; overflow-y: auto; } .GridPopoverEditDropDown-containerMedium .GridFormDropDown-options { max-height: 220px; overflow-y: auto; } .GridPopoverEditDropDown-containerLarge .GridFormDropDown-options { max-height: 400px; overflow-y: auto; } .GridPopoverEditDropDown-containerUnlimited .GridFormDropDown-options { overflow-y: auto; } .GridPopoverEditDropDown-noOptions { justify-content: center; } .GridPopoverEditDropDown-containerAutoWidth .szh-menu { width: auto; max-width: 274px; } .GridFormEditBearing-input { width: 320px; } .GridMultiSelect-containerSmall .GridFormMultiSelect-options { max-height: 130px; overflow-y: auto; } .GridMultiSelect-containerMedium .GridFormMultiSelect-options { max-height: 190px; overflow-y: auto; } .GridMultiSelect-containerLarge .GridFormMultiSelect-options { max-height: 320px; overflow-y: auto; } .GridMultiSelect-containerUnlimited .GridFormMultiSelect-options { overflow-y: auto; } .GridMultiSelect-noOptions { justify-content: center; } .GridMultiSelect-noOptions { justify-content: center; } .GridMultiSelectGrid-Label { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .GridFormSubComponentTextInput-full-width-input { width: 100%; padding: 0; } .AgGridGenericCellRenderer-icon { margin-right: 4px; } .AgGridGenericCellRenderer-ic_infoIcon { margin-right: 4px; fill: #3A7CDF; } .AgGridGenericCellRenderer-ic_info_outlineIcon { margin-right: 4px; fill: #3A7CDF; } .AgGridGenericCellRenderer-ic_warningIcon { margin-right: 4px; fill: #EA6A2E; } .AgGridGenericCellRenderer-ic_warning_outlineIcon { margin-right: 4px; fill: #EA6A2E; } .AgGridGenericCellRenderer-ic_error_Icon { margin-right: 4px; fill: #cc0000; } .AgGridGenericCellRenderer-ic_error_outlineIcon { margin-right: 4px; fill: #cc0000; } .GridIcon-disabled { fill: #beb9b4 !important; } .GridLoadableCell-container { width: 100%; display: flex; align-items: center; margin-bottom: 6px; } .ag-cell .GridPopoutMenu-burger { cursor: pointer; display: block; } .ag-cell .GridPopoutMenu-burger svg { fill: #007198; } .ag-cell .GridPopoutMenu-burgerDisabled svg { fill: #989189; } .GridFilterColumnsToggle-container { max-height: 280px; overflow: auto; } .MenuItem-icon { margin-right: 8px; }