Skip to content

Commit 059a5eb

Browse files
committed
regex for props
1 parent 5b3cece commit 059a5eb

File tree

104 files changed

+341
-1133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+341
-1133
lines changed

.htaccess

-7
This file was deleted.

.vscode/launch.json

100644100755
File mode changed.

CNAME

100644100755
File mode changed.

LICENSE

100644100755
File mode changed.

components/api-viewer-element.min.js

-838
This file was deleted.
-40.1 KB
Binary file not shown.

components/api-viewer/api-viewer.min.js

100644100755
File mode changed.

components/api-viewer/custom-elements-1.json

100644100755
File mode changed.

components/api-viewer/index.html

100644100755
+29-30
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<body>
1111

1212
<api-viewer section="demo">
13-
<!-- <s-icon icon="cil:locomotive" height="100"></s-icon> -->
1413
<template data-element="s-icon" data-target="knob" data-attr="height" data-type="string" attribute-knobs="?test">
1514
<input/>
1615
</template>
@@ -26,35 +25,35 @@
2625
<script type="module">
2726
import { create, ts, litPlugin } from 'https://cdn.jsdelivr.net/npm/@custom-elements-manifest/[email protected]/browser/index.js';
2827

29-
var test = function () {
30-
/**
31-
* @attr {boolean} disabled - disables the element
32-
* @attribute {string} foo - description for foo
33-
*
34-
* @csspart bar - Styles the color of b
35-
*
36-
* @slot - This is a default/unnamed slot
37-
* @slot container - You can put some elements here
38-
*
39-
* @cssprop --text-color - Controls the color of f
40-
* @cssproperty [--background-color=red] - Controls the color of bar
41-
*
42-
* @prop {string} [data.props.icon=cil:locomotive] - some description
43-
* @fires {CustomEvent} animalfound-changed - Event fired when value is changed
44-
* @property {string} [data['props']['height']=100] - some description
45-
*
46-
* @fires custom-event - some description for custom-event
47-
* @fires {Event} typed-event - some description for typed-event
48-
* @event {CustomEvent} typed-custom-event - some description for typed-custom-event
49-
*
50-
* @summary This is MyElementttt
51-
*
52-
* @tag s-icon
53-
* @tagname ssss
54-
*/
55-
class UnityComponent extends HTMLElement { } customElements.define("s-icon", UnityComponent);
56-
}
57-
console.log(test.toString(), document.querySelector());
28+
var test = function () {
29+
/**
30+
* @attr {boolean} disabled - disables the element
31+
* @attribute {string} foo - description for foo
32+
*
33+
* @csspart bar - Styles the color of b
34+
*
35+
* @slot - This is a default/unnamed slot
36+
* @slot container - You can put some elements here
37+
*
38+
* @cssprop --text-color - Controls the color of f
39+
* @cssproperty [--background-color=red] - Controls the color of bar
40+
*
41+
* @prop {string} [data.props.icon=cil:locomotive] - some description
42+
* @fires {CustomEvent} animalfound-changed - Event fired when value is changed
43+
* @property {string} [data['props']['height']=100] - some description
44+
*
45+
* @fires custom-event - some description for custom-event
46+
* @fires {Event} typed-event - some description for typed-event
47+
* @event {CustomEvent} typed-custom-event - some description for typed-custom-event
48+
*
49+
* @summary This is MyElementttt
50+
*
51+
* @tag s-icon
52+
* @tagname ssss
53+
*/
54+
class UnityComponent extends HTMLElement { } customElements.define("s-icon", UnityComponent);
55+
}
56+
console.log(test.toString(), document.query);
5857

5958
const modules = [ts.createSourceFile(
6059
'my-element.js',

components/api-viewer/my-element.js

100644100755
File mode changed.

components/api-viewer/my-element.min.js

100644100755
File mode changed.

components/api-viewer/my-element.min.js.map

100644100755
File mode changed.

components/api-viewer/s-checkbox.html

100644100755
File mode changed.

components/manifest-saver.php

-55
This file was deleted.

components/s-checkbox.html

100644100755
File mode changed.

components/s-icon.html

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* @cssprop --text-color - Controls the color of f
3030
* @cssproperty [--background-color=red] - Controls the color of bar
3131
*
32-
* @prop {boolean} prop1 - some description
32+
* @prop {boolean} prop123 - some description
3333
* @property {number} prop2 - some description
3434
*
3535
* @fires custom-event - some description for custom-event

components/s-icon.json

100644100755
+112-113
Original file line numberDiff line numberDiff line change
@@ -1,115 +1,114 @@
11
{
2-
"schemaVersion": "1.0.0",
3-
"readme": "",
4-
"modules": [
5-
{
6-
"kind": "javascript-module",
7-
"path": "s-icon.html",
8-
"declarations": [
9-
{
10-
"kind": "class",
11-
"description": "",
12-
"name": "UnityComponent",
13-
"cssProperties": [
14-
{
15-
"description": "Controls the color of f",
16-
"name": "--text-color"
17-
},
18-
{
19-
"description": "Controls the color of bar",
20-
"name": "--background-color",
21-
"default": "red",
22-
"value": "red"
23-
}
24-
],
25-
"cssParts": [
26-
{
27-
"description": "Styles the color of b",
28-
"name": "bar"
29-
}
30-
],
31-
"slots": [
32-
{
33-
"description": "You can put some elements here",
34-
"name": "container"
35-
},
36-
{
37-
"description": "This is a default/unnamed slot",
38-
"name": ""
39-
}
40-
],
41-
"members": [
42-
{
43-
"type": {
44-
"text": "boolean"
45-
},
46-
"description": "some description",
47-
"name": "prop1",
48-
"kind": "field"
49-
},
50-
{
51-
"type": {
52-
"text": "number"
53-
},
54-
"description": "some description",
55-
"name": "prop2",
56-
"kind": "field"
57-
}
58-
],
59-
"events": [
60-
{
61-
"description": "some description for custom-event",
62-
"name": "custom-event"
63-
},
64-
{
65-
"type": {
66-
"text": "Event"
67-
},
68-
"description": "some description for typed-event",
69-
"name": "typed-event"
70-
},
71-
{
72-
"type": {
73-
"text": "CustomEvent"
74-
},
75-
"description": "some description for typed-custom-event",
76-
"name": "typed-custom-event"
77-
}
78-
],
79-
"attributes": [
80-
{
81-
"type": {
82-
"text": "boolean"
83-
},
84-
"description": "disables the element",
85-
"name": "disabled"
86-
},
87-
{
88-
"type": {
89-
"text": "string"
90-
},
91-
"description": "description for foo [link]{@link https://www.google.com}.",
92-
"name": "foo"
93-
}
94-
],
95-
"superclass": {
96-
"name": "HTMLElement"
97-
},
98-
"tagName": "s-icon",
99-
"summary": "This is MyElement",
100-
"customElement": true
101-
}
102-
],
103-
"exports": [
104-
{
105-
"kind": "custom-element-definition",
106-
"name": "s-icon",
107-
"declaration": {
108-
"name": "UnityComponent",
109-
"module": "s-icon.html"
110-
}
111-
}
112-
]
113-
}
114-
]
2+
"schemaVersion": "1.0.0",
3+
"readme": "",
4+
"modules": [
5+
{
6+
"kind": "javascript-module",
7+
"path": "s-icon.html",
8+
"declarations": [
9+
{
10+
"kind": "class",
11+
"description": "",
12+
"name": "UnityComponent",
13+
"cssProperties": [
14+
{
15+
"description": "Controls the color of f",
16+
"name": "--text-color"
17+
},
18+
{
19+
"description": "Controls the color of bar",
20+
"name": "--background-color",
21+
"default": "red"
22+
}
23+
],
24+
"cssParts": [
25+
{
26+
"description": "Styles the color of b",
27+
"name": "bar"
28+
}
29+
],
30+
"slots": [
31+
{
32+
"description": "This is a default\/unnamed slot",
33+
"name": ""
34+
},
35+
{
36+
"description": "You can put some elements here",
37+
"name": "container"
38+
}
39+
],
40+
"members": [
41+
{
42+
"type": {
43+
"text": "boolean"
44+
},
45+
"description": "some description",
46+
"name": "prop123",
47+
"kind": "field"
48+
},
49+
{
50+
"type": {
51+
"text": "number"
52+
},
53+
"description": "some description",
54+
"name": "prop2",
55+
"kind": "field"
56+
}
57+
],
58+
"events": [
59+
{
60+
"description": "some description for custom-event",
61+
"name": "custom-event"
62+
},
63+
{
64+
"type": {
65+
"text": "Event"
66+
},
67+
"description": "some description for typed-event",
68+
"name": "typed-event"
69+
},
70+
{
71+
"type": {
72+
"text": "CustomEvent"
73+
},
74+
"description": "some description for typed-custom-event",
75+
"name": "typed-custom-event"
76+
}
77+
],
78+
"attributes": [
79+
{
80+
"type": {
81+
"text": "boolean"
82+
},
83+
"description": "disables the element",
84+
"name": "disabled"
85+
},
86+
{
87+
"type": {
88+
"text": "string"
89+
},
90+
"description": "description for foo [link]{@link https:\/\/www.google.com}.",
91+
"name": "foo"
92+
}
93+
],
94+
"superclass": {
95+
"name": "HTMLElement"
96+
},
97+
"tagName": "s-icon",
98+
"summary": "This is MyElement",
99+
"customElement": true
100+
}
101+
],
102+
"exports": [
103+
{
104+
"kind": "custom-element-definition",
105+
"name": "s-icon",
106+
"declaration": {
107+
"name": "UnityComponent",
108+
"module": "s-icon.html"
109+
}
110+
}
111+
]
112+
}
113+
]
115114
}

components/s-radio-incomplete.html

100644100755
File mode changed.

components/s-style.html

100644100755
File mode changed.

components/save-manifest.php

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
$name = $_GET["name"];
3+
$manifest = $_GET["manifest"];
4+
$manifest = json_decode($manifest);
5+
$manifest = json_encode($manifest, JSON_PRETTY_PRINT);
6+
file_put_contents($name . ".json", $manifest);
7+
echo "saved";
8+
?>

components/tokens.css

100644100755
File mode changed.

components/tokens.min.css

100644100755
File mode changed.

docs/.nojekyll

100644100755
File mode changed.

docs/__sidebar.md

100644100755
File mode changed.

0 commit comments

Comments
 (0)