@evotecit/canopyx 0.3.20 → 0.3.22
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/CanopyX.Html/Assets/canopyx-calendar-screen.css +71 -0
- package/CanopyX.Html/Assets/canopyx-calendar-screen.js +38 -0
- package/CanopyX.Html/Assets/canopyx-calendar.css +15 -3
- package/CanopyX.Html/Assets/canopyx-calendar.js +16 -14
- package/CanopyX.Html/Assets/canopyx-grid-module.mjs +5 -6
- package/CanopyX.Html/Assets/canopyx-grid.js +4 -5
- package/CanopyX.Html/Assets/canopyx-interactive.js +3 -4
- package/CanopyX.Html/Assets/canopyx-labels-de.js +7 -0
- package/CanopyX.Html/Assets/canopyx-labels-es.js +7 -0
- package/CanopyX.Html/Assets/canopyx-labels-fr.js +7 -0
- package/CanopyX.Html/Assets/canopyx-labels-it.js +7 -0
- package/CanopyX.Html/Assets/canopyx-labels-pl.js +7 -0
- package/CanopyX.Html/Assets/canopyx-module.mjs +4 -5
- package/CanopyX.Html/Assets/canopyx-reporting-module.mjs +5 -6
- package/CanopyX.Html/Assets/canopyx-reporting.js +4 -5
- package/CanopyX.Html/Assets/canopyx-ui-accordion.css +119 -0
- package/CanopyX.Html/Assets/canopyx-ui-accordion.js +33 -0
- package/CanopyX.Html/Assets/canopyx-ui-module.mjs +39 -0
- package/CanopyX.Html/Assets/canopyx-ui-navigation.css +4 -4
- package/CanopyX.Html/Assets/canopyx-ui-navigation.js +5 -5
- package/CanopyX.Html/Assets/canopyx-ui-overlays.js +1 -1
- package/CanopyX.Html/Assets/canopyx-ui-stepper.js +1 -1
- package/CanopyX.Html/Assets/canopyx-ui-tabs.css +1 -0
- package/CanopyX.Html/Assets/canopyx-ui-tabs.js +7 -4
- package/CanopyX.Html/Assets/canopyx-ui.css +119 -0
- package/CanopyX.Html/Assets/canopyx-ui.js +37 -0
- package/CanopyX.Html/Assets/canopyx.js +3 -4
- package/JavaScript/calendar.d.ts +39 -0
- package/JavaScript/locales/de.mjs +7 -0
- package/JavaScript/locales/es.mjs +7 -0
- package/JavaScript/locales/fr.mjs +7 -0
- package/JavaScript/locales/it.mjs +7 -0
- package/JavaScript/locales/pl.mjs +7 -0
- package/JavaScript/protocol.d.ts +1 -0
- package/JavaScript/ui.d.ts +70 -2
- package/package.json +18 -1
package/JavaScript/ui.d.ts
CHANGED
|
@@ -70,6 +70,10 @@ export interface UiTabsOptions extends UiNavigationOptions {
|
|
|
70
70
|
transition?: "none" | "fade" | "slide";
|
|
71
71
|
hash?: boolean;
|
|
72
72
|
hashHistory?: "replace" | "push";
|
|
73
|
+
/** Remembers the selected tab in localStorage, under the root id (true) or this key. A link in the address wins. */
|
|
74
|
+
remember?: boolean | string;
|
|
75
|
+
/** Horizontal tabs share the full width equally. */
|
|
76
|
+
justified?: boolean;
|
|
73
77
|
tabs?: readonly UiTabOptions[];
|
|
74
78
|
/** Optional automatic progression. Manual selection stops it; reduced motion disables it.
|
|
75
79
|
* False disables settings emitted by the .NET builder. */
|
|
@@ -94,7 +98,65 @@ export interface UiNavigationController extends UiController {
|
|
|
94
98
|
/** Prepares deferred print bodies without navigation. Await before window.print(); rejects on load failure or cancellation. */
|
|
95
99
|
preparePrint(): Promise<void>;
|
|
96
100
|
}
|
|
97
|
-
export interface UiTabsController extends UiNavigationController {
|
|
101
|
+
export interface UiTabsController extends UiNavigationController {
|
|
102
|
+
/** Selects the next or previous enabled tab, stopping at the ends. Resolves false when there is none. */
|
|
103
|
+
next(): Promise<boolean>;
|
|
104
|
+
back(): Promise<boolean>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** An accordion section. In beforeChange, open is the state being requested. */
|
|
108
|
+
export interface UiAccordionItem extends UiNavigationItem {
|
|
109
|
+
readonly open: boolean;
|
|
110
|
+
}
|
|
111
|
+
/** Deferred settings for one section, matched by its data-accordion-id. */
|
|
112
|
+
export interface UiAccordionSectionOptions extends UiDeferredOptions<UiAccordionItem> {
|
|
113
|
+
id: string;
|
|
114
|
+
}
|
|
115
|
+
/** Accordion over the .NET heading and panel contract. Each section loads on its own; closing one aborts its pending loader. */
|
|
116
|
+
export interface UiAccordionOptions extends UiDeferredOptions<UiAccordionItem> {
|
|
117
|
+
/** Lets several sections stay open. Defaults to false: opening a section closes the open one. */
|
|
118
|
+
multiple?: boolean;
|
|
119
|
+
/** Section identities or indexes to open, instead of the markup's own. A link in the address and remembered state win over this. */
|
|
120
|
+
open?: readonly (string | number)[];
|
|
121
|
+
style?: "default" | "flush" | "separated" | "section";
|
|
122
|
+
indicator?: "chevron" | "plus";
|
|
123
|
+
indicatorPosition?: "end" | "start";
|
|
124
|
+
transition?: "none" | "slide";
|
|
125
|
+
print?: "all" | "selected";
|
|
126
|
+
/** Writes open sections to the address as repeated `root-id=section-id` pairs. Requires a root id. */
|
|
127
|
+
hash?: boolean;
|
|
128
|
+
hashHistory?: "replace" | "push";
|
|
129
|
+
/** Remembers open sections in localStorage, under the root id (true) or this key. */
|
|
130
|
+
remember?: boolean | string;
|
|
131
|
+
/** A filter box above the sections. Filtering hides sections without closing them.
|
|
132
|
+
* It reads the header text; `or`, `|`, quoted phrases and a leading `-` or `!` are understood. */
|
|
133
|
+
search?: boolean | {
|
|
134
|
+
placeholder?: string;
|
|
135
|
+
/** Delay after typing, in milliseconds. Defaults to 150. */
|
|
136
|
+
debounce?: number;
|
|
137
|
+
};
|
|
138
|
+
/** Adds a copy-title button to every section, or removes the ones the markup asks for. */
|
|
139
|
+
copyTitle?: boolean;
|
|
140
|
+
/** Renders an encoded icon name from the markup into a decorative node or plain text. */
|
|
141
|
+
renderIcon?: (icon: string, item: Partial<UiAccordionItem>) => Node | string | null | void;
|
|
142
|
+
labels?: UiLabels;
|
|
143
|
+
sections?: readonly UiAccordionSectionOptions[];
|
|
144
|
+
/** Returning false cancels. In a single-open accordion from is the section that would close; to.open is the requested state. */
|
|
145
|
+
beforeChange?: (from: UiAccordionItem | undefined, to: UiAccordionItem, signal: AbortSignal) => boolean | void | Promise<boolean | void>;
|
|
146
|
+
}
|
|
147
|
+
export interface UiAccordionController extends UiController {
|
|
148
|
+
open(idOrIndex: string | number): Promise<boolean>;
|
|
149
|
+
close(idOrIndex: string | number): Promise<boolean>;
|
|
150
|
+
toggle(idOrIndex: string | number): Promise<boolean>;
|
|
151
|
+
/** The open section identities in display order. */
|
|
152
|
+
getOpen(): UiResult<string[]>;
|
|
153
|
+
/** Filters sections by header text and returns how many remain visible. An empty query shows all. */
|
|
154
|
+
filter(query?: string): UiResult<number>;
|
|
155
|
+
/** Rediscovers the current markup and updates presentation. */
|
|
156
|
+
refresh(): UiResult<void>;
|
|
157
|
+
/** Prepares deferred print bodies without opening sections. Await before window.print(); rejects on load failure or cancellation. */
|
|
158
|
+
preparePrint(): Promise<void>;
|
|
159
|
+
}
|
|
98
160
|
|
|
99
161
|
/** Step states are presentation supplied by the host or by successful navigation and validation. */
|
|
100
162
|
export type UiStepState = "upcoming" | "current" | "done" | "error" | "skipped" | "disabled";
|
|
@@ -241,21 +303,27 @@ export function contextMenu(target: UiTarget,
|
|
|
241
303
|
options?: UiContextMenuOptions): UiContextMenuDisposer;
|
|
242
304
|
export function tabs(target: UiTarget, options?: UiTabsOptions): UiTabsController;
|
|
243
305
|
export function stepper(target: UiTarget, options?: UiStepperOptions): UiStepperController;
|
|
306
|
+
export function accordion(target: UiTarget, options?: UiAccordionOptions): UiAccordionController;
|
|
244
307
|
export function dialog(target: UiTarget, options?: UiDialogOptions): UiDialogController;
|
|
245
308
|
export function drawer(target: UiTarget, options?: UiDrawerOptions): UiDialogController;
|
|
246
309
|
export function popover(target: UiTarget, options?: UiOverlayOptions): UiOverlayController;
|
|
247
310
|
export function tooltip(target: UiTarget, options?: UiOverlayOptions): UiOverlayController;
|
|
248
311
|
export function menu(target: UiTarget, options?: UiMenuOptions): UiMenuController;
|
|
249
312
|
|
|
250
|
-
/** Named UI exports shared by tree
|
|
313
|
+
/** Named UI exports shared by the tree, grid, reporting and UI entry points. */
|
|
251
314
|
export interface UiApi {
|
|
252
315
|
mountUi: typeof mountUi;
|
|
253
316
|
contextMenu: typeof contextMenu;
|
|
254
317
|
tabs: typeof tabs;
|
|
255
318
|
stepper: typeof stepper;
|
|
319
|
+
accordion: typeof accordion;
|
|
256
320
|
dialog: typeof dialog;
|
|
257
321
|
drawer: typeof drawer;
|
|
258
322
|
popover: typeof popover;
|
|
259
323
|
tooltip: typeof tooltip;
|
|
260
324
|
menu: typeof menu;
|
|
261
325
|
}
|
|
326
|
+
|
|
327
|
+
/** The UI entry point (`@evotecit/canopyx/ui`): the UI factories, the part registration and the nonce setter. */
|
|
328
|
+
declare const CanopyXUi: UiApi & { registerPart(name: string, part: { version: string; requires?: string[]; install(context: object): void }): void; setNonce(nonce: string): void };
|
|
329
|
+
export default CanopyXUi;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evotecit/canopyx",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.22",
|
|
4
4
|
"description": "Interactive tree grids and data tables with virtual rows, search, filters and offline HTML reports.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -102,6 +102,8 @@
|
|
|
102
102
|
"./calendar-recurrence.js": "./CanopyX.Html/Assets/canopyx-calendar-recurrence.js",
|
|
103
103
|
"./calendar-edit.js": "./CanopyX.Html/Assets/canopyx-calendar-edit.js",
|
|
104
104
|
"./calendar-ics.js": "./CanopyX.Html/Assets/canopyx-calendar-ics.js",
|
|
105
|
+
"./calendar-screen.js": "./CanopyX.Html/Assets/canopyx-calendar-screen.js",
|
|
106
|
+
"./calendar-screen.css": "./CanopyX.Html/Assets/canopyx-calendar-screen.css",
|
|
105
107
|
"./timeline.js": "./CanopyX.Html/Assets/canopyx-timeline.js",
|
|
106
108
|
"./timeline.css": "./CanopyX.Html/Assets/canopyx-timeline.css",
|
|
107
109
|
"./ui-overlays.js": "./CanopyX.Html/Assets/canopyx-ui-overlays.js",
|
|
@@ -116,6 +118,14 @@
|
|
|
116
118
|
"./ui-tabs.css": "./CanopyX.Html/Assets/canopyx-ui-tabs.css",
|
|
117
119
|
"./ui-stepper.js": "./CanopyX.Html/Assets/canopyx-ui-stepper.js",
|
|
118
120
|
"./ui-stepper.css": "./CanopyX.Html/Assets/canopyx-ui-stepper.css",
|
|
121
|
+
"./ui-accordion.js": "./CanopyX.Html/Assets/canopyx-ui-accordion.js",
|
|
122
|
+
"./ui-accordion.css": "./CanopyX.Html/Assets/canopyx-ui-accordion.css",
|
|
123
|
+
"./ui": {
|
|
124
|
+
"types": "./JavaScript/ui.d.ts",
|
|
125
|
+
"import": "./CanopyX.Html/Assets/canopyx-ui-module.mjs"
|
|
126
|
+
},
|
|
127
|
+
"./ui.js": "./CanopyX.Html/Assets/canopyx-ui.js",
|
|
128
|
+
"./ui.css": "./CanopyX.Html/Assets/canopyx-ui.css",
|
|
119
129
|
"./locales/pl": {
|
|
120
130
|
"types": "./JavaScript/locales/pl.d.ts",
|
|
121
131
|
"import": "./JavaScript/locales/pl.mjs"
|
|
@@ -242,6 +252,8 @@
|
|
|
242
252
|
"CanopyX.Html/Assets/canopyx-calendar-recurrence.js",
|
|
243
253
|
"CanopyX.Html/Assets/canopyx-calendar-edit.js",
|
|
244
254
|
"CanopyX.Html/Assets/canopyx-calendar-ics.js",
|
|
255
|
+
"CanopyX.Html/Assets/canopyx-calendar-screen.js",
|
|
256
|
+
"CanopyX.Html/Assets/canopyx-calendar-screen.css",
|
|
245
257
|
"CanopyX.Html/Assets/canopyx-timeline.js",
|
|
246
258
|
"CanopyX.Html/Assets/canopyx-timeline.css",
|
|
247
259
|
"CanopyX.Html/Assets/canopyx-ui-overlays.js",
|
|
@@ -256,6 +268,11 @@
|
|
|
256
268
|
"CanopyX.Html/Assets/canopyx-ui-tabs.css",
|
|
257
269
|
"CanopyX.Html/Assets/canopyx-ui-stepper.js",
|
|
258
270
|
"CanopyX.Html/Assets/canopyx-ui-stepper.css",
|
|
271
|
+
"CanopyX.Html/Assets/canopyx-ui-accordion.js",
|
|
272
|
+
"CanopyX.Html/Assets/canopyx-ui-accordion.css",
|
|
273
|
+
"CanopyX.Html/Assets/canopyx-ui.js",
|
|
274
|
+
"CanopyX.Html/Assets/canopyx-ui.css",
|
|
275
|
+
"CanopyX.Html/Assets/canopyx-ui-module.mjs",
|
|
259
276
|
"CanopyX.Html/Assets/canopyx-board.js",
|
|
260
277
|
"CanopyX.Html/Assets/canopyx-board.css",
|
|
261
278
|
"CanopyX.Html/Assets/canopyx-plan.js",
|