@schukai/monster 3.63.1 → 3.63.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/package.json +1 -1
  3. package/source/components/datatable/change-button.mjs +43 -4
  4. package/source/components/datatable/columnbar.mjs +1 -3
  5. package/source/components/datatable/dataset.mjs +0 -3
  6. package/source/components/datatable/datatable.mjs +3 -3
  7. package/source/components/datatable/save-button.mjs +269 -239
  8. package/source/components/datatable/status.mjs +1 -1
  9. package/source/components/datatable/style/datatable.pcss +3 -3
  10. package/source/components/datatable/style/embedded-pagination.pcss +2 -2
  11. package/source/components/datatable/style/filter.pcss +1 -1
  12. package/source/components/datatable/style/pagination.pcss +3 -3
  13. package/source/components/datatable/stylesheet/change-button.mjs +1 -1
  14. package/source/components/datatable/stylesheet/column-bar.mjs +1 -1
  15. package/source/components/datatable/stylesheet/dataset.mjs +1 -1
  16. package/source/components/datatable/stylesheet/datatable.mjs +1 -1
  17. package/source/components/datatable/stylesheet/embedded-pagination.mjs +1 -1
  18. package/source/components/datatable/stylesheet/filter.mjs +1 -1
  19. package/source/components/datatable/stylesheet/pagination.mjs +1 -1
  20. package/source/components/datatable/stylesheet/save-button.mjs +1 -1
  21. package/source/components/datatable/stylesheet/select-filter.mjs +1 -1
  22. package/source/components/datatable/stylesheet/status.mjs +1 -1
  23. package/source/components/form/style/toggle-switch.pcss +0 -6
  24. package/source/components/form/stylesheet/action-button.mjs +1 -1
  25. package/source/components/form/stylesheet/toggle-switch.mjs +1 -1
  26. package/source/components/form/toggle-switch.mjs +23 -19
  27. package/source/components/host/stylesheet/call-button.mjs +1 -1
  28. package/source/components/host/stylesheet/collapse.mjs +1 -1
  29. package/source/components/host/stylesheet/details.mjs +1 -1
  30. package/source/components/host/stylesheet/host.mjs +1 -1
  31. package/source/components/host/stylesheet/overlay.mjs +1 -1
  32. package/source/components/host/stylesheet/toggle-button.mjs +1 -1
  33. package/source/components/host/stylesheet/viewer.mjs +1 -1
  34. package/source/components/layout/split-screen.mjs +3 -1
  35. package/source/components/layout/style/width-toggle.pcss +43 -0
  36. package/source/components/layout/stylesheet/tabs.mjs +1 -1
  37. package/source/components/layout/stylesheet/width-toggle.mjs +27 -0
  38. package/source/components/layout/width-toggle.mjs +247 -0
  39. package/source/components/notify/stylesheet/message.mjs +1 -1
  40. package/source/components/style/mixin/property.pcss +29 -11
  41. package/source/components/style/property.pcss +2 -1
  42. package/source/components/style/table.pcss +5 -5
  43. package/source/components/style/theme.pcss +22 -13
  44. package/source/components/stylesheet/property.mjs +1 -1
  45. package/source/components/stylesheet/table.mjs +1 -1
  46. package/source/components/stylesheet/theme.mjs +1 -1
  47. package/source/dom/customcontrol.mjs +7 -1
  48. package/source/dom/util/init-options-from-attributes.mjs +61 -48
  49. package/source/types/version.mjs +1 -1
  50. package/test/cases/monster.mjs +1 -1
package/CHANGELOG.md CHANGED
@@ -1,9 +1,33 @@
1
1
 
2
+ ## [3.63.3] - 2024-04-01
3
+
4
+ ### Bug Fixes
5
+
6
+ - include state-button [#183](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/183)
7
+ ### Changes
8
+
9
+ - update devenv
10
+ - update issue templates
11
+ - update template and create showroom section
12
+
13
+ ## [3.63.2] - 2024-03-28
14
+
15
+ ### Bug Fixes
16
+
17
+ - colors and more, add igrnore change to savebutton [#181](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/181) [#180](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/180)
18
+ ### Changes
19
+
20
+ - release and publish to npm new version 3.63.2
21
+ - reorganize playground
22
+
2
23
  ## [3.63.1] - 2024-03-27
3
24
 
4
25
  ### Bug Fixes
5
26
 
6
27
  - [#179](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/179) [#176](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/176)
28
+ ### Changes
29
+
30
+ - release and publish to npm new version 3.63.1
7
31
 
8
32
  ## [3.63.0] - 2024-03-25
9
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schukai/monster",
3
- "version": "3.63.1",
3
+ "version": "3.63.3",
4
4
  "description": "Monster is a simple library for creating fast, robust and lightweight websites.",
5
5
  "keywords": [
6
6
  "framework",
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import { instanceSymbol } from "../../constants.mjs";
7
- import { diff } from "../../data/diff.mjs";
8
7
  import { addAttributeToken } from "../../dom/attributes.mjs";
9
8
  import { ATTRIBUTE_ERRORMESSAGE } from "../../dom/constants.mjs";
10
9
  import {
@@ -12,10 +11,9 @@ import {
12
11
  CustomElement,
13
12
  registerCustomElement,
14
13
  } from "../../dom/customelement.mjs";
15
- import { isString, isArray } from "../../types/is.mjs";
16
- import { Observer } from "../../types/observer.mjs";
17
- import { clone } from "../../util/clone.mjs";
14
+ import { isString } from "../../types/is.mjs";
18
15
  import { State } from "../form/types/state.mjs";
16
+ import "../form/state-button.mjs";
19
17
  import { ATTRIBUTE_DATASOURCE_SELECTOR } from "./constants.mjs";
20
18
  import { ChangeButtonStyleSheet } from "./stylesheet/change-button.mjs";
21
19
 
@@ -38,6 +36,47 @@ const datasetLinkedElementSymbol = Symbol("datasetLinkedElement");
38
36
  */
39
37
  const overlayLinkedElementSymbol = Symbol("overlayLinkedElement");
40
38
 
39
+
40
+
41
+ /**
42
+ * The ColumnBar component is used to show and configure the columns of a datatable.
43
+ *
44
+ * <img src="./images/change-button.png">
45
+ *
46
+ * You can create this control either by specifying the HTML tag <monster-datatable-change-button />` directly in the HTML or using
47
+ * Javascript via the `document.createElement('monster-datatable-change-button');` method.
48
+ *
49
+ * ```html
50
+ * <monster-datatable-change-button></monster-datatable-change-button>
51
+ * ```
52
+ *
53
+ * Or you can create this CustomControl directly in Javascript:
54
+ *
55
+ * ```js
56
+ * import '@schukai/monster/components/datatable/change-button.mjs';
57
+ * document.createElement('monster-datatable-change-button');
58
+ * ```
59
+ *
60
+ * The Body should have a class "hidden" to ensure that the
61
+ * styles are applied correctly.
62
+ *
63
+ * ```css
64
+ * body.hidden {
65
+ * visibility: hidden;
66
+ * }
67
+ * ```
68
+ *
69
+ * @startuml change-button.png
70
+ * skinparam monochrome true
71
+ * skinparam shadowing false
72
+ * HTMLElement <|-- CustomElement
73
+ * CustomElement <|-- ChangeButton
74
+ * @enduml
75
+ *
76
+ * @copyright schukai GmbH
77
+ * @memberOf Monster.Components.Datatable
78
+ * @summary A data set
79
+ */
41
80
  class ChangeButton extends CustomElement {
42
81
  /**
43
82
  * This method is called by the `instanceof` operator.
@@ -51,8 +51,6 @@ const popperInstanceSymbol = Symbol("popperInstance");
51
51
  *
52
52
  * <img src="./images/column-bar.png">
53
53
  *
54
- * Dependencies: the system uses functions of the [monsterjs](https://monsterjs.org/) library
55
- *
56
54
  * You can create this control either by specifying the HTML tag <monster-column-bar />` directly in the HTML or using
57
55
  * Javascript via the `document.createElement('monster-column-bar');` method.
58
56
  *
@@ -63,7 +61,7 @@ const popperInstanceSymbol = Symbol("popperInstance");
63
61
  * Or you can create this CustomControl directly in Javascript:
64
62
  *
65
63
  * ```js
66
- * import '@schukai/component-datatable/source/columnbar.mjs';
64
+ * import '@schukai/monster/components/datatable/column-bar.mjs';
67
65
  * document.createElement('monster-column-bar');
68
66
  * ```
69
67
  *
@@ -35,8 +35,6 @@ export { DataSet };
35
35
  *
36
36
  * <img src="./images/dataset.png">
37
37
  *
38
- * Dependencies: the system uses functions of the [monsterjs](https://monsterjs.org/) library
39
- *
40
38
  * You can create this control either by specifying the HTML tag <monster-dataset />` directly in the HTML or using
41
39
  * Javascript via the `document.createElement('monster-dataset');` method.
42
40
  *
@@ -233,7 +231,6 @@ class DataSet extends CustomElement {
233
231
  }
234
232
 
235
233
  /**
236
- *
237
234
  * @return [CSSStyleSheet]
238
235
  */
239
236
  static getCSSStyleSheet() {
@@ -190,9 +190,9 @@ class DataTable extends CustomElement {
190
190
  },
191
191
 
192
192
  classes : {
193
- control: "monster-theme-table-container-1",
194
- container: "monster-theme-table-container-1",
195
- row: "monster-theme-table-row-1",
193
+ control: "monster-theme-control-container-1",
194
+ container: "monster-theme-control-container-1",
195
+ row: "monster-theme-control-row-1",
196
196
  },
197
197
 
198
198
  features: {