@schukai/monster 4.154.0 → 4.154.2
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 +1392 -19
- package/package.json +1 -1
- package/source/components/accessibility/locale-picker.mjs +6 -6
- package/source/components/accessibility/locale-select.mjs +1 -1
- package/source/components/content/camera-capture.mjs +3 -3
- package/source/components/content/copy.mjs +1 -1
- package/source/components/content/fetch-box.mjs +1 -1
- package/source/components/content/image-editor.mjs +2 -4
- package/source/components/content/viewer/html.mjs +2 -2
- package/source/components/content/viewer/message.mjs +3 -3
- package/source/components/content/viewer/sanitize-html.mjs +1 -1
- package/source/components/data/kpi-tile.mjs +5 -5
- package/source/components/data/metric-graph.mjs +2 -2
- package/source/components/data/metric.mjs +1 -1
- package/source/components/datatable/change-button.mjs +1 -1
- package/source/components/datatable/columnbar.mjs +2 -2
- package/source/components/datatable/datasource/rest.mjs +2 -4
- package/source/components/datatable/datatable.mjs +3 -3
- package/source/components/datatable/filter/date-presets.mjs +1 -1
- package/source/components/datatable/filter/input.mjs +1 -1
- package/source/components/datatable/filter/range.mjs +1 -1
- package/source/components/datatable/filter/settings.mjs +1 -3
- package/source/components/datatable/filter/text-operator.mjs +1 -1
- package/source/components/datatable/filter.mjs +1 -1
- package/source/components/datatable/pagination.mjs +2 -4
- package/source/components/datatable/status.mjs +1 -1
- package/source/components/files/file-manager.mjs +1 -1
- package/source/components/form/action-button.mjs +1 -1
- package/source/components/form/api-bar.mjs +1 -1
- package/source/components/form/buy-box.mjs +1 -1
- package/source/components/form/cart-control.mjs +1 -1
- package/source/components/form/checklist.mjs +1 -1
- package/source/components/form/digits.mjs +4 -4
- package/source/components/form/dropzone.mjs +1 -1
- package/source/components/form/field-set.mjs +1 -1
- package/source/components/form/input-group.mjs +1 -1
- package/source/components/form/login.mjs +15 -15
- package/source/components/form/password.mjs +1 -1
- package/source/components/form/popper.mjs +1 -0
- package/source/components/form/repeat-field-set.mjs +1 -1
- package/source/components/form/select-link.mjs +3 -0
- package/source/components/form/select.mjs +33 -33
- package/source/components/form/sheet.mjs +3 -0
- package/source/components/form/tabs.mjs +1 -0
- package/source/components/form/toggle-switch.mjs +1 -1
- package/source/components/form/util/fetch.mjs +3 -3
- package/source/components/form/variant-select.mjs +1 -1
- package/source/components/form/wizard.mjs +1 -3
- package/source/components/host/collapse.mjs +1 -0
- package/source/components/host/config-manager.mjs +2 -2
- package/source/components/host/details.mjs +1 -0
- package/source/components/host/host.mjs +2 -2
- package/source/components/host/overlay.mjs +1 -0
- package/source/components/host/viewer.mjs +1 -0
- package/source/components/layout/board.mjs +1 -1
- package/source/components/layout/collapse.mjs +2 -2
- package/source/components/layout/details.mjs +1 -1
- package/source/components/layout/full-screen.mjs +2 -2
- package/source/components/layout/popper.mjs +1 -1
- package/source/components/layout/tabs.mjs +5 -8
- package/source/components/layout/utils/attach-tabs-hash-sync.mjs +1 -1
- package/source/components/layout/vertical-tabs.mjs +5 -8
- package/source/components/navigation/site-navigation.mjs +3 -3
- package/source/components/navigation/table-of-content.mjs +1 -1
- package/source/components/navigation/wizard-navigation.mjs +9 -11
- package/source/components/notify/monitor-attribute-errors.mjs +1 -1
- package/source/components/time/day.mjs +1 -1
- package/source/components/time/month-calendar.mjs +8 -8
- package/source/components/time/timeline/appointment.mjs +1 -1
- package/source/components/time/timeline/segment.mjs +1 -1
- package/source/components/tree-menu/tree-menu.mjs +0 -1
- package/source/data/datasource/dom.mjs +1 -0
- package/source/dom/customelement.mjs +13 -13
- package/source/dom/sanitize-html.mjs +1 -1
- package/source/i18n/internal.mjs +2 -2
- package/source/i18n/providers/embed.mjs +1 -1
- package/source/i18n/time-ago.mjs +1 -1
- package/source/text/formatter.mjs +1 -0
- package/source/types/dataurl.mjs +1 -0
- package/source/types/has.mjs +1 -1
- package/source/types/is.mjs +2 -2
- package/source/types/mediatype.mjs +1 -0
- package/source/types/observer.mjs +6 -6
- package/source/types/observerlist.mjs +1 -0
- package/source/types/proxyobserver.mjs +1 -0
- package/source/types/stack.mjs +1 -0
- package/source/types/tokenlist.mjs +1 -0
- package/source/types/uuid.mjs +1 -0
- package/source/util/accessiblecolor.mjs +2 -2
- package/source/util/comparator.mjs +3 -3
- package/source/util/deadmansswitch.mjs +3 -4
- package/source/util/processing.mjs +1 -1
- package/test/cases/components/datatable/drag-scroll.mjs +51 -9
- package/test/cases/components/navigation/site-navigation.mjs +10 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"author":"Volker Schukai","dependencies":{"@floating-ui/dom":"^1.7.6"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","exports":{".":"./source/monster.mjs","./CHANGELOG.md":"./CHANGELOG.md","./LICENSE":"./LICENSE","./README.md":"./README.md","./package.json":"./package.json","./source/*":"./source/*","./test/*":"./test/*"},"files":["source","test/cases","test/util","CHANGELOG.md"],"homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"sideEffects":["./source/monster.mjs","./source/components/**","./source/i18n/**","./test/**"],"type":"module","version":"4.154.
|
|
1
|
+
{"author":"Volker Schukai","dependencies":{"@floating-ui/dom":"^1.7.6"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","exports":{".":"./source/monster.mjs","./CHANGELOG.md":"./CHANGELOG.md","./LICENSE":"./LICENSE","./README.md":"./README.md","./package.json":"./package.json","./source/*":"./source/*","./test/*":"./test/*"},"files":["source","test/cases","test/util","CHANGELOG.md"],"homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"sideEffects":["./source/monster.mjs","./source/components/**","./source/i18n/**","./test/**"],"type":"module","version":"4.154.2"}
|
|
@@ -89,7 +89,7 @@ const detectedLanguagesSymbol = Symbol("detectedLanguages");
|
|
|
89
89
|
class LocalePicker extends CustomElement {
|
|
90
90
|
/**
|
|
91
91
|
* This method is called by the `instanceof` operator.
|
|
92
|
-
* @
|
|
92
|
+
* @return {symbol}
|
|
93
93
|
*/
|
|
94
94
|
static get [instanceSymbol]() {
|
|
95
95
|
return Symbol.for(
|
|
@@ -255,7 +255,7 @@ class LocalePicker extends CustomElement {
|
|
|
255
255
|
/**
|
|
256
256
|
* Resets the locale picker by removing the stored value from the local storage.
|
|
257
257
|
*
|
|
258
|
-
* @
|
|
258
|
+
* @return {LocalePicker}
|
|
259
259
|
*/
|
|
260
260
|
reset() {
|
|
261
261
|
sessionStorage.removeItem(buildStorageKey.call(this));
|
|
@@ -266,7 +266,7 @@ class LocalePicker extends CustomElement {
|
|
|
266
266
|
/**
|
|
267
267
|
* Hides the locale picker.
|
|
268
268
|
*
|
|
269
|
-
* @
|
|
269
|
+
* @return {LocalePicker}
|
|
270
270
|
*/
|
|
271
271
|
hide() {
|
|
272
272
|
this.style.display = "none";
|
|
@@ -281,7 +281,7 @@ class LocalePicker extends CustomElement {
|
|
|
281
281
|
|
|
282
282
|
/**
|
|
283
283
|
* Shows the locale picker.
|
|
284
|
-
* @
|
|
284
|
+
* @return {LocalePicker}
|
|
285
285
|
*/
|
|
286
286
|
show() {
|
|
287
287
|
this.style.display = "block";
|
|
@@ -401,7 +401,7 @@ function initEventHandler() {
|
|
|
401
401
|
|
|
402
402
|
/**
|
|
403
403
|
* @private
|
|
404
|
-
* @
|
|
404
|
+
* @return {string}
|
|
405
405
|
* Builds the session storage key for the picker.
|
|
406
406
|
*/
|
|
407
407
|
function buildStorageKey() {
|
|
@@ -411,7 +411,7 @@ function buildStorageKey() {
|
|
|
411
411
|
/**
|
|
412
412
|
* @private
|
|
413
413
|
* @param lang
|
|
414
|
-
* @
|
|
414
|
+
* @return {Object}
|
|
415
415
|
* Returns translations for the given language.
|
|
416
416
|
*/
|
|
417
417
|
function getTranslations(lang) {
|
|
@@ -166,7 +166,7 @@ class CameraCapture extends CustomElement {
|
|
|
166
166
|
/**
|
|
167
167
|
* Retrieve the next image from the queue.
|
|
168
168
|
* If the queue is empty, it returns `null`.
|
|
169
|
-
* @
|
|
169
|
+
* @return {string|null}
|
|
170
170
|
*/
|
|
171
171
|
getNextImage() {
|
|
172
172
|
if (!this[queueSymbol].isEmpty()) {
|
|
@@ -182,7 +182,7 @@ class CameraCapture extends CustomElement {
|
|
|
182
182
|
/**
|
|
183
183
|
* Capture an image from the camera and add it to the queue.
|
|
184
184
|
* The image is returned as a data URL.
|
|
185
|
-
* @
|
|
185
|
+
* @return {string}
|
|
186
186
|
*/
|
|
187
187
|
capture() {
|
|
188
188
|
this[canvasElementSymbol].width = this[videoElementSymbol].videoWidth;
|
|
@@ -318,7 +318,7 @@ function startCameraWithDeviceId(deviceId) {
|
|
|
318
318
|
|
|
319
319
|
/**
|
|
320
320
|
* @private
|
|
321
|
-
* @
|
|
321
|
+
* @return {{takePicture: string}}
|
|
322
322
|
*/
|
|
323
323
|
function getTranslations() {
|
|
324
324
|
const locale = getLocaleOfDocument();
|
|
@@ -44,7 +44,7 @@ export const fetchBoxElementSymbol = Symbol("fetchBoxElement");
|
|
|
44
44
|
class FetchBox extends CustomElement {
|
|
45
45
|
/**
|
|
46
46
|
* This method is called by the `instanceof` operator.
|
|
47
|
-
* @
|
|
47
|
+
* @return {symbol}
|
|
48
48
|
*/
|
|
49
49
|
static get [instanceSymbol]() {
|
|
50
50
|
return Symbol.for(
|
|
@@ -476,9 +476,7 @@ class ImageEditor extends CustomElement {
|
|
|
476
476
|
* Sets the image source from binary data or a URL.
|
|
477
477
|
*
|
|
478
478
|
* @param {(Blob|ArrayBuffer|Uint8Array|string)} data
|
|
479
|
-
* @param {Object} [options]
|
|
480
|
-
* @param {string} [options.contentType]
|
|
481
|
-
* @param {boolean} [options.storeOriginal]
|
|
479
|
+
* @param {Object} [options] Optional content type and original-image storage settings.
|
|
482
480
|
* @return {Promise<void>}
|
|
483
481
|
*/
|
|
484
482
|
setImage(data, options = {}) {
|
|
@@ -2622,7 +2620,7 @@ function blobToDataUrl(blob) {
|
|
|
2622
2620
|
|
|
2623
2621
|
/**
|
|
2624
2622
|
* @private
|
|
2625
|
-
* @
|
|
2623
|
+
* @return {{save:string,reset:string,crop:string,select:string,filter:string,intensity:string,zoom:string,rotation:string,empty:string,filterNone:string,filterGrayscale:string,filterSepia:string,filterContrast:string,filterSaturate:string,filterInvert:string,filterBlur:string,cropX:string,cropY:string,cropWidth:string,cropHeight:string,applyFilter:string,rotateLeft:string,rotateRight:string,rotateReset:string}}
|
|
2626
2624
|
*/
|
|
2627
2625
|
function getTranslations() {
|
|
2628
2626
|
const language = getLocaleOfDocument().language || "en";
|
|
@@ -81,7 +81,7 @@ class HtmlContent extends CustomElement {
|
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
83
|
* Returns the updater transformer methods for this component.
|
|
84
|
-
* @
|
|
84
|
+
* @return {{sanitizeHtml: ((function(*): (*))|*)}}
|
|
85
85
|
*/
|
|
86
86
|
[updaterTransformerMethodsSymbol]() {
|
|
87
87
|
return {
|
|
@@ -115,7 +115,7 @@ class HtmlContent extends CustomElement {
|
|
|
115
115
|
/**
|
|
116
116
|
* Sets the content of the HtmlContent component.
|
|
117
117
|
* @param content
|
|
118
|
-
* @
|
|
118
|
+
* @return {HtmlContent}
|
|
119
119
|
*/
|
|
120
120
|
setContent(content) {
|
|
121
121
|
this.setOption("content", content);
|
|
@@ -158,7 +158,7 @@ class MessageContent extends CustomElement {
|
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
160
|
* Returns the updater transformer methods for this component.
|
|
161
|
-
* @
|
|
161
|
+
* @return {{sanitizeHtml: ((function(*): (*))|*)}}
|
|
162
162
|
*/
|
|
163
163
|
[updaterTransformerMethodsSymbol]() {
|
|
164
164
|
return {
|
|
@@ -174,7 +174,7 @@ class MessageContent extends CustomElement {
|
|
|
174
174
|
/**
|
|
175
175
|
* Sets the content of the MessageContent component.
|
|
176
176
|
* @param {Object} message The message object containing parts, headers, etc.
|
|
177
|
-
* @
|
|
177
|
+
* @return {MessageContent}
|
|
178
178
|
*/
|
|
179
179
|
setMessage(message) {
|
|
180
180
|
const self = this;
|
|
@@ -818,7 +818,7 @@ function downloadAttachmentByIndex(index, attachments) {
|
|
|
818
818
|
/**
|
|
819
819
|
* Initializes the event handler for the MessageContent component.
|
|
820
820
|
* @private
|
|
821
|
-
* @
|
|
821
|
+
* @return {initEventHandler}
|
|
822
822
|
*/
|
|
823
823
|
function initEventHandler() {
|
|
824
824
|
this[showPrivacyImagesSymbol].addEventListener("click", (event) => {
|
|
@@ -55,7 +55,7 @@ const SAFE_VIEWER_LINK_PROTOCOLS = new Set([
|
|
|
55
55
|
* Sanitizes untrusted HTML specifically for rendering inside Monster viewers.
|
|
56
56
|
*
|
|
57
57
|
* @param {string} html Untrusted viewer HTML.
|
|
58
|
-
* @
|
|
58
|
+
* @return {string} Sanitized viewer HTML.
|
|
59
59
|
*/
|
|
60
60
|
function sanitizeViewerHtml(html) {
|
|
61
61
|
const sanitizedHtml = sanitizeHtml(html, {
|
|
@@ -40,7 +40,7 @@ class KpiTile extends CustomElement {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* @
|
|
43
|
+
* @return {symbol}
|
|
44
44
|
* @summary Returns the instance symbol for the KPI Tile control.
|
|
45
45
|
*/
|
|
46
46
|
[assembleMethodSymbol]() {
|
|
@@ -59,7 +59,7 @@ class KpiTile extends CustomElement {
|
|
|
59
59
|
* @property {string} values.small The small value displayed in the tile.
|
|
60
60
|
* @property {string} values.top The top value displayed in the tile.
|
|
61
61
|
* @property {string} values.bottom The bottom value displayed in the tile.
|
|
62
|
-
* @
|
|
62
|
+
* @return {Object}
|
|
63
63
|
* @summary Returns the default options for the KPI Tile control.
|
|
64
64
|
*/
|
|
65
65
|
get defaults() {
|
|
@@ -77,7 +77,7 @@ class KpiTile extends CustomElement {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* @
|
|
80
|
+
* @return {string}
|
|
81
81
|
* @summary Returns the role of the control.
|
|
82
82
|
*/
|
|
83
83
|
static getTag() {
|
|
@@ -85,7 +85,7 @@ class KpiTile extends CustomElement {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
* @
|
|
88
|
+
* @return {string}
|
|
89
89
|
* @summary Returns the role of the control.
|
|
90
90
|
*/
|
|
91
91
|
static getCSSStyleSheet() {
|
|
@@ -95,7 +95,7 @@ class KpiTile extends CustomElement {
|
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
97
|
* @private
|
|
98
|
-
* @
|
|
98
|
+
* @return {string}
|
|
99
99
|
* @summary Returns the template for the KPI Tile control.
|
|
100
100
|
*/
|
|
101
101
|
function getTemplate() {
|
|
@@ -54,7 +54,7 @@ export const metricGraphControlElementSymbol = Symbol(
|
|
|
54
54
|
class MetricGraph extends CustomElement {
|
|
55
55
|
/**
|
|
56
56
|
* This method is called by the `instanceof` operator.
|
|
57
|
-
* @
|
|
57
|
+
* @return {symbol}
|
|
58
58
|
*/
|
|
59
59
|
static get [instanceSymbol]() {
|
|
60
60
|
return Symbol.for("@schukai/monster/data/metric-graph@@instance");
|
|
@@ -119,7 +119,7 @@ class MetricGraph extends CustomElement {
|
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
*
|
|
122
|
-
* @
|
|
122
|
+
* @return {{tosparkline: ((function(*): (string|string))|*)}}
|
|
123
123
|
*/
|
|
124
124
|
[updaterTransformerMethodsSymbol]() {
|
|
125
125
|
return {
|
|
@@ -50,7 +50,7 @@ export const metricControlElementSymbol = Symbol("metricControlElement");
|
|
|
50
50
|
class Metric extends CustomElement {
|
|
51
51
|
/**
|
|
52
52
|
* This method is called by the `instanceof` operator.
|
|
53
|
-
* @
|
|
53
|
+
* @return {symbol}
|
|
54
54
|
*/
|
|
55
55
|
static get [instanceSymbol]() {
|
|
56
56
|
return Symbol.for("@schukai/monster/components/data/metric@@instance");
|
|
@@ -151,7 +151,7 @@ class ColumnBar extends CustomElement {
|
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* This method is called to customize the component.
|
|
154
|
-
* @
|
|
154
|
+
* @return {Map<unknown, unknown>}
|
|
155
155
|
*/
|
|
156
156
|
get customization() {
|
|
157
157
|
return new Map([...super.customization, ["templateFormatter.i18n", true]]);
|
|
@@ -286,7 +286,7 @@ class ColumnBar extends CustomElement {
|
|
|
286
286
|
|
|
287
287
|
/**
|
|
288
288
|
* @private
|
|
289
|
-
* @
|
|
289
|
+
* @return {{settings: string}}
|
|
290
290
|
*/
|
|
291
291
|
function getTranslations() {
|
|
292
292
|
const locale = getLocaleOfDocument();
|
|
@@ -210,9 +210,7 @@ class Rest extends Datasource {
|
|
|
210
210
|
* With this method, you can set the parameters for the rest api. The parameters are
|
|
211
211
|
* used for building the url.
|
|
212
212
|
*
|
|
213
|
-
* @param {
|
|
214
|
-
* @param {string} query
|
|
215
|
-
* @param {string} order
|
|
213
|
+
* @param {object} parameters Page, query and order parameters.
|
|
216
214
|
* @return {Rest}
|
|
217
215
|
*/
|
|
218
216
|
setParameters({ page, query, order }) {
|
|
@@ -593,7 +591,7 @@ function initFilter() {
|
|
|
593
591
|
* @param json
|
|
594
592
|
* @param response
|
|
595
593
|
* @param filterControl
|
|
596
|
-
* @
|
|
594
|
+
* @return {Promise<never>|Promise<Awaited<unknown>>}
|
|
597
595
|
*/
|
|
598
596
|
function handleIntersectionObserver(json, response, filterControl) {
|
|
599
597
|
const path = new Pathfinder(json);
|
|
@@ -346,7 +346,7 @@ class DataTable extends CustomElement {
|
|
|
346
346
|
/**
|
|
347
347
|
* Get the row number of the selected rows as an array
|
|
348
348
|
*
|
|
349
|
-
* @
|
|
349
|
+
* @return {number[]}
|
|
350
350
|
*/
|
|
351
351
|
getSelectedRows() {
|
|
352
352
|
const rows = this.getGridElements(`[data-monster-role="select-row"]`);
|
|
@@ -1350,7 +1350,7 @@ function initEventHandler() {
|
|
|
1350
1350
|
* @private
|
|
1351
1351
|
* @param {HTMLInputElement} checkbox
|
|
1352
1352
|
* @param {boolean} selected
|
|
1353
|
-
* @
|
|
1353
|
+
* @return {string|null}
|
|
1354
1354
|
*/
|
|
1355
1355
|
function setRowSelectionState(checkbox, selected) {
|
|
1356
1356
|
const parentNode = checkbox.parentNode;
|
|
@@ -1564,7 +1564,7 @@ function initGridAndStructs(hostConfig, headerOrderMap) {
|
|
|
1564
1564
|
|
|
1565
1565
|
/**
|
|
1566
1566
|
* @private
|
|
1567
|
-
* @
|
|
1567
|
+
* @return {object}
|
|
1568
1568
|
*/
|
|
1569
1569
|
function getTranslations() {
|
|
1570
1570
|
const locale = getLocaleOfDocument();
|
|
@@ -199,9 +199,7 @@ class Pagination extends CustomElement {
|
|
|
199
199
|
* Sets the pagination state directly, without requiring a datasource.
|
|
200
200
|
* This is useful for controlling the component programmatically.
|
|
201
201
|
*
|
|
202
|
-
* @param {object} state
|
|
203
|
-
* @param {number} state.currentPage - The current active page number.
|
|
204
|
-
* @param {number} state.totalPages - The total number of available pages.
|
|
202
|
+
* @param {object} state The current page and total page count.
|
|
205
203
|
* @return {void}
|
|
206
204
|
*/
|
|
207
205
|
setPaginationState({ currentPage, totalPages }) {
|
|
@@ -958,7 +956,7 @@ function buildPagination(current, max) {
|
|
|
958
956
|
/**
|
|
959
957
|
* @private
|
|
960
958
|
* @param {object} pagination
|
|
961
|
-
* @
|
|
959
|
+
* @return {void}
|
|
962
960
|
*/
|
|
963
961
|
function syncPaginationStateToDom(pagination) {
|
|
964
962
|
if (!this.shadowRoot || !pagination) {
|
|
@@ -137,7 +137,7 @@ class DatasourceStatus extends CustomElement {
|
|
|
137
137
|
*
|
|
138
138
|
* @param message
|
|
139
139
|
* @param timeout
|
|
140
|
-
* @
|
|
140
|
+
* @return {DatasourceStatus}
|
|
141
141
|
*/
|
|
142
142
|
setErrorMessage(message, timeout) {
|
|
143
143
|
this[errorElementSymbol].setErrorMessage(message, timeout);
|
|
@@ -60,7 +60,7 @@ export { ApiBar };
|
|
|
60
60
|
class ApiBar extends ButtonBar {
|
|
61
61
|
/**
|
|
62
62
|
* This method is called by the `instanceof` operator.
|
|
63
|
-
* @
|
|
63
|
+
* @return {symbol}
|
|
64
64
|
*/
|
|
65
65
|
static get [instanceSymbol]() {
|
|
66
66
|
return Symbol.for("@schukai/monster/components/form/api-bar@@instance");
|
|
@@ -52,7 +52,7 @@ class Digits extends CustomControl {
|
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* This method is called by the `instanceof` operator.
|
|
55
|
-
* @
|
|
55
|
+
* @return {symbol}
|
|
56
56
|
*/
|
|
57
57
|
static get [instanceSymbol]() {
|
|
58
58
|
return Symbol.for("@schukai/monster/components/form/digits@@instance");
|
|
@@ -260,7 +260,7 @@ function updateDigitControls() {
|
|
|
260
260
|
/**
|
|
261
261
|
* @private
|
|
262
262
|
* @param value
|
|
263
|
-
* @
|
|
263
|
+
* @return {boolean}
|
|
264
264
|
*/
|
|
265
265
|
function checkCharacter(value) {
|
|
266
266
|
const characterSet = this.getOption("characterSet");
|
|
@@ -269,7 +269,7 @@ function checkCharacter(value) {
|
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
271
|
* @private
|
|
272
|
-
* @
|
|
272
|
+
* @return {initEventHandler}
|
|
273
273
|
*/
|
|
274
274
|
function initEventHandler() {
|
|
275
275
|
const self = this;
|
|
@@ -381,7 +381,7 @@ function collectValues() {
|
|
|
381
381
|
/**
|
|
382
382
|
* @private
|
|
383
383
|
* @param {Array<{value:string}>} controls
|
|
384
|
-
* @
|
|
384
|
+
* @return {void}
|
|
385
385
|
*/
|
|
386
386
|
function syncInputValues(controls) {
|
|
387
387
|
if (!this[digitsElementSymbol]) return;
|
|
@@ -40,7 +40,7 @@ export const inputGroupElementSymbol = Symbol("inputGroupElement");
|
|
|
40
40
|
class InputGroup extends CustomElement {
|
|
41
41
|
/**
|
|
42
42
|
* This method is called by the `instanceof` operator.
|
|
43
|
-
* @
|
|
43
|
+
* @return {symbol}
|
|
44
44
|
*/
|
|
45
45
|
static get [instanceSymbol]() {
|
|
46
46
|
return Symbol.for("@schukai/monster/components/form/input-group@@instance");
|