@omegagrid/statusbar 0.6.59 → 0.6.61

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.
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE7D,eAAe;IACd,gBAAgB,EAAE,EAAE;IACpB,GAAG,aAAa;CAChB,CAAA"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE7D,eAAe;IACd,gBAAgB,EAAE,EAAE;IACpB,GAAG,aAAa;CAChB,CAAA","sourcesContent":["import { constants as coreConstants } from '@omegagrid/core';\n\nexport default {\n\tSTATUSBAR_HEIGHT: 22,\n\t...coreConstants\n}"]}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC","sourcesContent":["export * from './ui';\nexport * from './types';"]}
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import { ComponentId } from \"@omegagrid/core\";\n\nexport type StatusbarItemType = 'button'|'custom';\n\nexport type StatusbarItem = {\n\tid?: ComponentId,\n\ttype: StatusbarItemType,\n\ticon?: string,\n\ttext?: string,\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC","sourcesContent":["export * from './statusbar';"]}
@@ -1 +1 @@
1
- {"version":3,"file":"statusbar.js","sourceRoot":"","sources":["../../src/ui/statusbar.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAGnC,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IAAlC;;QAgBE,eAAU,GAAG,IAAI,GAAG,EAAuB,CAAC;QAMpD,WAAM,GAAG,GAAG,EAAE,CAAC,IAAI,CAAA;;KAEf,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,QAAQ;YAClD,CAAC,CAAC,IAAI,CAAA,sCAAsC,IAAI,CAAC,IAAI,WAAW,IAAI,CAAC,IAAI,0CAA0C;YACnH,CAAC,CAAC,IAAI,CAAA,4BAA4B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CACvE;;;;;;KAMC,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,QAAQ;YACnD,CAAC,CAAC,IAAI,CAAA,sCAAsC,IAAI,CAAC,IAAI,WAAW,IAAI,CAAC,IAAI,0CAA0C;YACnH,CAAC,CAAC,IAAI,CAAA,4BAA4B,IAAI,CAAC,eAAe,CAAC,IAAI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CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,QAAQ;YACnD,CAAC,CAAC,IAAI,CAAA,sCAAsC,IAAI,CAAC,IAAI,WAAW,IAAI,CAAC,IAAI,0CAA0C;YACnH,CAAC,CAAC,IAAI,CAAA,4BAA4B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CACvE;;EAEF,CAAC;IAEH,CAAC;IAtBA,MAAM;QACL,OAAO;IACR,CAAC;;AAlBM,gBAAM,GAAG,CAAC,KAAK,CAAC,AAAV,CAAW;AAGxB;IADC,QAAQ,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,CAAC;4CACG;AAG3B;IADC,QAAQ,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,CAAC;6CACI;AAG5B;IADC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;kDACS;AAGlC;IADC,QAAQ,CAAC,aAAa,CAAC;mDACS;AAdrB,SAAS;IADrB,aAAa,CAAC,cAAc,CAAC;GACjB,SAAS,CAwCrB","sourcesContent":["import { ComponentFactory, Layout } from '@omegagrid/core';\nimport { LitElement, html } from 'lit';\nimport { customElement, property, queryAll } from 'lit/decorators.js';\nimport { map } from 'lit/directives/map.js';\nimport { StatusbarItem } from '../types';\nimport { style } from './statusbar.style';\n\n@customElement('og-statusbar')\nexport class Statusbar extends LitElement implements Layout {\n\n\tstatic styles = [style];\n\n\t@property({type: Array})\n\tleftItems: StatusbarItem[];\n\n\t@property({type: Array})\n\trightItems: StatusbarItem[];\n\n\t@property({type: Object})\n\tcreateComponent: ComponentFactory;\n\n\t@queryAll('.itemcustom')\n\tcustomComponents: HTMLDivElement;\n\n\tprivate components = new Map<string, HTMLElement>();\n\n\tlayout() {\n\t\t//empty\n\t}\n\t\n\trender = () => html`\n\t\t<div id=\"left\">\n\t\t\t${map(this.leftItems, item => item.type == 'button'\n\t\t\t\t? html`<div class=\"item\"><og-button icon=\"${item.icon}\" text=\"${item.text}\" color=\"transparent\"></og-button></div>`\n\t\t\t\t: html`<div class=\"item custom\">${this.createComponent(item.id)}</div>`\n\t\t\t)}\n\t\t</div>\n\n\t\t<div id=\"center\"></div>\n\n\t\t<div id=\"right\">\n\t\t\t${map(this.rightItems, item => item.type == 'button'\n\t\t\t\t? html`<div class=\"item\"><og-button icon=\"${item.icon}\" text=\"${item.text}\" color=\"transparent\"></og-button></div>`\n\t\t\t\t: html`<div class=\"item custom\">${this.createComponent(item.id)}</div>`\n\t\t\t)}\n\t\t</div>\n\t`;\n\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"statusbar.style.js","sourceRoot":"","sources":["../../src/ui/statusbar.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA;;;;;;;YAOZ,SAAS,CAAC,gBAAgB;iBACrB,SAAS,CAAC,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC1C,CAAC"}
1
+ {"version":3,"file":"statusbar.style.js","sourceRoot":"","sources":["../../src/ui/statusbar.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA;;;;;;;YAOZ,SAAS,CAAC,gBAAgB;iBACrB,SAAS,CAAC,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC1C,CAAC","sourcesContent":["import { css } from 'lit';\nimport constants from '../constants';\n\nexport const style = css`\n\t* {\n\t\tbox-sizing: border-box;\n\t}\n\n\t:host {\n\t\tdisplay: block;\n\t\theight: ${constants.STATUSBAR_HEIGHT}px;\n\t\tline-height: ${constants.STATUSBAR_HEIGHT}px;\n\t\tbackground-color: var(--og-accent-color-alpha-70);\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t}\n\n\t#right, #left {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t}\n\n\t#left {\n\t\tjustify-content: flex-start;\n\t\tflex: 0;\n\t}\n\n\t#center {\n\t\tflex: 1;\n\t}\n\n\t#right {\n\t\tflex: 0;\n\t\tjustify-content: flex-end;\n\t}\n\n\t.item {\n\t\theight: 100%;\n\t}\n\n\t.item > * {\n\t\tbox-sizing: border-box;\n\t\theight: 100%;\n\t\tcolor: #ffffff;\n\t\tpadding: 0 4px;\n\t}\n\n`;"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omegagrid/statusbar",
3
- "version": "0.6.59",
3
+ "version": "0.6.61",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Statusbar component",
6
6
  "main": "./dist/index.js",
@@ -27,8 +27,8 @@
27
27
  "_prepublish": "yarn test && yarn lint"
28
28
  },
29
29
  "dependencies": {
30
- "@omegagrid/core": "^0.6.59",
31
- "@omegagrid/tree": "^0.6.59",
30
+ "@omegagrid/core": "^0.6.61",
31
+ "@omegagrid/tree": "^0.6.61",
32
32
  "lit": "^3.1.1",
33
33
  "lit-html": "^3.1.1",
34
34
  "ts-debounce": "^4.0.0"