courthive-components 1.0.0 → 1.0.2

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, this.renderer = new de({
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
- let t = {
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
- }, n = {
1861
+ }, r = {
1860
1862
  onHourChange: e.onHourChange,
1861
1863
  onMinuteChange: e.onMinuteChange
1862
1864
  };
1863
- this.controller = new fe(this.renderer, t, e.clockType, e.disabledTime, e.incrementHours || 1, e.incrementMinutes || 1, e.smoothHourSnap ?? !0, n), this.dragHandlers = new pe(this.controller, e.clockFace, e.dragConfig || {});
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
- }), this.clockSystem.initialize();
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.0",
3
+ "version": "1.0.2",
4
4
  "engines": {
5
5
  "node": ">=20.19.0 < 25"
6
6
  },
@@ -36,6 +36,32 @@
36
36
  "url": "https://github.com/CourtHive/courthive-components/issues"
37
37
  },
38
38
  "homepage": "https://courthive.github.io/courthive-component",
39
+ "scripts": {
40
+ "commits": "git log $(git describe --tags --abbrev=0)..HEAD --oneline --no-merges --pretty=format:'%s: %h' | sed '/courthive-components/d'",
41
+ "release": "npm run release:patch",
42
+ "test": "vitest run",
43
+ "test:watch": "vitest",
44
+ "test:ui": "vitest --ui",
45
+ "dev": "vite",
46
+ "build": "vite build",
47
+ "postbuild": "./addVersion $npm_package_version",
48
+ "prepublishOnly": "npm run build",
49
+ "preview": "vite preview",
50
+ "storybook": "storybook dev -p 6006",
51
+ "build-storybook": "storybook build",
52
+ "deploy-storybook": "gh-pages -d storybook-static",
53
+ "pre-commit": "lint-staged",
54
+ "predeploy": "npm run build-storybook",
55
+ "prebuild": "rm -rf dist/*",
56
+ "lint": "eslint src --fix --cache",
57
+ "lint:report": "eslint src & eslint --cache src -f json > eslint-report.json",
58
+ "format": "prettier --write src",
59
+ "release:major": "npm run commits && npm version $(semver $npm_package_version -i major) && npm publish --tag latest",
60
+ "release:minor": "npm run commits && npm version $(semver $npm_package_version -i minor) && npm publish --tag latest",
61
+ "release:patch": "npm run commits && npm version $(semver $npm_package_version -i patch) && npm publish --tag latest",
62
+ "release:beta": "npm run commits && npm version $(semver $npm_package_version -i prerelease --preid beta) && npm publish --tag beta",
63
+ "patch:beta": "npm run commits && npm version $(semver $npm_package_version -i prerelease --preid beta) && npm publish --tag beta"
64
+ },
39
65
  "lint-staged": {
40
66
  "*.{js,ts}": "eslint --cache --fix",
41
67
  "*": "prettier --ignore-unknown --write"
@@ -51,8 +77,8 @@
51
77
  "@storybook/test-runner": "^0.24.0",
52
78
  "@types/d3": "^7.4.3",
53
79
  "@types/vanillajs-datepicker": "^1.3.5",
54
- "@typescript-eslint/eslint-plugin": "8.58.2",
55
- "@typescript-eslint/parser": "8.58.2",
80
+ "@typescript-eslint/eslint-plugin": "8.59.0",
81
+ "@typescript-eslint/parser": "8.59.0",
56
82
  "@vitest/browser-playwright": "^4.0.16",
57
83
  "@vitest/coverage-v8": "^4.0.16",
58
84
  "eslint": "10.2.1",
@@ -69,7 +95,7 @@
69
95
  "storybook": "^10.2.17",
70
96
  "tabulator-tables": "6.4.0",
71
97
  "typescript": "^6.0.2",
72
- "vite": "8.0.8",
98
+ "vite": "8.0.9",
73
99
  "vite-plugin-dts": "^4.5.4",
74
100
  "vitest": "^4.0.16"
75
101
  },
@@ -82,32 +108,12 @@
82
108
  "focus-trap": "^8.0.0",
83
109
  "timepicker-ui": "^4.1.2",
84
110
  "tippy.js": "6.3.7",
85
- "tods-competition-factory": "^3.0.1",
111
+ "tods-competition-factory": "^3.1.0",
86
112
  "vanillajs-datepicker": "1.3.4"
87
113
  },
88
- "scripts": {
89
- "commits": "git log $(git describe --tags --abbrev=0)..HEAD --oneline --no-merges --pretty=format:'%s: %h' | sed '/courthive-components/d'",
90
- "release": "npm run release:patch",
91
- "test": "vitest run",
92
- "test:watch": "vitest",
93
- "test:ui": "vitest --ui",
94
- "dev": "vite",
95
- "build": "vite build",
96
- "postbuild": "./addVersion $npm_package_version",
97
- "preview": "vite preview",
98
- "storybook": "storybook dev -p 6006",
99
- "build-storybook": "storybook build",
100
- "deploy-storybook": "gh-pages -d storybook-static",
101
- "pre-commit": "lint-staged",
102
- "predeploy": "npm run build-storybook",
103
- "prebuild": "rm -rf dist/*",
104
- "lint": "eslint src --fix --cache",
105
- "lint:report": "eslint src & eslint --cache src -f json > eslint-report.json",
106
- "format": "prettier --write src",
107
- "release:major": "npm run commits && npm version $(semver $npm_package_version -i major) && npm publish --tag latest",
108
- "release:minor": "npm run commits && npm version $(semver $npm_package_version -i minor) && npm publish --tag latest",
109
- "release:patch": "npm run commits && npm version $(semver $npm_package_version -i patch) && npm publish --tag latest",
110
- "release:beta": "npm run commits && npm version $(semver $npm_package_version -i prerelease --preid beta) && npm publish --tag beta",
111
- "patch:beta": "npm run commits && npm version $(semver $npm_package_version -i prerelease --preid beta) && npm publish --tag beta"
114
+ "pnpm": {
115
+ "overrides": {
116
+ "tods-competition-factory": "link:../factory"
117
+ }
112
118
  }
113
- }
119
+ }