@schukai/monster 3.100.11 → 3.100.13

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 CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
 
4
4
 
5
+ ## [3.100.13] - 2025-01-19
6
+
7
+ ### Bug Fixes
8
+
9
+ - docu and css
10
+
11
+
12
+
13
+ ## [3.100.12] - 2025-01-19
14
+
15
+ ### Bug Fixes
16
+
17
+ - some small issues [#283](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/283)
18
+
19
+
20
+
5
21
  ## [3.100.11] - 2025-01-19
6
22
 
7
23
  ### Bug Fixes
package/package.json CHANGED
@@ -1 +1 @@
1
- {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","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"},"type":"module","version":"3.100.11"}
1
+ {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","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"},"type":"module","version":"3.100.13"}
@@ -49,6 +49,7 @@ export const buttonElementSymbol = Symbol("buttonElement");
49
49
  * @example /examples/components/form/button-with-click-event Button with event
50
50
  *
51
51
  * @issue https://localhost.alvine.dev:8443/development/issues/closed/282.html
52
+ * @issue https://localhost.alvine.dev:8443/development/issues/closed/283.html
52
53
  *
53
54
  * @copyright schukai GmbH
54
55
  * @summary A beautiful button that can make your life easier and also looks good.
@@ -44,15 +44,17 @@ const confirmButtonElementSymbol = Symbol("confirmButtonElement");
44
44
  const cancelButtonElementSymbol = Symbol("cancelButtonElement");
45
45
 
46
46
  /**
47
- * A confirm button control.
47
+ * A confirmation button control.
48
48
  *
49
49
  * @fragments /fragments/components/form/confirm-button/
50
50
  *
51
- * @example /examples/components/form/confirm-button-simple confirm button
51
+ * @example /examples/components/form/confirm-button-simple simple confirm button
52
+ *
53
+ * @issue https://localhost.alvine.dev:8443/development/issues/closed/283.html
52
54
  *
53
55
  * @since 1.5.0
54
56
  * @copyright schukai GmbH
55
- * @summary A confirm button control
57
+ * @summary A confirm button control allowing the user to confirm or cancel an action
56
58
  */
57
59
  class ConfirmButton extends PopperButton {
58
60
  /**
@@ -67,23 +69,21 @@ class ConfirmButton extends PopperButton {
67
69
  }
68
70
 
69
71
  /**
70
- * To set the options via the HTML tag, the attribute `data-monster-options` must be used.
71
- * @see {@link https://monsterjs.org/en/doc/#configurate-a-monster-control}
72
- *
73
72
  * The individual configuration values can be found in the table.
74
73
  *
75
- * @property {Object} toggleEventType=click,touch List of event types to be observed for opening the confirm message
76
74
  * @property {Object} templates Template definitions
77
75
  * @property {string} templates.main Main template
78
- * @property {string} labels.button='<slot name="button"></slot>' Button label
79
- * @property {string} labels.message='<slot>Should I Stay or Should I Go?</slot>' Message
80
- * @property {string} labels.confirm='<slot name="confirm">Confirm</slot>' Confirm button label
81
- * @property {string} labels.cancel='<slot name="cancel">Cancel</slot>' Cancel button label
82
- * @property {Monster.Components.Form~exampleActionCallback} actions.confirm
83
- * @property {Monster.Components.Form~exampleActionCallback} actions.cancel List of event types to be observed for opening the dropdown
84
- * @property {Object} popper [PopperJS Options](https://popper.js.org/docs/v2/)
85
- * @property {string} popper.placement=top PopperJS placement
86
- * @extends {PopperButton}
76
+ * @property {Object} labels Label definitions
77
+ * @property {string} labels.button Button label
78
+ * @property {string} labels.message Message label
79
+ * @property {string} labels.confirm Confirm label
80
+ * @property {string} labels.cancel Cancel label
81
+ * @property {Object} classes Class definitions
82
+ * @property {string} classes.confirmButton Confirm button class
83
+ * @property {string} classes.cancelButton Cancel button class
84
+ * @property {Object} actions Action definitions
85
+ * @property {function} actions.confirm Confirm action
86
+ * @property {function} actions.cancel Cancel action
87
87
  */
88
88
  get defaults() {
89
89
  const obj = Object.assign({}, super.defaults, {
@@ -83,6 +83,8 @@ const arrowElementSymbol = Symbol("arrowElement");
83
83
  *
84
84
  * @example /examples/components/form/popper-button-simple
85
85
  *
86
+ * @issue https://localhost.alvine.dev:8443/development/issues/closed/283.html
87
+ *
86
88
  * @since 1.5.0
87
89
  * @copyright schukai GmbH
88
90
  * @summary A beautiful popper button
@@ -39,58 +39,7 @@ export { Reload };
39
39
  const intersectionObserverWasInitialized = Symbol("wasInitialized");
40
40
 
41
41
  /**
42
- * This CustomControl reloads the content of a url and embeds it into the dom.
43
- *
44
- * <img src="./images/reload.png">
45
- *
46
- * You can create this control either by specifying the HTML tag `<monster-reload />` directly in the HTML or using
47
- * Javascript via the `document.createElement('monster-reload');` method.
48
- *
49
- * ```html
50
- * <monster-reload></monster-reload>
51
- *
52
- * <script type="module">
53
- * import {Reload} from '@schukai/component-form/source/reload.js';
54
- * document.createElement('monster-reload');
55
- * </script>
56
- * ```
57
- *
58
- * A simple configuration can look like this
59
- *
60
- * ```html
61
- * <script id="config"
62
- * type="application/json">
63
- * {
64
- * "url": "./content.html",
65
- * }
66
- * </script>
67
- *
68
- * <monster-reload data-monster-options-selector="#config">
69
- * </monster-reload>
70
- * ```
71
- *
72
- * If you want to display a loader, you can insert a div with the attribute `data-monster-role="container"`.
73
- * The content of this div will be replaced by the loaded code.
74
- *
75
- * ```html
76
- * <monster-reload data-monster-options-selector="#config">
77
- * <div data-monster-role="container">
78
- * LOADER ...
79
- * </div>
80
- * </monster-reload>
81
- * ```
82
- *
83
- * If you need additional structure, you can simply specify it.
84
- *
85
- * ```html
86
- * <monster-reload data-monster-options-selector="#config">
87
- * <div class="row">
88
- * <div class="col" data-monster-role="container">
89
- * LOADER ...
90
- * </div>
91
- * </div>
92
- * </monster-reload>
93
- * ```
42
+ * This CustomControl reloads the content of an url and embeds it into the dom.
94
43
  *
95
44
  * @fragments /fragments/components/form/reload/
96
45
  *
@@ -119,16 +68,16 @@ class Reload extends CustomElement {
119
68
  *
120
69
  * @property {Object} templates Template definitions
121
70
  * @property {string} templates.main Main template
122
- * @property {string} url=undefined
123
- * @property {string} reload=undefined currently the values defined are `onshow` and `always`. The default `onshow` removes the IntersectionObserver. This means that the content is only loaded once. reloading of the content does not occur.
124
- * @property {string} filter=undefined dom selectors to search for elements, if undefined then everything is taken
125
- * @property {Object[]} processors
126
- * @property {Object} fetch Fetch [see Using Fetch mozilla.org](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch)
127
- * @property {String} fetch.redirect=error
128
- * @property {String} fetch.method=GET
129
- * @property {String} fetch.mode=same-origin
130
- * @property {String} fetch.credentials=same-origin
131
- * @property {Object} fetch.headers={"accept":"text/html"}}
71
+ * @property {string} url url to fetch
72
+ * @property {string} reload onshow, always
73
+ * @property {string} filter css selector
74
+ * @property {Object} fetch fetch options for the request
75
+ * @property {string} fetch.redirect error, follow, manual
76
+ * @property {string} fetch.method GET, POST, PUT, DELETE
77
+ * @property {string} fetch.mode same-origin, cors, no-cors, navigate
78
+ * @property {string} fetch.credentials omit, same-origin, include
79
+ * @property {Object} fetch.headers
80
+ * @property {string} fetch.headers.accept text/html, application/json
132
81
  */
133
82
  get defaults() {
134
83
  return Object.assign(
@@ -227,12 +176,6 @@ class Reload extends CustomElement {
227
176
  }
228
177
 
229
178
  /**
230
- * This attribute can be used to pass a URL to this select.
231
- *
232
- * ```
233
- * <monster-select data-monster-url="https://example.com/"></monster-select>
234
- * ```
235
- *
236
179
  * @private
237
180
  * @return {object}
238
181
  */
@@ -284,10 +227,10 @@ function initIntersectionObserver() {
284
227
 
285
228
  try {
286
229
  loadContent.call(this).catch((e) => {
287
- addAttributeToken(this, ATTRIBUTE_ERRORMESSAGE, e.toString());
230
+ addErrorAttribute(this, e);
288
231
  });
289
232
  } catch (e) {
290
- addAttributeToken(this, ATTRIBUTE_ERRORMESSAGE, e.toString());
233
+ addErrorAttribute(this, e);
291
234
  }
292
235
  }
293
236
  }
@@ -23,7 +23,7 @@ export { ShadowReload };
23
23
  *
24
24
  * @fragments /fragments/components/form/shadow-reload/
25
25
  *
26
- * @example /examples/components/form/shadow-reload-simple
26
+ * @example /examples/components/form/shadow-reload-simple simple shadow reload
27
27
  *
28
28
  * @since 3.6.0
29
29
  * @copyright schukai GmbH