@umbraco-cms/backoffice 14.0.0--preview004-2a8fbe36 → 14.0.0--preview004-eaff2f45
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/apps/app/app.context.js +1 -1
- package/dist-cms/custom-elements.json +184 -173
- package/dist-cms/packages/core/components/property-type-based-property/property-type-based-property.element.js +2 -2
- package/dist-cms/packages/core/components/variant-selector/variant-selector.element.js +4 -3
- package/dist-cms/packages/core/data-type/components/property-editor-config/property-editor-config.element.d.ts +1 -1
- package/dist-cms/packages/core/data-type/components/property-editor-config/property-editor-config.element.js +9 -8
- package/dist-cms/packages/core/data-type/index.d.ts +0 -1
- package/dist-cms/packages/core/data-type/index.js +0 -1
- package/dist-cms/packages/core/data-type/workspace/data-type-workspace-editor.element.js +1 -1
- package/dist-cms/packages/core/data-type/workspace/data-type-workspace.context.d.ts +3 -3
- package/dist-cms/packages/core/data-type/workspace/data-type-workspace.context.js +44 -6
- package/dist-cms/packages/core/data-type/workspace/views/details/data-type-details-workspace-view.element.js +2 -2
- package/dist-cms/packages/core/data-type/workspace/views/info/workspace-view-data-type-info.element.js +6 -6
- package/dist-cms/packages/core/modal/common/embedded-media/embedded-media-modal.element.js +12 -12
- package/dist-cms/packages/core/property/index.d.ts +4 -0
- package/dist-cms/packages/core/property/index.js +4 -0
- package/dist-cms/packages/core/property/property/index.d.ts +2 -0
- package/dist-cms/packages/core/property/property/index.js +2 -0
- package/dist-cms/packages/core/{workspace/workspace-property/workspace-property.context.d.ts → property/property/property.context.d.ts} +3 -3
- package/dist-cms/packages/core/{workspace/workspace-property/workspace-property.context.js → property/property/property.context.js} +15 -15
- package/dist-cms/packages/core/{workspace/workspace-property/workspace-property.element.d.ts → property/property/property.element.d.ts} +9 -10
- package/dist-cms/packages/core/{workspace/workspace-property/workspace-property.element.js → property/property/property.element.js} +63 -56
- package/dist-cms/packages/core/property/property-dataset/index.d.ts +6 -0
- package/dist-cms/packages/core/property/property-dataset/index.js +6 -0
- package/dist-cms/packages/core/property/property-dataset/nameable-property-dataset-context.interface.d.ts +7 -0
- package/dist-cms/packages/core/property/property-dataset/nameable-property-dataset-context.token.d.ts +5 -0
- package/dist-cms/packages/core/property/property-dataset/nameable-property-dataset-context.token.js +4 -0
- package/dist-cms/packages/core/property/property-dataset/property-dataset-base-context.d.ts +33 -0
- package/dist-cms/packages/core/property/property-dataset/property-dataset-base-context.js +58 -0
- package/dist-cms/packages/core/{workspace/variant-context/variant-context.interface.d.ts → property/property-dataset/property-dataset-context.interface.d.ts} +7 -6
- package/dist-cms/packages/core/property/property-dataset/property-dataset-context.token.d.ts +3 -0
- package/dist-cms/packages/core/property/property-dataset/property-dataset-context.token.js +2 -0
- package/dist-cms/packages/core/property/property-dataset/property-dataset.element.d.ts +67 -0
- package/dist-cms/packages/core/property/property-dataset/property-dataset.element.js +119 -0
- package/dist-cms/packages/core/property/property-layout/index.d.ts +1 -0
- package/dist-cms/packages/core/property/property-layout/index.js +1 -0
- package/dist-cms/packages/core/{workspace/workspace-property-layout/workspace-property-layout.element.d.ts → property/property-layout/property-layout.element.d.ts} +4 -4
- package/dist-cms/packages/core/{workspace/workspace-property-layout/workspace-property-layout.element.js → property/property-layout/property-layout.element.js} +12 -12
- package/dist-cms/packages/core/property/types/index.d.ts +1 -0
- package/dist-cms/packages/core/property/types/index.js +1 -0
- package/dist-cms/packages/core/property/types/property-value-data.type.d.ts +4 -0
- package/dist-cms/packages/core/property/types/property-value-data.type.js +1 -0
- package/dist-cms/packages/core/property-action/common/clear/property-action-clear.element.js +2 -2
- package/dist-cms/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.js +2 -2
- package/dist-cms/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.js +2 -2
- package/dist-cms/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.element.js +5 -2
- package/dist-cms/packages/core/workspace/index.d.ts +1 -3
- package/dist-cms/packages/core/workspace/index.js +1 -3
- package/dist-cms/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.d.ts +3 -2
- package/dist-cms/packages/core/workspace/workspace-context/workspace-variantable-context.interface.d.ts +2 -2
- package/dist-cms/packages/core/workspace/workspace-modal/workspace-modal.element.d.ts +1 -1
- package/dist-cms/packages/core/workspace/workspace-modal/workspace-modal.element.js +2 -2
- package/dist-cms/packages/core/workspace/workspace-property-dataset/index.d.ts +1 -0
- package/dist-cms/packages/core/workspace/workspace-property-dataset/index.js +1 -0
- package/dist-cms/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.d.ts +26 -0
- package/dist-cms/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.js +44 -0
- package/dist-cms/packages/core/workspace/workspace-split-view/workspace-split-view.context.js +1 -1
- package/dist-cms/packages/dictionary/dictionary/workspace/views/editor/workspace-view-dictionary-editor.element.js +2 -2
- package/dist-cms/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit-property.element.js +1 -1
- package/dist-cms/packages/documents/document-types/workspace/views/settings/document-type-workspace-view-settings.element.js +8 -8
- package/dist-cms/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.js +6 -6
- package/dist-cms/packages/documents/document-types/workspace/views/templates/document-type-workspace-view-templates.element.js +4 -4
- package/dist-cms/packages/documents/documents/{variant-context/document-variant-context.d.ts → property-dataset-context/document-property-dataset-context.d.ts} +4 -4
- package/dist-cms/packages/documents/documents/{variant-context/document-variant-context.js → property-dataset-context/document-property-dataset-context.js} +6 -8
- package/dist-cms/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.d.ts +5 -0
- package/dist-cms/packages/documents/documents/{variant-context/document-variant-context.token.js → property-dataset-context/document-property-dataset-context.token.js} +1 -1
- package/dist-cms/packages/documents/documents/workspace/document-workspace.context.d.ts +2 -2
- package/dist-cms/packages/documents/documents/workspace/document-workspace.context.js +3 -3
- package/dist-cms/packages/media/media-types/workspace/views/design/media-type-workspace-view-edit-property.element.js +1 -1
- package/dist-cms/packages/media/media-types/workspace/views/structure/media-type-workspace-view-structure.element.js +6 -6
- package/dist-cms/packages/packages/package-builder/workspace/workspace-package-builder.element.js +15 -29
- package/dist-cms/packages/settings/languages/workspace/language/views/details/language-details-workspace-view.element.js +8 -8
- package/dist-cms/packages/settings/relation-types/workspace/views/relation-type/relation-type-workspace-view-relation-type.element.js +6 -6
- package/dist-cms/packages/tags/property-editors/tags/property-editor-ui-tags.element.js +2 -2
- package/dist-cms/packages/user/user/workspace/components/user-workspace-access-settings/user-workspace-access-settings.element.js +6 -6
- package/dist-cms/packages/user/user/workspace/components/user-workspace-profile-settings/user-workspace-profile-settings.element.js +4 -4
- package/dist-cms/packages/user/user-group/workspace/user-group-workspace-editor.element.js +6 -6
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
- package/dist-cms/vscode-html-custom-data.json +63 -68
- package/examples/dashboard-with-property-dataset/README.md +5 -0
- package/examples/dashboard-with-property-dataset/dataset-dashboard.ts +75 -0
- package/examples/dashboard-with-property-dataset/index.ts +15 -0
- package/package.json +4 -1
- package/dist-cms/packages/core/data-type/variant-context/data-type-variant-context.d.ts +0 -7
- package/dist-cms/packages/core/data-type/variant-context/data-type-variant-context.js +0 -7
- package/dist-cms/packages/core/data-type/variant-context/data-type-variant-context.token.d.ts +0 -5
- package/dist-cms/packages/core/data-type/variant-context/data-type-variant-context.token.js +0 -3
- package/dist-cms/packages/core/data-type/variant-context/index.d.ts +0 -2
- package/dist-cms/packages/core/data-type/variant-context/index.js +0 -2
- package/dist-cms/packages/core/workspace/variant-context/index.d.ts +0 -5
- package/dist-cms/packages/core/workspace/variant-context/index.js +0 -5
- package/dist-cms/packages/core/workspace/variant-context/invariant-workspace-variant-context.d.ts +0 -29
- package/dist-cms/packages/core/workspace/variant-context/invariant-workspace-variant-context.js +0 -48
- package/dist-cms/packages/core/workspace/variant-context/nameable-variant-context.interface.d.ts +0 -7
- package/dist-cms/packages/core/workspace/variant-context/nameable-variant-context.token.d.ts +0 -5
- package/dist-cms/packages/core/workspace/variant-context/nameable-variant-context.token.js +0 -3
- package/dist-cms/packages/core/workspace/variant-context/variant-context.token.d.ts +0 -3
- package/dist-cms/packages/core/workspace/variant-context/variant-context.token.js +0 -2
- package/dist-cms/packages/core/workspace/workspace-property/index.d.ts +0 -2
- package/dist-cms/packages/core/workspace/workspace-property/index.js +0 -2
- package/dist-cms/packages/documents/documents/variant-context/document-variant-context.token.d.ts +0 -5
- /package/dist-cms/packages/core/{workspace/variant-context/nameable-variant-context.interface.js → property/property-dataset/nameable-property-dataset-context.interface.js} +0 -0
- /package/dist-cms/packages/core/{workspace/variant-context/variant-context.interface.js → property/property-dataset/property-dataset-context.interface.js} +0 -0
|
@@ -4848,6 +4848,189 @@
|
|
|
4848
4848
|
}
|
|
4849
4849
|
]
|
|
4850
4850
|
},
|
|
4851
|
+
{
|
|
4852
|
+
"name": "umb-property-dataset",
|
|
4853
|
+
"path": "./../src/packages/core/property/property-dataset/property-dataset.element.ts",
|
|
4854
|
+
"properties": [
|
|
4855
|
+
{
|
|
4856
|
+
"name": "value",
|
|
4857
|
+
"description": "The value of the dataset.",
|
|
4858
|
+
"type": "UmbPropertyValueData<unknown>[]"
|
|
4859
|
+
},
|
|
4860
|
+
{
|
|
4861
|
+
"name": "name",
|
|
4862
|
+
"description": "The name of the dataset, this name varies depending on the use-case. But this is either",
|
|
4863
|
+
"type": "string"
|
|
4864
|
+
},
|
|
4865
|
+
{
|
|
4866
|
+
"name": "context",
|
|
4867
|
+
"type": "UmbPropertyDatasetBaseContext"
|
|
4868
|
+
}
|
|
4869
|
+
],
|
|
4870
|
+
"slots": [
|
|
4871
|
+
{
|
|
4872
|
+
"name": "default",
|
|
4873
|
+
"description": "Slot for rendering content within."
|
|
4874
|
+
}
|
|
4875
|
+
]
|
|
4876
|
+
},
|
|
4877
|
+
{
|
|
4878
|
+
"name": "umb-property-layout",
|
|
4879
|
+
"path": "./../src/packages/core/property/property-layout/property-layout.element.ts",
|
|
4880
|
+
"attributes": [
|
|
4881
|
+
{
|
|
4882
|
+
"name": "alias",
|
|
4883
|
+
"description": "Alias. The technical name of the property.",
|
|
4884
|
+
"type": "string",
|
|
4885
|
+
"default": "\"''\""
|
|
4886
|
+
},
|
|
4887
|
+
{
|
|
4888
|
+
"name": "label",
|
|
4889
|
+
"description": "Label. Name of the property.",
|
|
4890
|
+
"type": "string",
|
|
4891
|
+
"default": "\"''\""
|
|
4892
|
+
},
|
|
4893
|
+
{
|
|
4894
|
+
"name": "orientation",
|
|
4895
|
+
"description": "Orientation: Horizontal is the default where label goes left and editor right.\nVertical is where label goes above the editor.",
|
|
4896
|
+
"type": "string",
|
|
4897
|
+
"default": "\"''\""
|
|
4898
|
+
},
|
|
4899
|
+
{
|
|
4900
|
+
"name": "description",
|
|
4901
|
+
"description": "Description: render a description underneath the label.",
|
|
4902
|
+
"type": "string",
|
|
4903
|
+
"default": "\"''\""
|
|
4904
|
+
}
|
|
4905
|
+
],
|
|
4906
|
+
"properties": [
|
|
4907
|
+
{
|
|
4908
|
+
"name": "alias",
|
|
4909
|
+
"attribute": "alias",
|
|
4910
|
+
"description": "Alias. The technical name of the property.",
|
|
4911
|
+
"type": "string",
|
|
4912
|
+
"default": "\"''\""
|
|
4913
|
+
},
|
|
4914
|
+
{
|
|
4915
|
+
"name": "label",
|
|
4916
|
+
"attribute": "label",
|
|
4917
|
+
"description": "Label. Name of the property.",
|
|
4918
|
+
"type": "string",
|
|
4919
|
+
"default": "\"''\""
|
|
4920
|
+
},
|
|
4921
|
+
{
|
|
4922
|
+
"name": "orientation",
|
|
4923
|
+
"attribute": "orientation",
|
|
4924
|
+
"description": "Orientation: Horizontal is the default where label goes left and editor right.\nVertical is where label goes above the editor.",
|
|
4925
|
+
"type": "string",
|
|
4926
|
+
"default": "\"''\""
|
|
4927
|
+
},
|
|
4928
|
+
{
|
|
4929
|
+
"name": "description",
|
|
4930
|
+
"attribute": "description",
|
|
4931
|
+
"description": "Description: render a description underneath the label.",
|
|
4932
|
+
"type": "string",
|
|
4933
|
+
"default": "\"''\""
|
|
4934
|
+
},
|
|
4935
|
+
{
|
|
4936
|
+
"name": "styles",
|
|
4937
|
+
"type": "array",
|
|
4938
|
+
"default": "[\"UmbTextStyles\",null]"
|
|
4939
|
+
}
|
|
4940
|
+
],
|
|
4941
|
+
"slots": [
|
|
4942
|
+
{
|
|
4943
|
+
"name": "editor",
|
|
4944
|
+
"description": "Slot for rendering the Property Editor"
|
|
4945
|
+
},
|
|
4946
|
+
{
|
|
4947
|
+
"name": "description",
|
|
4948
|
+
"description": "Slot for rendering things below the label."
|
|
4949
|
+
},
|
|
4950
|
+
{
|
|
4951
|
+
"name": "action-menu",
|
|
4952
|
+
"description": "Slot for rendering the Property Action Menu"
|
|
4953
|
+
}
|
|
4954
|
+
]
|
|
4955
|
+
},
|
|
4956
|
+
{
|
|
4957
|
+
"name": "umb-property",
|
|
4958
|
+
"path": "./../src/packages/core/property/property/property.element.ts",
|
|
4959
|
+
"attributes": [
|
|
4960
|
+
{
|
|
4961
|
+
"name": "label",
|
|
4962
|
+
"description": "Label. Name of the property",
|
|
4963
|
+
"type": "string",
|
|
4964
|
+
"default": "\"''\""
|
|
4965
|
+
},
|
|
4966
|
+
{
|
|
4967
|
+
"name": "description",
|
|
4968
|
+
"description": "Description: render a description underneath the label.",
|
|
4969
|
+
"type": "string",
|
|
4970
|
+
"default": "\"''\""
|
|
4971
|
+
},
|
|
4972
|
+
{
|
|
4973
|
+
"name": "alias",
|
|
4974
|
+
"description": "Alias",
|
|
4975
|
+
"type": "string",
|
|
4976
|
+
"default": "\"''\""
|
|
4977
|
+
},
|
|
4978
|
+
{
|
|
4979
|
+
"name": "property-editor-ui-alias",
|
|
4980
|
+
"description": "Property Editor UI Alias. Render the Property Editor UI registered for this alias.",
|
|
4981
|
+
"type": "string",
|
|
4982
|
+
"default": "\"''\""
|
|
4983
|
+
},
|
|
4984
|
+
{
|
|
4985
|
+
"name": "config",
|
|
4986
|
+
"description": "Config. Configuration to pass to the Property Editor UI. This is also the configuration data stored on the Data Type.",
|
|
4987
|
+
"type": "string",
|
|
4988
|
+
"default": "\"''\""
|
|
4989
|
+
}
|
|
4990
|
+
],
|
|
4991
|
+
"properties": [
|
|
4992
|
+
{
|
|
4993
|
+
"name": "label",
|
|
4994
|
+
"attribute": "label",
|
|
4995
|
+
"description": "Label. Name of the property",
|
|
4996
|
+
"type": "string",
|
|
4997
|
+
"default": "\"''\""
|
|
4998
|
+
},
|
|
4999
|
+
{
|
|
5000
|
+
"name": "description",
|
|
5001
|
+
"attribute": "description",
|
|
5002
|
+
"description": "Description: render a description underneath the label.",
|
|
5003
|
+
"type": "string",
|
|
5004
|
+
"default": "\"''\""
|
|
5005
|
+
},
|
|
5006
|
+
{
|
|
5007
|
+
"name": "alias",
|
|
5008
|
+
"attribute": "alias",
|
|
5009
|
+
"description": "Alias",
|
|
5010
|
+
"type": "string",
|
|
5011
|
+
"default": "\"''\""
|
|
5012
|
+
},
|
|
5013
|
+
{
|
|
5014
|
+
"name": "propertyEditorUiAlias",
|
|
5015
|
+
"attribute": "property-editor-ui-alias",
|
|
5016
|
+
"description": "Property Editor UI Alias. Render the Property Editor UI registered for this alias.",
|
|
5017
|
+
"type": "string",
|
|
5018
|
+
"default": "\"''\""
|
|
5019
|
+
},
|
|
5020
|
+
{
|
|
5021
|
+
"name": "config",
|
|
5022
|
+
"attribute": "config",
|
|
5023
|
+
"description": "Config. Configuration to pass to the Property Editor UI. This is also the configuration data stored on the Data Type.",
|
|
5024
|
+
"type": "string",
|
|
5025
|
+
"default": "\"''\""
|
|
5026
|
+
},
|
|
5027
|
+
{
|
|
5028
|
+
"name": "styles",
|
|
5029
|
+
"type": "array",
|
|
5030
|
+
"default": "[\"UmbTextStyles\",null]"
|
|
5031
|
+
}
|
|
5032
|
+
]
|
|
5033
|
+
},
|
|
4851
5034
|
{
|
|
4852
5035
|
"name": "umb-section-default",
|
|
4853
5036
|
"path": "./../src/packages/core/section/section-default.element.ts",
|
|
@@ -5352,184 +5535,12 @@
|
|
|
5352
5535
|
{
|
|
5353
5536
|
"name": "umb-workspace-modal",
|
|
5354
5537
|
"path": "./../src/packages/core/workspace/workspace-modal/workspace-modal.element.ts",
|
|
5355
|
-
"attributes": [
|
|
5356
|
-
{
|
|
5357
|
-
"name": "data"
|
|
5358
|
-
}
|
|
5359
|
-
],
|
|
5360
|
-
"properties": [
|
|
5361
|
-
{
|
|
5362
|
-
"name": "data",
|
|
5363
|
-
"attribute": "data"
|
|
5364
|
-
},
|
|
5365
|
-
{
|
|
5366
|
-
"name": "styles",
|
|
5367
|
-
"default": "[\"UmbTextStyles\",null]"
|
|
5368
|
-
}
|
|
5369
|
-
]
|
|
5370
|
-
},
|
|
5371
|
-
{
|
|
5372
|
-
"name": "umb-workspace-property-layout",
|
|
5373
|
-
"path": "./../src/packages/core/workspace/workspace-property-layout/workspace-property-layout.element.ts",
|
|
5374
|
-
"attributes": [
|
|
5375
|
-
{
|
|
5376
|
-
"name": "alias",
|
|
5377
|
-
"description": "Alias. The technical name of the property.",
|
|
5378
|
-
"type": "string",
|
|
5379
|
-
"default": "\"''\""
|
|
5380
|
-
},
|
|
5381
|
-
{
|
|
5382
|
-
"name": "label",
|
|
5383
|
-
"description": "Label. Name of the property.",
|
|
5384
|
-
"type": "string",
|
|
5385
|
-
"default": "\"''\""
|
|
5386
|
-
},
|
|
5387
|
-
{
|
|
5388
|
-
"name": "orientation",
|
|
5389
|
-
"description": "Orientation: Horizontal is the default where label goes left and editor right.\nVertical is where label goes above the editor.",
|
|
5390
|
-
"type": "string",
|
|
5391
|
-
"default": "\"''\""
|
|
5392
|
-
},
|
|
5393
|
-
{
|
|
5394
|
-
"name": "description",
|
|
5395
|
-
"description": "Description: render a description underneath the label.",
|
|
5396
|
-
"type": "string",
|
|
5397
|
-
"default": "\"''\""
|
|
5398
|
-
}
|
|
5399
|
-
],
|
|
5400
|
-
"properties": [
|
|
5401
|
-
{
|
|
5402
|
-
"name": "alias",
|
|
5403
|
-
"attribute": "alias",
|
|
5404
|
-
"description": "Alias. The technical name of the property.",
|
|
5405
|
-
"type": "string",
|
|
5406
|
-
"default": "\"''\""
|
|
5407
|
-
},
|
|
5408
|
-
{
|
|
5409
|
-
"name": "label",
|
|
5410
|
-
"attribute": "label",
|
|
5411
|
-
"description": "Label. Name of the property.",
|
|
5412
|
-
"type": "string",
|
|
5413
|
-
"default": "\"''\""
|
|
5414
|
-
},
|
|
5415
|
-
{
|
|
5416
|
-
"name": "orientation",
|
|
5417
|
-
"attribute": "orientation",
|
|
5418
|
-
"description": "Orientation: Horizontal is the default where label goes left and editor right.\nVertical is where label goes above the editor.",
|
|
5419
|
-
"type": "string",
|
|
5420
|
-
"default": "\"''\""
|
|
5421
|
-
},
|
|
5422
|
-
{
|
|
5423
|
-
"name": "description",
|
|
5424
|
-
"attribute": "description",
|
|
5425
|
-
"description": "Description: render a description underneath the label.",
|
|
5426
|
-
"type": "string",
|
|
5427
|
-
"default": "\"''\""
|
|
5428
|
-
},
|
|
5429
|
-
{
|
|
5430
|
-
"name": "styles",
|
|
5431
|
-
"type": "array",
|
|
5432
|
-
"default": "[\"UmbTextStyles\",null]"
|
|
5433
|
-
}
|
|
5434
|
-
],
|
|
5435
|
-
"slots": [
|
|
5436
|
-
{
|
|
5437
|
-
"name": "editor",
|
|
5438
|
-
"description": "Slot for rendering the Property Editor"
|
|
5439
|
-
},
|
|
5440
|
-
{
|
|
5441
|
-
"name": "description",
|
|
5442
|
-
"description": "Slot for rendering things below the label."
|
|
5443
|
-
},
|
|
5444
|
-
{
|
|
5445
|
-
"name": "property-action-menu",
|
|
5446
|
-
"description": "Slot for rendering the Property Action Menu"
|
|
5447
|
-
}
|
|
5448
|
-
]
|
|
5449
|
-
},
|
|
5450
|
-
{
|
|
5451
|
-
"name": "umb-workspace-property",
|
|
5452
|
-
"path": "./../src/packages/core/workspace/workspace-property/workspace-property.element.ts",
|
|
5453
|
-
"attributes": [
|
|
5454
|
-
{
|
|
5455
|
-
"name": "label",
|
|
5456
|
-
"description": "Label. Name of the property",
|
|
5457
|
-
"type": "string",
|
|
5458
|
-
"default": "\"''\""
|
|
5459
|
-
},
|
|
5460
|
-
{
|
|
5461
|
-
"name": "description",
|
|
5462
|
-
"description": "Description: render a description underneath the label.",
|
|
5463
|
-
"type": "string",
|
|
5464
|
-
"default": "\"''\""
|
|
5465
|
-
},
|
|
5466
|
-
{
|
|
5467
|
-
"name": "alias",
|
|
5468
|
-
"description": "Alias",
|
|
5469
|
-
"type": "string",
|
|
5470
|
-
"default": "\"''\""
|
|
5471
|
-
},
|
|
5472
|
-
{
|
|
5473
|
-
"name": "_propertyEditorUiAlias",
|
|
5474
|
-
"description": "Property Editor UI Alias. Render the Property Editor UI registered for this alias.",
|
|
5475
|
-
"type": "string",
|
|
5476
|
-
"default": "\"''\""
|
|
5477
|
-
},
|
|
5478
|
-
{
|
|
5479
|
-
"name": "property-editor-ui-alias",
|
|
5480
|
-
"type": "string"
|
|
5481
|
-
},
|
|
5482
|
-
{
|
|
5483
|
-
"name": "config",
|
|
5484
|
-
"description": "Config. Configuration to pass to the Property Editor UI. This is also the configuration data stored on the Data Type.",
|
|
5485
|
-
"type": "string",
|
|
5486
|
-
"default": "\"''\""
|
|
5487
|
-
}
|
|
5488
|
-
],
|
|
5489
5538
|
"properties": [
|
|
5490
5539
|
{
|
|
5491
|
-
"name": "
|
|
5492
|
-
"attribute": "label",
|
|
5493
|
-
"description": "Label. Name of the property",
|
|
5494
|
-
"type": "string",
|
|
5495
|
-
"default": "\"''\""
|
|
5496
|
-
},
|
|
5497
|
-
{
|
|
5498
|
-
"name": "description",
|
|
5499
|
-
"attribute": "description",
|
|
5500
|
-
"description": "Description: render a description underneath the label.",
|
|
5501
|
-
"type": "string",
|
|
5502
|
-
"default": "\"''\""
|
|
5503
|
-
},
|
|
5504
|
-
{
|
|
5505
|
-
"name": "alias",
|
|
5506
|
-
"attribute": "alias",
|
|
5507
|
-
"description": "Alias",
|
|
5508
|
-
"type": "string",
|
|
5509
|
-
"default": "\"''\""
|
|
5510
|
-
},
|
|
5511
|
-
{
|
|
5512
|
-
"name": "_propertyEditorUiAlias",
|
|
5513
|
-
"attribute": "_propertyEditorUiAlias",
|
|
5514
|
-
"description": "Property Editor UI Alias. Render the Property Editor UI registered for this alias.",
|
|
5515
|
-
"type": "string",
|
|
5516
|
-
"default": "\"''\""
|
|
5517
|
-
},
|
|
5518
|
-
{
|
|
5519
|
-
"name": "propertyEditorUiAlias",
|
|
5520
|
-
"attribute": "property-editor-ui-alias",
|
|
5521
|
-
"type": "string"
|
|
5522
|
-
},
|
|
5523
|
-
{
|
|
5524
|
-
"name": "config",
|
|
5525
|
-
"attribute": "config",
|
|
5526
|
-
"description": "Config. Configuration to pass to the Property Editor UI. This is also the configuration data stored on the Data Type.",
|
|
5527
|
-
"type": "string",
|
|
5528
|
-
"default": "\"''\""
|
|
5540
|
+
"name": "data"
|
|
5529
5541
|
},
|
|
5530
5542
|
{
|
|
5531
5543
|
"name": "styles",
|
|
5532
|
-
"type": "array",
|
|
5533
5544
|
"default": "[\"UmbTextStyles\",null]"
|
|
5534
5545
|
}
|
|
5535
5546
|
]
|
|
@@ -46,12 +46,12 @@ let UmbPropertyTypeBasedPropertyElement = class UmbPropertyTypeBasedPropertyElem
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return html `<umb-
|
|
49
|
+
return html `<umb-property
|
|
50
50
|
alias=${ifDefined(this._property?.alias)}
|
|
51
51
|
label=${ifDefined(this._property?.name)}
|
|
52
52
|
description=${ifDefined(this._property?.description || undefined)}
|
|
53
53
|
property-editor-ui-alias=${ifDefined(this._propertyEditorUiAlias)}
|
|
54
|
-
.config=${this._dataTypeData}></umb-
|
|
54
|
+
.config=${this._dataTypeData}></umb-property>`;
|
|
55
55
|
}
|
|
56
56
|
static { this.styles = [
|
|
57
57
|
UmbTextStyles,
|
|
@@ -4,10 +4,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
import { UMB_PROPERTY_DATASET_CONTEXT, isNameablePropertyDatasetContext } from '../../property/index.js';
|
|
7
8
|
import { UmbVariantId } from '../../variant/variant-id.class.js';
|
|
8
9
|
import { UUIInputEvent } from '../../../../external/uui/index.js';
|
|
9
10
|
import { css, html, nothing, customElement, property, state, ifDefined, query, } from '../../../../external/lit/index.js';
|
|
10
|
-
import { UMB_WORKSPACE_SPLIT_VIEW_CONTEXT,
|
|
11
|
+
import { UMB_WORKSPACE_SPLIT_VIEW_CONTEXT, } from '../../workspace/index.js';
|
|
11
12
|
import { UmbLitElement } from '../../../../shared/lit-element/index.js';
|
|
12
13
|
import { ContentStateModel } from '../../../../external/backend-api/index.js';
|
|
13
14
|
let UmbVariantSelectorElement = class UmbVariantSelectorElement extends UmbLitElement {
|
|
@@ -29,7 +30,7 @@ let UmbVariantSelectorElement = class UmbVariantSelectorElement extends UmbLitEl
|
|
|
29
30
|
this._observeVariants();
|
|
30
31
|
this._observeActiveVariants();
|
|
31
32
|
});
|
|
32
|
-
this.consumeContext(
|
|
33
|
+
this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, (instance) => {
|
|
33
34
|
this.#variantContext = instance;
|
|
34
35
|
this._observeVariantContext();
|
|
35
36
|
});
|
|
@@ -84,7 +85,7 @@ let UmbVariantSelectorElement = class UmbVariantSelectorElement extends UmbLitEl
|
|
|
84
85
|
const target = event.composedPath()[0];
|
|
85
86
|
if (typeof target?.value === 'string' &&
|
|
86
87
|
this.#variantContext &&
|
|
87
|
-
|
|
88
|
+
isNameablePropertyDatasetContext(this.#variantContext)) {
|
|
88
89
|
this.#variantContext.setName(target.value);
|
|
89
90
|
}
|
|
90
91
|
}
|
|
@@ -9,7 +9,7 @@ export declare class UmbPropertyEditorConfigElement extends UmbLitElement {
|
|
|
9
9
|
private _properties;
|
|
10
10
|
constructor();
|
|
11
11
|
render(): unknown;
|
|
12
|
-
static styles: import("@lit/reactive-element/css-tag").CSSResult[];
|
|
12
|
+
static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
|
|
13
13
|
}
|
|
14
14
|
export default UmbPropertyEditorConfigElement;
|
|
15
15
|
declare global {
|
|
@@ -4,10 +4,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
import { UMB_DATA_TYPE_WORKSPACE_CONTEXT } from '../../workspace/data-type-workspace.context.js';
|
|
7
8
|
import { html, customElement, state, ifDefined, repeat } from '../../../../../external/lit/index.js';
|
|
8
9
|
import { UmbTextStyles } from '../../../../../shared/style/index.js';
|
|
9
10
|
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
10
|
-
import { UMB_DATA_TYPE_VARIANT_CONTEXT } from '../../index.js';
|
|
11
11
|
/**
|
|
12
12
|
* @element umb-property-editor-config
|
|
13
13
|
* @description - Element for displaying the configuration for a Property Editor based on a Property Editor UI Alias and a Property Editor Model alias.
|
|
@@ -15,30 +15,31 @@ import { UMB_DATA_TYPE_VARIANT_CONTEXT } from '../../index.js';
|
|
|
15
15
|
*/
|
|
16
16
|
let UmbPropertyEditorConfigElement = class UmbPropertyEditorConfigElement extends UmbLitElement {
|
|
17
17
|
// TODO: Make this element generic, so its not bound to DATA-TYPEs. This will require moving some functionality of Data-Type-Context to this. and this might need to self provide a variant Context for its inner property editor UIs.
|
|
18
|
-
#
|
|
18
|
+
#workspaceContext;
|
|
19
19
|
constructor() {
|
|
20
20
|
super();
|
|
21
21
|
this._properties = [];
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
// This now connects to the workspace, as the variant does not know about the layout details.
|
|
23
|
+
this.consumeContext(UMB_DATA_TYPE_WORKSPACE_CONTEXT, (instance) => {
|
|
24
|
+
this.#workspaceContext = instance;
|
|
24
25
|
this.#observeProperties();
|
|
25
26
|
});
|
|
26
27
|
}
|
|
27
28
|
#observeProperties() {
|
|
28
|
-
if (!this.#
|
|
29
|
+
if (!this.#workspaceContext)
|
|
29
30
|
return;
|
|
30
|
-
this.observe(this.#
|
|
31
|
+
this.observe(this.#workspaceContext.properties, (properties) => {
|
|
31
32
|
this._properties = properties;
|
|
32
33
|
}, 'observeProperties');
|
|
33
34
|
}
|
|
34
35
|
render() {
|
|
35
36
|
return this._properties?.length > 0
|
|
36
|
-
? repeat(this._properties, (property) => property.alias, (property) => html `<umb-
|
|
37
|
+
? repeat(this._properties, (property) => property.alias, (property) => html `<umb-property
|
|
37
38
|
label="${property.label}"
|
|
38
39
|
description="${ifDefined(property.description)}"
|
|
39
40
|
alias="${property.alias}"
|
|
40
41
|
property-editor-ui-alias="${property.propertyEditorUiAlias}"
|
|
41
|
-
.config=${property.config}></umb-
|
|
42
|
+
.config=${property.config}></umb-property>`)
|
|
42
43
|
: html `<div>No configuration</div>`;
|
|
43
44
|
}
|
|
44
45
|
static { this.styles = [UmbTextStyles]; }
|
|
@@ -19,7 +19,7 @@ let UmbDataTypeWorkspaceEditorElement = class UmbDataTypeWorkspaceEditorElement
|
|
|
19
19
|
this._dataTypeName = '';
|
|
20
20
|
this.consumeContext(UMB_DATA_TYPE_WORKSPACE_CONTEXT, (workspaceContext) => {
|
|
21
21
|
this.#workspaceContext = workspaceContext;
|
|
22
|
-
this.#workspaceContext?.
|
|
22
|
+
this.#workspaceContext?.createPropertyDatasetContext(this);
|
|
23
23
|
this.#observeIsNew();
|
|
24
24
|
this.#observeName();
|
|
25
25
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { UmbPropertyDatasetContext } from '../../property/index.js';
|
|
1
2
|
import { UmbDataTypeDetailRepository } from '../repository/detail/data-type-detail.repository.js';
|
|
2
|
-
import { UmbDataTypeVariantContext } from '../variant-context/data-type-variant-context.js';
|
|
3
3
|
import type { UmbDataTypeDetailModel } from '../types.js';
|
|
4
4
|
import { UmbInvariantableWorkspaceContextInterface, UmbEditableWorkspaceContextBase, UmbWorkspaceContextInterface } from '../../workspace/index.js';
|
|
5
5
|
import { UmbControllerHost, UmbControllerHostElement } from '../../../../libs/controller-api/index.js';
|
|
@@ -28,7 +28,7 @@ export declare class UmbDataTypeWorkspaceContext extends UmbEditableWorkspaceCon
|
|
|
28
28
|
private _mergeConfigProperties;
|
|
29
29
|
private _mergeConfigDefaultData;
|
|
30
30
|
getPropertyDefaultValue(alias: string): unknown;
|
|
31
|
-
|
|
31
|
+
createPropertyDatasetContext(host: UmbControllerHost): UmbPropertyDatasetContext;
|
|
32
32
|
load(unique: string): Promise<void>;
|
|
33
33
|
create(parentUnique: string | null): Promise<{
|
|
34
34
|
data: any;
|
|
@@ -37,7 +37,7 @@ export declare class UmbDataTypeWorkspaceContext extends UmbEditableWorkspaceCon
|
|
|
37
37
|
getEntityId(): string;
|
|
38
38
|
getEntityType(): string;
|
|
39
39
|
getName(): string | undefined;
|
|
40
|
-
setName(name: string): void;
|
|
40
|
+
setName(name: string | undefined): void;
|
|
41
41
|
setPropertyEditorSchemaAlias(alias?: string): void;
|
|
42
42
|
setPropertyEditorUiAlias(alias?: string): void;
|
|
43
43
|
propertyValueByAlias<ReturnType = unknown>(propertyAlias: string): Promise<Observable<ReturnType>>;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { UmbDataTypeDetailRepository } from '../repository/detail/data-type-detail.repository.js';
|
|
2
|
-
import {
|
|
3
|
-
import { UmbEditableWorkspaceContextBase, } from '../../workspace/index.js';
|
|
2
|
+
import { UmbEditableWorkspaceContextBase, UmbInvariantWorkspacePropertyDatasetContext, } from '../../workspace/index.js';
|
|
4
3
|
import { appendToFrozenArray, UmbArrayState, UmbObjectState, UmbStringState, } from '../../../../libs/observable-api/index.js';
|
|
5
4
|
import { UmbContextToken } from '../../../../libs/context-api/index.js';
|
|
6
5
|
import { combineLatest, map } from '../../../../external/rxjs/index.js';
|
|
7
6
|
import { umbExtensionsRegistry, } from '../../extension-registry/index.js';
|
|
8
7
|
import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from '../../property-editor/index.js';
|
|
9
8
|
export class UmbDataTypeWorkspaceContext extends UmbEditableWorkspaceContextBase {
|
|
10
|
-
// TODO: revisit. temp solution because the create and response models are different.
|
|
11
9
|
#data;
|
|
12
10
|
#getDataPromise;
|
|
13
11
|
#properties;
|
|
@@ -16,7 +14,6 @@ export class UmbDataTypeWorkspaceContext extends UmbEditableWorkspaceContextBase
|
|
|
16
14
|
#propertyEditorUiName;
|
|
17
15
|
constructor(host) {
|
|
18
16
|
super(host, 'Umb.Workspace.DataType', new UmbDataTypeDetailRepository(host));
|
|
19
|
-
// TODO: revisit. temp solution because the create and response models are different.
|
|
20
17
|
this.#data = new UmbObjectState(undefined);
|
|
21
18
|
this.data = this.#data.asObservable();
|
|
22
19
|
this.name = this.#data.asObservablePart((data) => data?.name);
|
|
@@ -103,8 +100,49 @@ export class UmbDataTypeWorkspaceContext extends UmbEditableWorkspaceContextBase
|
|
|
103
100
|
getPropertyDefaultValue(alias) {
|
|
104
101
|
return this._configDefaultData?.find((x) => x.alias === alias)?.value;
|
|
105
102
|
}
|
|
106
|
-
|
|
107
|
-
return new
|
|
103
|
+
createPropertyDatasetContext(host) {
|
|
104
|
+
return new UmbInvariantWorkspacePropertyDatasetContext(host, this);
|
|
105
|
+
/*
|
|
106
|
+
// Example of how this could have been done with the PropertyDatasetBaseContext:
|
|
107
|
+
const context = new UmbPropertyDatasetBaseContext(host);
|
|
108
|
+
|
|
109
|
+
// Observe workspace name:
|
|
110
|
+
this.observe(this.name, (name) => {
|
|
111
|
+
context.setName(name ?? '');
|
|
112
|
+
});
|
|
113
|
+
// Observe the variant name:
|
|
114
|
+
this.observe(context.name, (name) => {
|
|
115
|
+
this.setName(name);
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
this.observe(
|
|
119
|
+
this.properties,
|
|
120
|
+
(properties) => {
|
|
121
|
+
if (properties) {
|
|
122
|
+
properties.forEach(async (property) => {
|
|
123
|
+
// Observe value of workspace:
|
|
124
|
+
this.observe(
|
|
125
|
+
await this.propertyValueByAlias(property.alias),
|
|
126
|
+
(value) => {
|
|
127
|
+
context.setPropertyValue(property.alias, value);
|
|
128
|
+
},
|
|
129
|
+
'observeWorkspacePropertyOf_' + property.alias,
|
|
130
|
+
);
|
|
131
|
+
// Observe value of variant:
|
|
132
|
+
this.observe(
|
|
133
|
+
await context.propertyValueByAlias(property.alias),
|
|
134
|
+
(value) => {
|
|
135
|
+
this.setPropertyValue(property.alias, value);
|
|
136
|
+
},
|
|
137
|
+
'observeVariantPropertyOf_' + property.alias,
|
|
138
|
+
);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
'observePropertyValues',
|
|
143
|
+
);
|
|
144
|
+
return context;
|
|
145
|
+
*/
|
|
108
146
|
}
|
|
109
147
|
async load(unique) {
|
|
110
148
|
this.#getDataPromise = this.repository.requestByUnique(unique);
|
|
@@ -63,7 +63,7 @@ let UmbDataTypeDetailsWorkspaceViewEditElement = class UmbDataTypeDetailsWorkspa
|
|
|
63
63
|
}
|
|
64
64
|
#renderPropertyEditorReference() {
|
|
65
65
|
return html `
|
|
66
|
-
<umb-
|
|
66
|
+
<umb-property-layout label="Property Editor" description="Select a property editor">
|
|
67
67
|
${this._propertyEditorUiAlias && this._propertyEditorSchemaAlias
|
|
68
68
|
? html `
|
|
69
69
|
<!-- TODO: border is a bit weird attribute name. Maybe single or standalone would be better? -->
|
|
@@ -89,7 +89,7 @@ let UmbDataTypeDetailsWorkspaceViewEditElement = class UmbDataTypeDetailsWorkspa
|
|
|
89
89
|
color="default"
|
|
90
90
|
@click=${this._openPropertyEditorUIPicker}></uui-button>
|
|
91
91
|
`}
|
|
92
|
-
</umb-
|
|
92
|
+
</umb-property-layout>
|
|
93
93
|
`;
|
|
94
94
|
}
|
|
95
95
|
#renderPropertyEditorConfig() {
|
|
@@ -31,16 +31,16 @@ let UmbWorkspaceViewDataTypeInfoElement = class UmbWorkspaceViewDataTypeInfoElem
|
|
|
31
31
|
_renderGeneralInfo() {
|
|
32
32
|
return html `
|
|
33
33
|
<uui-box headline="General" style="margin-bottom: 20px;">
|
|
34
|
-
<umb-
|
|
34
|
+
<umb-property-layout label="Id">
|
|
35
35
|
<div slot="editor">${this._dataType?.unique}</div>
|
|
36
|
-
</umb-
|
|
37
|
-
<umb-
|
|
36
|
+
</umb-property-layout>
|
|
37
|
+
<umb-property-layout label="Property Editor Alias">
|
|
38
38
|
<div slot="editor">${this._dataType?.propertyEditorAlias}</div>
|
|
39
|
-
</umb-
|
|
39
|
+
</umb-property-layout>
|
|
40
40
|
|
|
41
|
-
<umb-
|
|
41
|
+
<umb-property-layout label="Property Editor UI Alias">
|
|
42
42
|
<div slot="editor">${this._dataType?.propertyEditorUiAlias}</div>
|
|
43
|
-
</umb-
|
|
43
|
+
</umb-property-layout>
|
|
44
44
|
</uui-box>
|
|
45
45
|
`;
|
|
46
46
|
}
|