@dso-toolkit/core 53.0.0 → 54.0.0

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 (144) hide show
  1. package/dist/cjs/dso-accordion-section.cjs.entry.js +39 -1404
  2. package/dist/cjs/dso-action-list-item.cjs.entry.js +27 -0
  3. package/dist/cjs/dso-action-list.cjs.entry.js +20 -0
  4. package/dist/cjs/dso-annotation-output.cjs.entry.js +1 -1
  5. package/dist/cjs/dso-date-picker.cjs.entry.js +1 -1
  6. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +18 -3
  7. package/dist/cjs/dso-expandable-heading.cjs.entry.js +1 -1
  8. package/dist/cjs/dso-expandable.cjs.entry.js +1433 -2
  9. package/dist/cjs/dso-header.cjs.entry.js +16 -1
  10. package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +2 -2
  11. package/dist/cjs/dso-image-overlay.cjs.entry.js +2 -2
  12. package/dist/cjs/dso-info_2.cjs.entry.js +3 -2
  13. package/dist/cjs/dso-list-button.cjs.entry.js +13 -5
  14. package/dist/cjs/dso-modal.cjs.entry.js +4 -2
  15. package/dist/cjs/dso-ozon-content.cjs.entry.js +1 -1
  16. package/dist/cjs/dso-table.cjs.entry.js +2 -2
  17. package/dist/cjs/dso-toolkit.cjs.js +1 -1
  18. package/dist/cjs/dso-tooltip.cjs.entry.js +1 -1
  19. package/dist/cjs/dso-viewer-grid.cjs.entry.js +2 -2
  20. package/dist/cjs/expandable.interfaces-19b608b9.js +7 -0
  21. package/dist/cjs/{focus-trap.esm-c501d382.js → focus-trap.esm-a5b7273f.js} +134 -51
  22. package/dist/cjs/{has-overflow-b1b4f3f3.js → has-overflow-dd552ec8.js} +3 -4
  23. package/dist/cjs/index.cjs.js +6 -1
  24. package/dist/cjs/{index.esm-03a9e0b4.js → index.esm-0e935715.js} +97 -17
  25. package/dist/cjs/loader.cjs.js +1 -1
  26. package/dist/collection/collection-manifest.json +2 -0
  27. package/dist/collection/components/accordion/accordion.js +1 -1
  28. package/dist/collection/components/accordion/components/accordion-section.css +60 -10
  29. package/dist/collection/components/accordion/components/accordion-section.js +41 -100
  30. package/dist/collection/components/action-list/action-list.css +25 -0
  31. package/dist/collection/components/action-list/action-list.js +42 -0
  32. package/dist/collection/components/action-list/components/action-list-item.css +81 -0
  33. package/dist/collection/components/action-list/components/action-list-item.js +120 -0
  34. package/dist/collection/components/annotation-output/annotation-output.js +1 -1
  35. package/dist/collection/components/date-picker/date-picker.css +1 -1
  36. package/dist/collection/components/date-picker/date-picker.js +1 -1
  37. package/dist/collection/components/dropdown-menu/dropdown-menu.js +36 -1
  38. package/dist/collection/components/expandable/expandable.css +12 -1
  39. package/dist/collection/components/expandable/expandable.interfaces.js +3 -0
  40. package/dist/collection/components/expandable/expandable.js +246 -2
  41. package/dist/collection/components/expandable-heading/expandable-heading.js +1 -1
  42. package/dist/collection/components/header/header.js +18 -2
  43. package/dist/collection/components/list-button/list-button.css +2 -17
  44. package/dist/collection/components/list-button/list-button.js +31 -19
  45. package/dist/collection/components/modal/modal.controller.js +4 -1
  46. package/dist/collection/components/modal/modal.js +36 -3
  47. package/dist/collection/components/selectable/selectable.css +22 -9
  48. package/dist/collection/components/selectable/selectable.js +2 -1
  49. package/dist/collection/index.js +1 -0
  50. package/dist/components/dropdown-menu.js +17 -1
  51. package/dist/components/dso-accordion-section.js +52 -1407
  52. package/dist/components/dso-action-list-item.d.ts +11 -0
  53. package/dist/components/dso-action-list-item.js +53 -0
  54. package/dist/components/dso-action-list.d.ts +11 -0
  55. package/dist/components/dso-action-list.js +36 -0
  56. package/dist/components/dso-annotation-output.js +1 -1
  57. package/dist/components/dso-date-picker.js +2 -2
  58. package/dist/components/dso-expandable-heading.js +1 -1
  59. package/dist/components/dso-header.js +18 -2
  60. package/dist/components/dso-list-button.js +12 -4
  61. package/dist/components/dso-modal.js +3 -0
  62. package/dist/components/expandable.js +1440 -4
  63. package/dist/components/focus-trap.esm.js +133 -50
  64. package/dist/components/has-overflow.js +3 -4
  65. package/dist/components/index.d.ts +2 -0
  66. package/dist/components/index.esm.js +97 -17
  67. package/dist/components/index.js +7 -2
  68. package/dist/components/selectable.js +3 -2
  69. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  70. package/dist/dso-toolkit/index.esm.js +1 -1
  71. package/dist/dso-toolkit/p-3238f7ee.entry.js +1 -0
  72. package/dist/dso-toolkit/p-36224d6f.entry.js +1 -0
  73. package/dist/dso-toolkit/{p-9b07b034.entry.js → p-398a8e0b.entry.js} +1 -1
  74. package/dist/dso-toolkit/{p-d2805c02.entry.js → p-3b91c3e9.entry.js} +1 -1
  75. package/dist/dso-toolkit/p-452b1234.js +1 -0
  76. package/dist/dso-toolkit/p-5950644a.js +5 -0
  77. package/dist/dso-toolkit/{p-b3f4645f.entry.js → p-5de8b79a.entry.js} +1 -1
  78. package/dist/dso-toolkit/p-5e50b616.entry.js +1 -0
  79. package/dist/dso-toolkit/p-6a99d7f8.entry.js +1 -0
  80. package/dist/dso-toolkit/p-91963e3d.js +5 -0
  81. package/dist/dso-toolkit/p-96f44d35.entry.js +1 -0
  82. package/dist/dso-toolkit/p-975c172a.entry.js +1 -0
  83. package/dist/dso-toolkit/{p-092dde2f.entry.js → p-a1616935.entry.js} +1 -1
  84. package/dist/dso-toolkit/{p-ba330644.entry.js → p-bb90ea4c.entry.js} +1 -1
  85. package/dist/dso-toolkit/p-bf750b97.js +1 -0
  86. package/dist/dso-toolkit/{p-f2b76233.entry.js → p-cf9b79df.entry.js} +1 -1
  87. package/dist/dso-toolkit/{p-43f3d736.entry.js → p-d10ec2b3.entry.js} +1 -1
  88. package/dist/dso-toolkit/p-e04d87e0.entry.js +1 -0
  89. package/dist/dso-toolkit/p-e8a6ccf5.entry.js +1 -0
  90. package/dist/dso-toolkit/p-eaae698e.entry.js +1 -0
  91. package/dist/dso-toolkit/p-fa2f1a1c.entry.js +1 -0
  92. package/dist/dso-toolkit/p-fe7ca25f.entry.js +1 -0
  93. package/dist/esm/dso-accordion-section.entry.js +39 -1404
  94. package/dist/esm/dso-action-list-item.entry.js +23 -0
  95. package/dist/esm/dso-action-list.entry.js +16 -0
  96. package/dist/esm/dso-annotation-output.entry.js +1 -1
  97. package/dist/esm/dso-date-picker.entry.js +1 -1
  98. package/dist/esm/dso-dropdown-menu.entry.js +18 -3
  99. package/dist/esm/dso-expandable-heading.entry.js +1 -1
  100. package/dist/esm/dso-expandable.entry.js +1434 -3
  101. package/dist/esm/dso-header.entry.js +16 -1
  102. package/dist/esm/dso-helpcenter-panel.entry.js +2 -2
  103. package/dist/esm/dso-image-overlay.entry.js +2 -2
  104. package/dist/esm/dso-info_2.entry.js +3 -2
  105. package/dist/esm/dso-list-button.entry.js +13 -5
  106. package/dist/esm/dso-modal.entry.js +4 -2
  107. package/dist/esm/dso-ozon-content.entry.js +1 -1
  108. package/dist/esm/dso-table.entry.js +2 -2
  109. package/dist/esm/dso-toolkit.js +1 -1
  110. package/dist/esm/dso-tooltip.entry.js +1 -1
  111. package/dist/esm/dso-viewer-grid.entry.js +2 -2
  112. package/dist/esm/expandable.interfaces-9b1afbe8.js +5 -0
  113. package/dist/esm/{focus-trap.esm-94794d92.js → focus-trap.esm-2a49a38f.js} +134 -51
  114. package/dist/esm/{has-overflow-c44a8a0a.js → has-overflow-fdc85d8f.js} +3 -4
  115. package/dist/esm/{index.esm-8fc07ad8.js → index.esm-3d6c8190.js} +97 -17
  116. package/dist/esm/index.js +5 -1
  117. package/dist/esm/loader.js +1 -1
  118. package/dist/types/components/accordion/accordion.interfaces.d.ts +1 -1
  119. package/dist/types/components/accordion/components/accordion-section.d.ts +4 -8
  120. package/dist/types/components/action-list/action-list.d.ts +5 -0
  121. package/dist/types/components/action-list/components/action-list-item.d.ts +15 -0
  122. package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +5 -0
  123. package/dist/types/components/expandable/expandable.d.ts +25 -1
  124. package/dist/types/components/expandable/expandable.interfaces.d.ts +10 -0
  125. package/dist/types/components/header/header.d.ts +3 -0
  126. package/dist/types/components/list-button/list-button.d.ts +7 -1
  127. package/dist/types/components/modal/modal.controller.d.ts +2 -3
  128. package/dist/types/components/modal/modal.d.ts +7 -2
  129. package/dist/types/components/modal/modal.interfaces.d.ts +13 -1
  130. package/dist/types/components.d.ts +97 -5
  131. package/dist/types/index.d.ts +1 -0
  132. package/package.json +11 -11
  133. package/dist/dso-toolkit/p-147ec7bd.entry.js +0 -1
  134. package/dist/dso-toolkit/p-3635427a.js +0 -5
  135. package/dist/dso-toolkit/p-452c7fbb.entry.js +0 -1
  136. package/dist/dso-toolkit/p-460e6134.entry.js +0 -1
  137. package/dist/dso-toolkit/p-4ae40ddc.entry.js +0 -1
  138. package/dist/dso-toolkit/p-4c8426b7.entry.js +0 -1
  139. package/dist/dso-toolkit/p-57ceabab.js +0 -5
  140. package/dist/dso-toolkit/p-aab458c4.entry.js +0 -1
  141. package/dist/dso-toolkit/p-d3ed00f6.js +0 -1
  142. package/dist/dso-toolkit/p-e3bd7689.entry.js +0 -1
  143. package/dist/dso-toolkit/p-e4f667b3.entry.js +0 -1
  144. package/dist/dso-toolkit/p-f3f0d6c9.entry.js +0 -1
@@ -1,6 +1,5 @@
1
1
  :host {
2
2
  display: block;
3
- padding-left: 32px;
4
3
  position: relative;
5
4
  }
6
5
  :host .dso-selectable-options {
@@ -135,8 +134,8 @@
135
134
  }
136
135
  :host > dso-info {
137
136
  float: none;
138
- margin: 8px 16px 0 -32px;
139
- width: calc(100% + 32px);
137
+ margin: 8px 16px 0 0;
138
+ width: 100%;
140
139
  }
141
140
  :host[invalid] {
142
141
  --dso-selectable-color: #ce3f51;
@@ -152,22 +151,36 @@
152
151
  box-sizing: border-box;
153
152
  }
154
153
 
155
- .dso-selectable-input-wrapper {
154
+ .dso-selectable-container {
156
155
  display: inline-block;
157
- margin-left: -32px;
156
+ position: relative;
157
+ padding-inline-start: 32px;
158
+ }
159
+ .dso-selectable-container.has-info-button {
160
+ padding-inline-end: 32px;
161
+ }
162
+ .dso-selectable-container .dso-selectable-input-wrapper {
163
+ display: inline;
164
+ margin-inline: -32px;
158
165
  min-height: 24px;
159
- padding-left: 32px;
166
+ padding-inline: 32px;
160
167
  }
161
- .dso-selectable-input-wrapper:focus-within {
168
+ .dso-selectable-container .dso-selectable-input-wrapper:focus-within {
162
169
  border-radius: 2px;
163
170
  outline-offset: 3px;
164
171
  outline: 3px solid #008ccc;
165
172
  }
166
- .dso-selectable-input-wrapper input[type=radio]:focus + label::before,
167
- .dso-selectable-input-wrapper input[type=checkbox]:focus + label::before {
173
+ .dso-selectable-container .dso-selectable-input-wrapper input[type=radio]:focus + label::before,
174
+ .dso-selectable-container .dso-selectable-input-wrapper input[type=checkbox]:focus + label::before {
168
175
  box-shadow: 0 0 0 2px var(--dso-selectable-color, #275937);
169
176
  height: 20px;
170
177
  left: 2px;
171
178
  top: 2px;
172
179
  width: 20px;
180
+ }
181
+
182
+ dso-info-button {
183
+ position: absolute;
184
+ right: 0;
185
+ top: 0;
173
186
  }
@@ -1,4 +1,5 @@
1
1
  import { h, Fragment, forceUpdate, } from "@stencil/core";
2
+ import clsx from "clsx";
2
3
  import { createIdentifier } from "../../utils/create-identifier";
3
4
  export class Selectable {
4
5
  constructor() {
@@ -42,7 +43,7 @@ export class Selectable {
42
43
  render() {
43
44
  var _a;
44
45
  const hasInfo = !!this.host.querySelector('[slot="info"]');
45
- return (h(Fragment, null, h("div", { class: "dso-selectable-input-wrapper" }, h("input", { type: this.type, id: this.getIdentifier(), value: this.value, name: this.name, "aria-invalid": (_a = this.invalid) === null || _a === void 0 ? void 0 : _a.toString(), "aria-describedby": hasInfo && this.infoFixed ? this.describedById : undefined, "aria-labelledBy": this.labelledById, disabled: this.disabled, required: this.required, checked: this.checked, onChange: (e) => this.dsoChange.emit(e), ref: (el) => (this.input = el) }), !this.labelledById ? (h("label", { htmlFor: this.getIdentifier() }, h("slot", null))) : (h("label", null))), hasInfo && (h(Fragment, null, !this.infoFixed && (h("dso-info-button", { active: this.infoActive, onDsoToggle: (e) => (this.infoActive = e.detail.active) })), h("dso-info", { id: hasInfo && this.infoFixed ? this.describedById : undefined, fixed: this.infoFixed, active: this.infoActive, onDsoClose: () => (this.infoActive = false) }, h("div", null, h("slot", { name: "info" })))))));
46
+ return (h(Fragment, null, h("div", { class: clsx("dso-selectable-container", { "has-info-button": hasInfo }) }, h("div", { class: "dso-selectable-input-wrapper" }, h("input", { type: this.type, id: this.getIdentifier(), value: this.value, name: this.name, "aria-invalid": (_a = this.invalid) === null || _a === void 0 ? void 0 : _a.toString(), "aria-describedby": hasInfo && this.infoFixed ? this.describedById : undefined, "aria-labelledBy": this.labelledById, disabled: this.disabled, required: this.required, checked: this.checked, onChange: (e) => this.dsoChange.emit(e), ref: (el) => (this.input = el) }), !this.labelledById ? (h("label", { htmlFor: this.getIdentifier() }, h("slot", null))) : (h("label", null))), hasInfo && (h(Fragment, null, !this.infoFixed && (h("dso-info-button", { active: this.infoActive, onDsoToggle: (e) => (this.infoActive = e.detail.active) }))))), hasInfo && (h("dso-info", { id: hasInfo && this.infoFixed ? this.describedById : undefined, fixed: this.infoFixed, active: this.infoActive, onDsoClose: () => (this.infoActive = false) }, h("div", null, h("slot", { name: "info" }))))));
46
47
  }
47
48
  getIdentifier() {
48
49
  var _a;
@@ -3,6 +3,7 @@ export * from "./components/annotation-output/annotation-output.interfaces";
3
3
  export * from "./components/autosuggest/autosuggest.interfaces";
4
4
  export * from "./components/card/card.interfaces";
5
5
  export * from "./components/date-picker/date-picker.interfaces";
6
+ export * from "./components/expandable/expandable.interfaces";
6
7
  export * from "./components/expandable-heading/expandable-heading.interfaces";
7
8
  export * from "./components/header/header.interfaces";
8
9
  export * from "./components/info-button/info-button.interfaces";
@@ -45,6 +45,7 @@ const DropdownMenu = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
45
45
  };
46
46
  this.open = false;
47
47
  this.dropdownAlign = "left";
48
+ this.dropdownOptionsOffset = 2;
48
49
  this.checkable = false;
49
50
  this.boundary = undefined;
50
51
  this.strategy = "auto";
@@ -57,6 +58,19 @@ const DropdownMenu = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
57
58
  placement: this.dropdownAlign === "right" ? "bottom-end" : "bottom-start",
58
59
  });
59
60
  }
61
+ watchOptionsOffset() {
62
+ var _a;
63
+ (_a = this.popper) === null || _a === void 0 ? void 0 : _a.setOptions({
64
+ modifiers: [
65
+ {
66
+ name: "offset",
67
+ options: {
68
+ offset: [0, this.dropdownOptionsOffset],
69
+ },
70
+ },
71
+ ],
72
+ });
73
+ }
60
74
  watchStrategy() {
61
75
  this.setStrategy();
62
76
  }
@@ -129,7 +143,7 @@ const DropdownMenu = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
129
143
  {
130
144
  name: "offset",
131
145
  options: {
132
- offset: [0, 2], // 2px margin between button and options
146
+ offset: [0, this.dropdownOptionsOffset],
133
147
  },
134
148
  },
135
149
  {
@@ -200,12 +214,14 @@ const DropdownMenu = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
200
214
  get host() { return this; }
201
215
  static get watchers() { return {
202
216
  "dropdownAlign": ["watchPosition"],
217
+ "dropdownOptionsOffset": ["watchOptionsOffset"],
203
218
  "strategy": ["watchStrategy"]
204
219
  }; }
205
220
  static get style() { return dropdownMenuCss; }
206
221
  }, [1, "dso-dropdown-menu", {
207
222
  "open": [1540],
208
223
  "dropdownAlign": [1, "dropdown-align"],
224
+ "dropdownOptionsOffset": [2, "dropdown-options-offset"],
209
225
  "checkable": [4],
210
226
  "boundary": [1],
211
227
  "strategy": [1]