Commit Graph

24 Commits

Author SHA1 Message Date
Mads Rasmussen
424beea16e Feature: Create data type folders (1. round) (#630)
* update data type handlers

* call correct method on repo

* introduce base menu item element

* wip register create and delete entity actions for data types

* stop event

* add folder request interceptor

* remove todo

* create interface for folder data source

* create interface for folder repository

* open create dialog in data type create action

* wip create folder modal

* add token

* clean up data type repo

* add has children prop

* add create folder modal

* add folder to temp data

* update import

* implement delete folder action

* add method to update folder

* update detail data source interface to follow backend models

* lint fixes

* move import fixes

* make generic folder modal

* add correct request model

* add put interceptor

* fix import

* update data type notification headline
2023-03-31 13:41:14 +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ø
3a8b8089bf correct imports 2023-03-23 22:04:49 +01:00
Niels Lyngsø
c7a77c23e2 confirm modal 2023-03-23 21:27:28 +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
Jacob Overgaard
b45768e9d6 add rollup.config.ts to model libs 2023-03-13 16:42:54 +01:00
Jacob Overgaard
86b6725aa4 Merge remote-tracking branch 'origin/main' into feature/slimmer-libs 2023-03-13 10:20:17 +01:00
Mads Rasmussen
2353e4b7fa call close from within the modal element 2023-03-10 11:56:26 +01:00
Niels Lyngsø
cab5537fbb split close and submit callbacks 2023-03-10 11:08:39 +01:00
Mads Rasmussen
0abe373fda use alias to import modal lib 2023-03-09 22:20:43 +01:00
Mads Rasmussen
a222fc50ff fix import 2023-03-09 22:04:09 +01:00
Mads Rasmussen
a46d81486e update all usages of the confirm dialog 2023-03-08 16:20:27 +01:00
Mads Rasmussen
2694b964d3 move modal to libs 2023-03-07 19:38:56 +01:00
Jacob Overgaard
8fd2bf910c build declarations for libraries 2023-03-07 15:31:56 +01:00
Mads Rasmussen
7946f8d13b Bugfix: Rename Modal Service (#571)
* rename file

* rename class

* rename token

* rename all usages of modal service

---------

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2023-03-02 09:14:22 +01:00
Mads Rasmussen
00654fb1a0 update bulk action interface 2023-02-28 14:08:43 +01:00
Mads Rasmussen
d6f54a544b add type to element 2023-02-28 14:08:43 +01:00
Mads Rasmussen
5d2d757708 move default actions to lib folder 2023-02-28 14:08:43 +01:00
Mads Rasmussen
cc921631ee move action base class to entity action lib folder 2023-02-28 14:08:43 +01:00
Mads Rasmussen
96e1282aad update bulk actions to use base class 2023-02-28 14:08:43 +01:00
Mads Rasmussen
52bd9147b1 add rollup config 2023-02-28 14:08:43 +01:00
Mads Rasmussen
d18bc9d3be add import barrel 2023-02-28 14:08:43 +01:00
Mads Rasmussen
1e241e7588 rename file 2023-02-28 14:08:43 +01:00
Mads Rasmussen
2946851c0e move entity action base class to lib folder 2023-02-28 14:08:43 +01:00