@umbraco-cms/backoffice 14.0.0--preview005-268981cb → 14.0.0--preview005-d8ecd776
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/dist-cms/custom-elements.json +12 -12
- package/dist-cms/libs/class-api/class.mixin.d.ts +25 -0
- package/dist-cms/libs/class-api/class.mixin.js +0 -25
- package/dist-cms/mocks/data/user/user.db.d.ts +1 -1
- package/dist-cms/mocks/data/user/user.db.js +2 -2
- package/dist-cms/packages/block/block/workspace/views/edit/block-workspace-view-edit-no-router.element.js +3 -0
- package/dist-cms/packages/core/property-editor/schemas/Umbraco.ColorPicker.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/checkbox-list/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/collection-view/config/column-configuration/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/collection-view/config/layout-configuration/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/collection-view/config/order-by/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/collection-view/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/color-picker/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/color-swatches-editor/manifests.js +11 -0
- package/dist-cms/packages/core/property-editor/uis/{color-editor/property-editor-ui-color-editor.element.d.ts → color-swatches-editor/property-editor-ui-color-swatches-editor.element.d.ts} +4 -4
- package/dist-cms/packages/core/property-editor/uis/{color-editor/property-editor-ui-color-editor.element.js → color-swatches-editor/property-editor-ui-color-swatches-editor.element.js} +19 -19
- package/dist-cms/packages/core/property-editor/uis/date-picker/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/dropdown/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/eye-dropper/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/icon-picker/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/label/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/manifests.js +34 -46
- package/dist-cms/packages/core/property-editor/uis/member-group-picker/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/member-picker/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/multi-url-picker/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/multiple-text-string/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/number/manifests.js +14 -2
- package/dist-cms/packages/core/property-editor/uis/number-range/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/order-direction/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/overlay-size/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/radio-button-list/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/slider/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/text-box/manifests.js +2 -2
- package/dist-cms/packages/core/property-editor/uis/textarea/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/tiny-mce/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/toggle/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/tree-picker/config/source-picker/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/tree-picker/config/source-type-picker/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/tree-picker/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/upload-field/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/user-picker/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/value-type/manifests.js +1 -1
- package/dist-cms/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit.element.js +3 -0
- package/dist-cms/packages/media/media-types/workspace/views/design/media-type-workspace-view-edit.element.js +3 -0
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
- package/dist-cms/vscode-html-custom-data.json +6 -6
- package/package.json +1 -1
- package/dist-cms/packages/core/property-editor/uis/color-editor/manifests.js +0 -11
- /package/dist-cms/packages/core/property-editor/uis/{color-editor → color-swatches-editor}/manifests.d.ts +0 -0
|
@@ -4021,21 +4021,21 @@
|
|
|
4021
4021
|
]
|
|
4022
4022
|
},
|
|
4023
4023
|
{
|
|
4024
|
-
"name": "umb-property-editor-ui-color-
|
|
4025
|
-
"path": "./../src/packages/core/property-editor/uis/color-
|
|
4024
|
+
"name": "umb-property-editor-ui-color-picker",
|
|
4025
|
+
"path": "./../src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.element.ts",
|
|
4026
4026
|
"attributes": [
|
|
4027
4027
|
{
|
|
4028
4028
|
"name": "value",
|
|
4029
|
-
"type": "
|
|
4030
|
-
"default": "
|
|
4029
|
+
"type": "string",
|
|
4030
|
+
"default": "\"\""
|
|
4031
4031
|
}
|
|
4032
4032
|
],
|
|
4033
4033
|
"properties": [
|
|
4034
4034
|
{
|
|
4035
4035
|
"name": "value",
|
|
4036
4036
|
"attribute": "value",
|
|
4037
|
-
"type": "
|
|
4038
|
-
"default": "
|
|
4037
|
+
"type": "string",
|
|
4038
|
+
"default": "\"\""
|
|
4039
4039
|
},
|
|
4040
4040
|
{
|
|
4041
4041
|
"name": "config"
|
|
@@ -4048,21 +4048,21 @@
|
|
|
4048
4048
|
]
|
|
4049
4049
|
},
|
|
4050
4050
|
{
|
|
4051
|
-
"name": "umb-property-editor-ui-color-
|
|
4052
|
-
"path": "./../src/packages/core/property-editor/uis/color-
|
|
4051
|
+
"name": "umb-property-editor-ui-color-swatches-editor",
|
|
4052
|
+
"path": "./../src/packages/core/property-editor/uis/color-swatches-editor/property-editor-ui-color-swatches-editor.element.ts",
|
|
4053
4053
|
"attributes": [
|
|
4054
4054
|
{
|
|
4055
4055
|
"name": "value",
|
|
4056
|
-
"type": "
|
|
4057
|
-
"default": "
|
|
4056
|
+
"type": "UmbSwatchDetails[]",
|
|
4057
|
+
"default": "[]"
|
|
4058
4058
|
}
|
|
4059
4059
|
],
|
|
4060
4060
|
"properties": [
|
|
4061
4061
|
{
|
|
4062
4062
|
"name": "value",
|
|
4063
4063
|
"attribute": "value",
|
|
4064
|
-
"type": "
|
|
4065
|
-
"default": "
|
|
4064
|
+
"type": "UmbSwatchDetails[]",
|
|
4065
|
+
"default": "[]"
|
|
4066
4066
|
},
|
|
4067
4067
|
{
|
|
4068
4068
|
"name": "config"
|
|
@@ -7,8 +7,29 @@ import { UmbObserverController } from '../observable-api/index.js';
|
|
|
7
7
|
type UmbClassMixinConstructor = new (host: UmbControllerHost, controllerAlias?: UmbControllerAlias) => UmbClassMixinDeclaration;
|
|
8
8
|
declare class UmbClassMixinDeclaration extends EventTarget implements UmbClassMixinInterface {
|
|
9
9
|
_host: UmbControllerHost;
|
|
10
|
+
/**
|
|
11
|
+
* @description Observe a RxJS source of choice.
|
|
12
|
+
* @param {Observable<T>} source RxJS source
|
|
13
|
+
* @param {method} callback Callback method called when data is changed.
|
|
14
|
+
* @return {UmbObserverController} Reference to a Observer Controller instance
|
|
15
|
+
* @memberof UmbClassMixin
|
|
16
|
+
*/
|
|
10
17
|
observe<T>(source: Observable<T>, callback: (_value: T) => void, controllerAlias?: UmbControllerAlias): UmbObserverController<T>;
|
|
18
|
+
/**
|
|
19
|
+
* @description Provide a context API for this or child elements.
|
|
20
|
+
* @param {string} contextAlias
|
|
21
|
+
* @param {instance} instance The API instance to be exposed.
|
|
22
|
+
* @return {UmbContextProviderController} Reference to a Context Provider Controller instance
|
|
23
|
+
* @memberof UmbClassMixin
|
|
24
|
+
*/
|
|
11
25
|
provideContext<BaseType = unknown, ResultType extends BaseType = BaseType, InstanceType extends ResultType = ResultType>(alias: string | UmbContextToken<BaseType, ResultType>, instance: InstanceType): UmbContextProviderController<BaseType, ResultType, InstanceType>;
|
|
26
|
+
/**
|
|
27
|
+
* @description Setup a subscription for a context. The callback is called when the context is resolved.
|
|
28
|
+
* @param {string} contextAlias
|
|
29
|
+
* @param {method} callback Callback method called when context is resolved.
|
|
30
|
+
* @return {UmbContextConsumerController} Reference to a Context Consumer Controller instance
|
|
31
|
+
* @memberof UmbClassMixin
|
|
32
|
+
*/
|
|
12
33
|
consumeContext<BaseType = unknown, ResultType extends BaseType = BaseType>(alias: string | UmbContextToken<BaseType, ResultType>, callback: UmbContextCallback<ResultType>): UmbContextConsumerController<BaseType, ResultType>;
|
|
13
34
|
hasController(controller: UmbController): boolean;
|
|
14
35
|
getControllers(filterMethod: (ctrl: UmbController) => boolean): UmbController[];
|
|
@@ -19,6 +40,10 @@ declare class UmbClassMixinDeclaration extends EventTarget implements UmbClassMi
|
|
|
19
40
|
get controllerAlias(): UmbControllerAlias;
|
|
20
41
|
hostConnected(): void;
|
|
21
42
|
hostDisconnected(): void;
|
|
43
|
+
/**
|
|
44
|
+
* @description Destroys the controller and removes it from the host.
|
|
45
|
+
* @memberof UmbClassMixin
|
|
46
|
+
*/
|
|
22
47
|
destroy(): void;
|
|
23
48
|
}
|
|
24
49
|
export declare const UmbClassMixin: <T extends ClassConstructor>(superClass: T) => UmbClassMixinConstructor & UmbClassMixinDeclaration;
|
|
@@ -15,40 +15,15 @@ export const UmbClassMixin = (superClass) => {
|
|
|
15
15
|
get controllerAlias() {
|
|
16
16
|
return this._controllerAlias;
|
|
17
17
|
}
|
|
18
|
-
/**
|
|
19
|
-
* @description Observe a RxJS source of choice.
|
|
20
|
-
* @param {Observable<T>} source RxJS source
|
|
21
|
-
* @param {method} callback Callback method called when data is changed.
|
|
22
|
-
* @return {UmbObserverController} Reference to a Observer Controller instance
|
|
23
|
-
* @memberof UmbElementMixin
|
|
24
|
-
*/
|
|
25
18
|
observe(source, callback, controllerAlias) {
|
|
26
19
|
return new UmbObserverController(this, source, callback, controllerAlias);
|
|
27
20
|
}
|
|
28
|
-
/**
|
|
29
|
-
* @description Provide a context API for this or child elements.
|
|
30
|
-
* @param {string} contextAlias
|
|
31
|
-
* @param {instance} instance The API instance to be exposed.
|
|
32
|
-
* @return {UmbContextProviderController} Reference to a Context Provider Controller instance
|
|
33
|
-
* @memberof UmbElementMixin
|
|
34
|
-
*/
|
|
35
21
|
provideContext(contextAlias, instance) {
|
|
36
22
|
return new UmbContextProviderController(this, contextAlias, instance);
|
|
37
23
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @description Setup a subscription for a context. The callback is called when the context is resolved.
|
|
40
|
-
* @param {string} contextAlias
|
|
41
|
-
* @param {method} callback Callback method called when context is resolved.
|
|
42
|
-
* @return {UmbContextConsumerController} Reference to a Context Consumer Controller instance
|
|
43
|
-
* @memberof UmbElementMixin
|
|
44
|
-
*/
|
|
45
24
|
consumeContext(contextAlias, callback) {
|
|
46
25
|
return new UmbContextConsumerController(this, contextAlias, callback);
|
|
47
26
|
}
|
|
48
|
-
/**
|
|
49
|
-
* @description Destroys the controller and removes it from the host.
|
|
50
|
-
* @memberof UmbClassMixin
|
|
51
|
-
*/
|
|
52
27
|
destroy() {
|
|
53
28
|
if (this._host) {
|
|
54
29
|
this._host.removeController(this);
|
|
@@ -24,7 +24,7 @@ declare class UmbUserData extends UmbEntityData<UserResponseModel> {
|
|
|
24
24
|
setUserGroups(data: UpdateUserGroupsOnUserRequestModel): void;
|
|
25
25
|
/**
|
|
26
26
|
* Get current user
|
|
27
|
-
* @return {*} {
|
|
27
|
+
* @return {*} {UmbCurrentUser}
|
|
28
28
|
* @memberof UmbUserData
|
|
29
29
|
*/
|
|
30
30
|
getCurrentUser(): UmbCurrentUser;
|
|
@@ -3,7 +3,7 @@ import { umbUserGroupData } from '../user-group/user-group.db.js';
|
|
|
3
3
|
import { arrayFilter, stringFilter, queryFilter } from '../utils.js';
|
|
4
4
|
import { data } from './user.data.js';
|
|
5
5
|
import { UmbId } from '../../../packages/core/id/index.js';
|
|
6
|
-
import { UserStateModel
|
|
6
|
+
import { UserStateModel } from '../../../external/backend-api/index.js';
|
|
7
7
|
const createUserItem = (item) => {
|
|
8
8
|
return {
|
|
9
9
|
name: item.name,
|
|
@@ -67,7 +67,7 @@ class UmbUserData extends UmbEntityData {
|
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
69
|
* Get current user
|
|
70
|
-
* @return {*} {
|
|
70
|
+
* @return {*} {UmbCurrentUser}
|
|
71
71
|
* @memberof UmbUserData
|
|
72
72
|
*/
|
|
73
73
|
getCurrentUser() {
|
|
@@ -113,6 +113,9 @@ UmbBlockWorkspaceViewEditNoRouterElement.styles = [
|
|
|
113
113
|
}
|
|
114
114
|
`,
|
|
115
115
|
];
|
|
116
|
+
__decorate([
|
|
117
|
+
state()
|
|
118
|
+
], UmbBlockWorkspaceViewEditNoRouterElement.prototype, "_hasRootGroups", void 0);
|
|
116
119
|
__decorate([
|
|
117
120
|
state()
|
|
118
121
|
], UmbBlockWorkspaceViewEditNoRouterElement.prototype, "_tabs", void 0);
|
|
@@ -16,7 +16,7 @@ export const manifest = {
|
|
|
16
16
|
alias: 'items',
|
|
17
17
|
label: 'Colors',
|
|
18
18
|
description: 'Add, remove or sort colors',
|
|
19
|
-
propertyEditorUiAlias: 'Umb.PropertyEditorUi.
|
|
19
|
+
propertyEditorUiAlias: 'Umb.PropertyEditorUi.ColorSwatchesEditor',
|
|
20
20
|
},
|
|
21
21
|
],
|
|
22
22
|
},
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.CheckboxList',
|
|
4
4
|
name: 'Checkbox List Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-checkbox-list.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Checkbox List',
|
|
8
8
|
propertyEditorSchemaAlias: 'Umbraco.CheckboxList',
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.CollectionView.BulkActionPermissions',
|
|
4
4
|
name: 'Collection View Bulk Action Permissions Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-collection-view-bulk-action-permissions.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Collection View Bulk Action Permissions',
|
|
8
8
|
propertyEditorSchemaAlias: '',
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.CollectionView.ColumnConfiguration',
|
|
4
4
|
name: 'Collection View Column Configuration Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-collection-view-column-configuration.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Collection View Column Configuration',
|
|
8
8
|
propertyEditorSchemaAlias: '',
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.CollectionView.LayoutConfiguration',
|
|
4
4
|
name: 'Collection View Column Configuration Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-collection-view-layout-configuration.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Collection View Layout Configuration',
|
|
8
8
|
propertyEditorSchemaAlias: '',
|
package/dist-cms/packages/core/property-editor/uis/collection-view/config/order-by/manifests.js
CHANGED
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.CollectionView.OrderBy',
|
|
4
4
|
name: 'Collection View Column Configuration Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-collection-view-order-by.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Collection View Order By',
|
|
8
8
|
propertyEditorSchemaAlias: '',
|
|
@@ -6,7 +6,7 @@ const manifest = {
|
|
|
6
6
|
type: 'propertyEditorUi',
|
|
7
7
|
alias: 'Umb.PropertyEditorUi.CollectionView',
|
|
8
8
|
name: 'Collection View Property Editor UI',
|
|
9
|
-
|
|
9
|
+
element: () => import('./property-editor-ui-collection-view.element.js'),
|
|
10
10
|
meta: {
|
|
11
11
|
label: 'Collection View',
|
|
12
12
|
propertyEditorSchemaAlias: 'Umbraco.ListView',
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.ColorPicker',
|
|
4
4
|
name: 'Color Picker Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-color-picker.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Color Picker',
|
|
8
8
|
propertyEditorSchemaAlias: 'Umbraco.ColorPicker',
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const manifest = {
|
|
2
|
+
type: 'propertyEditorUi',
|
|
3
|
+
alias: 'Umb.PropertyEditorUi.ColorSwatchesEditor',
|
|
4
|
+
name: 'Color Swatches Editor Property Editor UI',
|
|
5
|
+
element: () => import('./property-editor-ui-color-swatches-editor.element.js'),
|
|
6
|
+
meta: {
|
|
7
|
+
label: 'Color Swatches Editor',
|
|
8
|
+
icon: 'icon-page-add',
|
|
9
|
+
group: 'Umbraco.DropDown.Flexible',
|
|
10
|
+
},
|
|
11
|
+
};
|
|
@@ -3,18 +3,18 @@ import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
|
3
3
|
import type { UmbSwatchDetails } from '../../../../../shared/models/index.js';
|
|
4
4
|
import type { UmbPropertyEditorConfigCollection } from '../../index.js';
|
|
5
5
|
/**
|
|
6
|
-
* @element umb-property-editor-ui-color-editor
|
|
6
|
+
* @element umb-property-editor-ui-color-swatches-editor
|
|
7
7
|
*/
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class UmbPropertyEditorUIColorSwatchesEditorElement extends UmbLitElement implements UmbPropertyEditorUiElement {
|
|
9
9
|
#private;
|
|
10
10
|
value: Array<UmbSwatchDetails>;
|
|
11
11
|
private _showLabels;
|
|
12
12
|
set config(config: UmbPropertyEditorConfigCollection | undefined);
|
|
13
13
|
render(): import("lit-html").TemplateResult<1>;
|
|
14
14
|
}
|
|
15
|
-
export default
|
|
15
|
+
export default UmbPropertyEditorUIColorSwatchesEditorElement;
|
|
16
16
|
declare global {
|
|
17
17
|
interface HTMLElementTagNameMap {
|
|
18
|
-
'umb-property-editor-ui-color-editor':
|
|
18
|
+
'umb-property-editor-ui-color-swatches-editor': UmbPropertyEditorUIColorSwatchesEditorElement;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -9,48 +9,48 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
9
9
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
|
-
var
|
|
12
|
+
var _UmbPropertyEditorUIColorSwatchesEditorElement_instances, _UmbPropertyEditorUIColorSwatchesEditorElement_defaultShowLabels, _UmbPropertyEditorUIColorSwatchesEditorElement_onChange;
|
|
13
13
|
import { html, customElement, property, state } from '../../../../../external/lit/index.js';
|
|
14
14
|
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
15
15
|
/**
|
|
16
|
-
* @element umb-property-editor-ui-color-editor
|
|
16
|
+
* @element umb-property-editor-ui-color-swatches-editor
|
|
17
17
|
*/
|
|
18
|
-
let
|
|
18
|
+
let UmbPropertyEditorUIColorSwatchesEditorElement = class UmbPropertyEditorUIColorSwatchesEditorElement extends UmbLitElement {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments);
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
_UmbPropertyEditorUIColorSwatchesEditorElement_instances.add(this);
|
|
22
|
+
_UmbPropertyEditorUIColorSwatchesEditorElement_defaultShowLabels.set(this, true);
|
|
23
23
|
this.value = [];
|
|
24
|
-
this._showLabels = __classPrivateFieldGet(this,
|
|
24
|
+
this._showLabels = __classPrivateFieldGet(this, _UmbPropertyEditorUIColorSwatchesEditorElement_defaultShowLabels, "f");
|
|
25
25
|
}
|
|
26
26
|
set config(config) {
|
|
27
|
-
this._showLabels = config?.getValueByAlias('useLabel') ?? __classPrivateFieldGet(this,
|
|
27
|
+
this._showLabels = config?.getValueByAlias('useLabel') ?? __classPrivateFieldGet(this, _UmbPropertyEditorUIColorSwatchesEditorElement_defaultShowLabels, "f");
|
|
28
28
|
this.value = config?.getValueByAlias('items') ?? [];
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
return html `<umb-multiple-color-picker-input
|
|
32
32
|
?showLabels=${this._showLabels}
|
|
33
33
|
.items="${this.value ?? []}"
|
|
34
|
-
@change=${__classPrivateFieldGet(this,
|
|
34
|
+
@change=${__classPrivateFieldGet(this, _UmbPropertyEditorUIColorSwatchesEditorElement_instances, "m", _UmbPropertyEditorUIColorSwatchesEditorElement_onChange)}></umb-multiple-color-picker-input>`;
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
_UmbPropertyEditorUIColorSwatchesEditorElement_defaultShowLabels = new WeakMap();
|
|
38
|
+
_UmbPropertyEditorUIColorSwatchesEditorElement_instances = new WeakSet();
|
|
39
|
+
_UmbPropertyEditorUIColorSwatchesEditorElement_onChange = function _UmbPropertyEditorUIColorSwatchesEditorElement_onChange(event) {
|
|
40
40
|
this.value = event.target.items;
|
|
41
41
|
this.dispatchEvent(new CustomEvent('property-value-change'));
|
|
42
42
|
};
|
|
43
43
|
__decorate([
|
|
44
44
|
property({ type: Array })
|
|
45
|
-
],
|
|
45
|
+
], UmbPropertyEditorUIColorSwatchesEditorElement.prototype, "value", void 0);
|
|
46
46
|
__decorate([
|
|
47
47
|
state()
|
|
48
|
-
],
|
|
48
|
+
], UmbPropertyEditorUIColorSwatchesEditorElement.prototype, "_showLabels", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
property({ attribute: false })
|
|
51
|
-
],
|
|
52
|
-
|
|
53
|
-
customElement('umb-property-editor-ui-color-editor')
|
|
54
|
-
],
|
|
55
|
-
export {
|
|
56
|
-
export default
|
|
51
|
+
], UmbPropertyEditorUIColorSwatchesEditorElement.prototype, "config", null);
|
|
52
|
+
UmbPropertyEditorUIColorSwatchesEditorElement = __decorate([
|
|
53
|
+
customElement('umb-property-editor-ui-color-swatches-editor')
|
|
54
|
+
], UmbPropertyEditorUIColorSwatchesEditorElement);
|
|
55
|
+
export { UmbPropertyEditorUIColorSwatchesEditorElement };
|
|
56
|
+
export default UmbPropertyEditorUIColorSwatchesEditorElement;
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.DatePicker',
|
|
4
4
|
name: 'Date Picker Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-date-picker.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Date Picker',
|
|
8
8
|
propertyEditorSchemaAlias: 'Umbraco.DateTime',
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.Dropdown',
|
|
4
4
|
name: 'Dropdown Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-dropdown.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Dropdown',
|
|
8
8
|
propertyEditorSchemaAlias: 'Umbraco.DropDown.Flexible',
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.EyeDropper',
|
|
4
4
|
name: 'Eye Dropper Color Picker Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-eye-dropper.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Eye Dropper Color Picker',
|
|
8
8
|
icon: 'icon-colorpicker',
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.IconPicker',
|
|
4
4
|
name: 'Icon Picker Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-icon-picker.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Icon Picker',
|
|
8
8
|
propertyEditorSchemaAlias: 'Umbraco.IconPicker',
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.Label',
|
|
4
4
|
name: 'Label Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-label.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Label',
|
|
8
8
|
icon: 'icon-readonly',
|
|
@@ -1,70 +1,58 @@
|
|
|
1
|
+
import { manifest as checkboxList } from './checkbox-list/manifests.js';
|
|
2
|
+
import { manifest as colorEditor } from './color-swatches-editor/manifests.js';
|
|
1
3
|
import { manifest as colorPicker } from './color-picker/manifests.js';
|
|
2
|
-
import { manifest as colorEditor } from './color-editor/manifests.js';
|
|
3
4
|
import { manifest as datePicker } from './date-picker/manifests.js';
|
|
5
|
+
import { manifest as dropdown } from './dropdown/manifests.js';
|
|
4
6
|
import { manifest as eyeDropper } from './eye-dropper/manifests.js';
|
|
7
|
+
import { manifest as iconPicker } from './icon-picker/manifests.js';
|
|
8
|
+
import { manifest as label } from './label/manifests.js';
|
|
9
|
+
import { manifest as markdownEditor } from './markdown-editor/manifests.js';
|
|
10
|
+
import { manifest as memberGroupPicker } from './member-group-picker/manifests.js';
|
|
11
|
+
import { manifest as memberPicker } from './member-picker/manifests.js';
|
|
12
|
+
import { manifest as multipleTextString } from './multiple-text-string/manifests.js';
|
|
5
13
|
import { manifest as multiUrlPicker } from './multi-url-picker/manifests.js';
|
|
14
|
+
import { manifest as numberRange } from './number-range/manifests.js';
|
|
15
|
+
import { manifest as orderDirection } from './order-direction/manifests.js';
|
|
6
16
|
import { manifest as overlaySize } from './overlay-size/manifests.js';
|
|
7
|
-
import {
|
|
8
|
-
import { manifests as textBoxes } from './text-box/manifests.js';
|
|
9
|
-
import { manifest as dropdown } from './dropdown/manifests.js';
|
|
10
|
-
import { manifest as multipleTextString } from './multiple-text-string/manifests.js';
|
|
11
|
-
import { manifest as textArea } from './textarea/manifests.js';
|
|
17
|
+
import { manifest as radioButtonList } from './radio-button-list/manifests.js';
|
|
12
18
|
import { manifest as slider } from './slider/manifests.js';
|
|
19
|
+
import { manifest as textArea } from './textarea/manifests.js';
|
|
13
20
|
import { manifest as toggle } from './toggle/manifests.js';
|
|
14
|
-
import { manifest as markdownEditor } from './markdown-editor/manifests.js';
|
|
15
|
-
import { manifest as radioButtonList } from './radio-button-list/manifests.js';
|
|
16
|
-
import { manifest as checkboxList } from './checkbox-list/manifests.js';
|
|
17
|
-
import { manifest as numberRange } from './number-range/manifests.js';
|
|
18
21
|
import { manifest as uploadField } from './upload-field/manifests.js';
|
|
19
|
-
import { manifest as
|
|
20
|
-
import { manifests as collectionView } from './collection-view/manifests.js';
|
|
21
|
-
import { manifests as tinyMCE } from './tiny-mce/manifests.js';
|
|
22
|
-
import { manifest as iconPicker } from './icon-picker/manifests.js';
|
|
23
|
-
import { manifest as label } from './label/manifests.js';
|
|
22
|
+
import { manifest as userPicker } from './user-picker/manifests.js';
|
|
24
23
|
import { manifest as valueType } from './value-type/manifests.js';
|
|
24
|
+
import { manifests as collectionView } from './collection-view/manifests.js';
|
|
25
25
|
import { manifests as numbers } from './number/manifests.js';
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
26
|
+
import { manifests as textBoxes } from './text-box/manifests.js';
|
|
27
|
+
import { manifests as tinyMCE } from './tiny-mce/manifests.js';
|
|
28
|
+
import { manifests as treePicker } from './tree-picker/manifests.js';
|
|
29
29
|
export const manifests = [
|
|
30
|
-
|
|
30
|
+
checkboxList,
|
|
31
31
|
colorEditor,
|
|
32
|
+
colorPicker,
|
|
32
33
|
datePicker,
|
|
34
|
+
dropdown,
|
|
33
35
|
eyeDropper,
|
|
36
|
+
iconPicker,
|
|
37
|
+
label,
|
|
38
|
+
markdownEditor,
|
|
39
|
+
memberGroupPicker,
|
|
40
|
+
memberPicker,
|
|
41
|
+
multipleTextString,
|
|
34
42
|
multiUrlPicker,
|
|
43
|
+
numberRange,
|
|
44
|
+
orderDirection,
|
|
35
45
|
overlaySize,
|
|
36
|
-
|
|
37
|
-
multipleTextString,
|
|
38
|
-
textArea,
|
|
46
|
+
radioButtonList,
|
|
39
47
|
slider,
|
|
48
|
+
textArea,
|
|
40
49
|
toggle,
|
|
41
|
-
markdownEditor,
|
|
42
|
-
radioButtonList,
|
|
43
|
-
checkboxList,
|
|
44
|
-
numberRange,
|
|
45
50
|
uploadField,
|
|
46
|
-
orderDirection,
|
|
47
|
-
iconPicker,
|
|
48
|
-
label,
|
|
49
|
-
valueType,
|
|
50
51
|
userPicker,
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
valueType,
|
|
53
|
+
...collectionView,
|
|
53
54
|
...numbers,
|
|
54
55
|
...textBoxes,
|
|
55
|
-
...treePicker,
|
|
56
|
-
...collectionView,
|
|
57
56
|
...tinyMCE,
|
|
58
|
-
|
|
59
|
-
type: 'propertyEditorUi',
|
|
60
|
-
alias: 'Umb.PropertyEditorUi.Number',
|
|
61
|
-
name: 'Number Property Editor UI',
|
|
62
|
-
js: () => import('./number/property-editor-ui-number.element.js'),
|
|
63
|
-
meta: {
|
|
64
|
-
label: 'Number',
|
|
65
|
-
icon: 'icon-autofill',
|
|
66
|
-
group: 'common',
|
|
67
|
-
propertyEditorSchemaAlias: 'Umbraco.Integer',
|
|
68
|
-
},
|
|
69
|
-
},
|
|
57
|
+
...treePicker,
|
|
70
58
|
];
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.MemberGroupPicker',
|
|
4
4
|
name: 'Member Group Picker Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-member-group-picker.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Member Group Picker',
|
|
8
8
|
propertyEditorSchemaAlias: 'Umbraco.MemberGroupPicker',
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.MemberPicker',
|
|
4
4
|
name: 'Member Picker Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-member-picker.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Member Picker',
|
|
8
8
|
propertyEditorSchemaAlias: 'Umbraco.MemberPicker',
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.MultiUrlPicker',
|
|
4
4
|
name: 'Multi URL Picker Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-multi-url-picker.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Multi URL Picker',
|
|
8
8
|
propertyEditorSchemaAlias: 'Umbraco.MultiUrlPicker',
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.MultipleTextString',
|
|
4
4
|
name: 'Multiple Text String Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-multiple-text-string.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Multiple Text String',
|
|
8
8
|
propertyEditorSchemaAlias: 'Umbraco.MultipleTextString',
|
|
@@ -9,7 +9,7 @@ export const manifests = [
|
|
|
9
9
|
type: 'propertyEditorUi',
|
|
10
10
|
alias: 'Umb.PropertyEditorUi.Integer',
|
|
11
11
|
name: 'Integer Property Editor UI',
|
|
12
|
-
|
|
12
|
+
element: () => import('./property-editor-ui-number.element.js'),
|
|
13
13
|
meta: {
|
|
14
14
|
label: 'Integer',
|
|
15
15
|
propertyEditorSchemaAlias: 'Umbraco.Integer',
|
|
@@ -30,7 +30,7 @@ export const manifests = [
|
|
|
30
30
|
type: 'propertyEditorUi',
|
|
31
31
|
alias: 'Umb.PropertyEditorUi.Decimal',
|
|
32
32
|
name: 'Decimal Property Editor UI',
|
|
33
|
-
|
|
33
|
+
element: () => import('./property-editor-ui-number.element.js'),
|
|
34
34
|
meta: {
|
|
35
35
|
label: 'Decimal',
|
|
36
36
|
propertyEditorSchemaAlias: 'Umbraco.Decimal',
|
|
@@ -47,4 +47,16 @@ export const manifests = [
|
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
|
+
{
|
|
51
|
+
type: 'propertyEditorUi',
|
|
52
|
+
alias: 'Umb.PropertyEditorUi.Number',
|
|
53
|
+
name: 'Number Property Editor UI',
|
|
54
|
+
element: () => import('./property-editor-ui-number.element.js'),
|
|
55
|
+
meta: {
|
|
56
|
+
label: 'Number',
|
|
57
|
+
icon: 'icon-autofill',
|
|
58
|
+
group: 'common',
|
|
59
|
+
propertyEditorSchemaAlias: 'Umbraco.Integer',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
50
62
|
];
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.NumberRange',
|
|
4
4
|
name: 'Number Range Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-number-range.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Number Range',
|
|
8
8
|
propertyEditorSchemaAlias: '',
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.OrderDirection',
|
|
4
4
|
name: 'Order Direction Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-order-direction.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Order Direction',
|
|
8
8
|
propertyEditorSchemaAlias: '',
|
|
@@ -2,7 +2,7 @@ export const manifest = {
|
|
|
2
2
|
type: 'propertyEditorUi',
|
|
3
3
|
alias: 'Umb.PropertyEditorUi.OverlaySize',
|
|
4
4
|
name: 'Overlay Size Property Editor UI',
|
|
5
|
-
|
|
5
|
+
element: () => import('./property-editor-ui-overlay-size.element.js'),
|
|
6
6
|
meta: {
|
|
7
7
|
label: 'Overlay Size',
|
|
8
8
|
propertyEditorSchemaAlias: '',
|