analog-clock-components 0.2.88 → 0.2.90
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/analog-clock/analog-clock.esm.js +1 -1
- package/dist/analog-clock/{p-5b8cb0dc.entry.js → p-5f5e3db4.entry.js} +1 -1
- package/dist/cjs/analog-clock.cjs.entry.js +1 -1
- package/dist/cjs/analog-clock.cjs.js +2 -2
- package/dist/cjs/{index-B2LRDX0C.js → index-CiuoRKRp.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/analog-clock.entry.js +1 -1
- package/dist/esm/analog-clock.js +3 -3
- package/dist/esm/{index-eOQVlu-g.js → index-DiTn3cPj.js} +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/types/stencil-public-runtime.d.ts +3 -1
- package/package.json +4 -4
- /package/dist/analog-clock/{p-eOQVlu-g.js → p-DiTn3cPj.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-
|
|
1
|
+
import{p as e,b as o}from"./p-DiTn3cPj.js";export{s as setNonce}from"./p-DiTn3cPj.js";import{g as t}from"./p-DQuL1Twl.js";(()=>{const o=import.meta.url,s={};return""!==o&&(s.resourcesUrl=new URL(".",o).href),e(s)})().then((async e=>(await t(),o([["p-5f5e3db4",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-
|
|
1
|
+
import{r as e,h as t}from"./p-DiTn3cPj.js";const c=class{constructor(t){e(this,t),this.size=void 0,this.timeZone=0,this.time=Date.now()}componentDidLoad(){this.timer=window.setInterval((()=>{this.time=Date.now()}),250)}disconnectedCallback(){clearInterval(this.timer)}get hour(){return new Date(this.time).getHours()}get minute(){return new Date(this.time).getMinutes()}get second(){return new Date(this.time).getSeconds()}hourToDegrees(){const e=this.hour+this.timeZone;return Math.floor(this.minute/2)+30*e}minuteToDegrees(){return Math.floor(this.second/10)+6*this.minute}secondToDegrees(){return 6*this.second}render(){return t("svg",{key:"39e3465d3bf04035966b00bb15186d1f712163cd",class:"clock",viewBox:"0 0 200 200",width:this.size,height:this.size},t("circle",{key:"e4c4288aa0efc9cf98027eef1f5bd7c550c23a18",id:"circle",cx:"100",cy:"100",r:"95","stroke-width":"10",fill:"transparent"}),t("line",{key:"296fb8ac19749103439f2ce1878db5ccfb214c20",id:"hour",transform:`rotate(${this.hourToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"60","stroke-width":"10","stroke-linecap":"round"}),t("line",{key:"acbe2c6ebdf05ff46e06144839dec43c45e8b40d",id:"minute",transform:`rotate(${this.minuteToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"30","stroke-width":"8","stroke-linecap":"round"}),t("line",{key:"f275abf7169379b2f61c9cdd185068f5e2373d4a",id:"second",transform:`rotate(${this.secondToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"20","stroke-width":"2","stroke-linecap":"round"}))}};c.style=".clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}";export{c as analog_clock}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CiuoRKRp.js');
|
|
4
4
|
|
|
5
5
|
const analogClockCss = () => `.clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}`;
|
|
6
6
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CiuoRKRp.js');
|
|
4
4
|
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
5
5
|
|
|
6
6
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.43.
|
|
8
|
+
Stencil Client Patch Browser v4.43.1 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
var patchBrowser = () => {
|
|
@@ -4,7 +4,7 @@ const NAMESPACE = 'analog-clock';
|
|
|
4
4
|
const BUILD = /* analog-clock */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, state: true, updatable: true};
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
|
-
Stencil Client Platform v4.43.
|
|
7
|
+
Stencil Client Platform v4.43.1 | MIT Licensed | https://stenciljs.com
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
|
|
@@ -277,7 +277,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
277
277
|
}
|
|
278
278
|
} else {
|
|
279
279
|
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
280
|
-
if (existingStyleContainer) {
|
|
280
|
+
if (existingStyleContainer && true) {
|
|
281
281
|
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
282
282
|
} else {
|
|
283
283
|
styleContainerNode.prepend(styleElm);
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-DiTn3cPj.js';
|
|
2
2
|
|
|
3
3
|
const analogClockCss = () => `.clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}`;
|
|
4
4
|
|
package/dist/esm/analog-clock.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-DiTn3cPj.js';
|
|
2
|
+
export { s as setNonce } from './index-DiTn3cPj.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.43.
|
|
6
|
+
Stencil Client Patch Browser v4.43.1 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
var patchBrowser = () => {
|
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'analog-clock';
|
|
|
2
2
|
const BUILD = /* analog-clock */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, state: true, updatable: true};
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.43.
|
|
5
|
+
Stencil Client Platform v4.43.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
|
|
@@ -275,7 +275,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
275
275
|
}
|
|
276
276
|
} else {
|
|
277
277
|
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
278
|
-
if (existingStyleContainer) {
|
|
278
|
+
if (existingStyleContainer && true) {
|
|
279
279
|
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
280
280
|
} else {
|
|
281
281
|
styleContainerNode.prepend(styleElm);
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-DiTn3cPj.js';
|
|
2
|
+
export { s as setNonce } from './index-DiTn3cPj.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -679,6 +679,7 @@ export declare namespace h {
|
|
|
679
679
|
function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
680
680
|
function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
681
681
|
function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
682
|
+
function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
|
|
682
683
|
namespace JSX {
|
|
683
684
|
interface IntrinsicElements extends LocalJSX.IntrinsicElements, JSXBase.IntrinsicElements {
|
|
684
685
|
[tagName: string]: any;
|
|
@@ -692,6 +693,8 @@ export declare function h(sel: any, text: string): VNode;
|
|
|
692
693
|
export declare function h(sel: any, children: Array<VNode | undefined | null>): VNode;
|
|
693
694
|
export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
694
695
|
export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
696
|
+
export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
697
|
+
export declare function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
|
|
695
698
|
/**
|
|
696
699
|
* Automatic JSX runtime functions for TypeScript's react-jsx mode.
|
|
697
700
|
* These functions are called automatically by TypeScript when using "jsx": "react-jsx".
|
|
@@ -721,7 +724,6 @@ export declare function jsxs(type: any, props: any, key?: string): VNode;
|
|
|
721
724
|
* @returns a jsx vnode
|
|
722
725
|
*/
|
|
723
726
|
export declare function jsxDEV(type: any, props: any, key?: string | number, isStaticChildren?: boolean, source?: any, self?: any): VNode;
|
|
724
|
-
export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
725
727
|
/**
|
|
726
728
|
* A virtual DOM node
|
|
727
729
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "analog-clock-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.90",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"loader/"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@stencil/core": "4.43.
|
|
18
|
+
"@stencil/core": "4.43.1"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"bumpp": "10.4.1",
|
|
23
|
-
"cspell": "9.
|
|
24
|
-
"eslint": "10.0.
|
|
23
|
+
"cspell": "9.7.0",
|
|
24
|
+
"eslint": "10.0.2",
|
|
25
25
|
"only-allow": "1.2.2",
|
|
26
26
|
"prettier": "3.8.1",
|
|
27
27
|
"typescript": "5.9.3",
|
|
File without changes
|