Split "Sort Children"-logic to remove "illegal" import from core to packages (#19105)

* wip sortChildrenOfContent kind

* export types

* add modal token + consts

* Update manifests.ts

* add content tree item model

* wip use umb-table element

* set as prop

* render sort icon

* prevent selection when sortable

* remove unused

* clean up

* reflect sortable prop

* start implementing sortChildrenOfContent

* render name and create date

* handle date ordering

* remove unused

* clean up

* fix grab and grabbing styling for sortable table rows

* render label when no children

* Update sort-children-of-content-modal.element.ts

* fix styling of load more

* only allow sorting when all items are loaded

* Update index.js
This commit is contained in:
Mads Rasmussen
2025-04-23 17:12:48 +02:00
committed by GitHub
parent 024a450377
commit 513f980e5c
29 changed files with 405 additions and 225 deletions

View File

@@ -2,7 +2,7 @@ import fs from 'fs';
import path from 'path';
import { createImportMap } from '../importmap/index.js';
const ILLEGAL_CORE_IMPORTS_THRESHOLD = 6;
const ILLEGAL_CORE_IMPORTS_THRESHOLD = 5;
const SELF_IMPORTS_THRESHOLD = 0;
const BIDIRECTIONAL_IMPORTS_THRESHOLD = 18;