Commit Graph

66 Commits

Author SHA1 Message Date
Niels Lyngsø
a7b14da047 Merge remote-tracking branch 'origin/main' into feature/document-type-workspace-take-3 2023-04-20 11:21:12 +02:00
Niels Lyngsø
d65cf550bc initial sorting implementation 2023-04-18 12:55:53 +02:00
Mads Rasmussen
14247b04a5 add umb prefix 2023-04-16 20:59:15 +02:00
Mads Rasmussen
cce5477195 add umb prefix 2023-04-16 20:48:38 +02:00
Niels Lyngsø
f8b8f2c259 updated models (#639)
* updated models

* potential fix of eslint

* fix eslint rules

* first batch

* dictionary corrections

* batch 2

* batch 3

* tiny correction

* batch 4

* rename key to id internal models

* batch 5

* batch 6

* correct LogLevelCountsReponseModel

* batch 7

* batch 8

* batch 9

* health check data

* _createTableItems

* revert to key for checkbox list

* batch 9
2023-04-04 13:19:19 +02:00
Niels Lyngsø
dae902c2a0 Partly Document Type Workspace (#636)
* move container property logic into a manager

* restructure of property structure helpers

* simpler styling

* migrate structural code to helper classes

* rename to helper

* re arrange

* rename + transfer structural views

* styling

* context observers

* refactor container observables

* _observeOwnerProperties

* clean up

* creation of base structure

* add property method

* move style

* view and edit properties

* use !

* import ordering

* correct typing

* fixes
2023-04-03 11:34:54 +02:00
Niels Lyngsø
3504b837d3 Merge remote-tracking branch 'origin/main' into feature/documen-type-workspace
# Conflicts:
#	libs/workspace/actions/workspace-action-base.ts
#	libs/workspace/context/workspace-context.interface.ts
#	src/backoffice/documents/document-types/workspace/document-type-workspace.context.ts
#	src/backoffice/media/media/repository/media.repository.ts
#	src/backoffice/shared/components/code-editor/code-editor.stories.ts
#	src/backoffice/shared/components/input-document-type-picker/input-document-type-picker.element.ts
#	src/backoffice/shared/components/tree/tree-item.context.interface.ts
#	src/backoffice/shared/components/workspace/workspace-context/workspace-context.ts
#	src/backoffice/shared/components/workspace/workspace-context/workspace-property-structure-manager.class.ts
#	src/backoffice/shared/components/workspace/workspace-variant/workspace-variant.context.ts
#	src/backoffice/shared/modals/template/template-modal.element.ts
#	src/backoffice/templating/stylesheets/repository/manifests.ts
#	src/backoffice/templating/stylesheets/workspace/stylesheet-workspace.context.ts
2023-03-29 22:45:57 +02:00
Mads Rasmussen
70c2f70420 Chore: Eslint rule to enforce element suffix (#625)
* add eslint rule to enforce element suffix on elements

* remove fixer

* rename first round of elements

* add element to element class name

* add element suffix

* rename element

* add element to UmbControllerHost instead of interface

* update imports after merge

* remove fixable flag

* fix after merge
2023-03-29 17:56:39 +02:00
Niels Lyngsø
2713b109fb Merge remote-tracking branch 'origin/main' into feature/documen-type-workspace 2023-03-29 16:08:34 +02:00
Niels Lyngsø
69f46f74c9 more structure manipulation methods 2023-03-29 15:51:28 +02:00
Niels Lyngsø
55d501ac68 arrayState updateOne method + test 2023-03-29 15:48:57 +02:00
Niels Lyngsø
27795f46c1 fix lib imports 2023-03-23 22:48:57 +01:00
Niels Lyngsø
96de8e710f Merge remote-tracking branch 'origin/main' into feature/modal-routing
# Conflicts:
#	src/backoffice/shared/components/input-multi-url-picker/input-multi-url-picker.element.ts
#	src/backoffice/shared/components/workspace-property/workspace-property.context.ts
#	src/backoffice/shared/property-actions/clear/property-action-clear.element.ts
#	src/backoffice/shared/property-editors/uis/block-grid/property-editor-ui-block-grid.element.ts
#	src/backoffice/shared/property-editors/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts
#	src/core/router/router-slot.element.ts
2023-03-22 11:00:18 +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
Niels Lyngsø
dd974fbf2f Merge remote-tracking branch 'origin/main' into feature/modal-routing
# Conflicts:
#	src/backoffice/documents/documents/workspace/document-workspace.element.ts
#	src/core/router/index.ts
2023-03-20 15:29:51 +01:00
Niels Lyngsø
c65d0506e1 lint and style 2023-03-16 21:13:58 +01:00
Niels Lyngsø
8e8403fda9 more tests 2023-03-16 09:58:33 +01:00
Niels Lyngsø
3dfaa27d57 comment 2023-03-16 09:22:07 +01:00
Niels Lyngsø
7a6b4e74a8 Merge remote-tracking branch 'origin/bugfix/observer-should-resubscripe-if-hostdisconnected' into feature/modal-routing 2023-03-15 20:20:25 +01:00
Niels Lyngsø
28b4ea55d8 make observer re-subscribe on hostConnected if unsubscribed by hostDisconnected 2023-03-15 20:17:52 +01:00
Niels Lyngsø
ab08024e7f fixing moving observable in DOM 2023-03-15 14:02:11 +01:00
Jacob Overgaard
86b6725aa4 Merge remote-tracking branch 'origin/main' into feature/slimmer-libs 2023-03-13 10:20:17 +01:00
Niels Lyngsø
6195965fc1 Split View for Document Workspace (#581)
* updated package-lock

* fix document root route

* deep link for variants

* also post fix the redirect

* split view router concept

* remove comment

* split view routing

* fix only one variant scenario

* add bolean state class

* simplified solution

* using block grid editor as deep router test

* bring back the splitViewIndex for workspace-vari

* moving footer, and spread across variants

* hide footer when no content

* only show navigation in right variant

* switchVariant in splitView

* switching refactored to workspace context

* close concept

* create VariantID from data, not props

* fix variant variant ID

* TODOs

* use ContextToken

* just a difference tag on properties

* a bit more

* closeSplitView use URL

* move splitView code into a splitViewManager

* readonly props

* JSDoc

* change JSDoc sligthly

* less dom activity for splitView change

* use router-slot events for updates

* some docs

* context

* fix imports
2023-03-10 11:34:08 +01:00
Jacob Overgaard
dd151dd2d5 add rollup exports to more libs because of references 2023-03-07 16:02:23 +01:00
Jacob Overgaard
8fd2bf910c build declarations for libraries 2023-03-07 15:31:56 +01:00
Julia Gru
9cadf749c0 Merge branch 'main' into feature/log-viewer 2023-02-25 16:45:49 +01:00
Niels Lyngsø
12df316ea8 class state export 2023-02-22 13:46:06 +01:00
Niels Lyngsø
9ae4694255 fixed property changing value when values was set 2023-02-21 23:32:48 +01:00
Niels Lyngsø
91d37d656e imports 2023-02-21 22:38:30 +01:00
Niels Lyngsø
02afb4d997 update on variant change 2023-02-21 22:12:55 +01:00
Niels Lyngsø
390e8d3f0e rename method files to function 2023-02-21 20:22:04 +01:00
Niels Lyngsø
ecd8f95bc9 extract deepFreeze function 2023-02-21 20:20:42 +01:00
Niels Lyngsø
99f4d70051 restructuring on UmbVariantId 2023-02-21 14:39:08 +01:00
Julia Gru
8968ee2eeb Merge branch 'main' into feature/log-viewer 2023-02-17 12:15:18 +01:00
Mads Rasmussen
d86f18f6eb move eslint comment 2023-02-15 12:38:46 +01: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
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
Niels Lyngsø
e176f35adf use getObservablePart 2023-01-27 13:47:20 +01:00
Niels Lyngsø
d3945a2d8d remove import 2023-01-27 13:17:34 +01:00
Niels Lyngsø
06a13b42cc use getObservablePart 2023-01-27 13:17:21 +01:00
Niels Lyngsø
d9d255904d change to getObservablePart 2023-01-26 10:37:21 +01:00
Niels Lyngsø
b554850078 observablePart as method pon deepState 2023-01-26 10:31:51 +01:00
Niels Lyngsø
8bb409d2c9 JSDocs 2023-01-25 10:45:17 +01:00
Niels Lyngsø
dea113ec8b optimize appending multiple entries to ArrayState 2023-01-25 10:41:34 +01:00
Niels Lyngsø
f7045e6718 filter method for array state 2023-01-25 09:59:24 +01:00
Niels Lyngsø
043d2ec9a8 remove spaces 2023-01-25 09:58:59 +01:00
Niels Lyngsø
408bd7bb5d use != null 2023-01-24 16:48:36 +01:00