Skip to content
Merged
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
4 changes: 2 additions & 2 deletions frontend/src/components/ui/code/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class Code extends TailwindElement {
language: Language = Language.XML;

@property({ type: Boolean })
wrap = true;
noWrap = false;

async connectedCallback() {
const languageFn = (await langaugeFiles[this.language]).default;
Expand All @@ -94,7 +94,7 @@ export class Code extends TailwindElement {
part="base"
class=${clsx(
tw`font-monospace m-0 text-neutral-600`,
this.wrap ? tw`whitespace-pre-wrap` : tw`whitespace-nowrap`,
this.noWrap ? tw`whitespace-nowrap` : tw`whitespace-pre-wrap`,
)}
><code>${staticHtml`${unsafeStatic(htmlStr)}`}</code></pre>`;
}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/ui/desc-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export class DescList extends LitElement {
vertical: !this.horizontal,
horizontal: this.horizontal,
})}
part="base"
>
<slot></slot>
</dl>`;
Expand Down
9 changes: 6 additions & 3 deletions frontend/src/components/ui/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import {
* <sl-dialog> with custom CSS
*
* Usage: see https://shoelace.style/components/dialog
*
* @attr label
* @attr open
* @attr noHeader
*/
@customElement("btrix-dialog")
export class Dialog extends SlDialog {
Expand All @@ -27,8 +31,7 @@ export class Dialog extends SlDialog {
}
.dialog__header {
background-color: var(--sl-color-neutral-50);
border-bottom: 1px solid var(--sl-color-neutral-100);
border-bottom: 1px solid var(--sl-panel-border-color);
}
.dialog__title {
Expand All @@ -50,7 +53,7 @@ export class Dialog extends SlDialog {
.dialog__footer {
padding-top: var(--sl-spacing-small);
padding-bottom: var(--sl-spacing-small);
border-top: 1px solid var(--sl-color-neutral-100);
border-top: 1px solid var(--sl-panel-border-color);
}
`,
];
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/components/ui/table/table-header-cell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export class TableHeaderCell extends TableCell {
@property({ type: String, reflect: true, noAccessor: true })
role = "columnheader";

@property({ type: String, reflect: true, noAccessor: true })
scope?: "row" | "col";

@property({ type: String, reflect: true })
ariaSort: SortValues = "none";

Expand Down
6 changes: 5 additions & 1 deletion frontend/src/components/ui/url-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ export class UrlInput extends SlInput {
this.addEventListener("sl-change", this.onChange);
}

setCustomValidity(message: string): void {
super.setCustomValidity(message);
if (!this.hideHelpText) this.helpText = message;
}

disconnectedCallback(): void {
super.disconnectedCallback();

Expand All @@ -61,7 +66,6 @@ export class UrlInput extends SlInput {

if (value && !validURL(value)) {
const text = msg("Please enter a valid URL.");
if (!this.hideHelpText) this.helpText = text;
this.setCustomValidity(text);
} else if (
value &&
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/controllers/localize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ export class LocalizeController extends SlLocalizeController {
year: "numeric",
month: "long",
day: "numeric",
hour: "2-digit",
minute: "2-digit",
hour: "numeric",
minute: "numeric",
timeZoneName: "short",
weekday: "long",
})}
hoist
placement="bottom"
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/events/btrix-user-guide-show.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export type BtrixUserGuideShowEvent = CustomEvent<{ path?: string }>;

declare global {
interface GlobalEventHandlersEventMap {
"btrix-user-guide-show": BtrixUserGuideShowEvent;
}
}
5 changes: 4 additions & 1 deletion frontend/src/features/archived-items/crawl-logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ export class CrawlLogs extends BtrixElement {
`,
() =>
this.filter
? emptyMessage({ message: emptyMessageFor[this.filter] })
? emptyMessage({
classNames: tw`border-y`,
message: emptyMessageFor[this.filter],
})
: nothing,
)}
`;
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/features/browser-profiles/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import("./new-browser-profile-dialog");
import("./profile-browser-dialog");
import("./profile-browser");
import("./profile-metadata-dialog");
import("./select-browser-profile");
import("./start-browser-dialog");
Loading
Loading