saasufy-components 3.15.1 → 3.15.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/README.md CHANGED
@@ -315,7 +315,8 @@ OR (with confirmation step)
315
315
  **Attributes**
316
316
 
317
317
  - `model-id` (required): Specifies the ID of the resource to delete from the parent collection when this component is activated. This can be achieved by invoking either the `deleteItem()` or `confirmDeleteItem()` function from inside an event handler. The example above shows how to achieve deletion via the `onclick` event. You can either invoke `deleteItem()` to delete the resource immediately or you can invoke `confirmDeleteItem()` to require additional confirmation prior to deletion.
318
- - `confirm-message`: The confirmation message to show the user when this component's `confirmDeleteItem()` function is invoked,
318
+ - `onclick` (required): The logic to execute to delete the item. Should be either `deleteItem()` or `confirmDeleteItem()`.
319
+ - `confirm-message`: The confirmation message to show the user when this component's `confirmDeleteItem()` function is invoked.
319
320
 
320
321
  If `confirmDeleteItem()` is used, then the parent `collection-browser` must have a `confirm-modal` element slotted into it as shown here:
321
322
 
package/overlay-modal.js CHANGED
@@ -39,6 +39,7 @@ class OverlayModal extends HTMLElement {
39
39
  .modal-title-bar {
40
40
  display: var(--title-bar-display, flex);
41
41
  justify-content: space-between;
42
+ align-items: center;
42
43
  width: 100%;
43
44
  padding: 10px;
44
45
  color: #ffffff;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saasufy-components",
3
- "version": "3.15.1",
3
+ "version": "3.15.2",
4
4
  "description": "Components for Saasufy.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/styles.css CHANGED
@@ -178,6 +178,19 @@ collection-browser > [slot=next-page] {
178
178
  width: auto;
179
179
  }
180
180
 
181
+ .confirm-modal-content {
182
+ display: flex;
183
+ flex-direction: column;
184
+ align-items: center;
185
+ gap: 20px;
186
+ padding: 20px;
187
+ }
188
+
189
+ .confirm-modal-buttons-container {
190
+ display: flex;
191
+ gap: 5px;
192
+ }
193
+
181
194
  .container-vertical {
182
195
  display: flex;
183
196
  flex-direction: column;