@design.estate/dees-catalog 23.2.0 → 23.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_bundle/bundle.js +1 -1
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/contextmenu.d.ts +7 -0
- package/dist_ts_web/contextmenu.js +8 -0
- package/package.json +5 -1
- package/readme.md +8 -0
- package/scripts/check-packed-consumer.mjs +8 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/contextmenu.ts +7 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@design.estate/dees-catalog',
|
|
6
|
-
version: '23.
|
|
6
|
+
version: '23.3.0',
|
|
7
7
|
description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHNfd2ViLzAwX2NvbW1pdGluZm9fZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRztJQUN4QixJQUFJLEVBQUUsNkJBQTZCO0lBQ25DLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLFdBQVcsRUFBRSxzSkFBc0o7Q0FDcEssQ0FBQSJ9
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Granular dees-contextmenu registration and type entry point.
|
|
3
|
+
*
|
|
4
|
+
* Import this subpath when a browser bundle only needs the context menu and its
|
|
5
|
+
* menu-item types and should not load the complete component catalog.
|
|
6
|
+
*/
|
|
7
|
+
export * from './elements/00group-overlay/dees-contextmenu/index.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Granular dees-contextmenu registration and type entry point.
|
|
3
|
+
*
|
|
4
|
+
* Import this subpath when a browser bundle only needs the context menu and its
|
|
5
|
+
* menu-item types and should not load the complete component catalog.
|
|
6
|
+
*/
|
|
7
|
+
export * from './elements/00group-overlay/dees-contextmenu/index.js';
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dG1lbnUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90c193ZWIvY29udGV4dG1lbnUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7O0dBS0c7QUFDSCxjQUFjLHNEQUFzRCxDQUFDIn0=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@design.estate/dees-catalog",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.",
|
|
6
6
|
"main": "dist_ts_web/index.js",
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"types": "./dist_ts_web/icon.d.ts",
|
|
16
16
|
"import": "./dist_ts_web/icon.js"
|
|
17
17
|
},
|
|
18
|
+
"./contextmenu": {
|
|
19
|
+
"types": "./dist_ts_web/contextmenu.d.ts",
|
|
20
|
+
"import": "./dist_ts_web/contextmenu.js"
|
|
21
|
+
},
|
|
18
22
|
"./cdn": {
|
|
19
23
|
"types": "./dist_ts_web/cdn.d.ts",
|
|
20
24
|
"import": "./dist_ts_web/cdn.js"
|
package/readme.md
CHANGED
|
@@ -115,6 +115,7 @@ class MyApp extends DeesElement {
|
|
|
115
115
|
| --- | --- |
|
|
116
116
|
| `@design.estate/dees-catalog` | Every component, registered on import, with the types of their properties and events. |
|
|
117
117
|
| `@design.estate/dees-catalog/icon` | `dees-icon` alone (see [DeesIcon](#deesicon)). |
|
|
118
|
+
| `@design.estate/dees-catalog/contextmenu` | `dees-contextmenu` alone, with the `dees-icon` it draws glyphs with, and its menu-item types `TContextMenuItem`, `IContextMenuItemRegular`, `IContextMenuDivider` and `IContextMenuOptions` (see [DeesContextmenu](#deescontextmenu)). Leaves out ECharts, xterm.js, highlight.js, Monaco and the other components. |
|
|
118
119
|
| `@design.estate/dees-catalog/cdn` | Where the catalog loads Monaco from, as constants, and `monacoVsDirectoryUrl()` for a server that serves Monaco itself. Imports no component, Lit or DOM API, so it runs in plain Node. |
|
|
119
120
|
| `@design.estate/dees-catalog/richtext-markdown` | The richtext editor's Markdown format without the editor: `richtextMarkdownToDoc`, `richtextDocToMarkdown` and `richtextMarkdownRenderOptions`, and its references: `richtextReferenceHref`, `richtextReferenceId`, `richtextMarkdownToReferences` and `richtextReferencesToMarkdown`. Imports no component, Lit or DOM API, so it runs in plain Node. |
|
|
120
121
|
|
|
@@ -4908,6 +4909,13 @@ from background work. Toast `duration: 0` keeps it visible until dismissal.
|
|
|
4908
4909
|
#### `DeesContextmenu`
|
|
4909
4910
|
Context menu component for right-click actions with nested submenu support.
|
|
4910
4911
|
|
|
4912
|
+
Applications that only need the context menu can use the granular entry point
|
|
4913
|
+
without registering or bundling the complete catalog:
|
|
4914
|
+
|
|
4915
|
+
```typescript
|
|
4916
|
+
import { DeesContextmenu, type TContextMenuItem } from '@design.estate/dees-catalog/contextmenu';
|
|
4917
|
+
```
|
|
4918
|
+
|
|
4911
4919
|
Menus take focus after becoming visible. ArrowUp/ArrowDown move through enabled items and the disabled items that say why (`description`), Enter activates the focused item, and Escape dismisses the menu chain without reaching enclosing app shortcuts. Hosts can register focus restoration with the returned menu's `registerGarbageFunction()` hook.
|
|
4912
4920
|
|
|
4913
4921
|
A menu blends in out of the corner nearest its anchor over `--dees-transition-fast` and leaves the same way over `--dees-transition-instant`: it scales from 0.96, its frosted panel's material — tint, border, shadow and backdrop blur — ramps in from nothing, and the commands fade in. `transform-origin` follows the computed placement, so a menu flipped left or up grows from its own corner; submenus and the account dropdown (`DeesAppuiProfileDropdown.openFromTrigger()`) blend the same way, and all of them sit at the medium elevation, `--dees-shadow-md`. The panel never fades as a whole, which would drop the frosted backdrop for the length of the blend, and nothing is clipped, so every command takes presses from the first frame. Under `prefers-reduced-motion: reduce` both blends are immediate.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { execFileSync } from 'node:child_process';
|
|
2
|
-
import { cpSync, mkdirSync, mkdtempSync, readFileSync, renameSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { cpSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, renameSync, writeFileSync } from 'node:fs';
|
|
3
3
|
import { join, resolve } from 'node:path';
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
5
|
|
|
@@ -40,6 +40,13 @@ for (const name of browserTests) {
|
|
|
40
40
|
.replaceAll('../ts_web/', '@design.estate/dees-catalog/dist_ts_web/');
|
|
41
41
|
writeFileSync(join(consumer, `test.${name}.browser.ts`), browserTest);
|
|
42
42
|
}
|
|
43
|
+
// The browser regressions share test/helpers/, which reach the sources one level further up.
|
|
44
|
+
mkdirSync(join(consumer, 'helpers'));
|
|
45
|
+
for (const helper of readdirSync(join(root, 'test/helpers')).filter((fileArg) => fileArg.endsWith('.ts'))) {
|
|
46
|
+
const helperSource = readFileSync(join(root, 'test/helpers', helper), 'utf8')
|
|
47
|
+
.replaceAll('../../ts_web/', '@design.estate/dees-catalog/dist_ts_web/');
|
|
48
|
+
writeFileSync(join(consumer, 'helpers', helper), helperSource);
|
|
49
|
+
}
|
|
43
50
|
console.log(`Packed consumer: ${consumer}`);
|
|
44
51
|
run(['install', '--ignore-scripts']);
|
|
45
52
|
run(['exec', 'tsc', '--version']);
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@design.estate/dees-catalog',
|
|
6
|
-
version: '23.
|
|
6
|
+
version: '23.3.0',
|
|
7
7
|
description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
|
|
8
8
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Granular dees-contextmenu registration and type entry point.
|
|
3
|
+
*
|
|
4
|
+
* Import this subpath when a browser bundle only needs the context menu and its
|
|
5
|
+
* menu-item types and should not load the complete component catalog.
|
|
6
|
+
*/
|
|
7
|
+
export * from './elements/00group-overlay/dees-contextmenu/index.js';
|