@schukai/monster 3.63.0 → 3.63.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.
Files changed (73) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/package.json +1 -1
  3. package/source/components/datatable/dataset.mjs +0 -3
  4. package/source/components/datatable/datatable.mjs +18 -4
  5. package/source/components/datatable/pagination.mjs +0 -2
  6. package/source/components/datatable/save-button.mjs +269 -239
  7. package/source/components/datatable/status.mjs +2 -2
  8. package/source/components/datatable/style/column-bar.pcss +5 -3
  9. package/source/components/datatable/style/dataset.pcss +1 -0
  10. package/source/components/datatable/style/datatable.pcss +8 -18
  11. package/source/components/datatable/style/embedded-pagination.pcss +2 -2
  12. package/source/components/datatable/style/filter.pcss +1 -1
  13. package/source/components/datatable/style/pagination.pcss +3 -3
  14. package/source/components/datatable/stylesheet/change-button.mjs +1 -1
  15. package/source/components/datatable/stylesheet/column-bar.mjs +1 -1
  16. package/source/components/datatable/stylesheet/dataset.mjs +1 -1
  17. package/source/components/datatable/stylesheet/datatable.mjs +1 -1
  18. package/source/components/datatable/stylesheet/embedded-pagination.mjs +1 -1
  19. package/source/components/datatable/stylesheet/filter.mjs +1 -1
  20. package/source/components/datatable/stylesheet/pagination.mjs +1 -1
  21. package/source/components/datatable/stylesheet/save-button.mjs +1 -1
  22. package/source/components/datatable/stylesheet/select-filter.mjs +1 -1
  23. package/source/components/datatable/stylesheet/status.mjs +1 -1
  24. package/source/components/form/context-error.mjs +7 -8
  25. package/source/components/form/context-help.mjs +7 -2
  26. package/source/components/form/select.mjs +22 -5
  27. package/source/components/form/style/context-error.pcss +1 -1
  28. package/source/components/form/style/context-help.pcss +5 -1
  29. package/source/components/form/style/select.pcss +81 -56
  30. package/source/components/form/style/toggle-switch.pcss +0 -6
  31. package/source/components/form/stylesheet/action-button.mjs +1 -1
  32. package/source/components/form/stylesheet/context-error.mjs +1 -1
  33. package/source/components/form/stylesheet/context-help.mjs +1 -1
  34. package/source/components/form/stylesheet/select.mjs +1 -1
  35. package/source/components/form/stylesheet/state-button.mjs +1 -1
  36. package/source/components/form/stylesheet/toggle-switch.mjs +1 -1
  37. package/source/components/form/toggle-switch.mjs +23 -19
  38. package/source/components/host/collapse.mjs +0 -5
  39. package/source/components/host/style/collapse.pcss +3 -2
  40. package/source/components/host/stylesheet/call-button.mjs +1 -1
  41. package/source/components/host/stylesheet/collapse.mjs +1 -1
  42. package/source/components/host/stylesheet/details.mjs +1 -1
  43. package/source/components/host/stylesheet/host.mjs +1 -1
  44. package/source/components/host/stylesheet/overlay.mjs +1 -1
  45. package/source/components/host/stylesheet/toggle-button.mjs +1 -1
  46. package/source/components/host/stylesheet/viewer.mjs +1 -1
  47. package/source/components/layout/split-screen.mjs +3 -1
  48. package/source/components/layout/style/tabs.pcss +0 -1
  49. package/source/components/layout/style/width-toggle.pcss +26 -0
  50. package/source/components/layout/stylesheet/tabs.mjs +1 -1
  51. package/source/components/layout/stylesheet/width-toggle.mjs +27 -0
  52. package/source/components/layout/tabs.mjs +17 -1
  53. package/source/components/layout/width-toggle.mjs +242 -0
  54. package/source/components/notify/stylesheet/message.mjs +1 -1
  55. package/source/components/style/color.pcss +11 -0
  56. package/source/components/style/icons.pcss +73 -69
  57. package/source/components/style/mixin/icon.pcss +32 -37
  58. package/source/components/style/mixin/property.pcss +38 -2
  59. package/source/components/style/property.pcss +2 -0
  60. package/source/components/style/table.pcss +6 -4
  61. package/source/components/style/theme.pcss +33 -5
  62. package/source/components/stylesheet/color.mjs +1 -1
  63. package/source/components/stylesheet/icons.mjs +1 -1
  64. package/source/components/stylesheet/property.mjs +1 -1
  65. package/source/components/stylesheet/table.mjs +1 -1
  66. package/source/components/stylesheet/theme.mjs +1 -1
  67. package/source/dom/customcontrol.mjs +7 -1
  68. package/source/dom/util/init-options-from-attributes.mjs +61 -48
  69. package/source/monster.mjs +2 -0
  70. package/source/types/version.mjs +1 -1
  71. package/test/cases/monster.mjs +1 -1
  72. package/test/web/test.html +2 -2
  73. package/test/web/tests.js +54 -26
package/CHANGELOG.md CHANGED
@@ -1,9 +1,30 @@
1
1
 
2
+ ## [3.63.2] - 2024-03-28
3
+
4
+ ### Bug Fixes
5
+
6
+ - 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)
7
+ ### Changes
8
+
9
+ - reorganize playground
10
+
11
+ ## [3.63.1] - 2024-03-27
12
+
13
+ ### Bug Fixes
14
+
15
+ - [#179](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/179) [#176](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/176)
16
+ ### Changes
17
+
18
+ - release and publish to npm new version 3.63.1
19
+
2
20
  ## [3.63.0] - 2024-03-25
3
21
 
4
22
  ### Add Features
5
23
 
6
24
  - add events to dataset methods [#178](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/178)
25
+ ### Changes
26
+
27
+ - release and publish to npm new version 3.63.0
7
28
 
8
29
  ## [3.62.0] - 2024-03-25
9
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schukai/monster",
3
- "version": "3.63.0",
3
+ "version": "3.63.2",
4
4
  "description": "Monster is a simple library for creating fast, robust and lightweight websites.",
5
5
  "keywords": [
6
6
  "framework",
@@ -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() {
@@ -113,7 +113,7 @@ const columnBarElementSymbol = Symbol("columnBarElement");
113
113
  * skinparam monochrome true
114
114
  * skinparam shadowing false
115
115
  * HTMLElement <|-- CustomElement
116
- * CustomElement <|-- Datatable
116
+ * CustomElement <|-- DataTable
117
117
  * @enduml
118
118
  *
119
119
  * @copyright schukai GmbH
@@ -150,6 +150,8 @@ class DataTable extends CustomElement {
150
150
  * @property {number} responsive.breakpoint Breakpoint for responsive mode
151
151
  * @property {Object} labels Labels
152
152
  * @property {string} labels.theListContainsNoEntries Label for empty state
153
+ * @property {Object} classes Classes
154
+ * @property {string} classes.container Container class
153
155
  * @property {Object} features Features
154
156
  * @property {boolean} features.settings Settings feature
155
157
  * @property {boolean} features.footer Footer feature
@@ -187,6 +189,12 @@ class DataTable extends CustomElement {
187
189
  theListContainsNoEntries: "The list contains no entries",
188
190
  },
189
191
 
192
+ classes : {
193
+ control: "monster-theme-control-container-1",
194
+ container: "monster-theme-control-container-1",
195
+ row: "monster-theme-control-row-1",
196
+ },
197
+
190
198
  features: {
191
199
  settings: true,
192
200
  footer: true,
@@ -933,6 +941,11 @@ function initOptionsFromArguments() {
933
941
  function getEmptyTemplate() {
934
942
  return `<monster-state data-monster-role="empty-without-action">
935
943
  <div part="visual">
944
+ <style>
945
+ path {
946
+ fill: var(--monster-bg-color-primary-4);
947
+ }
948
+ </style>
936
949
  <svg width="4rem" height="4rem" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
937
950
  <path d="m21.5 22h-19c-1.378 0-2.5-1.121-2.5-2.5v-7c0-.07.015-.141.044-.205l3.969-8.82c.404-.896 1.299-1.475 2.28-1.475h11.414c.981 0 1.876.579 2.28 1.475l3.969 8.82c.029.064.044.135.044.205v7c0 1.379-1.122 2.5-2.5 2.5zm-20.5-9.393v6.893c0 .827.673 1.5 1.5 1.5h19c.827 0 1.5-.673 1.5-1.5v-6.893l-3.925-8.723c-.242-.536-.779-.884-1.368-.884h-11.414c-.589 0-1.126.348-1.368.885z"/>
938
951
  <path d="m16.807 17h-9.614c-.622 0-1.186-.391-1.404-.973l-1.014-2.703c-.072-.194-.26-.324-.468-.324h-3.557c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h3.557c.622 0 1.186.391 1.405.973l1.013 2.703c.073.194.261.324.468.324h9.613c.208 0 .396-.13.468-.324l1.013-2.703c.22-.582.784-.973 1.406-.973h3.807c.276 0 .5.224.5.5s-.224.5-.5.5h-3.807c-.208 0-.396.13-.468.324l-1.013 2.703c-.219.582-.784.973-1.405.973z"/>
@@ -951,14 +964,15 @@ function getEmptyTemplate() {
951
964
  function getTemplate() {
952
965
  // language=HTML
953
966
  return `
954
- <div data-monster-role="control" part="control">
967
+ <div data-monster-role="control" part="control" data-monster-attributes="class path:classes.control">
955
968
  <template id="headers-row">
956
- <div data-monster-attributes="class path:headers-row.classname,
969
+ <div data-monster-attributes="class path:headers-row.classes,
957
970
  data-monster-index path:headers-row.index"
958
971
  data-monster-replace="path:headers-row.html"></div>
959
972
  </template>
960
973
  <slot></slot>
961
- <div class="table-container" part="table-container">
974
+ <div data-monster-attributes="class path:classes.container"
975
+ data-monster-role="table-container" part="table-container">
962
976
  <div class="filter">
963
977
  <slot name="filter"></slot>
964
978
  </div>
@@ -48,8 +48,6 @@ const datasourceLinkedElementSymbol = Symbol("datasourceLinkedElement");
48
48
  *
49
49
  * <img src="./images/pagination.png">
50
50
  *
51
- * Dependencies: the system uses functions of the [monsterjs](https://monsterjs.org/) library
52
- *
53
51
  * You can create this control either by specifying the HTML tag <monster-pagination />` directly in the HTML or using
54
52
  * Javascript via the `document.createElement('monster-pagination');` method.
55
53
  *