@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.
- package/example/dom/customelement.mjs +1 -0
- package/package.json +1 -1
- package/source/monster.mjs +177 -85
- package/source/types/version.mjs +1 -1
- package/test/cases/monster.mjs +1 -1
@@ -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
package/source/monster.mjs
CHANGED
@@ -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
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
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
|
|
package/source/types/version.mjs
CHANGED
package/test/cases/monster.mjs
CHANGED