@operato/board 2.0.0-alpha.4 → 2.0.0-alpha.41
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 +247 -0
- package/dist/src/modeller/component-toolbar/component-menu.js +8 -4
- package/dist/src/modeller/component-toolbar/component-menu.js.map +1 -1
- package/dist/src/modeller/property-sidebar/shapes/shapes.js +11 -0
- package/dist/src/modeller/property-sidebar/shapes/shapes.js.map +1 -1
- package/dist/src/modeller/property-sidebar/specifics/specifics.js +4 -1
- package/dist/src/modeller/property-sidebar/specifics/specifics.js.map +1 -1
- package/dist/src/ox-board-list.js +1 -3
- package/dist/src/ox-board-list.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +24 -24
- package/src/modeller/component-toolbar/component-menu.ts +8 -5
- package/src/modeller/property-sidebar/shapes/shapes.ts +11 -0
- package/src/modeller/property-sidebar/specifics/specifics.ts +5 -1
- package/src/ox-board-list.ts +1 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/board",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.41",
|
|
4
4
|
"description": "Webcomponent for board following open-wc recommendations",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -92,18 +92,18 @@
|
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
94
|
"@open-wc/scoped-elements": "^2.0.0-next.6",
|
|
95
|
-
"@operato/app": "^2.0.0-alpha.
|
|
96
|
-
"@operato/data-grist": "^2.0.0-alpha.
|
|
97
|
-
"@operato/font": "^2.0.0-alpha.
|
|
98
|
-
"@operato/graphql": "^2.0.0-alpha.
|
|
99
|
-
"@operato/i18n": "^2.0.0-alpha.
|
|
100
|
-
"@operato/input": "^2.0.0-alpha.
|
|
101
|
-
"@operato/layout": "^2.0.0-alpha.
|
|
102
|
-
"@operato/markdown": "^2.0.0-alpha.
|
|
103
|
-
"@operato/popup": "^2.0.0-alpha.
|
|
104
|
-
"@operato/property-editor": "^2.0.0-alpha.
|
|
105
|
-
"@operato/styles": "^2.0.0-alpha.
|
|
106
|
-
"@operato/utils": "^2.0.0-alpha.
|
|
95
|
+
"@operato/app": "^2.0.0-alpha.37",
|
|
96
|
+
"@operato/data-grist": "^2.0.0-alpha.35",
|
|
97
|
+
"@operato/font": "^2.0.0-alpha.37",
|
|
98
|
+
"@operato/graphql": "^2.0.0-alpha.28",
|
|
99
|
+
"@operato/i18n": "^2.0.0-alpha.28",
|
|
100
|
+
"@operato/input": "^2.0.0-alpha.35",
|
|
101
|
+
"@operato/layout": "^2.0.0-alpha.37",
|
|
102
|
+
"@operato/markdown": "^2.0.0-alpha.28",
|
|
103
|
+
"@operato/popup": "^2.0.0-alpha.35",
|
|
104
|
+
"@operato/property-editor": "^2.0.0-alpha.37",
|
|
105
|
+
"@operato/styles": "^2.0.0-alpha.28",
|
|
106
|
+
"@operato/utils": "^2.0.0-alpha.35",
|
|
107
107
|
"@polymer/paper-dropdown-menu": "^3.2.0",
|
|
108
108
|
"@types/file-saver": "^2.0.4",
|
|
109
109
|
"@types/sortablejs": "^1.10.7",
|
|
@@ -114,28 +114,28 @@
|
|
|
114
114
|
"sortablejs": "^1.14.0"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
|
-
"@custom-elements-manifest/analyzer": "^0.
|
|
117
|
+
"@custom-elements-manifest/analyzer": "^0.9.2",
|
|
118
118
|
"@hatiolab/prettier-config": "^1.0.0",
|
|
119
119
|
"@hatiolab/things-scene": "^3.2.0",
|
|
120
120
|
"@material/mwc-fab": "^0.27.0",
|
|
121
121
|
"@material/mwc-icon": "^0.27.0",
|
|
122
|
-
"@open-wc/eslint-config": "^
|
|
122
|
+
"@open-wc/eslint-config": "^12.0.3",
|
|
123
123
|
"@open-wc/testing": "^3.1.6",
|
|
124
124
|
"@rollup/plugin-image": "^2.1.1",
|
|
125
125
|
"@rollup/plugin-json": "^4.1.0",
|
|
126
126
|
"@types/lodash-es": "^4.17.6",
|
|
127
127
|
"@types/w3c-web-usb": "^1.0.5",
|
|
128
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
129
|
-
"@typescript-eslint/parser": "^
|
|
128
|
+
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
129
|
+
"@typescript-eslint/parser": "^7.0.1",
|
|
130
130
|
"@web/dev-server": "^0.3.0",
|
|
131
|
-
"@web/dev-server-storybook": "^0.
|
|
132
|
-
"@web/test-runner": "^0.
|
|
131
|
+
"@web/dev-server-storybook": "^2.0.1",
|
|
132
|
+
"@web/test-runner": "^0.18.0",
|
|
133
133
|
"concurrently": "^8.0.1",
|
|
134
134
|
"eslint": "^8.39.0",
|
|
135
|
-
"eslint-config-prettier": "^
|
|
136
|
-
"husky": "^
|
|
137
|
-
"lint-staged": "^
|
|
138
|
-
"prettier": "^2.
|
|
135
|
+
"eslint-config-prettier": "^9.1.0",
|
|
136
|
+
"husky": "^9.0.11",
|
|
137
|
+
"lint-staged": "^15.2.2",
|
|
138
|
+
"prettier": "^3.2.5",
|
|
139
139
|
"tslib": "^2.3.1",
|
|
140
140
|
"typescript": "^5.0.4"
|
|
141
141
|
},
|
|
@@ -152,5 +152,5 @@
|
|
|
152
152
|
"prettier --write"
|
|
153
153
|
]
|
|
154
154
|
},
|
|
155
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "8c4f80ccce451e015d7c17cbc19393eebbae1300"
|
|
156
156
|
}
|
|
@@ -8,6 +8,7 @@ import { property, query, state } from 'lit/decorators.js'
|
|
|
8
8
|
import { Scene } from '@hatiolab/things-scene'
|
|
9
9
|
import { ScopedElementsMixin } from '@open-wc/scoped-elements'
|
|
10
10
|
import { ScrollbarStyles } from '@operato/styles'
|
|
11
|
+
import { i18next } from '@operato/i18n'
|
|
11
12
|
|
|
12
13
|
import { Pallet, PalletItem } from '../../types'
|
|
13
14
|
import { ComponentDetail } from './component-detail'
|
|
@@ -119,13 +120,15 @@ export class ComponentMenu extends ScopedElementsMixin(LitElement) {
|
|
|
119
120
|
<h2 onclick=${(e: MouseEvent) => e.stopPropagation()}>${this.group} list</h2>
|
|
120
121
|
|
|
121
122
|
<div templates @mouseover=${(e: MouseEvent) => this.onHoverComponent(e)}>
|
|
122
|
-
${(this.templates || []).map(
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
${(this.templates || []).map(template => {
|
|
124
|
+
const { type } = template
|
|
125
|
+
|
|
126
|
+
return html`
|
|
127
|
+
<div @click=${this.onClickTemplate} data-type=${type} template>
|
|
128
|
+
<img src=${String(this.templateIcon(template))} />${i18next.t(`component.${type}`)}
|
|
126
129
|
</div>
|
|
127
130
|
`
|
|
128
|
-
)}
|
|
131
|
+
})}
|
|
129
132
|
</div>
|
|
130
133
|
|
|
131
134
|
<component-detail
|
|
@@ -279,6 +279,17 @@ export class PropertyShapes extends AbstractProperty {
|
|
|
279
279
|
<label for="checkbox-textwrap"> <ox-i18n msgid="label.text-wrap">Text Wrap</ox-i18n> </label>
|
|
280
280
|
</div>
|
|
281
281
|
|
|
282
|
+
${!value.textWrap
|
|
283
|
+
? html` <label for="checkbox-textOverflow">
|
|
284
|
+
<ox-i18n msgid="label.text-overflow">Text Overflow</ox-i18n>
|
|
285
|
+
</label>
|
|
286
|
+
<select value-key="textOverflow" .value=${value.textOverflow || ''}>
|
|
287
|
+
<option value="" selected>none</option>
|
|
288
|
+
<option value="ellipsis">ellipsis</option>
|
|
289
|
+
<option value="clip">clip</option>
|
|
290
|
+
</select>`
|
|
291
|
+
: ''}
|
|
292
|
+
|
|
282
293
|
<label> <ox-i18n msgid="label.padding">padding</ox-i18n> </label>
|
|
283
294
|
<table class="box-padding">
|
|
284
295
|
<tr>
|
|
@@ -10,6 +10,8 @@ import { property } from 'lit/decorators.js'
|
|
|
10
10
|
import { Component, Scene } from '@hatiolab/things-scene'
|
|
11
11
|
import { ScopedElementsMixin } from '@open-wc/scoped-elements'
|
|
12
12
|
|
|
13
|
+
import { i18next } from '@operato/i18n'
|
|
14
|
+
|
|
13
15
|
import { PropertySharedStyle } from '../property-shared-style'
|
|
14
16
|
import { SpecificPropertiesBuilder } from './specific-properties-builder.js'
|
|
15
17
|
|
|
@@ -58,7 +60,9 @@ export class PropertySpecific extends ScopedElementsMixin(LitElement) {
|
|
|
58
60
|
const value = this.value || {}
|
|
59
61
|
|
|
60
62
|
return html`
|
|
61
|
-
<label
|
|
63
|
+
<label
|
|
64
|
+
>${i18next.t(`component.${value.type}`)}<ox-help-icon .topic=${selected?.nature?.help}></ox-help-icon
|
|
65
|
+
></label>
|
|
62
66
|
|
|
63
67
|
<specific-properties-builder .value=${value} .props=${this.props} .propertyEditor=${this.propertyEditor}>
|
|
64
68
|
</specific-properties-builder>
|
package/src/ox-board-list.ts
CHANGED
|
@@ -422,11 +422,7 @@ class BoardList extends LitElement {
|
|
|
422
422
|
thumbnail
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
// this.popup && this.popup.close()
|
|
428
|
-
|
|
429
|
-
// await sleep(100)
|
|
425
|
+
await createBoard(board)
|
|
430
426
|
|
|
431
427
|
this.notify('info', 'new board created')
|
|
432
428
|
} catch (ex: Error | any) {
|