jssm 5.81.0 → 5.82.1
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/CHANGELOG.md +38 -43
- package/README.md +2 -2
- package/dist/es6/jssm-dot.js +1 -1
- package/dist/es6/jssm.d.ts +7 -5
- package/dist/es6/jssm.js +84 -27
- package/dist/es6/jssm_types.d.ts +25 -4
- package/dist/es6/jssm_types.js +3 -1
- package/dist/es6/{jssm_base_stylesheet.d.ts → themes/jssm_base_stylesheet.d.ts} +3 -2
- package/dist/es6/{jssm_base_stylesheet.js → themes/jssm_base_stylesheet.js} +25 -1
- package/dist/es6/themes/jssm_theme_default.d.ts +11 -0
- package/dist/es6/themes/jssm_theme_default.js +57 -0
- package/dist/es6/themes/jssm_theme_modern.d.ts +11 -0
- package/dist/es6/themes/jssm_theme_modern.js +57 -0
- package/{jssm_base_stylesheet.d.ts → dist/es6/themes/jssm_theme_ocean.d.ts} +3 -2
- package/dist/es6/themes/jssm_theme_ocean.js +55 -0
- package/dist/es6/themes/jssm_theme_plain.d.ts +11 -0
- package/dist/es6/themes/jssm_theme_plain.js +69 -0
- package/dist/es6/version.js +1 -1
- package/dist/jssm.es5.cjs.js +1 -1
- package/dist/jssm.es5.iife.js +1 -1
- package/jssm.d.ts +7 -5
- package/jssm_types.d.ts +25 -4
- package/package.json +1 -1
package/dist/es6/jssm.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare type StateType = string;
|
|
2
2
|
import { JssmGenericState, JssmGenericConfig, JssmStateConfig, JssmTransition, JssmTransitionList, // JssmTransitionRule,
|
|
3
|
-
JssmMachineInternalState, JssmParseTree, JssmStateDeclaration, JssmStateStyleKeyList, JssmArrow, JssmArrowDirection, JssmArrowKind, JssmLayout, JssmHistory, JssmSerialization, FslDirection, FslTheme, HookDescription, HookHandler, HookContext, HookResult, HookComplexResult } from './jssm_types';
|
|
3
|
+
JssmMachineInternalState, JssmParseTree, JssmStateDeclaration, JssmStateStyleKeyList, JssmArrow, JssmArrowDirection, JssmArrowKind, JssmLayout, JssmHistory, JssmSerialization, FslDirection, FslDirections, FslTheme, HookDescription, HookHandler, HookContext, HookResult, HookComplexResult } from './jssm_types';
|
|
4
4
|
import { seq, unique, find_repeated, weighted_rand_select, weighted_sample_select, histograph, weighted_histo_key } from './jssm_util';
|
|
5
5
|
import * as constants from './jssm_constants';
|
|
6
6
|
declare const shapes: string[], gviz_shapes: string[], named_colors: string[];
|
|
@@ -218,7 +218,7 @@ declare class Machine<mDT> {
|
|
|
218
218
|
_arrange_declaration: Array<Array<StateType>>;
|
|
219
219
|
_arrange_start_declaration: Array<Array<StateType>>;
|
|
220
220
|
_arrange_end_declaration: Array<Array<StateType>>;
|
|
221
|
-
|
|
221
|
+
_themes: FslTheme[];
|
|
222
222
|
_flow: FslDirection;
|
|
223
223
|
_has_hooks: boolean;
|
|
224
224
|
_has_basic_hooks: boolean;
|
|
@@ -625,7 +625,9 @@ declare class Machine<mDT> {
|
|
|
625
625
|
list_edges(): Array<JssmTransition<mDT>>;
|
|
626
626
|
list_named_transitions(): Map<StateType, number>;
|
|
627
627
|
list_actions(): Array<StateType>;
|
|
628
|
-
|
|
628
|
+
all_themes(): FslTheme[];
|
|
629
|
+
get themes(): FslTheme[];
|
|
630
|
+
set themes(to: FslTheme | FslTheme[]);
|
|
629
631
|
flow(): FslDirection;
|
|
630
632
|
get_transition_by_state_names(from: StateType, to: StateType): number;
|
|
631
633
|
lookup_transition_for(from: StateType, to: StateType): JssmTransition<mDT>;
|
|
@@ -1070,7 +1072,7 @@ declare class Machine<mDT> {
|
|
|
1070
1072
|
* ```
|
|
1071
1073
|
*
|
|
1072
1074
|
* @typeparam mDT The type of the machine data member; usually omitted
|
|
1073
|
-
|
|
1075
|
+
*
|
|
1074
1076
|
* @param actionName The action to engage
|
|
1075
1077
|
*
|
|
1076
1078
|
* @param newData The data change to insert during the action
|
|
@@ -1209,4 +1211,4 @@ declare function is_hook_complex_result<mDT>(hr: unknown): hr is HookComplexResu
|
|
|
1209
1211
|
declare function is_hook_rejection<mDT>(hr: HookResult<mDT>): boolean;
|
|
1210
1212
|
declare function abstract_hook_step<mDT>(maybe_hook: HookHandler<mDT> | undefined, hook_args: HookContext<mDT>): HookComplexResult<mDT>;
|
|
1211
1213
|
declare function deserialize<mDT>(machine_string: string, ser: JssmSerialization<mDT>): Machine<mDT>;
|
|
1212
|
-
export { version, transfer_state_properties, Machine, deserialize, make, wrap_parse as parse, compile, sm, from, arrow_direction, arrow_left_kind, arrow_right_kind, seq, unique, find_repeated, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, constants, shapes, gviz_shapes, named_colors, is_hook_rejection, is_hook_complex_result, abstract_hook_step, state_style_condense };
|
|
1214
|
+
export { version, transfer_state_properties, Machine, deserialize, make, wrap_parse as parse, compile, sm, from, arrow_direction, arrow_left_kind, arrow_right_kind, seq, unique, find_repeated, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, constants, shapes, gviz_shapes, named_colors, is_hook_rejection, is_hook_complex_result, abstract_hook_step, state_style_condense, FslDirections };
|
package/dist/es6/jssm.js
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
// whargarbl lots of these return arrays could/should be sets
|
|
2
2
|
import { reduce as reduce_to_639 } from 'reduce-to-639-1';
|
|
3
3
|
import { circular_buffer } from 'circular_buffer_js';
|
|
4
|
-
import {
|
|
4
|
+
import { FslDirections } from './jssm_types';
|
|
5
|
+
import { base_theme } from './themes/jssm_base_stylesheet';
|
|
6
|
+
import { default_theme } from './themes/jssm_theme_default';
|
|
7
|
+
import { modern_theme } from './themes/jssm_theme_modern';
|
|
8
|
+
import { ocean_theme } from './themes/jssm_theme_ocean';
|
|
9
|
+
import { plain_theme } from './themes/jssm_theme_plain';
|
|
10
|
+
const theme_mapping = new Map();
|
|
11
|
+
theme_mapping.set('default', default_theme);
|
|
12
|
+
theme_mapping.set('modern', modern_theme);
|
|
13
|
+
theme_mapping.set('ocean', ocean_theme);
|
|
14
|
+
theme_mapping.set('plain', plain_theme);
|
|
5
15
|
import { seq, unique, find_repeated, weighted_rand_select, weighted_sample_select, histograph, weighted_histo_key, array_box_if_string, name_bind_prop_and_state, hook_name, named_hook_name } from './jssm_util';
|
|
6
16
|
import * as constants from './jssm_constants';
|
|
7
17
|
const { shapes, gviz_shapes, named_colors } = constants;
|
|
@@ -491,7 +501,7 @@ function compile(tree) {
|
|
|
491
501
|
const oneOnlyKeys = [
|
|
492
502
|
'graph_layout', 'machine_name', 'machine_version', 'machine_comment',
|
|
493
503
|
'fsl_version', 'machine_license', 'machine_definition', 'machine_language',
|
|
494
|
-
'
|
|
504
|
+
'flow', 'dot_preamble'
|
|
495
505
|
];
|
|
496
506
|
oneOnlyKeys.map((oneOnlyKey) => {
|
|
497
507
|
if (results[oneOnlyKey].length > 1) {
|
|
@@ -504,7 +514,7 @@ function compile(tree) {
|
|
|
504
514
|
}
|
|
505
515
|
});
|
|
506
516
|
['arrange_declaration', 'arrange_start_declaration', 'arrange_end_declaration',
|
|
507
|
-
'machine_author', 'machine_contributor', 'machine_reference',
|
|
517
|
+
'machine_author', 'machine_contributor', 'machine_reference', 'theme',
|
|
508
518
|
'state_declaration', 'property_definition', 'default_state_config',
|
|
509
519
|
'default_start_state_config', 'default_end_state_config',
|
|
510
520
|
'default_hooked_state_config', 'default_terminal_state_config',
|
|
@@ -661,7 +671,7 @@ function state_style_condense(jssk) {
|
|
|
661
671
|
// TODO add a lotta docblock here
|
|
662
672
|
class Machine {
|
|
663
673
|
// whargarbl this badly needs to be broken up, monolith master
|
|
664
|
-
constructor({ start_states, end_states = [], complete = [], transitions, machine_author, machine_comment, machine_contributor, machine_definition, machine_language, machine_license, machine_name, machine_version, state_declaration, property_definition, state_property, fsl_version, dot_preamble = undefined, arrange_declaration = [], arrange_start_declaration = [], arrange_end_declaration = [], theme = 'default', flow = 'down', graph_layout = 'dot', instance_name, history, data, default_state_config, default_active_state_config, default_hooked_state_config, default_terminal_state_config, default_start_state_config, default_end_state_config }) {
|
|
674
|
+
constructor({ start_states, end_states = [], complete = [], transitions, machine_author, machine_comment, machine_contributor, machine_definition, machine_language, machine_license, machine_name, machine_version, state_declaration, property_definition, state_property, fsl_version, dot_preamble = undefined, arrange_declaration = [], arrange_start_declaration = [], arrange_end_declaration = [], theme = ['default'], flow = 'down', graph_layout = 'dot', instance_name, history, data, default_state_config, default_active_state_config, default_hooked_state_config, default_terminal_state_config, default_start_state_config, default_end_state_config }) {
|
|
665
675
|
this._instance_name = instance_name;
|
|
666
676
|
this._state = start_states[0];
|
|
667
677
|
this._states = new Map();
|
|
@@ -688,7 +698,7 @@ class Machine {
|
|
|
688
698
|
this._arrange_start_declaration = arrange_start_declaration;
|
|
689
699
|
this._arrange_end_declaration = arrange_end_declaration;
|
|
690
700
|
this._dot_preamble = dot_preamble;
|
|
691
|
-
this.
|
|
701
|
+
this._themes = theme;
|
|
692
702
|
this._flow = flow;
|
|
693
703
|
this._graph_layout = graph_layout;
|
|
694
704
|
this._has_hooks = false;
|
|
@@ -1380,8 +1390,19 @@ class Machine {
|
|
|
1380
1390
|
list_actions() {
|
|
1381
1391
|
return Array.from(this._actions.keys());
|
|
1382
1392
|
}
|
|
1383
|
-
|
|
1384
|
-
return
|
|
1393
|
+
all_themes() {
|
|
1394
|
+
return [...theme_mapping.keys()]; // constructor sets this to "default" otherwise
|
|
1395
|
+
}
|
|
1396
|
+
get themes() {
|
|
1397
|
+
return this._themes; // constructor sets this to "default" otherwise
|
|
1398
|
+
}
|
|
1399
|
+
set themes(to) {
|
|
1400
|
+
if (typeof to === 'string') {
|
|
1401
|
+
this._themes = [to];
|
|
1402
|
+
}
|
|
1403
|
+
else {
|
|
1404
|
+
this._themes = to;
|
|
1405
|
+
}
|
|
1385
1406
|
}
|
|
1386
1407
|
flow() {
|
|
1387
1408
|
return this._flow;
|
|
@@ -2317,6 +2338,12 @@ class Machine {
|
|
|
2317
2338
|
get active_state_style() {
|
|
2318
2339
|
return this._active_state_style;
|
|
2319
2340
|
}
|
|
2341
|
+
/*
|
|
2342
|
+
*/
|
|
2343
|
+
// TODO COMEBACK IMPLEMENTME FIXME
|
|
2344
|
+
// has_hooks(state: StateType): false {
|
|
2345
|
+
// return false;
|
|
2346
|
+
// }
|
|
2320
2347
|
/********
|
|
2321
2348
|
*
|
|
2322
2349
|
* Gets the composite style for a specific node by individually imposing the
|
|
@@ -2337,48 +2364,76 @@ class Machine {
|
|
|
2337
2364
|
*
|
|
2338
2365
|
*/
|
|
2339
2366
|
style_for(state) {
|
|
2367
|
+
// first look up the themes
|
|
2368
|
+
const themes = [];
|
|
2369
|
+
this._themes.forEach(th => {
|
|
2370
|
+
const theme_impl = theme_mapping.get(th);
|
|
2371
|
+
if (theme_impl !== undefined) {
|
|
2372
|
+
themes.push(theme_impl);
|
|
2373
|
+
}
|
|
2374
|
+
});
|
|
2340
2375
|
// basic state style
|
|
2341
|
-
const layers = [
|
|
2342
|
-
|
|
2376
|
+
const layers = [base_theme.state];
|
|
2377
|
+
themes.reverse().map(theme => {
|
|
2378
|
+
if (theme.state) {
|
|
2379
|
+
layers.push(theme.state);
|
|
2380
|
+
}
|
|
2381
|
+
});
|
|
2343
2382
|
if (this._state_style) {
|
|
2344
2383
|
layers.push(this._state_style);
|
|
2345
2384
|
}
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
//
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2385
|
+
// hooked state style
|
|
2386
|
+
// if (this.has_hooks(state)) {
|
|
2387
|
+
// layers.push(base_theme.hooked);
|
|
2388
|
+
// themes.map(theme => {
|
|
2389
|
+
// if (theme.hooked) { layers.push(theme.hooked); }
|
|
2390
|
+
// });
|
|
2391
|
+
// if (this._hooked_state_style) { layers.push(this._hooked_state_style); }
|
|
2392
|
+
// }
|
|
2354
2393
|
// terminal state style
|
|
2355
2394
|
if (this.state_is_terminal(state)) {
|
|
2356
|
-
layers.push(
|
|
2357
|
-
|
|
2395
|
+
layers.push(base_theme.terminal);
|
|
2396
|
+
themes.map(theme => {
|
|
2397
|
+
if (theme.terminal) {
|
|
2398
|
+
layers.push(theme.terminal);
|
|
2399
|
+
}
|
|
2400
|
+
});
|
|
2358
2401
|
if (this._terminal_state_style) {
|
|
2359
2402
|
layers.push(this._terminal_state_style);
|
|
2360
2403
|
}
|
|
2361
2404
|
}
|
|
2362
2405
|
// start state style
|
|
2363
2406
|
if (this.is_start_state(state)) {
|
|
2364
|
-
layers.push(
|
|
2365
|
-
|
|
2407
|
+
layers.push(base_theme.start);
|
|
2408
|
+
themes.map(theme => {
|
|
2409
|
+
if (theme.start) {
|
|
2410
|
+
layers.push(theme.start);
|
|
2411
|
+
}
|
|
2412
|
+
});
|
|
2366
2413
|
if (this._start_state_style) {
|
|
2367
2414
|
layers.push(this._start_state_style);
|
|
2368
2415
|
}
|
|
2369
2416
|
}
|
|
2370
2417
|
// end state style
|
|
2371
2418
|
if (this.is_end_state(state)) {
|
|
2372
|
-
layers.push(
|
|
2373
|
-
|
|
2419
|
+
layers.push(base_theme.end);
|
|
2420
|
+
themes.map(theme => {
|
|
2421
|
+
if (theme.end) {
|
|
2422
|
+
layers.push(theme.end);
|
|
2423
|
+
}
|
|
2424
|
+
});
|
|
2374
2425
|
if (this._end_state_style) {
|
|
2375
2426
|
layers.push(this._end_state_style);
|
|
2376
2427
|
}
|
|
2377
2428
|
}
|
|
2378
2429
|
// active state style
|
|
2379
2430
|
if (this.state() === state) {
|
|
2380
|
-
layers.push(
|
|
2381
|
-
|
|
2431
|
+
layers.push(base_theme.active);
|
|
2432
|
+
themes.map(theme => {
|
|
2433
|
+
if (theme.active) {
|
|
2434
|
+
layers.push(theme.active);
|
|
2435
|
+
}
|
|
2436
|
+
});
|
|
2382
2437
|
if (this._active_state_style) {
|
|
2383
2438
|
layers.push(this._active_state_style);
|
|
2384
2439
|
}
|
|
@@ -2423,7 +2478,7 @@ class Machine {
|
|
|
2423
2478
|
* ```
|
|
2424
2479
|
*
|
|
2425
2480
|
* @typeparam mDT The type of the machine data member; usually omitted
|
|
2426
|
-
|
|
2481
|
+
*
|
|
2427
2482
|
* @param actionName The action to engage
|
|
2428
2483
|
*
|
|
2429
2484
|
* @param newData The data change to insert during the action
|
|
@@ -2672,4 +2727,6 @@ function deserialize(machine_string, ser) {
|
|
|
2672
2727
|
}
|
|
2673
2728
|
export { version, transfer_state_properties, Machine, deserialize, make, wrap_parse as parse, compile, sm, from, arrow_direction, arrow_left_kind, arrow_right_kind,
|
|
2674
2729
|
// WHARGARBL TODO these should be exported to a utility library
|
|
2675
|
-
seq, unique, find_repeated, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, constants, shapes, gviz_shapes, named_colors, is_hook_rejection, is_hook_complex_result, abstract_hook_step, state_style_condense
|
|
2730
|
+
seq, unique, find_repeated, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, constants, shapes, gviz_shapes, named_colors, is_hook_rejection, is_hook_complex_result, abstract_hook_step, state_style_condense, FslDirections
|
|
2731
|
+
// FslThemes
|
|
2732
|
+
};
|
package/dist/es6/jssm_types.d.ts
CHANGED
|
@@ -24,8 +24,10 @@ declare type JssmArrowKind = 'none' | 'legal' | 'main' | 'forced';
|
|
|
24
24
|
declare type JssmLayout = 'dot' | 'circo' | 'twopi' | 'fdp';
|
|
25
25
|
declare type JssmCorner = 'regular' | 'rounded' | 'lined';
|
|
26
26
|
declare type JssmLineStyle = 'solid' | 'dashed' | 'dotted';
|
|
27
|
-
declare
|
|
28
|
-
declare type
|
|
27
|
+
declare const FslDirections: readonly ["up", "right", "down", "left"];
|
|
28
|
+
declare type FslDirection = typeof FslDirections[number];
|
|
29
|
+
declare const FslThemes: readonly ["default", "ocean", "modern", "plain"];
|
|
30
|
+
declare type FslTheme = typeof FslThemes[number];
|
|
29
31
|
declare type JssmSerialization<DataType> = {
|
|
30
32
|
jssm_version: string;
|
|
31
33
|
timestamp: number;
|
|
@@ -151,11 +153,30 @@ declare type JssmStateStyleBorderColor = {
|
|
|
151
153
|
};
|
|
152
154
|
declare type JssmStateStyleKey = JssmStateStyleShape | JssmStateStyleColor | JssmStateStyleTextColor | JssmStateStyleCorners | JssmStateStyleLineStyle | JssmStateStyleBackgroundColor | JssmStateStyleStateLabel | JssmStateStyleBorderColor;
|
|
153
155
|
declare type JssmStateStyleKeyList = JssmStateStyleKey[];
|
|
156
|
+
declare type JssmBaseTheme = {
|
|
157
|
+
state: JssmStateConfig;
|
|
158
|
+
hooked: JssmStateConfig;
|
|
159
|
+
start: JssmStateConfig;
|
|
160
|
+
end: JssmStateConfig;
|
|
161
|
+
terminal: JssmStateConfig;
|
|
162
|
+
active: JssmStateConfig;
|
|
163
|
+
active_hooked: JssmStateConfig;
|
|
164
|
+
active_start: JssmStateConfig;
|
|
165
|
+
active_end: JssmStateConfig;
|
|
166
|
+
active_terminal: JssmStateConfig;
|
|
167
|
+
graph: undefined;
|
|
168
|
+
legal: undefined;
|
|
169
|
+
main: undefined;
|
|
170
|
+
forced: undefined;
|
|
171
|
+
action: undefined;
|
|
172
|
+
title: undefined;
|
|
173
|
+
};
|
|
174
|
+
declare type JssmTheme = Partial<JssmBaseTheme>;
|
|
154
175
|
declare type JssmGenericConfig<DataType> = {
|
|
155
176
|
graph_layout?: JssmLayout;
|
|
156
177
|
complete?: Array<StateType>;
|
|
157
178
|
transitions: JssmTransitions<DataType>;
|
|
158
|
-
theme?: FslTheme;
|
|
179
|
+
theme?: FslTheme[];
|
|
159
180
|
flow?: FslDirection;
|
|
160
181
|
name?: string;
|
|
161
182
|
data?: DataType;
|
|
@@ -332,4 +353,4 @@ declare type JssmErrorExtendedInfo = {
|
|
|
332
353
|
requested_state?: StateType | undefined;
|
|
333
354
|
};
|
|
334
355
|
declare type JssmHistory<mDT> = circular_buffer<[StateType, mDT]>;
|
|
335
|
-
export { JssmColor, JssmShape, JssmTransition, JssmTransitions, JssmTransitionList, JssmTransitionRule, JssmArrow, JssmArrowKind, JssmArrowDirection, JssmGenericConfig, JssmGenericState, JssmGenericMachine, JssmParseTree, JssmCompileSe, JssmCompileSeStart, JssmCompileRule, JssmPermitted, JssmPermittedOpt, JssmResult, JssmStateDeclaration, JssmStateDeclarationRule, JssmStateConfig, JssmStateStyleKey, JssmStateStyleKeyList, JssmLayout, JssmHistory, JssmSerialization, JssmPropertyDefinition, JssmParseFunctionType, JssmMachineInternalState, JssmErrorExtendedInfo, FslDirection, FslTheme, HookDescription, HookHandler, HookContext, HookResult, HookComplexResult };
|
|
356
|
+
export { JssmColor, JssmShape, JssmTransition, JssmTransitions, JssmTransitionList, JssmTransitionRule, JssmArrow, JssmArrowKind, JssmArrowDirection, JssmGenericConfig, JssmGenericState, JssmGenericMachine, JssmParseTree, JssmCompileSe, JssmCompileSeStart, JssmCompileRule, JssmPermitted, JssmPermittedOpt, JssmResult, JssmStateDeclaration, JssmStateDeclarationRule, JssmStateConfig, JssmStateStyleKey, JssmStateStyleKeyList, JssmBaseTheme, JssmTheme, JssmLayout, JssmHistory, JssmSerialization, JssmPropertyDefinition, JssmParseFunctionType, JssmMachineInternalState, JssmErrorExtendedInfo, FslDirections, FslDirection, FslThemes, FslTheme, HookDescription, HookHandler, HookContext, HookResult, HookComplexResult };
|
package/dist/es6/jssm_types.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JssmStateConfig } from '
|
|
1
|
+
import { JssmStateConfig, JssmBaseTheme } from '../jssm_types';
|
|
2
2
|
declare const base_state_style: JssmStateConfig;
|
|
3
3
|
declare const base_active_state_style: JssmStateConfig;
|
|
4
4
|
declare const base_terminal_state_style: JssmStateConfig;
|
|
@@ -7,4 +7,5 @@ declare const base_start_state_style: JssmStateConfig;
|
|
|
7
7
|
declare const base_active_start_state_style: JssmStateConfig;
|
|
8
8
|
declare const base_end_state_style: JssmStateConfig;
|
|
9
9
|
declare const base_active_end_state_style: JssmStateConfig;
|
|
10
|
-
|
|
10
|
+
declare const base_theme: JssmBaseTheme;
|
|
11
|
+
export { base_state_style, base_active_state_style, base_terminal_state_style, base_active_terminal_state_style, base_start_state_style, base_active_start_state_style, base_end_state_style, base_active_end_state_style, base_theme, base_theme as theme };
|
|
@@ -8,6 +8,9 @@ const base_active_state_style = {
|
|
|
8
8
|
textColor: 'white',
|
|
9
9
|
backgroundColor: 'dodgerblue4'
|
|
10
10
|
};
|
|
11
|
+
const base_hooked_state_style = {
|
|
12
|
+
shape: 'component'
|
|
13
|
+
};
|
|
11
14
|
const base_terminal_state_style = {
|
|
12
15
|
textColor: 'white',
|
|
13
16
|
backgroundColor: 'crimson'
|
|
@@ -22,6 +25,9 @@ const base_start_state_style = {
|
|
|
22
25
|
const base_active_start_state_style = {
|
|
23
26
|
backgroundColor: 'yellowgreen'
|
|
24
27
|
};
|
|
28
|
+
const base_active_hooked_state_style = {
|
|
29
|
+
backgroundColor: 'yellowgreen'
|
|
30
|
+
};
|
|
25
31
|
const base_end_state_style = {
|
|
26
32
|
textColor: 'white',
|
|
27
33
|
backgroundColor: 'darkolivegreen'
|
|
@@ -30,4 +36,22 @@ const base_active_end_state_style = {
|
|
|
30
36
|
textColor: 'white',
|
|
31
37
|
backgroundColor: 'darkgreen'
|
|
32
38
|
};
|
|
33
|
-
|
|
39
|
+
const base_theme = {
|
|
40
|
+
state: base_state_style,
|
|
41
|
+
start: base_start_state_style,
|
|
42
|
+
end: base_end_state_style,
|
|
43
|
+
terminal: base_terminal_state_style,
|
|
44
|
+
hooked: base_hooked_state_style,
|
|
45
|
+
active: base_active_state_style,
|
|
46
|
+
active_start: base_active_start_state_style,
|
|
47
|
+
active_end: base_active_end_state_style,
|
|
48
|
+
active_terminal: base_active_terminal_state_style,
|
|
49
|
+
active_hooked: base_active_hooked_state_style,
|
|
50
|
+
legal: undefined,
|
|
51
|
+
main: undefined,
|
|
52
|
+
forced: undefined,
|
|
53
|
+
action: undefined,
|
|
54
|
+
graph: undefined,
|
|
55
|
+
title: undefined // TODO FIXME
|
|
56
|
+
};
|
|
57
|
+
export { base_state_style, base_active_state_style, base_terminal_state_style, base_active_terminal_state_style, base_start_state_style, base_active_start_state_style, base_end_state_style, base_active_end_state_style, base_theme, base_theme as theme };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JssmStateConfig, JssmBaseTheme } from '../jssm_types';
|
|
2
|
+
declare const base_state_style: JssmStateConfig;
|
|
3
|
+
declare const base_active_state_style: JssmStateConfig;
|
|
4
|
+
declare const base_terminal_state_style: JssmStateConfig;
|
|
5
|
+
declare const base_active_terminal_state_style: JssmStateConfig;
|
|
6
|
+
declare const base_start_state_style: JssmStateConfig;
|
|
7
|
+
declare const base_active_start_state_style: JssmStateConfig;
|
|
8
|
+
declare const base_end_state_style: JssmStateConfig;
|
|
9
|
+
declare const base_active_end_state_style: JssmStateConfig;
|
|
10
|
+
declare const default_theme: JssmBaseTheme;
|
|
11
|
+
export { base_state_style, base_active_state_style, base_terminal_state_style, base_active_terminal_state_style, base_start_state_style, base_active_start_state_style, base_end_state_style, base_active_end_state_style, default_theme, default_theme as theme };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const base_state_style = {
|
|
2
|
+
shape: 'rectangle',
|
|
3
|
+
backgroundColor: 'khaki',
|
|
4
|
+
textColor: 'black',
|
|
5
|
+
borderColor: 'black'
|
|
6
|
+
};
|
|
7
|
+
const base_active_state_style = {
|
|
8
|
+
textColor: 'white',
|
|
9
|
+
backgroundColor: 'dodgerblue4'
|
|
10
|
+
};
|
|
11
|
+
const base_hooked_state_style = {
|
|
12
|
+
shape: 'component'
|
|
13
|
+
};
|
|
14
|
+
const base_terminal_state_style = {
|
|
15
|
+
textColor: 'white',
|
|
16
|
+
backgroundColor: 'crimson'
|
|
17
|
+
};
|
|
18
|
+
const base_active_terminal_state_style = {
|
|
19
|
+
textColor: 'white',
|
|
20
|
+
backgroundColor: 'indigo'
|
|
21
|
+
};
|
|
22
|
+
const base_start_state_style = {
|
|
23
|
+
backgroundColor: 'yellow'
|
|
24
|
+
};
|
|
25
|
+
const base_active_start_state_style = {
|
|
26
|
+
backgroundColor: 'yellowgreen'
|
|
27
|
+
};
|
|
28
|
+
const base_active_hooked_state_style = {
|
|
29
|
+
backgroundColor: 'yellowgreen'
|
|
30
|
+
};
|
|
31
|
+
const base_end_state_style = {
|
|
32
|
+
textColor: 'white',
|
|
33
|
+
backgroundColor: 'darkolivegreen'
|
|
34
|
+
};
|
|
35
|
+
const base_active_end_state_style = {
|
|
36
|
+
textColor: 'white',
|
|
37
|
+
backgroundColor: 'darkgreen'
|
|
38
|
+
};
|
|
39
|
+
const default_theme = {
|
|
40
|
+
state: base_state_style,
|
|
41
|
+
start: base_start_state_style,
|
|
42
|
+
end: base_end_state_style,
|
|
43
|
+
terminal: base_terminal_state_style,
|
|
44
|
+
hooked: base_hooked_state_style,
|
|
45
|
+
active: base_active_state_style,
|
|
46
|
+
active_start: base_active_start_state_style,
|
|
47
|
+
active_end: base_active_end_state_style,
|
|
48
|
+
active_terminal: base_active_terminal_state_style,
|
|
49
|
+
active_hooked: base_active_hooked_state_style,
|
|
50
|
+
legal: undefined,
|
|
51
|
+
main: undefined,
|
|
52
|
+
forced: undefined,
|
|
53
|
+
action: undefined,
|
|
54
|
+
graph: undefined,
|
|
55
|
+
title: undefined // TODO FIXME
|
|
56
|
+
};
|
|
57
|
+
export { base_state_style, base_active_state_style, base_terminal_state_style, base_active_terminal_state_style, base_start_state_style, base_active_start_state_style, base_end_state_style, base_active_end_state_style, default_theme, default_theme as theme };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JssmStateConfig, JssmBaseTheme } from '../jssm_types';
|
|
2
|
+
declare const base_state_style: JssmStateConfig;
|
|
3
|
+
declare const base_active_state_style: JssmStateConfig;
|
|
4
|
+
declare const base_terminal_state_style: JssmStateConfig;
|
|
5
|
+
declare const base_active_terminal_state_style: JssmStateConfig;
|
|
6
|
+
declare const base_start_state_style: JssmStateConfig;
|
|
7
|
+
declare const base_active_start_state_style: JssmStateConfig;
|
|
8
|
+
declare const base_end_state_style: JssmStateConfig;
|
|
9
|
+
declare const base_active_end_state_style: JssmStateConfig;
|
|
10
|
+
declare const modern_theme: JssmBaseTheme;
|
|
11
|
+
export { base_state_style, base_active_state_style, base_terminal_state_style, base_active_terminal_state_style, base_start_state_style, base_active_start_state_style, base_end_state_style, base_active_end_state_style, modern_theme, modern_theme as theme };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const base_state_style = {
|
|
2
|
+
shape: 'rectangle',
|
|
3
|
+
backgroundColor: 'khaki',
|
|
4
|
+
textColor: 'black',
|
|
5
|
+
borderColor: 'black'
|
|
6
|
+
};
|
|
7
|
+
const base_active_state_style = {
|
|
8
|
+
textColor: 'white',
|
|
9
|
+
backgroundColor: 'dodgerblue4'
|
|
10
|
+
};
|
|
11
|
+
const base_hooked_state_style = {
|
|
12
|
+
shape: 'component'
|
|
13
|
+
};
|
|
14
|
+
const base_terminal_state_style = {
|
|
15
|
+
textColor: 'white',
|
|
16
|
+
backgroundColor: 'crimson'
|
|
17
|
+
};
|
|
18
|
+
const base_active_terminal_state_style = {
|
|
19
|
+
textColor: 'white',
|
|
20
|
+
backgroundColor: 'indigo'
|
|
21
|
+
};
|
|
22
|
+
const base_start_state_style = {
|
|
23
|
+
backgroundColor: 'yellow'
|
|
24
|
+
};
|
|
25
|
+
const base_active_start_state_style = {
|
|
26
|
+
backgroundColor: 'yellowgreen'
|
|
27
|
+
};
|
|
28
|
+
const base_active_hooked_state_style = {
|
|
29
|
+
backgroundColor: 'yellowgreen'
|
|
30
|
+
};
|
|
31
|
+
const base_end_state_style = {
|
|
32
|
+
textColor: 'white',
|
|
33
|
+
backgroundColor: 'darkolivegreen'
|
|
34
|
+
};
|
|
35
|
+
const base_active_end_state_style = {
|
|
36
|
+
textColor: 'white',
|
|
37
|
+
backgroundColor: 'darkgreen'
|
|
38
|
+
};
|
|
39
|
+
const modern_theme = {
|
|
40
|
+
state: base_state_style,
|
|
41
|
+
start: base_start_state_style,
|
|
42
|
+
end: base_end_state_style,
|
|
43
|
+
terminal: base_terminal_state_style,
|
|
44
|
+
hooked: base_hooked_state_style,
|
|
45
|
+
active: base_active_state_style,
|
|
46
|
+
active_start: base_active_start_state_style,
|
|
47
|
+
active_end: base_active_end_state_style,
|
|
48
|
+
active_terminal: base_active_terminal_state_style,
|
|
49
|
+
active_hooked: base_active_hooked_state_style,
|
|
50
|
+
legal: undefined,
|
|
51
|
+
main: undefined,
|
|
52
|
+
forced: undefined,
|
|
53
|
+
action: undefined,
|
|
54
|
+
graph: undefined,
|
|
55
|
+
title: undefined // TODO FIXME
|
|
56
|
+
};
|
|
57
|
+
export { base_state_style, base_active_state_style, base_terminal_state_style, base_active_terminal_state_style, base_start_state_style, base_active_start_state_style, base_end_state_style, base_active_end_state_style, modern_theme, modern_theme as theme };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JssmStateConfig } from '
|
|
1
|
+
import { JssmStateConfig, JssmBaseTheme } from '../jssm_types';
|
|
2
2
|
declare const base_state_style: JssmStateConfig;
|
|
3
3
|
declare const base_active_state_style: JssmStateConfig;
|
|
4
4
|
declare const base_terminal_state_style: JssmStateConfig;
|
|
@@ -7,4 +7,5 @@ declare const base_start_state_style: JssmStateConfig;
|
|
|
7
7
|
declare const base_active_start_state_style: JssmStateConfig;
|
|
8
8
|
declare const base_end_state_style: JssmStateConfig;
|
|
9
9
|
declare const base_active_end_state_style: JssmStateConfig;
|
|
10
|
-
|
|
10
|
+
declare const ocean_theme: JssmBaseTheme;
|
|
11
|
+
export { base_state_style, base_active_state_style, base_terminal_state_style, base_active_terminal_state_style, base_start_state_style, base_active_start_state_style, base_end_state_style, base_active_end_state_style, ocean_theme, ocean_theme as theme };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
const base_state_style = {
|
|
2
|
+
backgroundColor: 'cadetblue1',
|
|
3
|
+
};
|
|
4
|
+
const base_active_state_style = {
|
|
5
|
+
textColor: 'white',
|
|
6
|
+
backgroundColor: 'deepskyblue'
|
|
7
|
+
};
|
|
8
|
+
const base_hooked_state_style = {
|
|
9
|
+
shape: 'component',
|
|
10
|
+
backgroundColor: 'mediumaquamarine'
|
|
11
|
+
};
|
|
12
|
+
const base_terminal_state_style = {
|
|
13
|
+
textColor: 'white',
|
|
14
|
+
backgroundColor: 'darkviolet'
|
|
15
|
+
};
|
|
16
|
+
const base_active_terminal_state_style = {
|
|
17
|
+
textColor: 'white',
|
|
18
|
+
backgroundColor: 'deeppink'
|
|
19
|
+
};
|
|
20
|
+
const base_start_state_style = {
|
|
21
|
+
backgroundColor: 'darkseagreen1'
|
|
22
|
+
};
|
|
23
|
+
const base_active_start_state_style = {
|
|
24
|
+
backgroundColor: 'aquamarine'
|
|
25
|
+
};
|
|
26
|
+
const base_active_hooked_state_style = {
|
|
27
|
+
backgroundColor: 'aquamarine'
|
|
28
|
+
};
|
|
29
|
+
const base_end_state_style = {
|
|
30
|
+
textColor: 'white',
|
|
31
|
+
backgroundColor: 'chartreuse1'
|
|
32
|
+
};
|
|
33
|
+
const base_active_end_state_style = {
|
|
34
|
+
textColor: 'white',
|
|
35
|
+
backgroundColor: 'darkgreen'
|
|
36
|
+
};
|
|
37
|
+
const ocean_theme = {
|
|
38
|
+
state: base_state_style,
|
|
39
|
+
start: base_start_state_style,
|
|
40
|
+
end: base_end_state_style,
|
|
41
|
+
terminal: base_terminal_state_style,
|
|
42
|
+
hooked: base_hooked_state_style,
|
|
43
|
+
active: base_active_state_style,
|
|
44
|
+
active_start: base_active_start_state_style,
|
|
45
|
+
active_end: base_active_end_state_style,
|
|
46
|
+
active_terminal: base_active_terminal_state_style,
|
|
47
|
+
active_hooked: base_active_hooked_state_style,
|
|
48
|
+
legal: undefined,
|
|
49
|
+
main: undefined,
|
|
50
|
+
forced: undefined,
|
|
51
|
+
action: undefined,
|
|
52
|
+
graph: undefined,
|
|
53
|
+
title: undefined // TODO FIXME
|
|
54
|
+
};
|
|
55
|
+
export { base_state_style, base_active_state_style, base_terminal_state_style, base_active_terminal_state_style, base_start_state_style, base_active_start_state_style, base_end_state_style, base_active_end_state_style, ocean_theme, ocean_theme as theme };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JssmStateConfig, JssmBaseTheme } from '../jssm_types';
|
|
2
|
+
declare const base_state_style: JssmStateConfig;
|
|
3
|
+
declare const base_active_state_style: JssmStateConfig;
|
|
4
|
+
declare const base_terminal_state_style: JssmStateConfig;
|
|
5
|
+
declare const base_active_terminal_state_style: JssmStateConfig;
|
|
6
|
+
declare const base_start_state_style: JssmStateConfig;
|
|
7
|
+
declare const base_active_start_state_style: JssmStateConfig;
|
|
8
|
+
declare const base_end_state_style: JssmStateConfig;
|
|
9
|
+
declare const base_active_end_state_style: JssmStateConfig;
|
|
10
|
+
declare const plain_theme: JssmBaseTheme;
|
|
11
|
+
export { base_state_style, base_active_state_style, base_terminal_state_style, base_active_terminal_state_style, base_start_state_style, base_active_start_state_style, base_end_state_style, base_active_end_state_style, plain_theme, plain_theme as theme };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
const base_state_style = {
|
|
2
|
+
textColor: 'black',
|
|
3
|
+
backgroundColor: 'transparent',
|
|
4
|
+
shape: 'plaintext'
|
|
5
|
+
};
|
|
6
|
+
const base_active_state_style = {
|
|
7
|
+
textColor: 'black',
|
|
8
|
+
backgroundColor: 'transparent',
|
|
9
|
+
shape: 'plaintext'
|
|
10
|
+
};
|
|
11
|
+
const base_hooked_state_style = {
|
|
12
|
+
textColor: 'black',
|
|
13
|
+
backgroundColor: 'transparent',
|
|
14
|
+
shape: 'plaintext'
|
|
15
|
+
};
|
|
16
|
+
const base_terminal_state_style = {
|
|
17
|
+
textColor: 'black',
|
|
18
|
+
backgroundColor: 'transparent',
|
|
19
|
+
shape: 'plaintext'
|
|
20
|
+
};
|
|
21
|
+
const base_active_terminal_state_style = {
|
|
22
|
+
textColor: 'black',
|
|
23
|
+
backgroundColor: 'transparent',
|
|
24
|
+
shape: 'plaintext'
|
|
25
|
+
};
|
|
26
|
+
const base_start_state_style = {
|
|
27
|
+
textColor: 'black',
|
|
28
|
+
backgroundColor: 'transparent',
|
|
29
|
+
shape: 'plaintext'
|
|
30
|
+
};
|
|
31
|
+
const base_active_start_state_style = {
|
|
32
|
+
textColor: 'black',
|
|
33
|
+
backgroundColor: 'transparent',
|
|
34
|
+
shape: 'plaintext'
|
|
35
|
+
};
|
|
36
|
+
const base_active_hooked_state_style = {
|
|
37
|
+
textColor: 'black',
|
|
38
|
+
backgroundColor: 'transparent',
|
|
39
|
+
shape: 'plaintext'
|
|
40
|
+
};
|
|
41
|
+
const base_end_state_style = {
|
|
42
|
+
textColor: 'black',
|
|
43
|
+
backgroundColor: 'transparent',
|
|
44
|
+
shape: 'plaintext'
|
|
45
|
+
};
|
|
46
|
+
const base_active_end_state_style = {
|
|
47
|
+
textColor: 'black',
|
|
48
|
+
backgroundColor: 'transparent',
|
|
49
|
+
shape: 'plaintext'
|
|
50
|
+
};
|
|
51
|
+
const plain_theme = {
|
|
52
|
+
state: base_state_style,
|
|
53
|
+
start: base_start_state_style,
|
|
54
|
+
end: base_end_state_style,
|
|
55
|
+
terminal: base_terminal_state_style,
|
|
56
|
+
hooked: base_hooked_state_style,
|
|
57
|
+
active: base_active_state_style,
|
|
58
|
+
active_start: base_active_start_state_style,
|
|
59
|
+
active_end: base_active_end_state_style,
|
|
60
|
+
active_terminal: base_active_terminal_state_style,
|
|
61
|
+
active_hooked: base_active_hooked_state_style,
|
|
62
|
+
legal: undefined,
|
|
63
|
+
main: undefined,
|
|
64
|
+
forced: undefined,
|
|
65
|
+
action: undefined,
|
|
66
|
+
graph: undefined,
|
|
67
|
+
title: undefined // TODO FIXME
|
|
68
|
+
};
|
|
69
|
+
export { base_state_style, base_active_state_style, base_terminal_state_style, base_active_terminal_state_style, base_start_state_style, base_active_start_state_style, base_end_state_style, base_active_end_state_style, plain_theme, plain_theme as theme };
|
package/dist/es6/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const version = "5.
|
|
1
|
+
const version = "5.82.1";
|
|
2
2
|
export { version };
|