Commit Graph

13 Commits

Author SHA1 Message Date
Mads Rasmussen
3029b3d5f0 move data source response interface to the repository module 2023-03-21 13:45:35 +01:00
Jacob Overgaard
796533ff11 Refactor libs into @umbraco-cms/backoffice/* (#608)
* merge libs rollup configs to one rollup

* move css from libs to src/core

* run rollup on cms build

* move test-utils to /utils folder

* move css to src/core

* mark @umbraco-cms/backoffice as external when building for CMS

* rename all models to include @umbraco-cms/backoffice in their path to allow us to publish as a single module

* rename all imports to @umbraco-cms/backoffice/*

* rename events to umb-events to avoid rollup error of protected module name(?)

* test that libs can build

* move css to src/core

* move umb-lit-element and modal elements to src/core

* move some modal interfaces back to libs/modal

* move the icon store into src/core since it is very localized to the backoffice

* comment out build:libs for now since Github runs out of memory

* rename to match tsconfig alias

* add package.json to libs

* only make libs for lib folders

* turn off emit for typescript since we are handling types for libs separately

* build libs locally

* add script to move libs to final destination with some transform

* move libs after build

* move package.json to dist folder first (so we can publish from there)

* remove inline comments

* ensure the outputDir exists

* Remove re-export of extensions-registry library from models library

* move to individual files to avoid circular imports

* check if outputDir exists before trying to create it

* write transforms first in dist file and then copy the file to outputDir

* ensure all umbraco types are external

* copy information from main package.json file
2023-03-21 11:41:06 +01:00
Nathan Woulfe
e7961af9d3 fixes model changes 2023-03-16 18:02:40 +10:00
Jacob Overgaard
b45768e9d6 add rollup.config.ts to model libs 2023-03-13 16:42:54 +01:00
Mads Rasmussen
1f35c4457a Feature: Languages repository (#527)
* wip migrate languages to repositories

* load language and subscribe to draft data

* add methods to update data

* rename file + use methods on context

* add crud methods to repo

* use new workspace action

* clean up

* register delete language entity action + language repository

* add dropdown element to supply styles to the uui popover element

* import dropdown element

* use requestItems in delete action instead of treeItems

* add method to language repo to request items

* add todo

* render entity actions in language table

* clean up table header

* add await to save action

* remove detail from method names

* let save action save or create

* remove save and delete from template workspace

* add isNew to workspace interface

* add isNew to template workspace

* clean up

* fix type errors

* add isNew to workspaces

* add isNew

* remove todo

* remove space

* abstract culture selection into its own component

* add correct event types

* don't show undefined in input

* fix wrong repository alias

* fix import order

* wip language picker

* add language picker modal layout

* handle fallback language change event

* set value for fallback language on language picker input

* remove unused

* add app language select

* don't set width on dropdown

* make scroll container full height

* adjust padding and add border

* temp move sidebar headings + set fixed height on language toggle

* set fixed body header height

* only show scroll bars if sidebar content is scrollable

* align height

* create full scaffold

* align handlers with end points

* align server data source with end points

* add todo

* remove culture warning

* set the culture to readonly on saved languages

* prevent having no default language + show message if changing the default language

* clean up + add caret

* add hover state

* set active state on active language

* make workspace isNew an observable

* update workspace contexts

* fix typescript errors
2023-02-23 21:01:04 +13: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
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
Niels Lyngsø
95f4dded99 fixed document detail data source 2023-02-06 16:18:16 +01:00
Niels Lyngsø
3cf70a1b3c request asObservable() 2023-02-03 15:34:32 +01:00
Mads Rasmussen
be5d9f053e rename delete to trash + fix modal titles 2023-02-02 20:44:59 +01:00
Niels Lyngsø
6d58821245 refactor document to repository 2023-02-02 14:59:20 +01:00
Niels Lyngsø
8012e02c2d further implementation 2023-02-02 13:20:28 +01:00