Skip to content

Commit e3fddee

Browse files
committed
splitview control
0 parents  commit e3fddee

File tree

15 files changed

+11930
-0
lines changed

15 files changed

+11930
-0
lines changed

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
github: jogibear9988
4+
patreon: jogibear9988

.github/workflows/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Build
2+
on: push
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v2
9+
- name: Setup Node
10+
uses: actions/setup-node@v2
11+
with:
12+
node-version: '18.x'
13+
registry-url: 'https://registry.npmjs.org'
14+
- name: Install dependencies and build 🔧
15+
run: npm ci && npm run build

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish to NPM
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
- name: Setup Node
12+
uses: actions/setup-node@v2
13+
with:
14+
node-version: '18.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
- name: Install dependencies and build 🔧
17+
run: npm ci && npm run build
18+
- name: Publish package on NPM 📦
19+
run: npm publish --access=public
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
node_modules/

.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
src/
2+
sample/
3+
node_modules/
4+
tsconfig.json

.release-it.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"git": {
3+
"commitMessage": "chore: release v${version}"
4+
},
5+
"github": {
6+
"release": true
7+
},
8+
"npm": {
9+
"publish": false
10+
}
11+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 node projects
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# propertygrid.webcomponent
2+
a propertygrid control webcomponent
3+
4+
# description
5+
a simple propertygrid control as webcomponent..
6+
7+
supported types (out of the box)
8+
- number
9+
- string
10+
- boolean
11+
- color
12+
- nullable- of all types
13+
14+
usable in web-component-designer: https://node-projects.github.io/web-component-designer-demo/index.html
15+
16+
# development
17+
## upload new version
18+
simple run
19+
20+
npm run release
21+
22+
then you need to go to github and create a release from the uploaded tag.
23+
this will then create a npm package via github action.

custom-elements.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"schemaVersion": "1.0.0",
3+
"readme": "README.md",
4+
"modules": [
5+
{
6+
"kind": "javascript-module",
7+
"path": "dist/SplitView.js",
8+
"declarations": [
9+
{
10+
"kind": "class",
11+
"name": "SplitView",
12+
"members": [
13+
{
14+
"kind": "field",
15+
"name": "orientation",
16+
"type": {
17+
"text": "'horizontal'|'vertical'"
18+
}
19+
},
20+
{
21+
"kind": "field",
22+
"name": "observe",
23+
"type": {
24+
"text": "boolean"
25+
}
26+
}
27+
],
28+
"attributes": [
29+
{
30+
"name": "orientation",
31+
"fieldName": "orientation"
32+
},
33+
{
34+
"name": "observe",
35+
"fieldName": "observe"
36+
},
37+
{
38+
"name": "expanded",
39+
"fieldName": "expanded"
40+
},
41+
{
42+
"name": "selected-object",
43+
"fieldName": "selectedObject"
44+
},
45+
{
46+
"name": "type-name",
47+
"fieldName": "typeName"
48+
},
49+
{
50+
"name": "type-definitions",
51+
"fieldName": "typeDefinitions"
52+
}
53+
],
54+
"superclass": {
55+
"name": "BaseCustomWebComponentConstructorAppend"
56+
},
57+
"tagName": "node-projects-split-view",
58+
"customElement": true
59+
}
60+
],
61+
"exports": [
62+
{
63+
"kind": "custom-element-definition",
64+
"name": "node-projects-split-view",
65+
"declaration": {
66+
"name": "SplitView",
67+
"module": "dist/SplitView.js"
68+
}
69+
}
70+
]
71+
}
72+
]
73+
}

0 commit comments

Comments
 (0)