domma-js 0.58.2 → 0.60.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.
@@ -118,15 +118,18 @@ export type ComponentType = "card" | "modal" | "tabs" | "accordion" | "tooltip"
118
118
  */
119
119
  export type InitialProperties = {
120
120
  css?: Record<string, string | number>;
121
- text?: string;
122
- html?: string;
121
+ /**
122
+ * Converted to text, as textContent does
123
+ */
124
+ text?: string | number | boolean;
125
+ html?: string | number | boolean;
123
126
  addClass?: string;
124
127
  removeClass?: string;
125
128
  toggleClass?: string;
126
129
  /**
127
- * Attribute name -> value
130
+ * Attribute name -> value (converted to text)
128
131
  */
129
- attr?: Record<string, string>;
132
+ attr?: Record<string, string | number | boolean>;
130
133
  };
131
134
  /**
132
135
  * A declarative event action: applied to `target` (a selector) or else to the element the event fired on.
@@ -137,8 +140,11 @@ export type EventAction = {
137
140
  */
138
141
  target?: string;
139
142
  css?: Record<string, string | number>;
140
- text?: string;
141
- html?: string;
143
+ /**
144
+ * Converted to text, as textContent does
145
+ */
146
+ text?: string | number | boolean;
147
+ html?: string | number | boolean;
142
148
  addClass?: string;
143
149
  removeClass?: string;
144
150
  toggleClass?: string;
@@ -155,6 +161,14 @@ export type ConfigEventHandler = (this: EventTarget, event: Event, $el: import("
155
161
  * What an event runs: a handler, an action, or a list of either (run in order).
156
162
  */
157
163
  export type EventActions = ConfigEventHandler | EventAction | Array<ConfigEventHandler | EventAction>;
164
+ /**
165
+ * The options of a `form` created by `$.setup()`: the form's own options plus the blueprint and the
166
+ * starting values, which `initComponent()` hands to `F.create(schema, data, options)`.
167
+ */
168
+ export type FormSetupOptions = import("./forms.js").FormOptions & {
169
+ schema: import("./forms.js").FormBlueprint;
170
+ data?: Record<string, any>;
171
+ };
158
172
  /**
159
173
  * The configuration for one selector.
160
174
  */
@@ -86,7 +86,7 @@
86
86
  * Show the element's loader, creating it if needed
87
87
  * @property {(selector: import('./components/shared.js').ComponentTarget) => import('./components/loader.js').LoaderInstance|undefined} hideLoader
88
88
  * Hide the element's loader
89
- * @property {(text?: string, options?: {type?: string, size?: string, color?: string}) => import('./components/loader.js').LoaderInstance} fullscreenLoader
89
+ * @property {(text?: string, options?: FullscreenLoaderOptions) => import('./components/loader.js').LoaderInstance} fullscreenLoader
90
90
  * A full-screen loader (`#dm-loader-fullscreen`), reused on later calls
91
91
  * @property {(selector: string|HTMLElement, options?: BreadcrumbsOptions) => BreadcrumbsInstance} breadcrumbs - Render breadcrumbs into an element
92
92
  * @property {(selector: string|HTMLElement, options?: NavbarOptions) => NavbarInstance} navbar - Render a navbar into an element
@@ -1558,9 +1558,19 @@ export type ProgressionItem = {
1558
1558
  tags?: string[];
1559
1559
  assignee?: string;
1560
1560
  };
1561
+ /**
1562
+ * The loader settings `E.fullscreenLoader()` passes on (the rest are fixed for a full-screen loader).
1563
+ */
1564
+ export type FullscreenLoaderOptions = Pick<import("./components/loader.js").LoaderOptions, "type" | "size" | "color">;
1561
1565
  export type ProgressionOptions = {
1566
+ /**
1567
+ * - 'timeline' (dated events) or 'roadmap' (items with a status)
1568
+ */
1562
1569
  mode?: "timeline" | "roadmap";
1563
1570
  items?: ProgressionItem[];
1571
+ /**
1572
+ * - Items down one side, across, or alternating either side of a centre line
1573
+ */
1564
1574
  layout?: "vertical" | "horizontal" | "centered";
1565
1575
  /**
1566
1576
  * - Items animate in
@@ -1571,6 +1581,9 @@ export type ProgressionOptions = {
1571
1581
  */
1572
1582
  animationDelay?: number;
1573
1583
  responsive?: boolean;
1584
+ /**
1585
+ * - Look of the markers, line and cards
1586
+ */
1574
1587
  theme?: "default" | "minimal" | "corporate" | "modern";
1575
1588
  clickable?: boolean;
1576
1589
  onItemClick?: ((item: ProgressionItem, index: number, element: HTMLElement) => void) | null;
@@ -1962,11 +1975,7 @@ export type Elements = {
1962
1975
  /**
1963
1976
  * A full-screen loader (`#dm-loader-fullscreen`), reused on later calls
1964
1977
  */
1965
- fullscreenLoader: (text?: string, options?: {
1966
- type?: string;
1967
- size?: string;
1968
- color?: string;
1969
- }) => import("./components/loader.js").LoaderInstance;
1978
+ fullscreenLoader: (text?: string, options?: FullscreenLoaderOptions) => import("./components/loader.js").LoaderInstance;
1970
1979
  /**
1971
1980
  * - Render breadcrumbs into an element
1972
1981
  */
@@ -4481,15 +4490,19 @@ declare class Slideover extends Component {
4481
4490
  * @property {string[]} [tags]
4482
4491
  * @property {string} [assignee]
4483
4492
  */
4493
+ /**
4494
+ * The loader settings `E.fullscreenLoader()` passes on (the rest are fixed for a full-screen loader).
4495
+ * @typedef {Pick<import('./components/loader.js').LoaderOptions, 'type' | 'size' | 'color'>} FullscreenLoaderOptions
4496
+ */
4484
4497
  /**
4485
4498
  * @typedef {object} ProgressionOptions
4486
- * @property {'timeline'|'roadmap'} [mode='timeline']
4499
+ * @property {'timeline'|'roadmap'} [mode='timeline'] - 'timeline' (dated events) or 'roadmap' (items with a status)
4487
4500
  * @property {ProgressionItem[]} [items=[]]
4488
- * @property {'vertical'|'horizontal'|'centered'} [layout='vertical']
4501
+ * @property {'vertical'|'horizontal'|'centered'} [layout='vertical'] - Items down one side, across, or alternating either side of a centre line
4489
4502
  * @property {boolean} [animation=true] - Items animate in
4490
4503
  * @property {number} [animationDelay=100] - ms between items
4491
4504
  * @property {boolean} [responsive=true]
4492
- * @property {'default'|'minimal'|'corporate'|'modern'} [theme='default']
4505
+ * @property {'default'|'minimal'|'corporate'|'modern'} [theme='default'] - Look of the markers, line and cards
4493
4506
  * @property {boolean} [clickable=false]
4494
4507
  * @property {((item: ProgressionItem, index: number, element: HTMLElement) => void)|null} [onItemClick]
4495
4508
  * @property {boolean} [allowHtml=false] - HTML in descriptions (sanitised)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "domma-js",
3
- "version": "0.58.2",
3
+ "version": "0.60.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",
@@ -23,6 +23,7 @@
23
23
  "./themes/*": "./public/dist/themes/*",
24
24
  "./bundles/*": "./public/dist/bundles/*",
25
25
  "./types": "./assets/types/index.d.ts",
26
+ "./types/catalogue.json": "./assets/types/catalogue.json",
26
27
  "./package.json": "./package.json",
27
28
  "./public/*": "./public/*",
28
29
  "./assets/*": "./assets/*",
@@ -71,7 +72,7 @@
71
72
  "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
73
  "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:types && npm run build:kickstart-files && npm run build:miniapps",
73
74
  "build:js": "rollup -c",
74
- "build:types": "node scripts/build-types.mjs",
75
+ "build:types": "node scripts/build-types.mjs && node scripts/build-type-catalogue.mjs",
75
76
  "check:types": "node scripts/check-types.mjs",
76
77
  "build:css": "node scripts/build-css.js",
77
78
  "validate:classes": "node scripts/validate-classes.js",
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * Domma Complete CSS Bundle v0.58.2
2
+ * Domma Complete CSS Bundle v0.60.0
3
3
  * Dynamic Object Manipulation & Modeling API
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-25T15:30:41.153Z
5
+ * Built: 2026-10-25T21:21:37.364Z
6
6
  */
7
7
 
8
8
  /* ============================================
@@ -11,11 +11,11 @@
11
11
  ============================================ */
12
12
 
13
13
  /*!
14
- * Domma Core CSS v0.58.2
14
+ * Domma Core CSS v0.60.0
15
15
  * Dynamic Object Manipulation & Modeling API
16
16
  * (c) 2026 Darryl Waterhouse & DCBW-IT
17
- * Built: 2026-10-25T15:30:41.009Z
18
- * Commit: e547926
17
+ * Built: 2026-10-25T21:21:37.193Z
18
+ * Commit: 8d8be57
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.58.2
4974
+ * Domma Grid CSS v0.60.0
4975
4975
  * Dynamic Object Manipulation & Modeling API
4976
4976
  * (c) 2026 Darryl Waterhouse & DCBW-IT
4977
- * Built: 2026-10-25T15:30:41.013Z
4978
- * Commit: e547926
4977
+ * Built: 2026-10-25T21:21:37.197Z
4978
+ * Commit: 8d8be57
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.58.2
5599
+ * Domma Elements CSS v0.60.0
5600
5600
  * Dynamic Object Manipulation & Modeling API
5601
5601
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5602
- * Built: 2026-10-25T15:30:41.017Z
5603
- * Commit: e547926
5602
+ * Built: 2026-10-25T21:21:37.202Z
5603
+ * Commit: 8d8be57
5604
5604
  */
5605
5605
 
5606
5606
  /**
@@ -16613,11 +16613,11 @@ a.avatar-more-person:hover .avatar-more-name {
16613
16613
  ============================================ */
16614
16614
 
16615
16615
  /*!
16616
- * Domma Themes v0.58.2
16616
+ * Domma Themes v0.60.0
16617
16617
  * Dynamic Object Manipulation & Modeling API
16618
16618
  * (c) 2026 Darryl Waterhouse & DCBW-IT
16619
- * Built: 2026-10-25T15:30:40.998Z
16620
- * Commit: e547926
16619
+ * Built: 2026-10-25T21:21:37.177Z
16620
+ * Commit: 8d8be57
16621
16621
  */
16622
16622
 
16623
16623
  /**
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * Domma Data-Focused CSS Bundle v0.58.2
2
+ * Domma Data-Focused CSS Bundle v0.60.0
3
3
  * Dynamic Object Manipulation & Modeling API
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-25T15:30:41.150Z
5
+ * Built: 2026-10-25T21:21:37.360Z
6
6
  */
7
7
 
8
8
  /* ============================================
@@ -11,11 +11,11 @@
11
11
  ============================================ */
12
12
 
13
13
  /*!
14
- * Domma Core CSS v0.58.2
14
+ * Domma Core CSS v0.60.0
15
15
  * Dynamic Object Manipulation & Modeling API
16
16
  * (c) 2026 Darryl Waterhouse & DCBW-IT
17
- * Built: 2026-10-25T15:30:41.009Z
18
- * Commit: e547926
17
+ * Built: 2026-10-25T21:21:37.193Z
18
+ * Commit: 8d8be57
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.58.2
4974
+ * Domma Grid CSS v0.60.0
4975
4975
  * Dynamic Object Manipulation & Modeling API
4976
4976
  * (c) 2026 Darryl Waterhouse & DCBW-IT
4977
- * Built: 2026-10-25T15:30:41.013Z
4978
- * Commit: e547926
4977
+ * Built: 2026-10-25T21:21:37.197Z
4978
+ * Commit: 8d8be57
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.58.2
5599
+ * Domma Elements CSS v0.60.0
5600
5600
  * Dynamic Object Manipulation & Modeling API
5601
5601
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5602
- * Built: 2026-10-25T15:30:41.017Z
5603
- * Commit: e547926
5602
+ * Built: 2026-10-25T21:21:37.202Z
5603
+ * Commit: 8d8be57
5604
5604
  */
5605
5605
 
5606
5606
  /**
@@ -16613,11 +16613,11 @@ a.avatar-more-person:hover .avatar-more-name {
16613
16613
  ============================================ */
16614
16614
 
16615
16615
  /*!
16616
- * Domma Themes v0.58.2
16616
+ * Domma Themes v0.60.0
16617
16617
  * Dynamic Object Manipulation & Modeling API
16618
16618
  * (c) 2026 Darryl Waterhouse & DCBW-IT
16619
- * Built: 2026-10-25T15:30:40.998Z
16620
- * Commit: e547926
16619
+ * Built: 2026-10-25T21:21:37.177Z
16620
+ * Commit: 8d8be57
16621
16621
  */
16622
16622
 
16623
16623
  /**
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * Domma Essentials CSS Bundle v0.58.2
2
+ * Domma Essentials CSS Bundle v0.60.0
3
3
  * Dynamic Object Manipulation & Modeling API
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-25T15:30:41.142Z
5
+ * Built: 2026-10-25T21:21:37.351Z
6
6
  */
7
7
 
8
8
  /* ============================================
@@ -11,11 +11,11 @@
11
11
  ============================================ */
12
12
 
13
13
  /*!
14
- * Domma Core CSS v0.58.2
14
+ * Domma Core CSS v0.60.0
15
15
  * Dynamic Object Manipulation & Modeling API
16
16
  * (c) 2026 Darryl Waterhouse & DCBW-IT
17
- * Built: 2026-10-25T15:30:41.009Z
18
- * Commit: e547926
17
+ * Built: 2026-10-25T21:21:37.193Z
18
+ * Commit: 8d8be57
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.58.2
4974
+ * Domma Grid CSS v0.60.0
4975
4975
  * Dynamic Object Manipulation & Modeling API
4976
4976
  * (c) 2026 Darryl Waterhouse & DCBW-IT
4977
- * Built: 2026-10-25T15:30:41.013Z
4978
- * Commit: e547926
4977
+ * Built: 2026-10-25T21:21:37.197Z
4978
+ * Commit: 8d8be57
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.58.2
5599
+ * Domma Elements CSS v0.60.0
5600
5600
  * Dynamic Object Manipulation & Modeling API
5601
5601
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5602
- * Built: 2026-10-25T15:30:41.017Z
5603
- * Commit: e547926
5602
+ * Built: 2026-10-25T21:21:37.202Z
5603
+ * Commit: 8d8be57
5604
5604
  */
5605
5605
 
5606
5606
  /**
@@ -16613,11 +16613,11 @@ a.avatar-more-person:hover .avatar-more-name {
16613
16613
  ============================================ */
16614
16614
 
16615
16615
  /*!
16616
- * Domma Themes v0.58.2
16616
+ * Domma Themes v0.60.0
16617
16617
  * Dynamic Object Manipulation & Modeling API
16618
16618
  * (c) 2026 Darryl Waterhouse & DCBW-IT
16619
- * Built: 2026-10-25T15:30:40.998Z
16620
- * Commit: e547926
16619
+ * Built: 2026-10-25T21:21:37.177Z
16620
+ * Commit: 8d8be57
16621
16621
  */
16622
16622
 
16623
16623
  /**
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * Domma Full CSS Bundle v0.58.2
2
+ * Domma Full CSS Bundle v0.60.0
3
3
  * Dynamic Object Manipulation & Modeling API
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-25T15:30:41.146Z
5
+ * Built: 2026-10-25T21:21:37.356Z
6
6
  */
7
7
 
8
8
  /* ============================================
@@ -11,11 +11,11 @@
11
11
  ============================================ */
12
12
 
13
13
  /*!
14
- * Domma Core CSS v0.58.2
14
+ * Domma Core CSS v0.60.0
15
15
  * Dynamic Object Manipulation & Modeling API
16
16
  * (c) 2026 Darryl Waterhouse & DCBW-IT
17
- * Built: 2026-10-25T15:30:41.009Z
18
- * Commit: e547926
17
+ * Built: 2026-10-25T21:21:37.193Z
18
+ * Commit: 8d8be57
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.58.2
4974
+ * Domma Grid CSS v0.60.0
4975
4975
  * Dynamic Object Manipulation & Modeling API
4976
4976
  * (c) 2026 Darryl Waterhouse & DCBW-IT
4977
- * Built: 2026-10-25T15:30:41.013Z
4978
- * Commit: e547926
4977
+ * Built: 2026-10-25T21:21:37.197Z
4978
+ * Commit: 8d8be57
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.58.2
5599
+ * Domma Elements CSS v0.60.0
5600
5600
  * Dynamic Object Manipulation & Modeling API
5601
5601
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5602
- * Built: 2026-10-25T15:30:41.017Z
5603
- * Commit: e547926
5602
+ * Built: 2026-10-25T21:21:37.202Z
5603
+ * Commit: 8d8be57
5604
5604
  */
5605
5605
 
5606
5606
  /**
@@ -16613,11 +16613,11 @@ a.avatar-more-person:hover .avatar-more-name {
16613
16613
  ============================================ */
16614
16614
 
16615
16615
  /*!
16616
- * Domma Themes v0.58.2
16616
+ * Domma Themes v0.60.0
16617
16617
  * Dynamic Object Manipulation & Modeling API
16618
16618
  * (c) 2026 Darryl Waterhouse & DCBW-IT
16619
- * Built: 2026-10-25T15:30:40.998Z
16620
- * Commit: e547926
16619
+ * Built: 2026-10-25T21:21:37.177Z
16620
+ * Commit: 8d8be57
16621
16621
  */
16622
16622
 
16623
16623
  /**
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * Domma Minimal CSS Bundle v0.58.2
2
+ * Domma Minimal CSS Bundle v0.60.0
3
3
  * Dynamic Object Manipulation & Modeling API
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-25T15:30:41.141Z
5
+ * Built: 2026-10-25T21:21:37.350Z
6
6
  */
7
7
 
8
8
  /* ============================================
@@ -11,11 +11,11 @@
11
11
  ============================================ */
12
12
 
13
13
  /*!
14
- * Domma Core CSS v0.58.2
14
+ * Domma Core CSS v0.60.0
15
15
  * Dynamic Object Manipulation & Modeling API
16
16
  * (c) 2026 Darryl Waterhouse & DCBW-IT
17
- * Built: 2026-10-25T15:30:41.009Z
18
- * Commit: e547926
17
+ * Built: 2026-10-25T21:21:37.193Z
18
+ * Commit: 8d8be57
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.58.2
4974
+ * Domma Grid CSS v0.60.0
4975
4975
  * Dynamic Object Manipulation & Modeling API
4976
4976
  * (c) 2026 Darryl Waterhouse & DCBW-IT
4977
- * Built: 2026-10-25T15:30:41.013Z
4978
- * Commit: e547926
4977
+ * Built: 2026-10-25T21:21:37.197Z
4978
+ * Commit: 8d8be57
4979
4979
  */
4980
4980
 
4981
4981
  /**
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * Domma Flags v0.58.2
2
+ * Domma Flags v0.60.0
3
3
  * Nation flags as inline SVG (opt-in module)
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-25T15:30:25.854Z
6
- * Commit: e547926
5
+ * Built: 2026-10-25T21:21:18.915Z
6
+ * Commit: 8d8be57
7
7
  *
8
8
  * Requires: domma.min.js
9
9
  */
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * Domma Flags v0.58.2
2
+ * Domma Flags v0.60.0
3
3
  * Nation flags as inline SVG (opt-in module)
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-25T15:30:25.854Z
6
- * Commit: e547926
5
+ * Built: 2026-10-25T21:21:18.915Z
6
+ * Commit: 8d8be57
7
7
  *
8
8
  * Requires: domma.min.js
9
9
  */
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * Domma Syntax Highlighter v0.58.2
2
+ * Domma Syntax Highlighter v0.60.0
3
3
  * Lightweight code syntax highlighting for JavaScript, HTML, and CSS
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-25T15:30:25.851Z
6
- * Commit: e547926
5
+ * Built: 2026-10-25T21:21:18.912Z
6
+ * Commit: 8d8be57
7
7
  */
8
8
  !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).DommaSyntax={})}(this,function(t){"use strict";const e={javascript:[{type:"comment",pattern:/\/\*[\s\S]*?\*\//g},{type:"comment",pattern:/\/\/.*/g},{type:"template-string",pattern:/`(?:\\.|[^`\\])*`/g},{type:"string",pattern:/"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'/g},{type:"keyword",pattern:/\b(const|let|var|function|return|if|else|for|while|do|break|continue|switch|case|default|try|catch|finally|throw|async|await|class|extends|static|new|this|super|import|export|from|as|default|yield|typeof|instanceof|in|of|delete|void)\b/g},{type:"boolean",pattern:/\b(true|false|null|undefined|NaN|Infinity)\b/g},{type:"number",pattern:/\b\d+\.?\d*([eE][+-]?\d+)?\b/g},{type:"function",pattern:/\b([a-zA-Z_$][\w$]*)\s*(?=\()/g},{type:"class-name",pattern:/\b[A-Z][\w$]*\b/g},{type:"operator",pattern:/[+\-*/%=<>!&|^~?:]+|===|!==|==|!=|<=|>=|&&|\|\||<<|>>|>>>/g},{type:"punctuation",pattern:/[{}[\]();,.]/g}],html:[{type:"comment",pattern:/<!--[\s\S]*?-->/g},{type:"doctype",pattern:/<!DOCTYPE[^>]*>/gi},{type:"tag-open",pattern:/<\/?[a-zA-Z][\w-]*/g},{type:"tag-close",pattern:/\/?>/g},{type:"attr-name",pattern:/\s+[a-zA-Z:@][\w:.-]*(?=\s*=)/g},{type:"attr-value",pattern:/=\s*"[^"]*"|=\s*'[^']*'/g},{type:"entity",pattern:/&[#\w]+;/g}],css:[{type:"comment",pattern:/\/\*[\s\S]*?\*\//g},{type:"at-rule",pattern:/@[\w-]+/g},{type:"selector",pattern:/[.#]?[a-zA-Z][\w-]*(?=\s*[{,])/g},{type:"property",pattern:/\b[\w-]+(?=\s*:)/g},{type:"string",pattern:/"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'/g},{type:"function",pattern:/\b[\w-]+(?=\()/g},{type:"important",pattern:/!important\b/g},{type:"number",pattern:/\b\d+\.?\d*(px|em|rem|%|vh|vw|pt|cm|mm|in|pc|ex|ch|vmin|vmax|fr)?\b/g},{type:"color",pattern:/#[\da-fA-F]{3,8}\b/g},{type:"punctuation",pattern:/[{}:;,()]/g}]};function n(t){const e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return t.replace(/[&<>"']/g,t=>e[t])}class a{constructor(){this.config={autoDetect:!0,preserveOriginal:!0,selector:".code-block",showLanguageBadge:!1,languagePrefix:"language-"}}highlight(t,a=null){const r="string"==typeof t?document.querySelector(t):t;if(!r||r.hasAttribute("data-syntax-highlighted"))return!1;if(!a&&this.config.autoDetect){const t=Array.from(r.classList).find(t=>t.startsWith(this.config.languagePrefix));t&&(a=t.substring(this.config.languagePrefix.length))}if(!a||!e[a])return!1;const o=r.textContent||"";this.config.preserveOriginal&&r.setAttribute("data-original-code",o);const i=function(t,a){const r=e[a];if(!r)return n(t);const o=[];for(const{type:e,pattern:n}of r){if("html"===a&&"entity"===e)continue;let r;for(n.lastIndex=0;null!==(r=n.exec(t));)o.push({start:r.index,end:r.index+r[0].length,text:r[0],type:e})}o.sort((t,e)=>t.start-e.start);const i=[];let s=0;for(const t of o)t.start>=s&&(i.push(t),s=t.end);let c="",p=0;for(const e of i)e.start>p&&(c+=n(t.substring(p,e.start))),c+=`<span class="syntax-${e.type}">${n(e.text)}</span>`,p=e.end;return p<t.length&&(c+=n(t.substring(p))),c}(o,a);return r.innerHTML=i,r.setAttribute("data-syntax-highlighted","true"),r.setAttribute("data-language",a),this.config.showLanguageBadge&&this.addLanguageBadge(r,a),!0}scan(t={}){const e=t.selector||this.config.selector,n=document.querySelectorAll(e);let a=0;return n.forEach(e=>{this.highlight(e,t.language||null)&&(this.addCopyButton(e),a++)}),a}register(t,n){t&&Array.isArray(n)?e[t]=n:console.error("SyntaxHighlighter: Invalid language registration")}configure(t){return t?(Object.assign(this.config,t),this.config):{...this.config}}addLanguageBadge(t,e){if(t.querySelector(".syntax-language-badge"))return;const n=document.createElement("div");n.className="syntax-language-badge",n.textContent=e.toUpperCase(),t.style.position="relative",t.insertBefore(n,t.firstChild)}getLanguages(){return Object.keys(e)}isLanguageSupported(t){return t in e}addCopyButton(t){if(t.parentElement&&t.parentElement.classList.contains("code-block-wrapper"))return;const e=document.createElement("div");e.className="code-block-wrapper";const n=document.createElement("button");n.className="code-block-copy",n.setAttribute("aria-label","Copy code to clipboard"),n.innerHTML='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>',n.addEventListener("click",async()=>{const e=t.getAttribute("data-original-code")||t.textContent;try{if(navigator.clipboard&&navigator.clipboard.writeText)await navigator.clipboard.writeText(e);else{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}n.classList.add("copied"),n.innerHTML='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="20 6 9 17 4 12"></polyline></svg>',setTimeout(()=>{n.classList.remove("copied"),n.innerHTML='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>'},2e3)}catch(t){console.error("Failed to copy code:",t)}}),t.parentNode.insertBefore(e,t),e.appendChild(t),e.appendChild(n)}}const r=new a;"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{r.scan()}):setTimeout(()=>r.scan(),0)),"undefined"!=typeof window&&(window.Domma&&(window.Domma.syntax=r),window.DommaSyntax=r),t.LANGUAGES=e,t.SyntaxHighlighter=a,t.default=r,t.syntax=r,Object.defineProperty(t,"__esModule",{value:!0})});
9
9
  //# sourceMappingURL=domma-syntax.min.js.map
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * Domma Core CSS v0.58.2
2
+ * Domma Core CSS v0.60.0
3
3
  * Dynamic Object Manipulation & Modeling API
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-10-25T15:30:41.009Z
6
- * Commit: e547926
5
+ * Built: 2026-10-25T21:21:37.193Z
6
+ * Commit: 8d8be57
7
7
  */
8
8
 
9
9
  /**