@operato/property-editor 1.0.19 → 1.0.22

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ### [1.0.22](https://github.com/hatiolab/operato/compare/v1.0.21...v1.0.22) (2022-09-18)
7
+
8
+ **Note:** Version bump only for package @operato/property-editor
9
+
10
+
11
+
12
+
13
+
14
+ ### [1.0.20](https://github.com/hatiolab/operato/compare/v1.0.19...v1.0.20) (2022-09-16)
15
+
16
+ **Note:** Version bump only for package @operato/property-editor
17
+
18
+
19
+
20
+
21
+
6
22
  ### [1.0.19](https://github.com/hatiolab/operato/compare/v1.0.18...v1.0.19) (2022-09-15)
7
23
 
8
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@operato/property-editor",
3
- "version": "1.0.19",
3
+ "version": "1.0.22",
4
4
  "description": "Webcomponent for property-editor following open-wc recommendations",
5
5
  "author": "heartyoh",
6
6
  "license": "MIT",
@@ -155,9 +155,9 @@
155
155
  "storybook:build": "tsc && npm run analyze -- --exclude dist && build-storybook"
156
156
  },
157
157
  "dependencies": {
158
- "@operato/help": "^1.0.17",
158
+ "@operato/help": "^1.0.22",
159
159
  "@operato/i18n": "^1.0.6",
160
- "@operato/input": "^1.0.17",
160
+ "@operato/input": "^1.0.20",
161
161
  "@operato/popup": "^1.0.6",
162
162
  "lit": "^2.2.7",
163
163
  "lodash-es": "^4.17.21"
@@ -199,5 +199,5 @@
199
199
  "prettier --write"
200
200
  ]
201
201
  },
202
- "gitHead": "5d168ecbcd3a6a0b8e3e430d044708552e509315"
202
+ "gitHead": "46518e9f9a36669321e716a4c0b4175683abc700"
203
203
  }
@@ -1,7 +0,0 @@
1
- import '@operato/input/ox-input-unit.js';
2
- import { OxPropertyEditor } from './ox-property-editor.js';
3
- import { PropertySpec } from './types.js';
4
- export declare class OxPropertyEditorNumberUnit extends OxPropertyEditor {
5
- makeup(v: string): number;
6
- editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
7
- }
@@ -1,30 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import '@operato/input/ox-input-unit.js';
3
- import { html } from 'lit';
4
- import { customElement } from 'lit/decorators.js';
5
- import { OxPropertyEditor } from './ox-property-editor.js';
6
- let OxPropertyEditorNumberUnit = class OxPropertyEditorNumberUnit extends OxPropertyEditor {
7
- makeup(v) {
8
- return Number(v);
9
- }
10
- editorTemplate(value, spec) {
11
- const { step, min, max, unit } = spec.property || {};
12
- return html `
13
- <ox-input-unit
14
- id="editor"
15
- type="number"
16
- placeholder=${spec.placeholder || ''}
17
- std-unit=${unit}
18
- .value=${value}
19
- .step=${step}
20
- .min=${min}
21
- .max=${max}
22
- ></ox-input-unit>
23
- `;
24
- }
25
- };
26
- OxPropertyEditorNumberUnit = __decorate([
27
- customElement('ox-property-editor-number-unit')
28
- ], OxPropertyEditorNumberUnit);
29
- export { OxPropertyEditorNumberUnit };
30
- //# sourceMappingURL=ox-property-editor-number-unit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ox-property-editor-number-unit.js","sourceRoot":"","sources":["../../src/ox-property-editor-number-unit.ts"],"names":[],"mappings":";AAAA,OAAO,iCAAiC,CAAA;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAInD,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,gBAAgB;IACrD,MAAM,CAAC,CAAS;QACvB,OAAO,MAAM,CAAC,CAAC,CAAC,CAAA;IAClB,CAAC;IAED,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAA;QAEpD,OAAO,IAAI,CAAA;;;;sBAIO,IAAI,CAAC,WAAW,IAAI,EAAE;mBACzB,IAAI;iBACN,KAAK;gBACN,IAAI;eACL,GAAG;eACH,GAAG;;KAEb,CAAA;IACH,CAAC;CACF,CAAA;AArBY,0BAA0B;IADtC,aAAa,CAAC,gCAAgC,CAAC;GACnC,0BAA0B,CAqBtC;SArBY,0BAA0B","sourcesContent":["import '@operato/input/ox-input-unit.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-number-unit')\nexport class OxPropertyEditorNumberUnit extends OxPropertyEditor {\n override makeup(v: string) {\n return Number(v)\n }\n\n editorTemplate(value: any, spec: PropertySpec) {\n const { step, min, max, unit } = spec.property || {}\n\n return html`\n <ox-input-unit\n id=\"editor\"\n type=\"number\"\n placeholder=${spec.placeholder || ''}\n std-unit=${unit}\n .value=${value}\n .step=${step}\n .min=${min}\n .max=${max}\n ></ox-input-unit>\n `\n }\n}\n"]}