courthive-components 1.0.0 → 1.0.1
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.
|
@@ -1841,26 +1841,28 @@ var e = () => typeof window > "u", t = () => typeof document < "u", n = class {
|
|
|
1841
1841
|
tipsWrapper;
|
|
1842
1842
|
tipsWrapperFor24h;
|
|
1843
1843
|
constructor(e) {
|
|
1844
|
-
this.clockType = e.clockType, this.disabledTime = e.disabledTime, this.tipsWrapper = e.tipsWrapper, this.tipsWrapperFor24h = e.tipsWrapperFor24h
|
|
1844
|
+
this.clockType = e.clockType, this.disabledTime = e.disabledTime, this.tipsWrapper = e.tipsWrapper, this.tipsWrapperFor24h = e.tipsWrapperFor24h;
|
|
1845
|
+
let t = {
|
|
1845
1846
|
clockFace: e.clockFace,
|
|
1846
1847
|
tipsWrapper: e.tipsWrapper,
|
|
1847
1848
|
tipsWrapperFor24h: e.tipsWrapperFor24h,
|
|
1848
1849
|
clockHand: e.clockHand,
|
|
1849
1850
|
circle: e.circle,
|
|
1850
1851
|
theme: e.theme
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1852
|
+
};
|
|
1853
|
+
this.renderer = new de(t);
|
|
1854
|
+
let n = {
|
|
1853
1855
|
hour: e.initialHour,
|
|
1854
1856
|
minute: e.initialMinute,
|
|
1855
1857
|
amPm: e.initialAmPm,
|
|
1856
1858
|
hourAngle: this.calculateInitialAngle("hours", e.initialHour),
|
|
1857
1859
|
minuteAngle: this.calculateInitialAngle("minutes", e.initialMinute),
|
|
1858
1860
|
mode: "hours"
|
|
1859
|
-
},
|
|
1861
|
+
}, r = {
|
|
1860
1862
|
onHourChange: e.onHourChange,
|
|
1861
1863
|
onMinuteChange: e.onMinuteChange
|
|
1862
1864
|
};
|
|
1863
|
-
this.controller = new fe(this.renderer,
|
|
1865
|
+
this.controller = new fe(this.renderer, n, e.clockType, e.disabledTime, e.incrementHours || 1, e.incrementMinutes || 1, e.smoothHourSnap ?? !0, r), this.dragHandlers = new pe(this.controller, e.clockFace, e.dragConfig || {});
|
|
1864
1866
|
}
|
|
1865
1867
|
initialize() {
|
|
1866
1868
|
this.dragHandlers.attach(), this.switchToHours();
|
|
@@ -1934,8 +1936,7 @@ var e = () => typeof window > "u", t = () => typeof document < "u", n = class {
|
|
|
1934
1936
|
if (!e || !t || !n) return;
|
|
1935
1937
|
let r = this.core.options.clock.type === "24h", i = this.core.getTipsWrapper();
|
|
1936
1938
|
if (!i) return;
|
|
1937
|
-
let a = this.core.getHour(), o = this.core.getMinutes()
|
|
1938
|
-
this.clockSystem = new me({
|
|
1939
|
+
let a = this.core.getHour(), o = this.core.getMinutes(), s = {
|
|
1939
1940
|
clockFace: e,
|
|
1940
1941
|
tipsWrapper: i,
|
|
1941
1942
|
tipsWrapperFor24h: r && this.core.getTipsWrapperFor24h() || void 0,
|
|
@@ -1986,7 +1987,8 @@ var e = () => typeof window > "u", t = () => typeof document < "u", n = class {
|
|
|
1986
1987
|
type: r?.textContent || void 0
|
|
1987
1988
|
});
|
|
1988
1989
|
}
|
|
1989
|
-
}
|
|
1990
|
+
};
|
|
1991
|
+
this.clockSystem = new me(s), this.clockSystem.initialize();
|
|
1990
1992
|
}
|
|
1991
1993
|
convertDisabledTime() {
|
|
1992
1994
|
let e = this.core.disabledTime?.value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "courthive-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20.19.0 < 25"
|
|
6
6
|
},
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@storybook/test-runner": "^0.24.0",
|
|
52
52
|
"@types/d3": "^7.4.3",
|
|
53
53
|
"@types/vanillajs-datepicker": "^1.3.5",
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
55
|
-
"@typescript-eslint/parser": "8.
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "8.59.0",
|
|
55
|
+
"@typescript-eslint/parser": "8.59.0",
|
|
56
56
|
"@vitest/browser-playwright": "^4.0.16",
|
|
57
57
|
"@vitest/coverage-v8": "^4.0.16",
|
|
58
58
|
"eslint": "10.2.1",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"storybook": "^10.2.17",
|
|
70
70
|
"tabulator-tables": "6.4.0",
|
|
71
71
|
"typescript": "^6.0.2",
|
|
72
|
-
"vite": "8.0.
|
|
72
|
+
"vite": "8.0.9",
|
|
73
73
|
"vite-plugin-dts": "^4.5.4",
|
|
74
74
|
"vitest": "^4.0.16"
|
|
75
75
|
},
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"focus-trap": "^8.0.0",
|
|
83
83
|
"timepicker-ui": "^4.1.2",
|
|
84
84
|
"tippy.js": "6.3.7",
|
|
85
|
-
"tods-competition-factory": "^3.0
|
|
85
|
+
"tods-competition-factory": "^3.1.0",
|
|
86
86
|
"vanillajs-datepicker": "1.3.4"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|