domma-js 0.56.0 → 0.58.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/README.md +2 -2
- package/assets/types/generated/public/assets/flags/africa.d.ts +6 -0
- package/assets/types/generated/public/assets/flags/americas.d.ts +6 -0
- package/assets/types/generated/public/assets/flags/asia.d.ts +6 -0
- package/assets/types/generated/public/assets/flags/europe.d.ts +9 -0
- package/assets/types/generated/public/assets/flags/index.d.ts +11 -0
- package/assets/types/generated/public/assets/flags/oceania.d.ts +2 -0
- package/assets/types/generated/public/assets/icons/buildings.d.ts +6 -0
- package/assets/types/generated/public/assets/icons/code.d.ts +2 -0
- package/assets/types/generated/public/assets/icons/commerce.d.ts +7 -0
- package/assets/types/generated/public/assets/icons/communication.d.ts +7 -0
- package/assets/types/generated/public/assets/icons/devices.d.ts +6 -0
- package/assets/types/generated/public/assets/icons/emojis.d.ts +6 -0
- package/assets/types/generated/public/assets/icons/files.d.ts +7 -0
- package/assets/types/generated/public/assets/icons/finance.d.ts +6 -0
- package/assets/types/generated/public/assets/icons/forms.d.ts +5 -0
- package/assets/types/generated/public/assets/icons/health.d.ts +6 -0
- package/assets/types/generated/public/assets/icons/index.d.ts +24 -0
- package/assets/types/generated/public/assets/icons/media.d.ts +7 -0
- package/assets/types/generated/public/assets/icons/navigation.d.ts +7 -0
- package/assets/types/generated/public/assets/icons/seasonal.d.ts +6 -0
- package/assets/types/generated/public/assets/icons/social.d.ts +7 -0
- package/assets/types/generated/public/assets/icons/sport.d.ts +6 -0
- package/assets/types/generated/public/assets/icons/status.d.ts +7 -0
- package/assets/types/generated/public/assets/icons/transport.d.ts +7 -0
- package/assets/types/generated/public/assets/icons/ui.d.ts +7 -0
- package/assets/types/generated/public/assets/icons/weather.d.ts +6 -0
- package/assets/types/generated/src/auth.d.ts +424 -0
- package/assets/types/generated/src/avatar.d.ts +270 -0
- package/assets/types/generated/src/binding-source.d.ts +58 -0
- package/assets/types/generated/src/butterfly-drawing.d.ts +2 -0
- package/assets/types/generated/src/component-factory.d.ts +150 -0
- package/assets/types/generated/src/component.d.ts +162 -0
- package/assets/types/generated/src/components/back-to-top.d.ts +150 -0
- package/assets/types/generated/src/components/badge.d.ts +208 -0
- package/assets/types/generated/src/components/card.d.ts +189 -0
- package/assets/types/generated/src/components/command-palette.d.ts +352 -0
- package/assets/types/generated/src/components/dropzone.d.ts +342 -0
- package/assets/types/generated/src/components/focus-trap.d.ts +238 -0
- package/assets/types/generated/src/components/loader.d.ts +133 -0
- package/assets/types/generated/src/components/modal.d.ts +339 -0
- package/assets/types/generated/src/components/range-slider.d.ts +267 -0
- package/assets/types/generated/src/components/shared.d.ts +91 -0
- package/assets/types/generated/src/components/split-pane.d.ts +239 -0
- package/assets/types/generated/src/components/toast.d.ts +284 -0
- package/assets/types/generated/src/components/tooltip.d.ts +200 -0
- package/assets/types/generated/src/components/virtual-list.d.ts +340 -0
- package/assets/types/generated/src/config.d.ts +193 -0
- package/assets/types/generated/src/context-cursor.d.ts +69 -0
- package/assets/types/generated/src/context-menu.d.ts +596 -0
- package/assets/types/generated/src/dates.d.ts +367 -0
- package/assets/types/generated/src/dom.d.ts +1221 -0
- package/assets/types/generated/src/effects.d.ts +1281 -0
- package/assets/types/generated/src/elements.d.ts +4994 -0
- package/assets/types/generated/src/escape.d.ts +5 -0
- package/assets/types/generated/src/flags-bundle.d.ts +4 -0
- package/assets/types/generated/src/flags.d.ts +338 -0
- package/assets/types/generated/src/forms.d.ts +1060 -0
- package/assets/types/generated/src/globals.d.ts +45 -0
- package/assets/types/generated/src/http.d.ts +131 -0
- package/assets/types/generated/src/i18n.d.ts +261 -0
- package/assets/types/generated/src/icons.d.ts +213 -0
- package/assets/types/generated/src/index.d.ts +249 -0
- package/assets/types/generated/src/input-group.d.ts +135 -0
- package/assets/types/generated/src/models.d.ts +968 -0
- package/assets/types/generated/src/popover.d.ts +413 -0
- package/assets/types/generated/src/router.d.ts +344 -0
- package/assets/types/generated/src/safe-url.d.ts +10 -0
- package/assets/types/generated/src/sanitize.d.ts +97 -0
- package/assets/types/generated/src/schema-builder.d.ts +420 -0
- package/assets/types/generated/src/skeleton.d.ts +135 -0
- package/assets/types/generated/src/smooth-caret.d.ts +61 -0
- package/assets/types/generated/src/sortable.d.ts +368 -0
- package/assets/types/generated/src/storage.d.ts +93 -0
- package/assets/types/generated/src/tables.d.ts +901 -0
- package/assets/types/generated/src/theme.d.ts +262 -0
- package/assets/types/generated/src/ticker-tape-drawing.d.ts +2 -0
- package/assets/types/generated/src/treeview.d.ts +504 -0
- package/assets/types/generated/src/utils.d.ts +1667 -0
- package/assets/types/generated/src/web-components/base/domma-element.d.ts +134 -0
- package/assets/types/generated/src/web-components/index.d.ts +14 -0
- package/assets/types/generated/vendor/domma-reactive.d.ts +587 -0
- package/assets/types/index.d.ts +104 -226
- package/package.json +5 -2
- package/public/dist/bundles/domma-complete.css +20 -14
- package/public/dist/bundles/domma-data-focused.css +20 -14
- package/public/dist/bundles/domma-essentials.css +20 -14
- package/public/dist/bundles/domma-full.css +20 -14
- package/public/dist/bundles/domma-minimal.css +8 -8
- package/public/dist/domma-flags.esm.js +3 -3
- package/public/dist/domma-flags.esm.js.map +1 -1
- package/public/dist/domma-flags.min.js +3 -3
- package/public/dist/domma-flags.min.js.map +1 -1
- package/public/dist/domma-syntax.min.js +3 -3
- package/public/dist/domma.css +3 -3
- package/public/dist/domma.esm.js +5 -5
- package/public/dist/domma.esm.js.map +1 -1
- package/public/dist/domma.min.js +5 -5
- package/public/dist/domma.min.js.map +1 -1
- package/public/dist/elements.css +9 -3
- package/public/dist/grid.css +3 -3
- package/public/dist/syntax.css +3 -3
- package/public/dist/themes/domma-themes.css +3 -3
- package/templates/kickstart/.claude/snippets.md +1 -1
- package/templates/kickstart/CLAUDE.md +1 -1
- package/templates/kickstart/frontend/types/domma.d.ts +7 -4
- package/templates/kickstart-spa/.claude/snippets.md +1 -1
- package/assets/types/config.d.ts +0 -136
- package/assets/types/dates.d.ts +0 -209
- package/assets/types/dom.d.ts +0 -448
- package/assets/types/elements.d.ts +0 -1168
- package/assets/types/flags.d.ts +0 -130
- package/assets/types/http.d.ts +0 -97
- package/assets/types/i18n.d.ts +0 -99
- package/assets/types/icons.d.ts +0 -147
- package/assets/types/models.d.ts +0 -260
- package/assets/types/smooth-caret.d.ts +0 -12
- package/assets/types/storage.d.ts +0 -93
- package/assets/types/tables.d.ts +0 -327
- package/assets/types/theme.d.ts +0 -137
- package/assets/types/utils.d.ts +0 -675
package/assets/types/index.d.ts
CHANGED
|
@@ -1,243 +1,121 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Domma - Dynamic Object Manipulation & Modeling API
|
|
3
|
-
* TypeScript
|
|
3
|
+
* TypeScript declarations.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Everything under ./generated/ is written by `npm run build:types` from the JSDoc in src/ -
|
|
6
|
+
* edit the JSDoc there, never the output (`npm run check:types` fails when the two differ).
|
|
7
|
+
*
|
|
8
|
+
* This file is the only hand-written part. It holds what JSDoc cannot say:
|
|
9
|
+
* 1. `Domma` itself. tsc emits the Domma function with the statics src/index.js assigns, but
|
|
10
|
+
* `noConflict` is attached inside installGlobals() and `flags` / `FL` by the domma-flags
|
|
11
|
+
* bundle, so neither is on it. `DommaStatic` (a @typedef in src/index.js) adds them; the
|
|
12
|
+
* default and named `Domma` exports are re-declared with that type here.
|
|
13
|
+
* 2. Globals: `declare global` for the aliases installGlobals() puts on window (and `FL`,
|
|
14
|
+
* which domma-flags adds), and `Window.DommaOptions`.
|
|
15
|
+
* 3. Which modules' types are public: the `export type *` list below.
|
|
16
|
+
* 4. `$('.x')[0]`: the DommaCollection constructor assigns `this[i]`, and a JS class cannot
|
|
17
|
+
* declare an index signature in JSDoc, so it is added by augmentation.
|
|
7
18
|
*/
|
|
19
|
+
import type {DommaStatic} from './generated/src/index.js';
|
|
20
|
+
import type {DommaLoadOptions} from './generated/src/globals.js';
|
|
21
|
+
import type {Flags} from './generated/src/flags.js';
|
|
8
22
|
|
|
9
|
-
|
|
10
|
-
export * from './dom';
|
|
11
|
-
export * from './utils';
|
|
12
|
-
export * from './dates';
|
|
13
|
-
export * from './models';
|
|
14
|
-
export * from './config';
|
|
15
|
-
export * from './elements';
|
|
16
|
-
export * from './tables';
|
|
17
|
-
export * from './storage';
|
|
18
|
-
export * from './http';
|
|
19
|
-
export * from './theme';
|
|
20
|
-
export * from './icons';
|
|
21
|
-
export * from './flags';
|
|
22
|
-
export * from './smooth-caret';
|
|
23
|
-
export * from './i18n';
|
|
24
|
-
|
|
25
|
-
// Import types for the main Domma object
|
|
26
|
-
import {DommaCollection} from './dom';
|
|
27
|
-
import {Utils, utils} from './utils';
|
|
28
|
-
import {Dates, dates, DommaDate} from './dates';
|
|
29
|
-
import {Model, models, Models} from './models';
|
|
30
|
-
import {SelectorConfig, SetupConfig} from './config';
|
|
31
|
-
import {Elements, elements} from './elements';
|
|
32
|
-
import {Tables, tables} from './tables';
|
|
33
|
-
import {Storage, storage} from './storage';
|
|
34
|
-
import {Http, http} from './http';
|
|
35
|
-
import {Theme, theme} from './theme';
|
|
36
|
-
import {Icons, icons} from './icons';
|
|
37
|
-
import {Flags} from './flags';
|
|
38
|
-
import {SmoothCaret} from './smooth-caret';
|
|
39
|
-
import {I18n, I18nTranslateOptions} from './i18n';
|
|
40
|
-
|
|
41
|
-
// ============================================
|
|
42
|
-
// Main Domma Interface
|
|
43
|
-
// ============================================
|
|
44
|
-
|
|
45
|
-
export interface DommaStatic {
|
|
46
|
-
/**
|
|
47
|
-
* Create a DommaCollection from a selector, element, or collection
|
|
48
|
-
* @param selector - CSS selector, element, NodeList, or array of elements
|
|
49
|
-
* @param context - Optional context element or document
|
|
50
|
-
* @returns DommaCollection instance
|
|
51
|
-
*/
|
|
52
|
-
(selector: string | HTMLElement | NodeList | HTMLCollection | HTMLElement[] | DommaCollection, context?: Document | HTMLElement): DommaCollection;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Execute callback when DOM is ready
|
|
56
|
-
* @param callback - Function to execute when DOM is ready
|
|
57
|
-
*/
|
|
58
|
-
(callback: () => void): void;
|
|
59
|
-
|
|
60
|
-
/** Utility functions (Lodash-compatible) */
|
|
61
|
-
utils: Utils;
|
|
62
|
-
|
|
63
|
-
/** Date manipulation (Moment.js-style) */
|
|
64
|
-
dates: Dates;
|
|
65
|
-
|
|
66
|
-
/** Reactive models & pub/sub */
|
|
67
|
-
models: Models;
|
|
68
|
-
|
|
69
|
-
/** UI components */
|
|
70
|
-
elements: Elements;
|
|
71
|
-
|
|
72
|
-
/** Smooth caret enhancement for editable text controls. */
|
|
73
|
-
smoothCaret: SmoothCaret;
|
|
74
|
-
|
|
75
|
-
/** DataTable functionality */
|
|
76
|
-
tables: Tables;
|
|
77
|
-
|
|
78
|
-
/** localStorage wrapper */
|
|
79
|
-
storage: Storage;
|
|
80
|
-
|
|
81
|
-
/** HTTP client */
|
|
82
|
-
http: Http;
|
|
83
|
-
|
|
84
|
-
/** Theme system */
|
|
85
|
-
theme: Theme;
|
|
86
|
-
|
|
87
|
-
/** Icon library */
|
|
88
|
-
icons: Icons;
|
|
89
|
-
|
|
90
|
-
/** Translations, plurals and Intl formatting */
|
|
91
|
-
i18n: I18n;
|
|
92
|
-
|
|
93
|
-
/** Shortcut for {@link I18n.t} */
|
|
94
|
-
t(key: string, params?: Record<string, any> | null, options?: I18nTranslateOptions): string;
|
|
95
|
-
|
|
96
|
-
/** Nation flags (opt-in module - present when domma-flags is loaded) */
|
|
97
|
-
flags?: Flags;
|
|
98
|
-
|
|
99
|
-
/** Alias for {@link DommaStatic.flags} (opt-in module) */
|
|
100
|
-
FL?: Flags;
|
|
101
|
-
|
|
102
|
-
// ============================================
|
|
103
|
-
// ConfigEngine Methods ($.setup, $.config, etc.)
|
|
104
|
-
// ============================================
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Process configuration for selectors
|
|
108
|
-
* @param config - Configuration object keyed by selector
|
|
109
|
-
*/
|
|
110
|
-
setup(config: SetupConfig): void;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Update configuration for a selector
|
|
114
|
-
* @param selector - CSS selector
|
|
115
|
-
* @param changes - Changes to merge into existing config
|
|
116
|
-
* @returns The merged configuration
|
|
117
|
-
*/
|
|
118
|
-
update(selector: string, changes: Partial<SelectorConfig>): SelectorConfig;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Retrieve configuration for a selector or all selectors
|
|
122
|
-
* @param selector - Optional selector to get config for
|
|
123
|
-
* @returns Configuration object or null if not found
|
|
124
|
-
*/
|
|
125
|
-
config(): Record<string, SelectorConfig>;
|
|
23
|
+
type Exports = typeof import('./generated/src/index.js');
|
|
126
24
|
|
|
127
|
-
|
|
25
|
+
// The runtime exports of the ES module ($, _, M, D, S, A, F, H, E, I, T, R, B, components, smoothCaret,
|
|
26
|
+
// i18n) and the types declared in src/index.js. `Domma` is re-declared below.
|
|
27
|
+
export * from './generated/src/index.js';
|
|
128
28
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
29
|
+
declare const Domma: DommaStatic;
|
|
30
|
+
export default Domma;
|
|
31
|
+
export {Domma};
|
|
32
|
+
|
|
33
|
+
// Types (and `typeof` handles) of every public module. Type-only: the ES module's runtime exports are
|
|
34
|
+
// the ones above, so `import {utils} from 'domma-js'` is refused rather than undefined at runtime.
|
|
35
|
+
export type * from './generated/src/dom.js';
|
|
36
|
+
export type * from './generated/src/utils.js';
|
|
37
|
+
export type * from './generated/src/dates.js';
|
|
38
|
+
export type * from './generated/src/models.js';
|
|
39
|
+
export type * from './generated/src/config.js';
|
|
40
|
+
export type * from './generated/src/elements.js';
|
|
41
|
+
export type * from './generated/src/tables.js';
|
|
42
|
+
export type * from './generated/src/storage.js';
|
|
43
|
+
export type * from './generated/src/http.js';
|
|
44
|
+
export type * from './generated/src/theme.js';
|
|
45
|
+
export type * from './generated/src/icons.js';
|
|
46
|
+
export type * from './generated/src/flags.js';
|
|
47
|
+
export type * from './generated/src/smooth-caret.js';
|
|
48
|
+
export type * from './generated/src/i18n.js';
|
|
49
|
+
export type * from './generated/src/globals.js';
|
|
50
|
+
export type * from './generated/src/router.js';
|
|
51
|
+
export type * from './generated/src/auth.js';
|
|
52
|
+
export type * from './generated/src/forms.js';
|
|
53
|
+
export type * from './generated/src/effects.js';
|
|
54
|
+
export type * from './generated/src/component-factory.js';
|
|
55
|
+
export type * from './generated/src/web-components/base/domma-element.js';
|
|
56
|
+
export type * from './generated/src/component.js';
|
|
57
|
+
export type * from './generated/src/popover.js';
|
|
58
|
+
export type * from './generated/src/context-menu.js';
|
|
59
|
+
export type * from './generated/src/sortable.js';
|
|
60
|
+
export type * from './generated/src/skeleton.js';
|
|
61
|
+
export type * from './generated/src/avatar.js';
|
|
62
|
+
export type * from './generated/src/input-group.js';
|
|
63
|
+
export type * from './generated/src/treeview.js';
|
|
64
|
+
export type * from './generated/src/components/card.js';
|
|
65
|
+
export type * from './generated/src/components/modal.js';
|
|
66
|
+
export type * from './generated/src/components/tooltip.js';
|
|
67
|
+
export type * from './generated/src/components/badge.js';
|
|
68
|
+
export type * from './generated/src/components/loader.js';
|
|
69
|
+
export type * from './generated/src/components/back-to-top.js';
|
|
70
|
+
export type * from './generated/src/components/toast.js';
|
|
71
|
+
export type * from './generated/src/components/focus-trap.js';
|
|
72
|
+
export type * from './generated/src/components/command-palette.js';
|
|
73
|
+
export type * from './generated/src/components/split-pane.js';
|
|
74
|
+
export type * from './generated/src/components/virtual-list.js';
|
|
75
|
+
export type * from './generated/src/components/dropzone.js';
|
|
76
|
+
export type * from './generated/src/components/range-slider.js';
|
|
77
|
+
|
|
78
|
+
declare module './generated/src/dom.js' {
|
|
79
|
+
interface DommaCollection {
|
|
80
|
+
/** The elements by position - `$('.x')[0]` is `$('.x').get(0)` */
|
|
81
|
+
[index: number]: HTMLElement;
|
|
82
|
+
}
|
|
151
83
|
}
|
|
152
84
|
|
|
153
|
-
// ============================================
|
|
154
|
-
// Global Declarations
|
|
155
|
-
// ============================================
|
|
156
|
-
|
|
157
85
|
declare global {
|
|
158
|
-
/**
|
|
159
|
-
* Domma - Main entry point
|
|
160
|
-
* jQuery-compatible DOM selection and manipulation
|
|
161
|
-
*/
|
|
86
|
+
/** Domma - jQuery-style selection plus every module (`Domma.utils`, `Domma.elements`, ...) */
|
|
162
87
|
const Domma: DommaStatic;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* $ - Alias for Domma
|
|
166
|
-
* jQuery-compatible selector function
|
|
167
|
-
*/
|
|
88
|
+
/** Alias for Domma */
|
|
168
89
|
const $: DommaStatic;
|
|
90
|
+
/** Utilities (Lodash-style) - `Domma.utils` */
|
|
91
|
+
const _: Exports['_'];
|
|
92
|
+
/** Reactive models and pub/sub - `Domma.models` */
|
|
93
|
+
const M: Exports['M'];
|
|
94
|
+
/** Dates (Moment-style) - `Domma.dates` */
|
|
95
|
+
const D: Exports['D'];
|
|
96
|
+
/** localStorage wrapper - `Domma.storage` */
|
|
97
|
+
const S: Exports['S'];
|
|
98
|
+
/** Auth helpers - `Domma.auth` */
|
|
99
|
+
const A: Exports['A'];
|
|
100
|
+
/** Forms - `Domma.forms` */
|
|
101
|
+
const F: Exports['F'];
|
|
102
|
+
/** HTTP client - `Domma.http` */
|
|
103
|
+
const H: Exports['H'];
|
|
104
|
+
/** UI components - `Domma.elements` */
|
|
105
|
+
const E: Exports['E'];
|
|
106
|
+
/** Icons - `Domma.icons` */
|
|
107
|
+
const I: Exports['I'];
|
|
108
|
+
/** Tables - `Domma.tables` */
|
|
109
|
+
const T: Exports['T'];
|
|
110
|
+
/** Hash router - `Domma.router` */
|
|
111
|
+
const R: Exports['R'];
|
|
112
|
+
/** Blueprint composition - `B.extend`, `B.pick`, `B.omit` */
|
|
113
|
+
const B: Exports['B'];
|
|
114
|
+
/** Nation flags - only once the opt-in domma-flags bundle is loaded */
|
|
115
|
+
const FL: Flags;
|
|
169
116
|
|
|
170
|
-
/**
|
|
171
|
-
* _ - Alias for Domma.utils
|
|
172
|
-
* Lodash-compatible utility functions
|
|
173
|
-
*/
|
|
174
|
-
const _: Utils;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* M - Alias for Domma.models
|
|
178
|
-
* Reactive models and pub/sub events
|
|
179
|
-
*/
|
|
180
|
-
const M: Models;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* D - Alias for Domma.dates
|
|
184
|
-
* Moment.js-style date manipulation
|
|
185
|
-
*/
|
|
186
|
-
const D: Dates;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* S - Alias for Domma.storage
|
|
190
|
-
* localStorage wrapper
|
|
191
|
-
*/
|
|
192
|
-
const S: Storage;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
// ============================================
|
|
196
|
-
// Default Export
|
|
197
|
-
// ============================================
|
|
198
|
-
|
|
199
|
-
declare const Domma: DommaStatic;
|
|
200
|
-
export default Domma;
|
|
201
|
-
|
|
202
|
-
// Named exports for ES modules - exactly what src/index.js exports
|
|
203
|
-
declare const $: DommaStatic;
|
|
204
|
-
declare const _: Utils;
|
|
205
|
-
declare const M: Models;
|
|
206
|
-
declare const D: Dates;
|
|
207
|
-
declare const S: Storage;
|
|
208
|
-
declare const H: Http;
|
|
209
|
-
declare const E: Elements;
|
|
210
|
-
declare const I: Icons;
|
|
211
|
-
declare const T: Tables;
|
|
212
|
-
declare const smoothCaret: SmoothCaret;
|
|
213
|
-
// Not typed yet: auth, forms, router, blueprint helpers, web-component registry
|
|
214
|
-
declare const A: any;
|
|
215
|
-
declare const F: any;
|
|
216
|
-
declare const R: any;
|
|
217
|
-
declare const B: any;
|
|
218
|
-
declare const components: any;
|
|
219
|
-
|
|
220
|
-
export {Domma, $, _, M, D, S, A, F, H, E, I, T, R, B, components, smoothCaret};
|
|
221
|
-
export type {DommaCollection, DommaDate, Model};
|
|
222
|
-
|
|
223
|
-
/** Options read from `window.DommaOptions` when Domma loads - set it before the script tag. */
|
|
224
|
-
export interface DommaLoadOptions {
|
|
225
|
-
/** true (default): every alias; 'safe': only aliases nobody else owns; false: window.Domma only */
|
|
226
|
-
globals?: boolean | 'safe';
|
|
227
|
-
/** false: never add the `dm-cloaked` class */
|
|
228
|
-
cloak?: boolean;
|
|
229
|
-
/** false: don't initialise the theme engine automatically */
|
|
230
|
-
theme?: boolean;
|
|
231
|
-
/** false: no console warning when DOMPurify is missing */
|
|
232
|
-
purifyWarning?: boolean;
|
|
233
|
-
/** false: no deprecation warnings */
|
|
234
|
-
deprecationWarnings?: boolean;
|
|
235
|
-
/** false: no console warning for a missing translation */
|
|
236
|
-
i18nWarnings?: boolean;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
declare global {
|
|
240
117
|
interface Window {
|
|
118
|
+
/** Options read when Domma loads - set before the script tag. */
|
|
241
119
|
DommaOptions?: DommaLoadOptions;
|
|
242
120
|
}
|
|
243
121
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "domma-js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.58.0",
|
|
4
4
|
"description": "Dynamic Object Manipulation & Modeling API - A complete front-end toolkit.",
|
|
5
5
|
"main": "public/dist/domma.min.js",
|
|
6
6
|
"module": "public/dist/domma.esm.js",
|
|
@@ -69,8 +69,10 @@
|
|
|
69
69
|
"serve:3096": "node bin/domma-cli.js serve --port 3096",
|
|
70
70
|
"dev": "NODE_ENV=development npm run generate:bundles && rollup -c && node scripts/build-info.js && npm run build:metadata && npm run copy:themes && npm run copy:celebrate && npm run generate:themes && npm run build:css && npm run build:miniapps && live-server public --port=3001 --open=/index.html",
|
|
71
71
|
"dev:watch": "NODE_ENV=development npm run generate:bundles && rollup -c && node scripts/build-info.js && npm run build:metadata && npm run copy:themes && npm run copy:celebrate && npm run generate:themes && npm run build:css && npm run build:miniapps && npm run watch:miniapps",
|
|
72
|
-
"build": "npm run generate:bundles && rollup -c && node scripts/build-info.js && npm run build:metadata && npm run copy:themes && npm run copy:celebrate && npm run generate:themes && npm run build:css && npm run build:css-bundles && npm run build:archives && npm run build:kickstart-files && npm run build:miniapps",
|
|
72
|
+
"build": "npm run generate:bundles && rollup -c && node scripts/build-info.js && npm run build:metadata && npm run copy:themes && npm run copy:celebrate && npm run generate:themes && npm run build:css && npm run build:css-bundles && npm run build:archives && npm run build:kickstart-files && npm run build:miniapps && npm run build:types",
|
|
73
73
|
"build:js": "rollup -c",
|
|
74
|
+
"build:types": "node scripts/build-types.mjs",
|
|
75
|
+
"check:types": "node scripts/check-types.mjs",
|
|
74
76
|
"build:css": "node scripts/build-css.js",
|
|
75
77
|
"validate:classes": "node scripts/validate-classes.js",
|
|
76
78
|
"validate:theme": "node scripts/validate-theme-contrast.js",
|
|
@@ -123,6 +125,7 @@
|
|
|
123
125
|
"live-server": "^1.2.0",
|
|
124
126
|
"puppeteer": "^24.34.0",
|
|
125
127
|
"rollup": "^4.28.0",
|
|
128
|
+
"typescript": "5.6.3",
|
|
126
129
|
"vitest": "^4.0.16"
|
|
127
130
|
},
|
|
128
131
|
"dependencies": {}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Domma Complete CSS Bundle v0.
|
|
2
|
+
* Domma Complete CSS Bundle v0.58.0
|
|
3
3
|
* Dynamic Object Manipulation & Modeling API
|
|
4
4
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
5
|
-
* Built: 2026-10-
|
|
5
|
+
* Built: 2026-10-24T22:17:45.122Z
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/* ============================================
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
============================================ */
|
|
12
12
|
|
|
13
13
|
/*!
|
|
14
|
-
* Domma Core CSS v0.
|
|
14
|
+
* Domma Core CSS v0.58.0
|
|
15
15
|
* Dynamic Object Manipulation & Modeling API
|
|
16
16
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
17
|
-
* Built: 2026-10-
|
|
18
|
-
* Commit:
|
|
17
|
+
* Built: 2026-10-24T22:17:44.996Z
|
|
18
|
+
* Commit: 6edd082
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -4971,11 +4971,11 @@ body.dm-cloaked.dm-ready {
|
|
|
4971
4971
|
============================================ */
|
|
4972
4972
|
|
|
4973
4973
|
/*!
|
|
4974
|
-
* Domma Grid CSS v0.
|
|
4974
|
+
* Domma Grid CSS v0.58.0
|
|
4975
4975
|
* Dynamic Object Manipulation & Modeling API
|
|
4976
4976
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
4977
|
-
* Built: 2026-10-
|
|
4978
|
-
* Commit:
|
|
4977
|
+
* Built: 2026-10-24T22:17:44.999Z
|
|
4978
|
+
* Commit: 6edd082
|
|
4979
4979
|
*/
|
|
4980
4980
|
|
|
4981
4981
|
/**
|
|
@@ -5596,11 +5596,11 @@ body.dm-cloaked.dm-ready {
|
|
|
5596
5596
|
============================================ */
|
|
5597
5597
|
|
|
5598
5598
|
/*!
|
|
5599
|
-
* Domma Elements CSS v0.
|
|
5599
|
+
* Domma Elements CSS v0.58.0
|
|
5600
5600
|
* Dynamic Object Manipulation & Modeling API
|
|
5601
5601
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
5602
|
-
* Built: 2026-10-
|
|
5603
|
-
* Commit:
|
|
5602
|
+
* Built: 2026-10-24T22:17:45.003Z
|
|
5603
|
+
* Commit: 6edd082
|
|
5604
5604
|
*/
|
|
5605
5605
|
|
|
5606
5606
|
/**
|
|
@@ -9583,6 +9583,12 @@ code {
|
|
|
9583
9583
|
z-index: 10000;
|
|
9584
9584
|
}
|
|
9585
9585
|
|
|
9586
|
+
/* A slideover takes focus itself on open (its focus trap), so the first Tab reaches its
|
|
9587
|
+
first control; the panel is not a tab stop and needs no ring of its own. */
|
|
9588
|
+
.dm-slideover[tabindex="-1"]:focus {
|
|
9589
|
+
outline: none;
|
|
9590
|
+
}
|
|
9591
|
+
|
|
9586
9592
|
.dm-dialog-overlay {
|
|
9587
9593
|
position: fixed;
|
|
9588
9594
|
top: 0;
|
|
@@ -16607,11 +16613,11 @@ a.avatar-more-person:hover .avatar-more-name {
|
|
|
16607
16613
|
============================================ */
|
|
16608
16614
|
|
|
16609
16615
|
/*!
|
|
16610
|
-
* Domma Themes v0.
|
|
16616
|
+
* Domma Themes v0.58.0
|
|
16611
16617
|
* Dynamic Object Manipulation & Modeling API
|
|
16612
16618
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
16613
|
-
* Built: 2026-10-
|
|
16614
|
-
* Commit:
|
|
16619
|
+
* Built: 2026-10-24T22:17:44.986Z
|
|
16620
|
+
* Commit: 6edd082
|
|
16615
16621
|
*/
|
|
16616
16622
|
|
|
16617
16623
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Domma Data-Focused CSS Bundle v0.
|
|
2
|
+
* Domma Data-Focused CSS Bundle v0.58.0
|
|
3
3
|
* Dynamic Object Manipulation & Modeling API
|
|
4
4
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
5
|
-
* Built: 2026-10-
|
|
5
|
+
* Built: 2026-10-24T22:17:45.120Z
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/* ============================================
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
============================================ */
|
|
12
12
|
|
|
13
13
|
/*!
|
|
14
|
-
* Domma Core CSS v0.
|
|
14
|
+
* Domma Core CSS v0.58.0
|
|
15
15
|
* Dynamic Object Manipulation & Modeling API
|
|
16
16
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
17
|
-
* Built: 2026-10-
|
|
18
|
-
* Commit:
|
|
17
|
+
* Built: 2026-10-24T22:17:44.996Z
|
|
18
|
+
* Commit: 6edd082
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -4971,11 +4971,11 @@ body.dm-cloaked.dm-ready {
|
|
|
4971
4971
|
============================================ */
|
|
4972
4972
|
|
|
4973
4973
|
/*!
|
|
4974
|
-
* Domma Grid CSS v0.
|
|
4974
|
+
* Domma Grid CSS v0.58.0
|
|
4975
4975
|
* Dynamic Object Manipulation & Modeling API
|
|
4976
4976
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
4977
|
-
* Built: 2026-10-
|
|
4978
|
-
* Commit:
|
|
4977
|
+
* Built: 2026-10-24T22:17:44.999Z
|
|
4978
|
+
* Commit: 6edd082
|
|
4979
4979
|
*/
|
|
4980
4980
|
|
|
4981
4981
|
/**
|
|
@@ -5596,11 +5596,11 @@ body.dm-cloaked.dm-ready {
|
|
|
5596
5596
|
============================================ */
|
|
5597
5597
|
|
|
5598
5598
|
/*!
|
|
5599
|
-
* Domma Elements CSS v0.
|
|
5599
|
+
* Domma Elements CSS v0.58.0
|
|
5600
5600
|
* Dynamic Object Manipulation & Modeling API
|
|
5601
5601
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
5602
|
-
* Built: 2026-10-
|
|
5603
|
-
* Commit:
|
|
5602
|
+
* Built: 2026-10-24T22:17:45.003Z
|
|
5603
|
+
* Commit: 6edd082
|
|
5604
5604
|
*/
|
|
5605
5605
|
|
|
5606
5606
|
/**
|
|
@@ -9583,6 +9583,12 @@ code {
|
|
|
9583
9583
|
z-index: 10000;
|
|
9584
9584
|
}
|
|
9585
9585
|
|
|
9586
|
+
/* A slideover takes focus itself on open (its focus trap), so the first Tab reaches its
|
|
9587
|
+
first control; the panel is not a tab stop and needs no ring of its own. */
|
|
9588
|
+
.dm-slideover[tabindex="-1"]:focus {
|
|
9589
|
+
outline: none;
|
|
9590
|
+
}
|
|
9591
|
+
|
|
9586
9592
|
.dm-dialog-overlay {
|
|
9587
9593
|
position: fixed;
|
|
9588
9594
|
top: 0;
|
|
@@ -16607,11 +16613,11 @@ a.avatar-more-person:hover .avatar-more-name {
|
|
|
16607
16613
|
============================================ */
|
|
16608
16614
|
|
|
16609
16615
|
/*!
|
|
16610
|
-
* Domma Themes v0.
|
|
16616
|
+
* Domma Themes v0.58.0
|
|
16611
16617
|
* Dynamic Object Manipulation & Modeling API
|
|
16612
16618
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
16613
|
-
* Built: 2026-10-
|
|
16614
|
-
* Commit:
|
|
16619
|
+
* Built: 2026-10-24T22:17:44.986Z
|
|
16620
|
+
* Commit: 6edd082
|
|
16615
16621
|
*/
|
|
16616
16622
|
|
|
16617
16623
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Domma Essentials CSS Bundle v0.
|
|
2
|
+
* Domma Essentials CSS Bundle v0.58.0
|
|
3
3
|
* Dynamic Object Manipulation & Modeling API
|
|
4
4
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
5
|
-
* Built: 2026-10-
|
|
5
|
+
* Built: 2026-10-24T22:17:45.113Z
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/* ============================================
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
============================================ */
|
|
12
12
|
|
|
13
13
|
/*!
|
|
14
|
-
* Domma Core CSS v0.
|
|
14
|
+
* Domma Core CSS v0.58.0
|
|
15
15
|
* Dynamic Object Manipulation & Modeling API
|
|
16
16
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
17
|
-
* Built: 2026-10-
|
|
18
|
-
* Commit:
|
|
17
|
+
* Built: 2026-10-24T22:17:44.996Z
|
|
18
|
+
* Commit: 6edd082
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -4971,11 +4971,11 @@ body.dm-cloaked.dm-ready {
|
|
|
4971
4971
|
============================================ */
|
|
4972
4972
|
|
|
4973
4973
|
/*!
|
|
4974
|
-
* Domma Grid CSS v0.
|
|
4974
|
+
* Domma Grid CSS v0.58.0
|
|
4975
4975
|
* Dynamic Object Manipulation & Modeling API
|
|
4976
4976
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
4977
|
-
* Built: 2026-10-
|
|
4978
|
-
* Commit:
|
|
4977
|
+
* Built: 2026-10-24T22:17:44.999Z
|
|
4978
|
+
* Commit: 6edd082
|
|
4979
4979
|
*/
|
|
4980
4980
|
|
|
4981
4981
|
/**
|
|
@@ -5596,11 +5596,11 @@ body.dm-cloaked.dm-ready {
|
|
|
5596
5596
|
============================================ */
|
|
5597
5597
|
|
|
5598
5598
|
/*!
|
|
5599
|
-
* Domma Elements CSS v0.
|
|
5599
|
+
* Domma Elements CSS v0.58.0
|
|
5600
5600
|
* Dynamic Object Manipulation & Modeling API
|
|
5601
5601
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
5602
|
-
* Built: 2026-10-
|
|
5603
|
-
* Commit:
|
|
5602
|
+
* Built: 2026-10-24T22:17:45.003Z
|
|
5603
|
+
* Commit: 6edd082
|
|
5604
5604
|
*/
|
|
5605
5605
|
|
|
5606
5606
|
/**
|
|
@@ -9583,6 +9583,12 @@ code {
|
|
|
9583
9583
|
z-index: 10000;
|
|
9584
9584
|
}
|
|
9585
9585
|
|
|
9586
|
+
/* A slideover takes focus itself on open (its focus trap), so the first Tab reaches its
|
|
9587
|
+
first control; the panel is not a tab stop and needs no ring of its own. */
|
|
9588
|
+
.dm-slideover[tabindex="-1"]:focus {
|
|
9589
|
+
outline: none;
|
|
9590
|
+
}
|
|
9591
|
+
|
|
9586
9592
|
.dm-dialog-overlay {
|
|
9587
9593
|
position: fixed;
|
|
9588
9594
|
top: 0;
|
|
@@ -16607,11 +16613,11 @@ a.avatar-more-person:hover .avatar-more-name {
|
|
|
16607
16613
|
============================================ */
|
|
16608
16614
|
|
|
16609
16615
|
/*!
|
|
16610
|
-
* Domma Themes v0.
|
|
16616
|
+
* Domma Themes v0.58.0
|
|
16611
16617
|
* Dynamic Object Manipulation & Modeling API
|
|
16612
16618
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
16613
|
-
* Built: 2026-10-
|
|
16614
|
-
* Commit:
|
|
16619
|
+
* Built: 2026-10-24T22:17:44.986Z
|
|
16620
|
+
* Commit: 6edd082
|
|
16615
16621
|
*/
|
|
16616
16622
|
|
|
16617
16623
|
/**
|