kempo-inventory 0.4.2 → 0.5.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.
package/kempo-config.json CHANGED
@@ -3,6 +3,9 @@
3
3
  "git": "https://github.com/dustinpoissant/kempo-inventory",
4
4
  "public-scope": "inventory",
5
5
  "schema": "./server/db/schema.js",
6
+ "suggestedPeers": [
7
+ { "name": "kempo-media", "reason": "Photos and other files on inventory items (brings kempo-files and kempo-thumbs with it)" }
8
+ ],
6
9
  "widgets": [
7
10
  {
8
11
  "key": "quantity",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kempo-inventory",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "description": "A basic inventory management system for kempo cms",
5
5
  "license": "MIT",
6
6
  "author": "Dustin Poissant <dustinpoissant@gmail.com>",
@@ -39,8 +39,8 @@
39
39
  "drizzle-orm": "^0.45.2"
40
40
  },
41
41
  "peerDependencies": {
42
- "kempo": ">=4.9.10",
43
- "kempo-ui": ">=0.7.0",
42
+ "kempo": ">=4.11.0",
43
+ "kempo-ui": ">=1.0.0",
44
44
  "kempo-media": ">=0.3.0",
45
45
  "kempo-files": ">=0.1.3",
46
46
  "kempo-thumbs": ">=0.1.3"
@@ -78,7 +78,7 @@ const mountItemPage = ({ $container, item = null, fields = [], defaults = {}, as
78
78
  $actions.className = 'd-f mt-lg';
79
79
  $actions.style.cssText = 'gap: var(--spacer_h); flex-wrap: wrap;';
80
80
  const draw = () => render(html`
81
- <button type="button" class="btn success" id="saveItem" ?disabled=${saving} @click=${() => submit(false)}>${saving ? 'Saving…' : editing ? 'Save' : 'Create item'}</button>
81
+ <button type="button" class="btn success" id="saveItem" data-save ?disabled=${saving} @click=${() => submit(false)}>${saving ? 'Saving…' : editing ? 'Save' : 'Create item'}</button>
82
82
  ${editing ? '' : html`<button type="button" class="btn" id="saveAnother" ?disabled=${saving} @click=${() => submit(true)}>Create and add another</button>`}
83
83
  <button type="button" class="btn" id="cancelItem" ?disabled=${saving} @click=${cancel}>${cancelLabel}</button>`, $actions);
84
84
  draw();