@dile/lib 1.0.31 → 1.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/lib",
3
- "version": "1.0.31",
3
+ "version": "1.1.1",
4
4
  "description": "Common App libraries, mixins and helpers",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -23,10 +23,10 @@
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
25
  "@dile/icons": "^2.5.1",
26
- "@dile/ui": "^3.6.4",
26
+ "@dile/ui": "^3.6.5",
27
27
  "@lit-labs/router": "^0.1.4",
28
28
  "@reduxjs/toolkit": "^2.5.1",
29
29
  "lit": "^2.7.0 || ^3.0.0"
30
30
  },
31
- "gitHead": "6e81c1423870da7d209a2cc421c96fd63008bdb8"
31
+ "gitHead": "ee029c01956874746ff8c78f02f4868ef4ce4875"
32
32
  }
@@ -87,7 +87,14 @@ export const DileAppModalFeedback = (store) => class extends DileState(store)(Li
87
87
  : ''
88
88
  }
89
89
 
90
- <div class="message">${this.incomingMsg?.message}</div>
90
+ <div class="message">
91
+ ${this.incomingMsg?.message}
92
+ ${this.incomingMsg?.items?.length
93
+ ? html`<ul class="items">
94
+ ${this.incomingMsg.items.map(item => html`<li>${item}</li>`)}
95
+ </ul>`
96
+ : ''}
97
+ </div>
91
98
  </div>
92
99
  <div class="actions">
93
100
  <dile-button class="cancel" @click="${this.close}">${this.incomingMsg?.label}</dile-button>
@@ -49,13 +49,14 @@ export const DileFeedback = (store) => (Superclass) => class extends Superclass
49
49
  stopLoading() {
50
50
  store.dispatch(stopLoading());
51
51
  }
52
- modalFeedback(msg, label = "Close", icon = null) {
52
+ modalFeedback(msg, label = "Close", icon = null, items = []) {
53
53
  let selectedIcon = AVAILABLE_ICONS.find(item => item.name == icon);
54
54
  store.dispatch(modalMessage({
55
55
  message: msg,
56
56
  label,
57
57
  icon: selectedIcon?.icon,
58
- iconClass: selectedIcon?.iconClass
58
+ iconClass: selectedIcon?.iconClass,
59
+ items,
59
60
  }));
60
61
  }
61
62
 
@@ -5,6 +5,7 @@ const MODAL_DEFAULT_MESSAGE = {
5
5
  icon: null,
6
6
  iconClass: null,
7
7
  label: 'Close',
8
+ items: [],
8
9
  }
9
10
 
10
11
  export const feedbackSlice = createSlice({