Merge branch 'main' into improvement/model-remapping
This commit is contained in:
2187
src/Umbraco.Web.UI.Client/package-lock.json
generated
2187
src/Umbraco.Web.UI.Client/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -140,8 +140,8 @@
|
||||
"@openid/appauth": "^1.3.1",
|
||||
"@types/dompurify": "^3.0.5",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"@umbraco-ui/uui": "1.6.0-rc.3",
|
||||
"@umbraco-ui/uui-css": "1.6.0-rc.3",
|
||||
"@umbraco-ui/uui": "1.6.2",
|
||||
"@umbraco-ui/uui-css": "1.6.0",
|
||||
"dompurify": "^3.0.6",
|
||||
"element-internals-polyfill": "^1.3.9",
|
||||
"lit": "^2.8.0",
|
||||
|
||||
@@ -1,20 +1,12 @@
|
||||
import type {
|
||||
InterfaceColor,
|
||||
InterfaceLook,
|
||||
UUIInterfaceColor,
|
||||
UUIInterfaceLook,
|
||||
PopoverContainerPlacement,
|
||||
UUIPopoverContainerElement,
|
||||
} from '@umbraco-cms/backoffice/external/uui';
|
||||
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
|
||||
import type {
|
||||
PropertyValueMap} from '@umbraco-cms/backoffice/external/lit';
|
||||
import {
|
||||
css,
|
||||
html,
|
||||
customElement,
|
||||
property,
|
||||
query,
|
||||
when,
|
||||
} from '@umbraco-cms/backoffice/external/lit';
|
||||
import type { PropertyValueMap } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { css, html, customElement, property, query, when } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
|
||||
|
||||
// TODO: maybe move this to UI Library.
|
||||
@@ -29,10 +21,10 @@ export class UmbDropdownElement extends UmbLitElement {
|
||||
label = '';
|
||||
|
||||
@property()
|
||||
look: InterfaceLook = 'default';
|
||||
look: UUIInterfaceLook = 'default';
|
||||
|
||||
@property()
|
||||
color: InterfaceColor = 'default';
|
||||
color: UUIInterfaceColor = 'default';
|
||||
|
||||
@property()
|
||||
placement: PopoverContainerPlacement = 'bottom-start';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { ConditionTypes } from '../conditions/types.js';
|
||||
import type { InterfaceColor, InterfaceLook } from '@umbraco-cms/backoffice/external/uui';
|
||||
import type { UUIInterfaceColor, UUIInterfaceLook } from '@umbraco-cms/backoffice/external/uui';
|
||||
import type { ManifestElementAndApi, ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api';
|
||||
import type { UmbWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
|
||||
|
||||
@@ -12,6 +12,6 @@ export interface ManifestWorkspaceAction
|
||||
|
||||
export interface MetaWorkspaceAction {
|
||||
label?: string; //TODO: Use or implement additional label-key
|
||||
look?: InterfaceLook;
|
||||
color?: InterfaceColor;
|
||||
look?: UUIInterfaceLook;
|
||||
color?: UUIInterfaceColor;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { InterfaceColor, InterfaceLook } from '@umbraco-cms/backoffice/external/uui';
|
||||
import { css, html, LitElement, ifDefined, customElement, property } from '@umbraco-cms/backoffice/external/lit';
|
||||
import type { UUIInterfaceColor, UUIInterfaceLook } from '@umbraco-cms/backoffice/external/uui';
|
||||
import { html, LitElement, ifDefined, customElement, property } from '@umbraco-cms/backoffice/external/lit';
|
||||
import type { LogLevelModel } from '@umbraco-cms/backoffice/backend-api';
|
||||
|
||||
interface LevelMapStyles {
|
||||
look?: InterfaceLook;
|
||||
color?: InterfaceColor;
|
||||
look?: UUIInterfaceLook;
|
||||
color?: UUIInterfaceColor;
|
||||
style?: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { expect } from '@open-wc/testing';
|
||||
import { getDisplayStateFromUserStatus } from './utils.js';
|
||||
import type { InterfaceColor, InterfaceLook } from '@umbraco-cms/backoffice/external/uui';
|
||||
import type { UUIInterfaceColor, UUIInterfaceLook } from '@umbraco-cms/backoffice/external/uui';
|
||||
import { UserStateModel } from '@umbraco-cms/backoffice/backend-api';
|
||||
|
||||
describe('UmbUserExtensions', () => {
|
||||
it('returns correct look and color from a status string', () => {
|
||||
const testCases: { status: UserStateModel; look: InterfaceLook; color: InterfaceColor }[] = [
|
||||
const testCases: { status: UserStateModel; look: UUIInterfaceLook; color: UUIInterfaceColor }[] = [
|
||||
{ status: UserStateModel.ACTIVE, look: 'primary', color: 'positive' },
|
||||
{ status: UserStateModel.INACTIVE, look: 'primary', color: 'warning' },
|
||||
{ status: UserStateModel.INVITED, look: 'primary', color: 'warning' },
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { InterfaceColor, InterfaceLook } from '@umbraco-cms/backoffice/external/uui';
|
||||
import type { UUIInterfaceColor, UUIInterfaceLook } from '@umbraco-cms/backoffice/external/uui';
|
||||
import type { UserStateModel } from '@umbraco-cms/backoffice/backend-api';
|
||||
|
||||
interface UmbUserDisplayStatus {
|
||||
look: InterfaceLook;
|
||||
color: InterfaceColor;
|
||||
look: UUIInterfaceLook;
|
||||
color: UUIInterfaceColor;
|
||||
key: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user