proto-sudoku-wc 0.0.463 → 0.0.466
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/dist/cjs/{index-b3b98bf7.js → index-02cc516d.js} +185 -45
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/proto-sudoku-wc.cjs.js +2 -2
- package/dist/cjs/proto-sudoku.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/proto-sudoku/alert.js +1 -6
- package/dist/collection/components/proto-sudoku/alerts.js +1 -5
- package/dist/collection/components/proto-sudoku/alien.js +1 -5
- package/dist/collection/components/proto-sudoku/eswat2-io.js +1 -2
- package/dist/collection/components/proto-sudoku/fingerprint.js +1 -5
- package/dist/collection/components/proto-sudoku/keys.js +3 -5
- package/dist/collection/components/proto-sudoku/proto-sudoku.js +34 -35
- package/dist/collection/components/proto-sudoku/spinner.js +1 -6
- package/dist/collection/components/proto-sudoku/tool-bar.js +1 -4
- package/dist/collection/components/proto-sudoku/tw-label.js +1 -3
- package/dist/esm/{index-eeaca3e8.js → index-f468fcee.js} +185 -45
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-sudoku-wc.js +2 -2
- package/dist/esm/proto-sudoku.entry.js +1 -1
- package/dist/proto-sudoku-wc/{p-9f6ae661.js → p-3561d2f7.js} +0 -0
- package/dist/proto-sudoku-wc/{p-c6c5708f.entry.js → p-cdd2af37.entry.js} +1 -1
- package/dist/proto-sudoku-wc/proto-sudoku-wc.esm.js +1 -1
- package/loader/package.json +1 -0
- package/package.json +7 -7
@@ -4,11 +4,7 @@ const Fingerprint = props => {
|
|
4
4
|
const klass = props.class;
|
5
5
|
const label = props.label || 'fingerprint';
|
6
6
|
const size = props.size || 24;
|
7
|
-
return (h("svg", { class: klass, width: size, height: size, viewBox: "0 0 24 24", role: "img", "aria-label": "title" },
|
8
|
-
h("title", null, label),
|
9
|
-
h("g", { fill: hex },
|
10
|
-
h("path", { d: "M17.81,4.47C17.73,4.47 17.65,4.45 17.58,4.41C15.66,3.42 14,3\n 12,3C10.03,3 8.15,3.47 6.44,4.41C6.2,4.54 5.9,4.45 5.76,4.21C5.63,3.97\n 5.72,3.66 5.96,3.53C7.82,2.5 9.86,2 12,2C14.14,2 16,2.47\n 18.04,3.5C18.29,3.65 18.38,3.95 18.25,4.19C18.16,4.37 18,4.47\n 17.81,4.47M3.5,9.72C3.4,9.72 3.3,9.69 3.21,9.63C3,9.47 2.93,9.16\n 3.09,8.93C4.08,7.53 5.34,6.43 6.84,5.66C10,4.04 14,4.03\n 17.15,5.65C18.65,6.42 19.91,7.5 20.9,8.9C21.06,9.12 21,9.44\n 20.78,9.6C20.55,9.76 20.24,9.71 20.08,9.5C19.18,8.22 18.04,7.23\n 16.69,6.54C13.82,5.07 10.15,5.07 7.29,6.55C5.93,7.25 4.79,8.25\n 3.89,9.5C3.81,9.65 3.66,9.72 3.5,9.72M9.75,21.79C9.62,21.79 9.5,21.74\n 9.4,21.64C8.53,20.77 8.06,20.21 7.39,19C6.7,17.77 6.34,16.27\n 6.34,14.66C6.34,11.69 8.88,9.27 12,9.27C15.12,9.27 17.66,11.69\n 17.66,14.66A0.5,0.5 0 0,1 17.16,15.16A0.5,0.5 0 0,1\n 16.66,14.66C16.66,12.24 14.57,10.27 12,10.27C9.43,10.27 7.34,12.24\n 7.34,14.66C7.34,16.1 7.66,17.43 8.27,18.5C8.91,19.66 9.35,20.15\n 10.12,20.93C10.31,21.13 10.31,21.44 10.12,21.64C10,21.74 9.88,21.79\n 9.75,21.79M16.92,19.94C15.73,19.94 14.68,19.64 13.82,19.05C12.33,18.04\n 11.44,16.4 11.44,14.66A0.5,0.5 0 0,1 11.94,14.16A0.5,0.5 0 0,1\n 12.44,14.66C12.44,16.07 13.16,17.4 14.38,18.22C15.09,18.7 15.92,18.93\n 16.92,18.93C17.16,18.93 17.56,18.9 17.96,18.83C18.23,18.78 18.5,18.96\n 18.54,19.24C18.59,19.5 18.41,19.77 18.13,19.82C17.56,19.93 17.06,19.94\n 16.92,19.94M14.91,22C14.87,22 14.82,22 14.78,22C13.19,21.54 12.15,20.95\n 11.06,19.88C9.66,18.5 8.89,16.64 8.89,14.66C8.89,13.04 10.27,11.72\n 11.97,11.72C13.67,11.72 15.05,13.04 15.05,14.66C15.05,15.73 16,16.6\n 17.13,16.6C18.28,16.6 19.21,15.73 19.21,14.66C19.21,10.89 15.96,7.83\n 11.96,7.83C9.12,7.83 6.5,9.41 5.35,11.86C4.96,12.67 4.76,13.62\n 4.76,14.66C4.76,15.44 4.83,16.67 5.43,18.27C5.53,18.53 5.4,18.82\n 5.14,18.91C4.88,19 4.59,18.87 4.5,18.62C4,17.31 3.77,16\n 3.77,14.66C3.77,13.46 4,12.37 4.45,11.42C5.78,8.63 8.73,6.82\n 11.96,6.82C16.5,6.82 20.21,10.33 20.21,14.65C20.21,16.27 18.83,17.59\n 17.13,17.59C15.43,17.59 14.05,16.27 14.05,14.65C14.05,13.58 13.12,12.71\n 11.97,12.71C10.82,12.71 9.89,13.58 9.89,14.65C9.89,16.36 10.55,17.96\n 11.76,19.16C12.71,20.1 13.62,20.62 15.03,21C15.3,21.08 15.45,21.36\n 15.38,21.62C15.33,21.85 15.12,22 14.91,22Z" })),
|
11
|
-
h("path", { d: "M0 0h24v24H0z", fill: "none" })));
|
7
|
+
return (h("svg", { class: klass, width: size, height: size, viewBox: "0 0 24 24", role: "img", "aria-label": "title" }, h("title", null, label), h("g", { fill: hex }, h("path", { d: "M17.81,4.47C17.73,4.47 17.65,4.45 17.58,4.41C15.66,3.42 14,3\n 12,3C10.03,3 8.15,3.47 6.44,4.41C6.2,4.54 5.9,4.45 5.76,4.21C5.63,3.97\n 5.72,3.66 5.96,3.53C7.82,2.5 9.86,2 12,2C14.14,2 16,2.47\n 18.04,3.5C18.29,3.65 18.38,3.95 18.25,4.19C18.16,4.37 18,4.47\n 17.81,4.47M3.5,9.72C3.4,9.72 3.3,9.69 3.21,9.63C3,9.47 2.93,9.16\n 3.09,8.93C4.08,7.53 5.34,6.43 6.84,5.66C10,4.04 14,4.03\n 17.15,5.65C18.65,6.42 19.91,7.5 20.9,8.9C21.06,9.12 21,9.44\n 20.78,9.6C20.55,9.76 20.24,9.71 20.08,9.5C19.18,8.22 18.04,7.23\n 16.69,6.54C13.82,5.07 10.15,5.07 7.29,6.55C5.93,7.25 4.79,8.25\n 3.89,9.5C3.81,9.65 3.66,9.72 3.5,9.72M9.75,21.79C9.62,21.79 9.5,21.74\n 9.4,21.64C8.53,20.77 8.06,20.21 7.39,19C6.7,17.77 6.34,16.27\n 6.34,14.66C6.34,11.69 8.88,9.27 12,9.27C15.12,9.27 17.66,11.69\n 17.66,14.66A0.5,0.5 0 0,1 17.16,15.16A0.5,0.5 0 0,1\n 16.66,14.66C16.66,12.24 14.57,10.27 12,10.27C9.43,10.27 7.34,12.24\n 7.34,14.66C7.34,16.1 7.66,17.43 8.27,18.5C8.91,19.66 9.35,20.15\n 10.12,20.93C10.31,21.13 10.31,21.44 10.12,21.64C10,21.74 9.88,21.79\n 9.75,21.79M16.92,19.94C15.73,19.94 14.68,19.64 13.82,19.05C12.33,18.04\n 11.44,16.4 11.44,14.66A0.5,0.5 0 0,1 11.94,14.16A0.5,0.5 0 0,1\n 12.44,14.66C12.44,16.07 13.16,17.4 14.38,18.22C15.09,18.7 15.92,18.93\n 16.92,18.93C17.16,18.93 17.56,18.9 17.96,18.83C18.23,18.78 18.5,18.96\n 18.54,19.24C18.59,19.5 18.41,19.77 18.13,19.82C17.56,19.93 17.06,19.94\n 16.92,19.94M14.91,22C14.87,22 14.82,22 14.78,22C13.19,21.54 12.15,20.95\n 11.06,19.88C9.66,18.5 8.89,16.64 8.89,14.66C8.89,13.04 10.27,11.72\n 11.97,11.72C13.67,11.72 15.05,13.04 15.05,14.66C15.05,15.73 16,16.6\n 17.13,16.6C18.28,16.6 19.21,15.73 19.21,14.66C19.21,10.89 15.96,7.83\n 11.96,7.83C9.12,7.83 6.5,9.41 5.35,11.86C4.96,12.67 4.76,13.62\n 4.76,14.66C4.76,15.44 4.83,16.67 5.43,18.27C5.53,18.53 5.4,18.82\n 5.14,18.91C4.88,19 4.59,18.87 4.5,18.62C4,17.31 3.77,16\n 3.77,14.66C3.77,13.46 4,12.37 4.45,11.42C5.78,8.63 8.73,6.82\n 11.96,6.82C16.5,6.82 20.21,10.33 20.21,14.65C20.21,16.27 18.83,17.59\n 17.13,17.59C15.43,17.59 14.05,16.27 14.05,14.65C14.05,13.58 13.12,12.71\n 11.97,12.71C10.82,12.71 9.89,13.58 9.89,14.65C9.89,16.36 10.55,17.96\n 11.76,19.16C12.71,20.1 13.62,20.62 15.03,21C15.3,21.08 15.45,21.36\n 15.38,21.62C15.33,21.85 15.12,22 14.91,22Z" })), h("path", { d: "M0 0h24v24H0z", fill: "none" })));
|
12
8
|
};
|
13
9
|
export { Fingerprint };
|
14
10
|
export default Fingerprint;
|
@@ -10,11 +10,9 @@ const Keys = _props => {
|
|
10
10
|
};
|
11
11
|
const values = solved ? [] : keys;
|
12
12
|
const cell = pick != undefined ? list[pick] : undefined;
|
13
|
-
return (h("div", { class: "mt-2 flex flex-row justify-end" },
|
14
|
-
|
15
|
-
|
16
|
-
return (h(Button, { label: key, callback: genHandler(key), matched: cell.key === key }));
|
17
|
-
})));
|
13
|
+
return (h("div", { class: "mt-2 flex flex-row justify-end" }, !solved && cell && !cell.isClue && cell.key != '.' ? (h(Button, { label: DELETE, callback: genHandler('.') })) : (''), values.map((key) => {
|
14
|
+
return (h(Button, { label: key, callback: genHandler(key), matched: cell.key === key }));
|
15
|
+
})));
|
18
16
|
};
|
19
17
|
export { Keys };
|
20
18
|
export default Keys;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { h } from '@stencil/core';
|
2
2
|
import { Alerts } from './alerts';
|
3
3
|
import { Eswat2Io } from './eswat2-io';
|
4
4
|
import { Header } from './header';
|
@@ -14,41 +14,40 @@ export class ProtoSudoku {
|
|
14
14
|
actions.initApp();
|
15
15
|
}
|
16
16
|
render() {
|
17
|
-
return (h("div", { id: "app", class: "ds1-main relative max-w-min p-0.5" },
|
18
|
-
h(Eswat2Io, null),
|
19
|
-
h(Header, null, "Sudoku"),
|
20
|
-
h(SudokuBoard, null),
|
21
|
-
h(Keys, null),
|
22
|
-
h("hr", { class: "ml-0 mr-0" }),
|
23
|
-
h(ToolBar, null),
|
24
|
-
h(Alerts, null)));
|
17
|
+
return (h("div", { id: "app", class: "ds1-main relative max-w-min p-0.5" }, h(Eswat2Io, null), h(Header, null, "Sudoku"), h(SudokuBoard, null), h(Keys, null), h("hr", { class: "ml-0 mr-0" }), h(ToolBar, null), h(Alerts, null)));
|
25
18
|
}
|
26
19
|
static get is() { return "proto-sudoku"; }
|
27
20
|
static get encapsulation() { return "shadow"; }
|
28
|
-
static get originalStyleUrls() {
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
"
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
21
|
+
static get originalStyleUrls() {
|
22
|
+
return {
|
23
|
+
"$": ["proto-sudoku.css"]
|
24
|
+
};
|
25
|
+
}
|
26
|
+
static get styleUrls() {
|
27
|
+
return {
|
28
|
+
"$": ["proto-sudoku.css"]
|
29
|
+
};
|
30
|
+
}
|
31
|
+
static get properties() {
|
32
|
+
return {
|
33
|
+
"tag": {
|
34
|
+
"type": "string",
|
35
|
+
"mutable": false,
|
36
|
+
"complexType": {
|
37
|
+
"original": "string",
|
38
|
+
"resolved": "string",
|
39
|
+
"references": {}
|
40
|
+
},
|
41
|
+
"required": false,
|
42
|
+
"optional": false,
|
43
|
+
"docs": {
|
44
|
+
"tags": [],
|
45
|
+
"text": ""
|
46
|
+
},
|
47
|
+
"attribute": "tag",
|
48
|
+
"reflect": false,
|
49
|
+
"defaultValue": "'proto-sudoku'"
|
50
|
+
}
|
51
|
+
};
|
52
|
+
}
|
54
53
|
}
|
@@ -5,12 +5,7 @@ const Spinner = props => {
|
|
5
5
|
const klass = props.class || '';
|
6
6
|
const label = props.label || 'loading...';
|
7
7
|
const size = props.size || 24;
|
8
|
-
return (h("svg", { class: tw(klass, 'animate-spin'), width: size, height: size, fill: "none", viewBox: "0 0 24 24", role: "img", "aria-label": "title" },
|
9
|
-
h("title", null, label),
|
10
|
-
h("g", null,
|
11
|
-
h("circle", { class: "opacity-25", cx: "12", cy: "12", r: "10", stroke: hex, "stroke-width": "4" }),
|
12
|
-
h("path", { class: "opacity-75", fill: hex, d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })),
|
13
|
-
h("path", { d: "M0 0h24v24H0z", fill: "none" })));
|
8
|
+
return (h("svg", { class: tw(klass, 'animate-spin'), width: size, height: size, fill: "none", viewBox: "0 0 24 24", role: "img", "aria-label": "title" }, h("title", null, label), h("g", null, h("circle", { class: "opacity-25", cx: "12", cy: "12", r: "10", stroke: hex, "stroke-width": "4" }), h("path", { class: "opacity-75", fill: hex, d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })), h("path", { d: "M0 0h24v24H0z", fill: "none" })));
|
14
9
|
};
|
15
10
|
export { Spinner };
|
16
11
|
export default Spinner;
|
@@ -14,10 +14,7 @@ const handleCheck = (actions) => {
|
|
14
14
|
};
|
15
15
|
const ToolBar = _props => {
|
16
16
|
const { list, solved } = state;
|
17
|
-
return (h("div", { class: "flex flex-row" },
|
18
|
-
h(Button, { label: NEW_PUZZLE, callback: handleRefresh(actions) }),
|
19
|
-
list.length === 81 && !solved ? (h(Button, { label: CHECK, callback: handleCheck(actions) })) : (''),
|
20
|
-
h(TwLabel, null)));
|
17
|
+
return (h("div", { class: "flex flex-row" }, h(Button, { label: NEW_PUZZLE, callback: handleRefresh(actions) }), list.length === 81 && !solved ? (h(Button, { label: CHECK, callback: handleCheck(actions) })) : (''), h(TwLabel, null)));
|
21
18
|
};
|
22
19
|
export { ToolBar };
|
23
20
|
export default ToolBar;
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import { h } from '@stencil/core';
|
2
2
|
import { TW_VERSION } from '../../utils';
|
3
3
|
const TwLabel = _props => {
|
4
|
-
return (h("label", { class: "ml-auto align-top text-xs italic text-clrs-slate4" },
|
5
|
-
"Tailwind ",
|
6
|
-
TW_VERSION));
|
4
|
+
return (h("label", { class: "ml-auto align-top text-xs italic text-clrs-slate4" }, "Tailwind ", TW_VERSION));
|
7
5
|
};
|
8
6
|
export { TwLabel };
|
9
7
|
export default TwLabel;
|