Commit Graph

724 Commits

Author SHA1 Message Date
Niels Lyngsø
ecd8f95bc9 extract deepFreeze function 2023-02-21 20:20:42 +01:00
Niels Lyngsø
e3aea053ae Merge remote-tracking branch 'origin/feature/language-repository' into feature/document-variants
# Conflicts:
#	src/backoffice/documents/documents/workspace/document-workspace.context.ts
#	src/backoffice/documents/documents/workspace/views/document-workspace-view-edit-properties.element.ts
#	src/backoffice/documents/documents/workspace/views/document-workspace-view-edit.element.ts
#	src/backoffice/shared/components/workspace/workspace-context/workspace-entity-context.interface.ts
#	src/backoffice/users/users/workspace/user-workspace.context.ts
#	src/core/mocks/data/document-type.data.ts
#	src/core/mocks/data/document.data.ts
2023-02-21 15:48:26 +01:00
Niels Lyngsø
ebad04d56a update mock models 2023-02-21 15:26:19 +01:00
Niels Lyngsø
4222b001ec new generated models 2023-02-21 14:53:29 +01:00
Niels Lyngsø
99f4d70051 restructuring on UmbVariantId 2023-02-21 14:39:08 +01:00
Mads Rasmussen
d45e00538b Merge branch 'main' into feature/language-repository 2023-02-21 13:17:53 +01:00
Lone Iversen
50ea76a8ea Merge branch 'main' into feature/property-editor-multi-url-picker 2023-02-20 12:18:43 +01:00
Lone Iversen
e81d79638e test file, udi to key 2023-02-20 10:00:17 +01:00
Lone Iversen
0adea4134d swatch model 2023-02-17 16:25:59 +01:00
Lone Iversen
6ba488c239 Update libs/utils/udi-service.ts
Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2023-02-17 15:36:03 +01:00
Julia Gru
8968ee2eeb Merge branch 'main' into feature/log-viewer 2023-02-17 12:15:18 +01:00
Lone Iversen
40c5900388 udi service 2023-02-17 11:22:11 +01:00
Mads Rasmussen
7a2f52a964 remove detail from method names 2023-02-16 13:39:28 +01:00
Warren Buckley
18d370392e Merge branch 'main' into feature/debug-component 2023-02-15 16:45:45 +00:00
Mads Rasmussen
0a110c828a wip migrate languages to repositories 2023-02-15 15:33:08 +01:00
Mads Rasmussen
d86f18f6eb move eslint comment 2023-02-15 12:38:46 +01:00
Mads Rasmussen
9892f3cae4 Merge branch 'main' into bugfix/data-type-workspace 2023-02-15 11:46:13 +01:00
Warren Buckley
e311465a1e Remove unused import 2023-02-15 09:06:31 +00:00
Warren Buckley
7b99678f20 Merge remote-tracking branch 'origin/main' into feature/debug-component
# Conflicts:
#	libs/context-api/provide/context-provider.ts
2023-02-15 09:05:01 +00:00
Niels Lyngsø
5df2f3a4f1 context-provider-controller prevents replacement (#519)
* context-provider-controller prevents replacement

* correct import order

* do not re-provide self providing context

* define and test controller-host-test element
2023-02-15 08:47:00 +00:00
Warren Buckley
de8406504f Merge branch 'main' into feature/debug-component 2023-02-14 15:00:57 +00:00
Nathan Woulfe
3f0a4c43b5 Translations section - WIP (#390)
* initial poc for translations section

* umb-section-sidebar to top of stack,
only show content-app tabs when more than one exists

* delete old

* add empty translation

* adds tree actions

* save/delete
scaffold stories for dashboard and edit view

* uses generic node-save

* import path

* no border-bottom on last property editor

* add shared component for context menu layout
- set headline
- set footer and action buttons

* use umb-context-menu-layout

* hygiene

* fix icon in data mock

* remove logging

* add generic error logging to UmbDataStoreBase

* switch get to management api

* adds create button, filter input

* update store

* use store instead of directly calling resource
updates to manage changes for uniqueBehaviorSubject

* adds import action

* alert for debugging

* avoid mutating items when getting children
tidy up table generation
pass file rather than formdata

* revert table changes - handled in separate pr

* null check dictionary items

* update to use store context token
alt treatment for section with single dashboard

* fixes after merging - libs, store split

* fix store splits

* update model references

* merge main

* update api/models/services
update transation dashboard to get all languages, to map display names

* prepended input icon needs div rather than directly slotting

* post-merge cleanup, sort dashboard by default then name

* show all languages when editing

* native private, indent children in overview

* updates using true data source rather than mocks

* remove todo

* remove logging

* update with repository pattern

* icon

* cleanup actions - native private, unused imports

* more cleanup

* updates export handling

* update mocks/handlers

* add detail repo

* update setting translation value

* more repo improvements, improve editing

* more repo updates
base tree
entity actions

* fix table column headers

* unuse imports

* entity action for save

* use entity actions

* use setPropertyValue

* use tree store base
2023-02-14 14:25:21 +00:00
Warren Buckley
5c2236fe40 Some work witrh help of pairing with Mads to get the contexts collected and then passed to callback on original firing event 2023-02-14 14:12:51 +00:00
Warren Buckley
c00b77791e Rework based on Mads notes 2023-02-14 12:08:30 +00:00
Julia Gru
8f4eace456 Merge branch 'main' into feature/log-viewer 2023-02-14 10:53:24 +01:00
Mads Rasmussen
8fe833e5b3 clean up data types 2023-02-13 21:55:22 +01:00
Niels Lyngsø
60ad1c3835 Feature/tree store base (#514)
* out comment temprorary for development

* initial prep

* comment

* change port number for dev generate api

* generated new apis

* document-type repository

* rename to item

* rename to document

* use ItemType

* not name detail for full models

* correct token

* imports

* correct imports

* use DocumentTypeTreeItem

* mega type adapt commit

* move DataType import

* rename document detail store

* add document

* new mock data

* partialUpdateFrozenArray

* imports

* document context work

* document and document type in context

* data-type stores + data-sources

* byKey document + data-type

* remove type

* comment

* data-type repository

* data-type context adjustments

* data-type data observable

* fix model import

* use ContentTypeCompositionType

* correct mock data

* .

* split treedata / data

* correct mock endpoints

* new models

* update model usage

* correct models

* imports

* correct models

* update model imports

* update models

* update type

* update docuemnt models

* use DocumentModel

* DocumentModel

* import lit/decorators.js

* lint fixes

* remove console.logs

* implementation of tree store base class

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-02-13 13:23:53 +00:00
Niels Lyngsø
818bcb35bb Feature/document using content api (#513)
* out comment temprorary for development

* initial prep

* comment

* change port number for dev generate api

* generated new apis

* document-type repository

* rename to item

* rename to document

* use ItemType

* not name detail for full models

* correct token

* imports

* correct imports

* use DocumentTypeTreeItem

* mega type adapt commit

* move DataType import

* rename document detail store

* add document

* new mock data

* partialUpdateFrozenArray

* imports

* document context work

* document and document type in context

* data-type stores + data-sources

* byKey document + data-type

* remove type

* comment

* data-type repository

* data-type context adjustments

* data-type data observable

* fix model import

* use ContentTypeCompositionType

* correct mock data

* .

* split treedata / data

* correct mock endpoints

* new models

* update model usage

* correct models

* imports

* correct models

* update model imports

* update models

* update type

* update docuemnt models

* use DocumentModel

* DocumentModel

* import lit/decorators.js

* lint fixes

* remove console.logs

* new up router slot

* set hasChildren to false

* fix hos argument + add todo to revisit this code

* add todo

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-02-13 12:33:31 +00:00
Jacob Overgaard
132acb5810 use import.meta.env.BASE_URL to load icons so they work in the CMS which has a different base url 2023-02-13 10:00:06 +01:00
Jacob Overgaard
57ba1e2d51 remove baseUrl function since import.meta.env.BASE_URL provides what we need 2023-02-13 10:00:06 +01:00
Mads Rasmussen
bebd97fc59 remove duplicate interfaces 2023-02-10 12:11:42 +01:00
Mads Rasmussen
10728b6c81 move type fixes 2023-02-10 12:04:50 +01:00
Mads Rasmussen
666a3ccebd fixing types 2023-02-10 12:00:26 +01:00
Mads Rasmussen
25bd735849 Merge branch 'main' into feature/entity-actions 2023-02-10 11:58:55 +01:00
Jacob Overgaard
584afafaf4 rename models 2023-02-10 10:51:02 +01:00
Jacob Overgaard
a3434a544e Merge remote-tracking branch 'origin/main' into chore/apimodels 2023-02-10 10:47:20 +01:00
Jacob Overgaard
034dcf915f @umbraco-cms/models 2023-02-09 17:05:50 +01:00
Jacob Overgaard
25081cc8a0 update ProblemDetailsModel 2023-02-09 16:59:23 +01:00
Mads Rasmussen
25670d09e8 Merge branch 'main' into feature/entity-actions 2023-02-09 14:59:17 +01:00
Jacob Overgaard
47a5866abf generate new models with the "Model" suffix 2023-02-09 13:37:35 +01:00
Julia Gru
156a91c565 Merge branch 'main' into feature/log-viewer 2023-02-09 09:01:55 +01:00
Mads Rasmussen
a2ae2d3e0d use new extension point for bulk action + remove old 2023-02-08 09:48:57 +01:00
Nathan Woulfe
e4effeb3a7 scaffold members section 2023-02-08 15:24:46 +10:00
Mads Rasmussen
8ff26c1aec add action and entity action base classes 2023-02-07 21:47:58 +01:00
Mads Rasmussen
24d4157b77 implement repositories for media 2023-02-07 19:16:06 +01:00
Mads Rasmussen
ca53fa300a add bulk action extension type 2023-02-07 15:15:01 +01:00
Julia Gru
bba7b9b785 create repository, store and source
I have no clue what i'm doing lol
2023-02-07 14:28:44 +01:00
Mads Rasmussen
d7564149d3 make api optional 2023-02-07 11:39:50 +01:00
Mads Rasmussen
abc26ffa87 don't use unique in workspace actions 2023-02-07 11:02:53 +01:00
Mads Rasmussen
f364b493cf Merge branch 'main' into feature/entity-actions 2023-02-07 08:40:31 +01:00