@schukai/monster 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
+ import {CustomElement} from '@schukai/monster/source/dom/CustomElement';
1
2
  // In the example the user can use his own template by creating a template in the DOM with the ID `my-custom-element`.
2
3
  // You can also specify a theme (for example `mytheme`), then it will search for the ID `my-custom-element-mytheme` and
3
4
  // if not available for the ID `my-custom-element`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schukai/monster",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Monster is a simple library for creating fast, robust and lightweight websites.",
5
5
  "keywords": [
6
6
  "framework",
@@ -8,96 +8,188 @@
8
8
 
9
9
  /**
10
10
  * Main namespace for Monster.
11
- *
11
+ *
12
12
  * @namespace Monster
13
13
  * @author schukai GmbH
14
14
  */
15
15
 
16
+ // development/script/grep-exports.cjs
17
+ export {IsObject} from "./constraints/isobject.mjs"
18
+ export {Invalid} from "./constraints/invalid.mjs"
19
+ export {AndOperator} from "./constraints/andoperator.mjs"
20
+ export {OrOperator} from "./constraints/oroperator.mjs"
21
+ export {AbstractConstraint} from "./constraints/abstract.mjs"
22
+ export {IsArray} from "./constraints/isarray.mjs"
23
+ export {AbstractOperator} from "./constraints/abstractoperator.mjs"
24
+ export {Valid} from "./constraints/valid.mjs"
25
+ export {Monster} from "./monster.mjs"
26
+ export {Logger, ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF} from "./logging/logger.mjs"
27
+ export {LogEntry} from "./logging/logentry.mjs"
28
+ export {ConsoleHandler} from "./logging/handler/console.mjs"
29
+ export {Handler} from "./logging/handler.mjs"
30
+ export {Formatter} from "./text/formatter.mjs"
31
+ export {Stylesheet} from "./dom/resource/link/stylesheet.mjs"
32
+ export {Data} from "./dom/resource/data.mjs"
33
+ export {Link} from "./dom/resource/link.mjs"
34
+ export {Script} from "./dom/resource/script.mjs"
35
+ export {Updater} from "./dom/updater.mjs"
36
+ export {CustomControl} from "./dom/customcontrol.mjs"
37
+ export {getLocaleOfDocument} from "./dom/locale.mjs"
38
+ export {Theme, getDocumentTheme} from "./dom/theme.mjs"
39
+ export {Resource, KEY_DOCUMENT, KEY_QUERY, referenceSymbol} from "./dom/resource.mjs"
40
+ export {ResourceManager} from "./dom/resourcemanager.mjs"
41
+ export {getDocument, getWindow, getDocumentFragmentFromString} from "./dom/util.mjs"
42
+ export {
43
+ DEFAULT_THEME,
44
+ ATTRIBUTE_PREFIX,
45
+ ATTRIBUTE_OPTIONS,
46
+ ATTRIBUTE_OPTIONS_SELECTOR,
47
+ ATTRIBUTE_THEME_PREFIX,
48
+ ATTRIBUTE_THEME_NAME,
49
+ ATTRIBUTE_UPDATER_ATTRIBUTES,
50
+ ATTRIBUTE_UPDATER_SELECT_THIS,
51
+ ATTRIBUTE_UPDATER_REPLACE,
52
+ ATTRIBUTE_UPDATER_INSERT,
53
+ ATTRIBUTE_UPDATER_INSERT_REFERENCE,
54
+ ATTRIBUTE_UPDATER_REMOVE,
55
+ ATTRIBUTE_UPDATER_BIND,
56
+ ATTRIBUTE_TEMPLATE_PREFIX,
57
+ ATTRIBUTE_ROLE,
58
+ ATTRIBUTE_DISABLED,
59
+ ATTRIBUTE_VALUE,
60
+ ATTRIBUTE_OBJECTLINK,
61
+ ATTRIBUTE_ERRORMESSAGE,
62
+ TAG_SCRIPT,
63
+ TAG_STYLE,
64
+ TAG_LINK,
65
+ ATTRIBUTE_ID,
66
+ ATTRIBUTE_CLASS,
67
+ ATTRIBUTE_TITLE,
68
+ ATTRIBUTE_SRC,
69
+ ATTRIBUTE_HREF,
70
+ ATTRIBUTE_TYPE,
71
+ ATTRIBUTE_NONCE,
72
+ ATTRIBUTE_TRANSLATE,
73
+ ATTRIBUTE_TABINDEX,
74
+ ATTRIBUTE_SPELLCHECK,
75
+ ATTRIBUTE_SLOT,
76
+ ATTRIBUTE_PART,
77
+ ATTRIBUTE_LANG,
78
+ ATTRIBUTE_ITEMTYPE,
79
+ ATTRIBUTE_ITEMSCOPE,
80
+ ATTRIBUTE_ITEMREF,
81
+ ATTRIBUTE_ITEMID,
82
+ ATTRIBUTE_ITEMPROP,
83
+ ATTRIBUTE_IS,
84
+ ATTRIBUTE_INPUTMODE,
85
+ ATTRIBUTE_ACCESSKEY,
86
+ ATTRIBUTE_AUTOCAPITALIZE,
87
+ ATTRIBUTE_AUTOFOCUS,
88
+ ATTRIBUTE_CONTENTEDITABLE,
89
+ ATTRIBUTE_DIR,
90
+ ATTRIBUTE_DRAGGABLE,
91
+ ATTRIBUTE_ENTERKEYHINT,
92
+ ATTRIBUTE_EXPORTPARTS,
93
+ ATTRIBUTE_HIDDEN,
94
+ objectUpdaterLinkSymbol,
16
95
 
17
- import './constants.mjs';
18
- // find packages/monster/source/ -type f -name "*.mjs" -not -name "*namespace*" -not -iname "monster.mjs"
19
- import './constraints/isobject.mjs';
20
- import './constraints/valid.mjs';
21
- import './constraints/invalid.mjs';
22
- import './constraints/abstractoperator.mjs';
23
- import './constraints/oroperator.mjs';
24
- import './constraints/andoperator.mjs';
25
- import './constraints/abstract.mjs';
26
- import './constraints/isarray.mjs';
27
- import './logging/logger.mjs';
28
- import './logging/handler.mjs';
29
- import './logging/logentry.mjs';
30
- import './logging/handler/console.mjs';
31
- import './text/formatter.mjs';
32
- import './dom/resource/script.mjs';
33
- import './dom/resource/data.mjs';
34
- import './dom/resource/link/stylesheet.mjs';
35
- import './dom/resource/link.mjs';
36
- import './dom/resource.mjs';
37
- import './dom/updater.mjs';
38
- import './dom/attributes.mjs';
39
- import './dom/template.mjs';
40
- import './dom/util.mjs';
41
- import './dom/ready.mjs';
42
- import './dom/resourcemanager.mjs';
43
- import './dom/locale.mjs';
44
- import './dom/customcontrol.mjs';
45
- import './dom/constants.mjs';
46
- import './dom/assembler.mjs';
47
- import './dom/theme.mjs';
48
- import './dom/worker/factory.mjs';
49
- import './dom/focusmanager.mjs';
50
- import './dom/events.mjs';
51
- import './dom/customelement.mjs';
52
- import './i18n/formatter.mjs';
53
- import './i18n/providers/fetch.mjs';
54
- import './i18n/translations.mjs';
55
- import './i18n/locale.mjs';
56
- import './i18n/provider.mjs';
57
- import './types/queue.mjs';
58
- import './types/binary.mjs';
59
- import './types/regex.mjs';
60
- import './types/observer.mjs';
61
- import './types/observerlist.mjs';
62
- import './types/basewithoptions.mjs';
63
- import './types/is.mjs';
64
- import './types/proxyobserver.mjs';
65
- import './types/uniquequeue.mjs';
66
- import './types/node.mjs';
67
- import './types/tokenlist.mjs';
68
- import './types/typeof.mjs';
69
- import './types/uuid.mjs';
70
- import './types/mediatype.mjs';
71
- import './types/dataurl.mjs';
72
- import './types/base.mjs';
73
- import './types/version.mjs';
74
- import './types/nodelist.mjs';
75
- import './types/id.mjs';
76
- import './types/randomid.mjs';
77
- import './types/noderecursiveiterator.mjs';
78
- import './types/validate.mjs';
79
- import './types/stack.mjs';
80
- import './util/deadmansswitch.mjs';
81
- import './util/comparator.mjs';
82
- import './util/trimspaces.mjs';
83
- import './util/clone.mjs';
84
- import './util/freeze.mjs';
85
- import './util/processing.mjs';
86
- import './constants.mjs';
87
- import './data/pathfinder.mjs';
88
- import './data/pipe.mjs';
89
- import './data/extend.mjs';
90
- import './data/diff.mjs';
91
- import './data/buildmap.mjs';
92
- import './data/datasource.mjs';
93
- import './data/buildtree.mjs';
94
- import './data/transformer.mjs';
95
- import './data/datasource/storage.mjs';
96
- import './data/datasource/restapi.mjs';
97
- import './data/datasource/storage/sessionstorage.mjs';
98
- import './data/datasource/storage/localstorage.mjs';
99
- import './data/datasource/restapi/writeerror.mjs';
100
- import './math/random.mjs';
96
+ } from "./dom/constants.mjs"
97
+ export {
98
+ CustomElement,
99
+ initMethodSymbol,
100
+ assembleMethodSymbol,
101
+ attributeObserverSymbol,
102
+ registerCustomElement,
103
+ assignUpdaterToElement,
104
+ getSlottedElements
105
+ } from "./dom/customelement.mjs"
106
+ export {
107
+ findClosestObjectLink,
108
+ addToObjectLink,
109
+ removeObjectLink,
110
+ hasObjectLink,
111
+ getLinkedObjects,
112
+ toggleAttributeToken,
113
+ addAttributeToken,
114
+ removeAttributeToken,
115
+ containsAttributeToken,
116
+ replaceAttributeToken,
117
+ clearAttributeTokens,
118
+ findClosestByAttribute,
119
+ findClosestByClass
120
+ } from "./dom/attributes.mjs"
121
+ export {fireEvent, fireCustomEvent, findTargetElementFromEvent} from "./dom/events.mjs"
122
+ export {Factory} from "./dom/worker/factory.mjs"
123
+ export {Template} from "./dom/template.mjs"
124
+ export {domReady, windowReady} from "./dom/ready.mjs"
125
+ export {FocusManager} from "./dom/focusmanager.mjs"
126
+ export {ATTRIBUTEPREFIX, Assembler} from "./dom/assembler.mjs"
127
+ export {Translations} from "./i18n/translations.mjs"
128
+ export {Locale, parseLocale} from "./i18n/locale.mjs"
129
+ export {Formatter} from "./i18n/formatter.mjs"
130
+ export {Fetch} from "./i18n/providers/fetch.mjs"
131
+ export {Provider} from "./i18n/provider.mjs"
132
+ export {
133
+ internalSymbol,
134
+ internalStateSymbol
135
+ } from "./constants.mjs"
136
+ export {MediaType, parseMediaType} from "./types/mediatype.mjs"
137
+ export {typeOf} from "./types/typeof.mjs"
138
+ export {ObserverList} from "./types/observerlist.mjs"
139
+ export {RandomID} from "./types/randomid.mjs"
140
+ export {UUID} from "./types/uuid.mjs"
141
+ export {Observer} from "./types/observer.mjs"
142
+ export {TokenList} from "./types/tokenlist.mjs"
143
+ export {Queue} from "./types/queue.mjs"
144
+ export {Stack} from "./types/stack.mjs"
145
+ export {toBinary, fromBinary} from "./types/binary.mjs"
146
+ export {BaseWithOptions} from "./types/basewithoptions.mjs"
147
+ export {escapeString} from "./types/regex.mjs"
148
+ export {ProxyObserver} from "./types/proxyobserver.mjs"
149
+ export {NodeList} from "./types/nodelist.mjs"
150
+ export {Version, getMonsterVersion} from "./types/version.mjs"
151
+ export {Node} from "./types/node.mjs"
152
+ export {NodeRecursiveIterator} from "./types/noderecursiveiterator.mjs"
153
+ export {getGlobal, getGlobalObject, getGlobalFunction} from "./types/global.mjs"
154
+ export {DataUrl, parseDataURL} from "./types/dataurl.mjs"
155
+ export {
156
+ validateIterable,
157
+ validatePrimitive,
158
+ validateBoolean,
159
+ validateString,
160
+ validateObject,
161
+ validateInstance,
162
+ validateArray,
163
+ validateSymbol,
164
+ validateFunction,
165
+ validateInteger
166
+ } from "./types/validate.mjs"
167
+ export {UniqueQueue} from "./types/uniquequeue.mjs"
168
+ export {Base} from "./types/base.mjs"
169
+ export {
170
+ isIterable, isPrimitive, isSymbol, isBoolean, isString, isObject, isInstance, isArray, isFunction, isInteger
171
+ } from "./types/is.mjs"
172
+ export {ID} from "./types/id.mjs"
173
+ export {trimSpaces} from "./util/trimspaces.mjs"
174
+ export {DeadMansSwitch} from "./util/deadmansswitch.mjs"
175
+ export {deepFreeze} from "./util/freeze.mjs"
176
+ export {Comparator} from "./util/comparator.mjs"
177
+ export {clone} from "./util/clone.mjs"
178
+ export {Processing} from "./util/processing.mjs"
179
+ export {extend} from "./data/extend.mjs"
180
+ export {Pipe} from "./data/pipe.mjs"
181
+ export {buildMap, PARENT, assembleParts} from "./data/buildmap.mjs"
182
+ export {Datasource} from "./data/datasource.mjs"
183
+ export {buildTree} from "./data/buildtree.mjs"
184
+ export {Transformer} from "./data/transformer.mjs"
185
+ export {Pathfinder, DELIMITER, WILDCARD} from "./data/pathfinder.mjs"
186
+ export {diff} from "./data/diff.mjs"
187
+ export {RestAPI} from "./data/datasource/restapi.mjs"
188
+ export {SessionStorage} from "./data/datasource/storage/sessionstorage.mjs"
189
+ export {LocalStorage} from "./data/datasource/storage/localstorage.mjs"
190
+ export {WriteError} from "./data/datasource/restapi/writeerror.mjs"
191
+ export {Storage, storageObjectSymbol} from "./data/datasource/storage.mjs"
192
+ export {random} from "./math/random.mjs"
101
193
 
102
194
  export {Monster}
103
195
 
@@ -137,7 +137,7 @@ function getMonsterVersion() {
137
137
  }
138
138
 
139
139
  /** don't touch, replaced by make with package.json version */
140
- monsterVersion = new Version('2.0.3')
140
+ monsterVersion = new Version('2.0.4')
141
141
 
142
142
  return monsterVersion;
143
143
 
@@ -7,7 +7,7 @@ describe('Monster', function () {
7
7
  let monsterVersion
8
8
 
9
9
  /** don´t touch, replaced by make with package.json version */
10
- monsterVersion = new Version('2.0.3')
10
+ monsterVersion = new Version('2.0.4')
11
11
 
12
12
  let m = getMonsterVersion();
13
13