@omegagrid/core 0.9.46 → 0.9.48

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/dist/constants.js CHANGED
@@ -18,7 +18,7 @@ export default {
18
18
  COLORPICKER_COLOR_SIZE: 16,
19
19
  DEFAULT_NUMBER_FORMAT: '#,0.#####',
20
20
  BUTTON_HEIGHT: 22,
21
- FONT_SIZE: 14,
21
+ FONT_SIZE: 12,
22
22
  FLOATING_WINDOW_MAX_WIDTH: 500
23
23
  };
24
24
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,oBAAoB,GAAG,SAAS,CAAC;AAEvC,eAAe;IACd,MAAM,EAAE,IAAI;IACZ,oBAAoB,EAAE,oBAAoB;IAC1C,sBAAsB,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;IAC/D,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,EAAE;IACf,iBAAiB,EAAE,EAAE;IACrB,aAAa,EAAE,EAAE;IACjB,gBAAgB,EAAE,EAAE;IACpB,uBAAuB,EAAE,EAAE;IAC3B,wBAAwB,EAAE,EAAE;IAC5B,qBAAqB,EAAE,GAAG;IAC1B,4BAA4B,EAAE,gCAAgC;IAC9D,cAAc,EAAE,CAAC;IACjB,gBAAgB,EAAE,EAAE;IACpB,sBAAsB,EAAE,EAAE;IAC1B,qBAAqB,EAAE,WAAW;IAClC,aAAa,EAAE,EAAE;IACjB,SAAS,EAAE,EAAE;IACb,yBAAyB,EAAE,GAAG;CAC9B,CAAA","sourcesContent":["import Color from 'color';\n\nconst DEFAULT_ACCENT_COLOR = '#00955d';\n\nexport default {\n\tPREFIX: 'og',\n\tDEFAULT_ACCENT_COLOR: DEFAULT_ACCENT_COLOR,\n\tDEFAULT_ACCENT_COLOR_2: Color(DEFAULT_ACCENT_COLOR).darken(0.6),\n\tSIZER_SIZE: 5,\n\tSLIDER_SIZE: 10,\n\tSLIDER_MIN_LENGTH: 30,\n\tEXPANDER_SIZE: 13,\n\tLIST_ITEM_HEIGHT: 22,\n\tLIST_RENDERING_TRESHOLD: 30,\n\tLIST_AUTOSCROLL_TRESHOLD: 30,\n\tLIST_AUTOSCROLL_DELAY: 100,\n\tDEFAULT_TEXT_HIGHLIGHT_COLOR: 'var(--og-text-highlight-color)',\n\tTOOLTIP_MARGIN: 8,\n\tMENU_ITEM_HEIGHT: 25,\n\tCOLORPICKER_COLOR_SIZE: 16,\n\tDEFAULT_NUMBER_FORMAT: '#,0.#####',\n\tBUTTON_HEIGHT: 22,\n\tFONT_SIZE: 14,\n\tFLOATING_WINDOW_MAX_WIDTH: 500\n}"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,oBAAoB,GAAG,SAAS,CAAC;AAEvC,eAAe;IACd,MAAM,EAAE,IAAI;IACZ,oBAAoB,EAAE,oBAAoB;IAC1C,sBAAsB,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;IAC/D,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,EAAE;IACf,iBAAiB,EAAE,EAAE;IACrB,aAAa,EAAE,EAAE;IACjB,gBAAgB,EAAE,EAAE;IACpB,uBAAuB,EAAE,EAAE;IAC3B,wBAAwB,EAAE,EAAE;IAC5B,qBAAqB,EAAE,GAAG;IAC1B,4BAA4B,EAAE,gCAAgC;IAC9D,cAAc,EAAE,CAAC;IACjB,gBAAgB,EAAE,EAAE;IACpB,sBAAsB,EAAE,EAAE;IAC1B,qBAAqB,EAAE,WAAW;IAClC,aAAa,EAAE,EAAE;IACjB,SAAS,EAAE,EAAE;IACb,yBAAyB,EAAE,GAAG;CAC9B,CAAA","sourcesContent":["import Color from 'color';\n\nconst DEFAULT_ACCENT_COLOR = '#00955d';\n\nexport default {\n\tPREFIX: 'og',\n\tDEFAULT_ACCENT_COLOR: DEFAULT_ACCENT_COLOR,\n\tDEFAULT_ACCENT_COLOR_2: Color(DEFAULT_ACCENT_COLOR).darken(0.6),\n\tSIZER_SIZE: 5,\n\tSLIDER_SIZE: 10,\n\tSLIDER_MIN_LENGTH: 30,\n\tEXPANDER_SIZE: 13,\n\tLIST_ITEM_HEIGHT: 22,\n\tLIST_RENDERING_TRESHOLD: 30,\n\tLIST_AUTOSCROLL_TRESHOLD: 30,\n\tLIST_AUTOSCROLL_DELAY: 100,\n\tDEFAULT_TEXT_HIGHLIGHT_COLOR: 'var(--og-text-highlight-color)',\n\tTOOLTIP_MARGIN: 8,\n\tMENU_ITEM_HEIGHT: 25,\n\tCOLORPICKER_COLOR_SIZE: 16,\n\tDEFAULT_NUMBER_FORMAT: '#,0.#####',\n\tBUTTON_HEIGHT: 22,\n\tFONT_SIZE: 12,\n\tFLOATING_WINDOW_MAX_WIDTH: 500\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"slider.style.d.ts","sourceRoot":"","sources":["../../src/ui/slider.style.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,yBAwDjB,CAAC"}
1
+ {"version":3,"file":"slider.style.d.ts","sourceRoot":"","sources":["../../src/ui/slider.style.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,yBAyDjB,CAAC"}
@@ -12,6 +12,7 @@ export const style = css `
12
12
  opacity: 0.8;
13
13
  transition: visibility 0s, opacity 0.1s linear;
14
14
  font-size: var(--og-font-size);
15
+ z-index: 100;
15
16
  }
16
17
 
17
18
  :host([hidden]) {
@@ -1 +1 @@
1
- {"version":3,"file":"slider.style.js","sourceRoot":"","sources":["../../src/ui/slider.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;WAyBb,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;YAgB/B,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;CAe3C,CAAC","sourcesContent":["import { css, unsafeCSS } 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\tbackground-color: var(--og-slider-background-color);\n\t\tposition: relative;\n\t\topacity: 0.8;\n\t\ttransition: visibility 0s, opacity 0.1s linear;\n\t\tfont-size: var(--og-font-size);\n\t}\n\n\t:host([hidden]) {\n\t\tvisibility: hidden;\n\t\topacity: 0;\n\t\ttransition: opacity 1s linear, visibility 0s 1s;\n\t}\n\n\t:host([direction=\"vertical\"]) {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: 0;\n\t\tbottom: 0;\n\t\twidth: ${unsafeCSS(constants.SLIDER_SIZE)}px\n\t}\n\n\t:host([direction=\"vertical\"]) .bar {\n\t\twidth: 100%;\n\t}\n\n\t:host([direction=\"horizontal\"]) .bar {\n\t\theight: 100%;\n\t}\n\n\t:host([direction=\"horizontal\"]) {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\tleft: 0;\n\t\tbottom: 0;\n\t\theight: ${unsafeCSS(constants.SLIDER_SIZE)}px\n\t}\n\n\t.bar {\n\t\tposition: absolute;\n\t}\n\n\t.bar-inner {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground-color: var(--og-slider-bar-color);\n\t\t_border: 1px solid #8B8B8B;\n\t\ttext-align: center;\n\t\tborder-radius: 6px;\n\t}\n`;\n"]}
1
+ {"version":3,"file":"slider.style.js","sourceRoot":"","sources":["../../src/ui/slider.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;WA0Bb,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;YAgB/B,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;CAe3C,CAAC","sourcesContent":["import { css, unsafeCSS } 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\tbackground-color: var(--og-slider-background-color);\n\t\tposition: relative;\n\t\topacity: 0.8;\n\t\ttransition: visibility 0s, opacity 0.1s linear;\n\t\tfont-size: var(--og-font-size);\n\t\tz-index: 100;\n\t}\n\n\t:host([hidden]) {\n\t\tvisibility: hidden;\n\t\topacity: 0;\n\t\ttransition: opacity 1s linear, visibility 0s 1s;\n\t}\n\n\t:host([direction=\"vertical\"]) {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: 0;\n\t\tbottom: 0;\n\t\twidth: ${unsafeCSS(constants.SLIDER_SIZE)}px\n\t}\n\n\t:host([direction=\"vertical\"]) .bar {\n\t\twidth: 100%;\n\t}\n\n\t:host([direction=\"horizontal\"]) .bar {\n\t\theight: 100%;\n\t}\n\n\t:host([direction=\"horizontal\"]) {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\tleft: 0;\n\t\tbottom: 0;\n\t\theight: ${unsafeCSS(constants.SLIDER_SIZE)}px\n\t}\n\n\t.bar {\n\t\tposition: absolute;\n\t}\n\n\t.bar-inner {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground-color: var(--og-slider-bar-color);\n\t\t_border: 1px solid #8B8B8B;\n\t\ttext-align: center;\n\t\tborder-radius: 6px;\n\t}\n`;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omegagrid/core",
3
- "version": "0.9.46",
3
+ "version": "0.9.48",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Core components",
6
6
  "main": "./dist/index.js",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@fortawesome/fontawesome-svg-core": "^7.0.1",
39
- "@omegagrid/localize": "^0.9.46",
39
+ "@omegagrid/localize": "^0.9.48",
40
40
  "color": "^4.2.3",
41
41
  "date-fns": "^3.2.0",
42
42
  "lit": "^3.1.1",