@omegagrid/core 0.6.131 → 0.6.133

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":"options.d.ts","sourceRoot":"","sources":["../../src/common/options.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAuB,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAKvF,MAAM,MAAM,OAAO,GAAG;IACrB,sCAAsC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,sBAAsB,CAAC,EAAE,gBAAgB,CAAC;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,CAAA;CACX,CAAA;AAID,eAAO,MAAM,iBAAiB,YAAa,OAAO,CAAC,OAAO,CAAC,SAG1D,CAAA;AAED,eAAO,MAAM,iBAAiB,QAAO,OAAO,CAAC,OAAO,CAUlC,CAAC;AAEnB,wBAAgB,WAAW,CAAC,CAAC,SAAS,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,WAAW,GAAE,CAAQ,GAAG,CAAC,CAK7F"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/common/options.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAuB,gBAAgB,EAAE,qBAAqB,EAAiB,MAAM,SAAS,CAAC;AAKtG,MAAM,MAAM,OAAO,GAAG;IACrB,sCAAsC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,sBAAsB,CAAC,EAAE,gBAAgB,CAAC;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,CAAA;CACX,CAAA;AAID,eAAO,MAAM,iBAAiB,YAAa,OAAO,CAAC,OAAO,CAAC,SAG1D,CAAA;AAED,eAAO,MAAM,iBAAiB,QAAO,OAAO,CAAC,OAAO,CAUlC,CAAC;AAEnB,wBAAgB,WAAW,CAAC,CAAC,SAAS,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,WAAW,GAAE,CAAQ,GAAG,CAAC,CAK7F"}
@@ -1,5 +1,5 @@
1
1
  import constants from "../constants";
2
- import { createDateFormatter } from "./dates";
2
+ import { createDateFormatter, getDateFormat } from "./dates";
3
3
  import { getLocalDecimalSeparator } from "./numbers";
4
4
  import { mergeDeep } from "./utils";
5
5
  import { getLocale, setLocale } from "@omegagrid/localize";
@@ -12,7 +12,7 @@ export const setDefaultOptions = (options) => {
12
12
  export const getDefaultOptions = () => mergeDeep({
13
13
  locale: getLocale(),
14
14
  formatLocale: getLocale(),
15
- dateFormat: 'yyyy-MM-dd',
15
+ dateFormat: getDateFormat(),
16
16
  fontSize: constants.FONT_SIZE,
17
17
  systemDecimalSeparator: getLocalDecimalSeparator(getLocale()),
18
18
  user: {
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/common/options.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,EAAE,mBAAmB,EAA2C,MAAM,SAAS,CAAC;AACvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAc3D,IAAI,cAAc,GAAqB,EAAE,CAAC;AAE1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAAyB,EAAE,EAAE;IAC9D,IAAI,OAAO,CAAC,MAAM;QAAE,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9C,cAAc,GAAG,OAAO,CAAC;AAC1B,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAqB,EAAE,CAAC,SAAS,CAAC;IAClE,MAAM,EAAE,SAAS,EAAE;IACnB,YAAY,EAAE,SAAS,EAAE;IACzB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,SAAS,CAAC,SAAS;IAC7B,sBAAsB,EAAE,wBAAwB,CAAC,SAAS,EAAE,CAAC;IAC7D,IAAI,EAAE;QACL,EAAE,EAAE,GAAG;QACP,IAAI,EAAE,WAAW;KACjB;CACD,EAAE,cAAc,CAAC,CAAC;AAEnB,MAAM,UAAU,WAAW,CAA6B,OAAW,EAAE,cAAiB,IAAI;IACzF,MAAM,IAAI,GAAG,SAAS,CAAC,EAAE,EAAE,iBAAiB,EAAO,EAAE,WAAW,EAAE,OAAO,CAAM,CAAC;IAChF,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,IAAI,mBAAmB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7F,iEAAiE;IACjE,OAAO,IAAI,CAAC;AACb,CAAC","sourcesContent":["import constants from \"../constants\";\nimport { DecimalSeparator, User } from \"../types\";\nimport { createDateFormatter, DateFormatString, DateFormatterFunction } from \"./dates\";\nimport { getLocalDecimalSeparator } from \"./numbers\";\nimport { mergeDeep } from \"./utils\";\nimport { getLocale, setLocale } from \"@omegagrid/localize\";\n\nexport type Options = {\n\t/** formatting, numbers, dates, etc */\n\tformatLocale?: string,\n\t/** translation */\n\tlocale?: string,\n\tdateFormat?: DateFormatString,\n\tdateFormatter?: DateFormatterFunction,\n\tsystemDecimalSeparator?: DecimalSeparator,\n\tfontSize?: number,\n\tuser?: User\n}\n\nlet defaultOptions: Partial<Options> = {};\n\nexport const setDefaultOptions = (options: Partial<Options>) => {\n\tif (options.locale) setLocale(options.locale);\n\tdefaultOptions = options;\n}\n\nexport const getDefaultOptions = (): Partial<Options> => mergeDeep({\n\tlocale: getLocale(),\n\tformatLocale: getLocale(),\n\tdateFormat: 'yyyy-MM-dd',\n\tfontSize: constants.FONT_SIZE,\n\tsystemDecimalSeparator: getLocalDecimalSeparator(getLocale()),\n\tuser: {\n\t\tid: '0',\n\t\tname: 'Anonymous'\n\t}\n}, defaultOptions);\n\nexport function initOptions<T extends Partial<Options>>(options?: T, origOptions: T = null): T {\n\tconst opts = mergeDeep({}, getDefaultOptions() as T, origOptions, options) as T;\n\topts.dateFormatter = opts.dateFormatter || createDateFormatter(opts.locale, opts.dateFormat);\n\t//console.log(opts.dateFormatter('31.12.2024', opts.dateFormat));\n\treturn opts;\n}"]}
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/common/options.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,EAAE,mBAAmB,EAA2C,aAAa,EAAE,MAAM,SAAS,CAAC;AACtG,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAc3D,IAAI,cAAc,GAAqB,EAAE,CAAC;AAE1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAAyB,EAAE,EAAE;IAC9D,IAAI,OAAO,CAAC,MAAM;QAAE,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9C,cAAc,GAAG,OAAO,CAAC;AAC1B,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAqB,EAAE,CAAC,SAAS,CAAC;IAClE,MAAM,EAAE,SAAS,EAAE;IACnB,YAAY,EAAE,SAAS,EAAE;IACzB,UAAU,EAAE,aAAa,EAAE;IAC3B,QAAQ,EAAE,SAAS,CAAC,SAAS;IAC7B,sBAAsB,EAAE,wBAAwB,CAAC,SAAS,EAAE,CAAC;IAC7D,IAAI,EAAE;QACL,EAAE,EAAE,GAAG;QACP,IAAI,EAAE,WAAW;KACjB;CACD,EAAE,cAAc,CAAC,CAAC;AAEnB,MAAM,UAAU,WAAW,CAA6B,OAAW,EAAE,cAAiB,IAAI;IACzF,MAAM,IAAI,GAAG,SAAS,CAAC,EAAE,EAAE,iBAAiB,EAAO,EAAE,WAAW,EAAE,OAAO,CAAM,CAAC;IAChF,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,IAAI,mBAAmB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7F,iEAAiE;IACjE,OAAO,IAAI,CAAC;AACb,CAAC","sourcesContent":["import constants from \"../constants\";\nimport { DecimalSeparator, User } from \"../types\";\nimport { createDateFormatter, DateFormatString, DateFormatterFunction, getDateFormat } from \"./dates\";\nimport { getLocalDecimalSeparator } from \"./numbers\";\nimport { mergeDeep } from \"./utils\";\nimport { getLocale, setLocale } from \"@omegagrid/localize\";\n\nexport type Options = {\n\t/** formatting, numbers, dates, etc */\n\tformatLocale?: string,\n\t/** translation */\n\tlocale?: string,\n\tdateFormat?: DateFormatString,\n\tdateFormatter?: DateFormatterFunction,\n\tsystemDecimalSeparator?: DecimalSeparator,\n\tfontSize?: number,\n\tuser?: User\n}\n\nlet defaultOptions: Partial<Options> = {};\n\nexport const setDefaultOptions = (options: Partial<Options>) => {\n\tif (options.locale) setLocale(options.locale);\n\tdefaultOptions = options;\n}\n\nexport const getDefaultOptions = (): Partial<Options> => mergeDeep({\n\tlocale: getLocale(),\n\tformatLocale: getLocale(),\n\tdateFormat: getDateFormat(),\n\tfontSize: constants.FONT_SIZE,\n\tsystemDecimalSeparator: getLocalDecimalSeparator(getLocale()),\n\tuser: {\n\t\tid: '0',\n\t\tname: 'Anonymous'\n\t}\n}, defaultOptions);\n\nexport function initOptions<T extends Partial<Options>>(options?: T, origOptions: T = null): T {\n\tconst opts = mergeDeep({}, getDefaultOptions() as T, origOptions, options) as T;\n\topts.dateFormatter = opts.dateFormatter || createDateFormatter(opts.locale, opts.dateFormat);\n\t//console.log(opts.dateFormatter('31.12.2024', opts.dateFormat));\n\treturn opts;\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"numericInput.style.d.ts","sourceRoot":"","sources":["../../src/ui/numericInput.style.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,2BAkBhB,CAAC"}
1
+ {"version":3,"file":"numericInput.style.d.ts","sourceRoot":"","sources":["../../src/ui/numericInput.style.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,2BAuBhB,CAAC"}
@@ -3,6 +3,7 @@ import { style as inputStyle } from './input.style';
3
3
  export const style = [inputStyle, css `
4
4
  :host {
5
5
  text-align: right;
6
+ overflow: hidden;
6
7
  }
7
8
 
8
9
  :host > div {
@@ -17,6 +18,10 @@ export const style = [inputStyle, css `
17
18
  border: none;
18
19
  text-align: center;
19
20
  width: 16px;
21
+ padding-left: 0;
22
+ padding-right: 0;
23
+ border-radius: 0;
24
+ user-select: none;
20
25
  }
21
26
  `];
22
27
  //# sourceMappingURL=numericInput.style.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"numericInput.style.js","sourceRoot":"","sources":["../../src/ui/numericInput.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,UAAU,EAAE,GAAG,CAAA;;;;;;;;;;;;;;;;;;CAkBpC,CAAC,CAAC","sourcesContent":["import { css } from 'lit';\nimport { style as inputStyle } from './input.style';\n\nexport const style = [inputStyle, css`\n\t:host {\n\t\ttext-align: right;\n\t}\n\n\t:host > div {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\ttext-align: inherit;\n\t}\n\n\tog-button {\n\t\tborder: none;\n\t\ttext-align: center;\n\t\twidth: 16px;\n\t}\n`];\n"]}
1
+ {"version":3,"file":"numericInput.style.js","sourceRoot":"","sources":["../../src/ui/numericInput.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,UAAU,EAAE,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;CAuBpC,CAAC,CAAC","sourcesContent":["import { css } from 'lit';\nimport { style as inputStyle } from './input.style';\n\nexport const style = [inputStyle, css`\n\t:host {\n\t\ttext-align: right;\n\t\toverflow: hidden;\n\t}\n\n\t:host > div {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\ttext-align: inherit;\n\t}\n\n\tog-button {\n\t\tborder: none;\n\t\ttext-align: center;\n\t\twidth: 16px;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t\tborder-radius: 0;\n\t\tuser-select: none;\n\t}\n`];\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omegagrid/core",
3
- "version": "0.6.131",
3
+ "version": "0.6.133",
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": "6.4.2",
39
- "@omegagrid/localize": "^0.6.131",
39
+ "@omegagrid/localize": "^0.6.133",
40
40
  "@riovir/wc-fontawesome": "^0.1.9",
41
41
  "color": "^4.2.3",
42
42
  "date-fns": "^3.2.0",