Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump WebUI to 2.8.0 #1851

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions lib/presentation/Component.js

This file was deleted.

22 changes: 4 additions & 18 deletions lib/public/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ html, body {
scroll-behavior: smooth;

--ui-component-medium: 550px;
--ui-component-large: 850px;
}

.cell-xs { max-width: 2rem; }
Expand Down Expand Up @@ -483,29 +482,16 @@ label {

/* Popover system */

.popover {
flex-shrink: 0;
flex-wrap: wrap;
align-items: flex-start;
position: absolute;
top: 0;
left: 0;
z-index: 1002;
max-width: var(--ui-component-large);
}

.no-events {
pointer-events: none;
}

.btn-group-item:not(.last-item) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
.btn-group .btn:not(.last-item) {
border-radius: .25rem 0 0 .25rem;
}

.btn-group-item:not(.first-item) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
.btn-group .btn:not(.first-item) {
border-radius: 0 .25rem .25rem 0;
}

/* Modal */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
* granted to it by virtue of its status as an Intergovernmental Organization
* or submit itself to any jurisdiction.
*/
import { dropdown } from '../../../common/popover/dropdown.js';
import { h } from '/js/src/index.js';
import { DropdownComponent, h } from '/js/src/index.js';
import {
getLocaleDateAndTime,
getStartOfMonth,
Expand Down Expand Up @@ -93,7 +92,7 @@
* @param {TimeRangeInputModel} timeRangeFilterModel the model of the filter
* @return {Component} the resulting component
*/
export const timeRangeFilter = (timeRangeFilterModel) => dropdown(
export const timeRangeFilter = (timeRangeFilterModel) => DropdownComponent(

Check warning on line 95 in lib/public/components/Filters/common/filters/timeRangeFilter.js

View check run for this annotation

Codecov / codecov/patch

lib/public/components/Filters/common/filters/timeRangeFilter.js#L95

Added line #L95 was not covered by tests
h(
`.dropdown-trigger.form-control${timeRangeFilterModel.isValid ? '' : '.invalid'}`,
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
* granted to it by virtue of its status as an Intergovernmental Organization
* or submit itself to any jurisdiction.
*/
import { popover } from '../../common/popover/popover.js';
import { PopoverTriggerPreConfiguration } from '../../common/popover/popoverPreConfigurations.js';
import { PopoverAnchors } from '../../common/popover/PopoverEngine.js';
import { h, info } from '/js/src/index.js';
import { h, info, popover, PopoverAnchors, PopoverTriggerPreConfiguration } from '/js/src/index.js';
import { profiles } from '../../common/table/profiles.js';
import { applyProfile } from '../../../utilities/applyProfile.js';
import { tooltip } from '../../common/popover/tooltip.js';
Expand Down
3 changes: 1 addition & 2 deletions lib/public/components/Log/logLinkButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
* or submit itself to any jurisdiction.
*/

import { h } from '/js/src/index.js';
import { CopyToClipboardComponent } from '../common/selection/infoLoggerButtonGroup/CopyToClipboardComponent.js';
import { CopyToClipboardComponent, h } from '/js/src/index.js';

/**
* Copies the url of the log to the clipboard
Expand Down
3 changes: 1 addition & 2 deletions lib/public/components/Pagination/amountSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
* or submit itself to any jurisdiction.
*/

import { h } from '/js/src/index.js';
import { documentClickTaggedEventRegistry, h } from '/js/src/index.js';
import { iconCaretTop } from '/js/src/icons.js';
import { documentClickTaggedEventRegistry } from '../../utilities/documentClickTaggedEventRegistry.js';

/**
* Based on controllers limits
Expand Down
47 changes: 0 additions & 47 deletions lib/public/components/common/StatefulComponent.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
* or submit itself to any jurisdiction.
*/

import { h } from '/js/src/index.js';
import { createPortal } from '../../../../utilities/createPortal.js';
import { createPortal, h } from '/js/src/index.js';
import { LineChartRenderer } from '../rendering/LineChartRenderer.js';

const DEFAULT_TOOLTIP_MARGIN = 20;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/

import { select, line } from '/assets/d3.min.js';
import { getUniqueId } from '../../../../../utilities/getUniqueId.js';
import { getUniqueId } from '/js/src/index.js';

/**
* @typedef LineGraphConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/

import { select } from '/assets/d3.min.js';
import { getUniqueId } from '../../../../../utilities/getUniqueId.js';
import { getUniqueId } from '/js/src/index.js';

/**
* @typedef PointCloudGraphConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
* granted to it by virtue of its status as an Intergovernmental Organization
* or submit itself to any jurisdiction.
*/
import { h } from '/js/src/index.js';
import { h, StatefulComponent } from '/js/src/index.js';
import { iconX } from '/js/src/icons.js';
import { MILLISECONDS_IN_ONE_DAY } from '../../../../utilities/dateUtils.mjs';
import { formatTimestampForDateTimeInput } from '../../../../utilities/formatting/dateTimeInputFormatters.mjs';
import { StatefulComponent } from '../../StatefulComponent.js';

/**
* @typedef DateTimeInputComponentVnode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@
* granted to it by virtue of its status as an Intergovernmental Organization
* or submit itself to any jurisdiction.
*/
import { StatefulComponent } from '../../StatefulComponent.js';
import { DateTimeInputComponent } from './DateTimeInputComponent.js';
import {
extractTimestampFromDateTimeInput,
formatTimestampForDateTimeInput,
} from '../../../../utilities/formatting/dateTimeInputFormatters.mjs';
import { h } from '/js/src/index.js';
import { h, StatefulComponent } from '/js/src/index.js';

/**
* @typedef TimestampInputComponentAttrs
Expand Down
Loading
Loading