domma-js 0.56.0 → 0.57.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/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 +341 -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 +4996 -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 +412 -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 +369 -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 +277 -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/frontend/types/domma.d.ts +2 -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/public/dist/elements.css
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Domma Elements CSS v0.
|
|
2
|
+
* Domma Elements CSS v0.57.0
|
|
3
3
|
* Dynamic Object Manipulation & Modeling API
|
|
4
4
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
5
|
-
* Built: 2026-10-
|
|
6
|
-
* Commit:
|
|
5
|
+
* Built: 2026-10-24T20:04:51.175Z
|
|
6
|
+
* Commit: 8ca8224
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -3986,6 +3986,12 @@ code {
|
|
|
3986
3986
|
z-index: 10000;
|
|
3987
3987
|
}
|
|
3988
3988
|
|
|
3989
|
+
/* A slideover takes focus itself on open (its focus trap), so the first Tab reaches its
|
|
3990
|
+
first control; the panel is not a tab stop and needs no ring of its own. */
|
|
3991
|
+
.dm-slideover[tabindex="-1"]:focus {
|
|
3992
|
+
outline: none;
|
|
3993
|
+
}
|
|
3994
|
+
|
|
3989
3995
|
.dm-dialog-overlay {
|
|
3990
3996
|
position: fixed;
|
|
3991
3997
|
top: 0;
|
package/public/dist/grid.css
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Domma Grid CSS v0.
|
|
2
|
+
* Domma Grid CSS v0.57.0
|
|
3
3
|
* Dynamic Object Manipulation & Modeling API
|
|
4
4
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
5
|
-
* Built: 2026-10-
|
|
6
|
-
* Commit:
|
|
5
|
+
* Built: 2026-10-24T20:04:51.170Z
|
|
6
|
+
* Commit: 8ca8224
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/**
|
package/public/dist/syntax.css
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Domma Syntax Highlighting CSS v0.
|
|
2
|
+
* Domma Syntax Highlighting CSS v0.57.0
|
|
3
3
|
* Dynamic Object Manipulation & Modeling API
|
|
4
4
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
5
|
-
* Built: 2026-10-
|
|
6
|
-
* Commit:
|
|
5
|
+
* Built: 2026-10-24T20:04:51.179Z
|
|
6
|
+
* Commit: 8ca8224
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Domma Themes v0.
|
|
2
|
+
* Domma Themes v0.57.0
|
|
3
3
|
* Dynamic Object Manipulation & Modeling API
|
|
4
4
|
* (c) 2026 Darryl Waterhouse & DCBW-IT
|
|
5
|
-
* Built: 2026-10-
|
|
6
|
-
* Commit:
|
|
5
|
+
* Built: 2026-10-24T20:04:51.154Z
|
|
6
|
+
* Commit: 8ca8224
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* jQuery-style DOM manipulation, Lodash utilities, and modern UI components.
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This is a consolidated type definition file for the Domma framework.
|
|
9
|
-
* For complete type definitions, see:
|
|
9
|
+
* For complete type definitions (generated from the source), see the domma-js npm package:
|
|
10
|
+
* assets/types/index.d.ts - https://unpkg.com/domma-js/assets/types/index.d.ts
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
// ============================================
|
package/assets/types/config.d.ts
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Domma Config Module - TypeScript Declarations
|
|
3
|
-
* Declarative configuration engine for component initialisation
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import {DommaCollection} from './dom';
|
|
7
|
-
|
|
8
|
-
export type ComponentType = 'card' | 'modal' | 'tabs' | 'accordion' | 'tooltip' | 'carousel' | 'dropdown';
|
|
9
|
-
|
|
10
|
-
export interface InitialProperties {
|
|
11
|
-
css?: Record<string, string | number>;
|
|
12
|
-
text?: string;
|
|
13
|
-
html?: string;
|
|
14
|
-
addClass?: string;
|
|
15
|
-
removeClass?: string;
|
|
16
|
-
toggleClass?: string;
|
|
17
|
-
attr?: Record<string, string>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface EventAction {
|
|
21
|
-
target?: string;
|
|
22
|
-
css?: Record<string, string | number>;
|
|
23
|
-
text?: string;
|
|
24
|
-
html?: string;
|
|
25
|
-
addClass?: string;
|
|
26
|
-
removeClass?: string;
|
|
27
|
-
toggleClass?: string;
|
|
28
|
-
log?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export type ConfigEventHandler = (event: Event, $el: DommaCollection) => void;
|
|
32
|
-
export type EventActions = ConfigEventHandler | EventAction | (ConfigEventHandler | EventAction)[];
|
|
33
|
-
|
|
34
|
-
export interface SelectorConfig {
|
|
35
|
-
/** Component type to initialise */
|
|
36
|
-
component?: ComponentType;
|
|
37
|
-
|
|
38
|
-
/** Component options */
|
|
39
|
-
options?: Record<string, any>;
|
|
40
|
-
|
|
41
|
-
/** Initial state properties to apply */
|
|
42
|
-
initial?: InitialProperties;
|
|
43
|
-
|
|
44
|
-
/** Event handlers */
|
|
45
|
-
events?: Record<string, EventActions>;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface SetupConfig {
|
|
49
|
-
[selector: string]: SelectorConfig;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface ConfigEngine {
|
|
53
|
-
/**
|
|
54
|
-
* Process initial configuration
|
|
55
|
-
* @param config - Configuration object keyed by selector
|
|
56
|
-
*/
|
|
57
|
-
process(config: SetupConfig): void;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Update configuration for a selector
|
|
61
|
-
* @param selector - CSS selector
|
|
62
|
-
* @param changes - Changes to merge into existing config
|
|
63
|
-
* @returns The merged configuration
|
|
64
|
-
*/
|
|
65
|
-
update(selector: string, changes: Partial<SelectorConfig>): SelectorConfig;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Retrieve configuration for a selector or all selectors
|
|
69
|
-
* @param selector - Optional selector to get config for
|
|
70
|
-
* @returns Configuration object or null if not found
|
|
71
|
-
*/
|
|
72
|
-
config(): Record<string, SelectorConfig>;
|
|
73
|
-
|
|
74
|
-
config(selector: string): SelectorConfig | null;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Reset/destroy configuration for a selector or all selectors
|
|
78
|
-
* @param selector - Optional selector to reset
|
|
79
|
-
*/
|
|
80
|
-
/**
|
|
81
|
-
* Retrieve the live component instance created by setup() for a selector.
|
|
82
|
-
* Instances are NOT stored on the element - $(sel).data('component') is
|
|
83
|
-
* always undefined.
|
|
84
|
-
* @param selector - Selector the component was configured under
|
|
85
|
-
*/
|
|
86
|
-
getComponent(selector: string): any | null;
|
|
87
|
-
getComponent(): Map<string, any>;
|
|
88
|
-
|
|
89
|
-
reset(selector?: string): void;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Initialise a component
|
|
93
|
-
* @param selector - CSS selector
|
|
94
|
-
* @param componentType - Component type name
|
|
95
|
-
* @param options - Component options
|
|
96
|
-
* @returns Component instance
|
|
97
|
-
*/
|
|
98
|
-
initComponent(selector: string, componentType: ComponentType, options?: Record<string, any>): any;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Apply properties to DOM elements
|
|
102
|
-
* @param domElements - Domma collection
|
|
103
|
-
* @param properties - Properties to apply
|
|
104
|
-
*/
|
|
105
|
-
applyProperties(domElements: DommaCollection, properties: InitialProperties): void;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Bind events to elements
|
|
109
|
-
* @param selector - CSS selector
|
|
110
|
-
* @param events - Event handlers object
|
|
111
|
-
* @param track - Whether to track handlers for later removal
|
|
112
|
-
*/
|
|
113
|
-
bindEvents(selector: string, events: Record<string, EventActions>, track?: boolean): void;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Unbind all tracked events for a selector
|
|
117
|
-
* @param selector - CSS selector
|
|
118
|
-
*/
|
|
119
|
-
unbindEvents(selector: string): void;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Update events for a selector (replaces existing handlers for same events)
|
|
123
|
-
* @param selector - CSS selector
|
|
124
|
-
* @param newEvents - New event handlers
|
|
125
|
-
*/
|
|
126
|
-
updateEvents(selector: string, newEvents: Record<string, EventActions>): void;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Execute actions for an event
|
|
130
|
-
* @param event - DOM event
|
|
131
|
-
* @param actions - Actions to execute
|
|
132
|
-
*/
|
|
133
|
-
executeActions(event: Event, actions: EventActions): void;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export declare const configEngine: ConfigEngine;
|
package/assets/types/dates.d.ts
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Domma Dates Module - TypeScript Declarations
|
|
3
|
-
* Moment.js-style chainable date manipulation
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export type DateInput = Date | string | number | DommaDate | null | undefined;
|
|
7
|
-
export type DateUnit =
|
|
8
|
-
'year'
|
|
9
|
-
| 'years'
|
|
10
|
-
| 'month'
|
|
11
|
-
| 'months'
|
|
12
|
-
| 'week'
|
|
13
|
-
| 'weeks'
|
|
14
|
-
| 'day'
|
|
15
|
-
| 'days'
|
|
16
|
-
| 'date'
|
|
17
|
-
| 'hour'
|
|
18
|
-
| 'hours'
|
|
19
|
-
| 'minute'
|
|
20
|
-
| 'minutes'
|
|
21
|
-
| 'second'
|
|
22
|
-
| 'seconds'
|
|
23
|
-
| 'millisecond'
|
|
24
|
-
| 'milliseconds';
|
|
25
|
-
export type DiffUnit = 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'months' | 'years';
|
|
26
|
-
export type Inclusivity = '()' | '[]' | '[)' | '(]';
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Chainable date wrapper class
|
|
30
|
-
*/
|
|
31
|
-
export declare class DommaDate {
|
|
32
|
-
constructor(value?: DateInput);
|
|
33
|
-
|
|
34
|
-
// ============================================
|
|
35
|
-
// Manipulation Methods (chainable)
|
|
36
|
-
// ============================================
|
|
37
|
-
|
|
38
|
-
/** Add time to the date */
|
|
39
|
-
add(amount: number, unit: DateUnit): DommaDate;
|
|
40
|
-
|
|
41
|
-
/** Subtract time from the date */
|
|
42
|
-
subtract(amount: number, unit: DateUnit): DommaDate;
|
|
43
|
-
|
|
44
|
-
/** Set to start of unit of time */
|
|
45
|
-
startOf(unit: DateUnit): DommaDate;
|
|
46
|
-
|
|
47
|
-
/** Set to end of unit of time */
|
|
48
|
-
endOf(unit: DateUnit): DommaDate;
|
|
49
|
-
|
|
50
|
-
/** Set a unit of time */
|
|
51
|
-
set(unit: DateUnit, value: number): DommaDate;
|
|
52
|
-
|
|
53
|
-
// ============================================
|
|
54
|
-
// Getter Methods
|
|
55
|
-
// ============================================
|
|
56
|
-
|
|
57
|
-
/** Get unit value or underlying Date */
|
|
58
|
-
get(): Date;
|
|
59
|
-
get(unit: DateUnit): number;
|
|
60
|
-
|
|
61
|
-
/** Get the year */
|
|
62
|
-
year(): number;
|
|
63
|
-
|
|
64
|
-
/** Get the month (0-11) */
|
|
65
|
-
month(): number;
|
|
66
|
-
|
|
67
|
-
/** Get the date of month (1-31) */
|
|
68
|
-
date(): number;
|
|
69
|
-
|
|
70
|
-
/** Get the day of week (0-6, Sunday=0) */
|
|
71
|
-
day(): number;
|
|
72
|
-
|
|
73
|
-
/** Get the hour (0-23) */
|
|
74
|
-
hour(): number;
|
|
75
|
-
|
|
76
|
-
/** Get the minute (0-59) */
|
|
77
|
-
minute(): number;
|
|
78
|
-
|
|
79
|
-
/** Get the second (0-59) */
|
|
80
|
-
second(): number;
|
|
81
|
-
|
|
82
|
-
/** Get the millisecond (0-999) */
|
|
83
|
-
millisecond(): number;
|
|
84
|
-
|
|
85
|
-
/** Get the day of year (1-366) */
|
|
86
|
-
dayOfYear(): number;
|
|
87
|
-
|
|
88
|
-
/** Get the week of year */
|
|
89
|
-
week(): number;
|
|
90
|
-
|
|
91
|
-
/** Get the quarter (1-4) */
|
|
92
|
-
quarter(): number;
|
|
93
|
-
|
|
94
|
-
/** Get Unix timestamp (seconds) */
|
|
95
|
-
unix(): number;
|
|
96
|
-
|
|
97
|
-
/** Get milliseconds since epoch */
|
|
98
|
-
valueOf(): number;
|
|
99
|
-
|
|
100
|
-
// ============================================
|
|
101
|
-
// Formatting
|
|
102
|
-
// ============================================
|
|
103
|
-
|
|
104
|
-
/** Format the date using tokens */
|
|
105
|
-
format(formatStr?: string): string;
|
|
106
|
-
|
|
107
|
-
/** Get ISO 8601 string */
|
|
108
|
-
toISOString(): string;
|
|
109
|
-
|
|
110
|
-
/** Get native Date object */
|
|
111
|
-
toDate(): Date;
|
|
112
|
-
|
|
113
|
-
/** Get string representation */
|
|
114
|
-
toString(): string;
|
|
115
|
-
|
|
116
|
-
/** Get relative time from now */
|
|
117
|
-
fromNow(relativeTo?: DateInput): string;
|
|
118
|
-
|
|
119
|
-
/** Get relative time to another date */
|
|
120
|
-
to(date: DateInput): string;
|
|
121
|
-
|
|
122
|
-
// ============================================
|
|
123
|
-
// Comparison Methods
|
|
124
|
-
// ============================================
|
|
125
|
-
|
|
126
|
-
/** Check if date is before another */
|
|
127
|
-
isBefore(other: DateInput, unit?: DateUnit): boolean;
|
|
128
|
-
|
|
129
|
-
/** Check if date is after another */
|
|
130
|
-
isAfter(other: DateInput, unit?: DateUnit): boolean;
|
|
131
|
-
|
|
132
|
-
/** Check if date is same as another */
|
|
133
|
-
isSame(other: DateInput, unit?: DateUnit): boolean;
|
|
134
|
-
|
|
135
|
-
/** Check if date is between two dates */
|
|
136
|
-
isBetween(start: DateInput, end: DateInput, unit?: DateUnit, inclusivity?: Inclusivity): boolean;
|
|
137
|
-
|
|
138
|
-
/** Get difference between dates */
|
|
139
|
-
diff(other: DateInput, unit?: DiffUnit, precise?: boolean): number;
|
|
140
|
-
|
|
141
|
-
// ============================================
|
|
142
|
-
// Query Methods
|
|
143
|
-
// ============================================
|
|
144
|
-
|
|
145
|
-
/** Check if date is valid */
|
|
146
|
-
isValid(): boolean;
|
|
147
|
-
|
|
148
|
-
/** Check if year is a leap year */
|
|
149
|
-
isLeapYear(): boolean;
|
|
150
|
-
|
|
151
|
-
/** Get number of days in month */
|
|
152
|
-
daysInMonth(): number;
|
|
153
|
-
|
|
154
|
-
// ============================================
|
|
155
|
-
// Clone
|
|
156
|
-
// ============================================
|
|
157
|
-
|
|
158
|
-
/** Create a copy of this date */
|
|
159
|
-
clone(): DommaDate;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export interface FormatTokens {
|
|
163
|
-
YYYY: string;
|
|
164
|
-
YY: string;
|
|
165
|
-
MM: string;
|
|
166
|
-
M: string;
|
|
167
|
-
DD: string;
|
|
168
|
-
D: string;
|
|
169
|
-
HH: string;
|
|
170
|
-
H: string;
|
|
171
|
-
hh: string;
|
|
172
|
-
h: string;
|
|
173
|
-
mm: string;
|
|
174
|
-
m: string;
|
|
175
|
-
ss: string;
|
|
176
|
-
s: string;
|
|
177
|
-
SSS: string;
|
|
178
|
-
A: string;
|
|
179
|
-
a: string;
|
|
180
|
-
ddd: string;
|
|
181
|
-
dddd: string;
|
|
182
|
-
MMM: string;
|
|
183
|
-
MMMM: string;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export interface Dates {
|
|
187
|
-
/** Create a DommaDate from a value */
|
|
188
|
-
(value?: DateInput): DommaDate;
|
|
189
|
-
|
|
190
|
-
/** Get current timestamp in milliseconds */
|
|
191
|
-
now(): number;
|
|
192
|
-
|
|
193
|
-
/** Parse a date string with optional format */
|
|
194
|
-
parse(dateString: string, format?: string): DommaDate;
|
|
195
|
-
|
|
196
|
-
/** Check if a value is a valid date */
|
|
197
|
-
isValid(value: DateInput): boolean;
|
|
198
|
-
|
|
199
|
-
/** Get the minimum date from a list */
|
|
200
|
-
min(...dates: DateInput[]): DommaDate;
|
|
201
|
-
|
|
202
|
-
/** Get the maximum date from a list */
|
|
203
|
-
max(...dates: DateInput[]): DommaDate;
|
|
204
|
-
|
|
205
|
-
/** Format tokens reference */
|
|
206
|
-
tokens: FormatTokens;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export declare const dates: Dates;
|