courthive-components 1.1.0 → 1.1.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.
Files changed (285) hide show
  1. package/dist/assets/team-logos/index.d.ts +9 -0
  2. package/dist/components/burstChart/burstChart.d.ts +108 -0
  3. package/dist/components/burstChart/matchUpTransform.d.ts +11 -0
  4. package/dist/components/burstChart/textHelpers.d.ts +11 -0
  5. package/dist/components/button/barButton.d.ts +1 -0
  6. package/dist/components/button/cvaButton.d.ts +8 -0
  7. package/dist/components/button/dropDownButton.d.ts +5 -0
  8. package/dist/components/categories/ageCategory/ageCategory.d.ts +54 -0
  9. package/dist/components/categories/ageCategory/ageCategoryLogic.d.ts +55 -0
  10. package/dist/components/categories/category/category.d.ts +47 -0
  11. package/dist/components/composition-editor/compositionEditor.d.ts +6 -0
  12. package/dist/components/composition-editor/compositionEditorStore.d.ts +24 -0
  13. package/dist/components/composition-editor/compositionEditorTypes.d.ts +37 -0
  14. package/dist/components/composition-editor/compositionPreview.d.ts +2 -0
  15. package/dist/components/composition-editor/scaleConstants.d.ts +7 -0
  16. package/dist/components/composition-editor/sections/displaySection.d.ts +3 -0
  17. package/dist/components/composition-editor/sections/fieldBuilders.d.ts +20 -0
  18. package/dist/components/composition-editor/sections/layoutSection.d.ts +3 -0
  19. package/dist/components/composition-editor/sections/participantSection.d.ts +3 -0
  20. package/dist/components/composition-editor/sections/placeholderSection.d.ts +3 -0
  21. package/dist/components/composition-editor/sections/scaleSection.d.ts +3 -0
  22. package/dist/components/composition-editor/sections/scoreSection.d.ts +3 -0
  23. package/dist/components/composition-editor/sections/sectionBuilder.d.ts +8 -0
  24. package/dist/components/composition-editor/sections/themeSection.d.ts +3 -0
  25. package/dist/components/composition-editor/styles.d.ts +26 -0
  26. package/dist/components/controlBar/controlBar.d.ts +11 -0
  27. package/dist/components/controlBar/toggleOverlay.d.ts +3 -0
  28. package/dist/components/courts/courts.d.ts +7 -0
  29. package/dist/components/courts/index.d.ts +1 -0
  30. package/dist/components/drawer/drawer.d.ts +14 -0
  31. package/dist/components/flightProfile/flightProfileLogic.d.ts +51 -0
  32. package/dist/components/flightProfile/flightProfileNew.d.ts +34 -0
  33. package/dist/components/flightProfile/getFlightProfileFormItems.d.ts +13 -0
  34. package/dist/components/flightProfile/getFlightProfileFormRelationships.d.ts +1 -0
  35. package/dist/components/forms/createMultiSelect.d.ts +34 -0
  36. package/dist/components/forms/renderButtons.d.ts +3 -0
  37. package/dist/components/forms/renderField.d.ts +7 -0
  38. package/dist/components/forms/renderForm.d.ts +1 -0
  39. package/dist/components/forms/renderMenu.d.ts +3 -0
  40. package/dist/components/forms/renderValidator.d.ts +113 -0
  41. package/dist/components/forms/styles.d.ts +0 -0
  42. package/dist/components/generateRound.d.ts +6 -0
  43. package/dist/components/inline-scoring/engineToMatchUp.d.ts +6 -0
  44. package/dist/components/inline-scoring/index.d.ts +5 -0
  45. package/dist/components/inline-scoring/inlineScoringFooter.d.ts +18 -0
  46. package/dist/components/inline-scoring/inlineScoringManager.d.ts +49 -0
  47. package/dist/components/inline-scoring/inlineScoringTypes.d.ts +40 -0
  48. package/dist/components/inline-scoring/renderInlineMatchUp.d.ts +27 -0
  49. package/dist/components/interactive-scoring/buildInteractiveScoringShell.d.ts +28 -0
  50. package/dist/components/interactive-scoring/index.d.ts +2 -0
  51. package/dist/components/interactive-scoring/types.d.ts +60 -0
  52. package/dist/components/matchUpFormat/matchUpFormat.d.ts +81 -0
  53. package/dist/components/matchUpFormat/matchUpFormatLogic.d.ts +112 -0
  54. package/dist/components/modal/cmodal.d.ts +30 -0
  55. package/dist/components/modal/cmodalStyles.d.ts +8 -0
  56. package/dist/components/modal/compositionEditorModal.d.ts +46 -0
  57. package/dist/components/modal/generateTeamsModal.d.ts +26 -0
  58. package/dist/components/modal/mockParticipants.d.ts +91 -0
  59. package/dist/components/modal/scheduleCellConfigModal.d.ts +44 -0
  60. package/dist/components/modal/selectItem.d.ts +24 -0
  61. package/dist/components/notes-toolbar/notesToolbar.d.ts +20 -0
  62. package/dist/components/policy-catalog/controller/policyCatalogControl.d.ts +18 -0
  63. package/dist/components/policy-catalog/domain/catalogProjections.d.ts +11 -0
  64. package/dist/components/policy-catalog/domain/policyDefaults.d.ts +26 -0
  65. package/dist/components/policy-catalog/domain/utils.d.ts +4 -0
  66. package/dist/components/policy-catalog/editors/ranking/domain/emptyRankingPolicy.d.ts +2 -0
  67. package/dist/components/policy-catalog/editors/ranking/domain/rankingProjections.d.ts +32 -0
  68. package/dist/components/policy-catalog/editors/ranking/index.d.ts +9 -0
  69. package/dist/components/policy-catalog/editors/ranking/rankingPointsEditorControl.d.ts +27 -0
  70. package/dist/components/policy-catalog/editors/ranking/rankingPointsEditorPanel.d.ts +8 -0
  71. package/dist/components/policy-catalog/editors/ranking/rankingPointsEditorStore.d.ts +53 -0
  72. package/dist/components/policy-catalog/editors/ranking/sections/aggregationSection.d.ts +6 -0
  73. package/dist/components/policy-catalog/editors/ranking/sections/bonusPointsRow.d.ts +6 -0
  74. package/dist/components/policy-catalog/editors/ranking/sections/metadataSection.d.ts +6 -0
  75. package/dist/components/policy-catalog/editors/ranking/sections/perWinPointsRow.d.ts +6 -0
  76. package/dist/components/policy-catalog/editors/ranking/sections/positionPointsTable.d.ts +6 -0
  77. package/dist/components/policy-catalog/editors/ranking/sections/profileCard.d.ts +6 -0
  78. package/dist/components/policy-catalog/editors/ranking/sections/qualityWinSection.d.ts +6 -0
  79. package/dist/components/policy-catalog/editors/ranking/sections/scopeBadges.d.ts +2 -0
  80. package/dist/components/policy-catalog/editors/ranking/sections/scopeEditor.d.ts +6 -0
  81. package/dist/components/policy-catalog/editors/ranking/styles.d.ts +25 -0
  82. package/dist/components/policy-catalog/editors/ranking/types.d.ts +146 -0
  83. package/dist/components/policy-catalog/editors/scheduling/domain/schedulingProjections.d.ts +5 -0
  84. package/dist/components/policy-catalog/editors/scheduling/domain/schedulingValidation.d.ts +2 -0
  85. package/dist/components/policy-catalog/editors/scheduling/index.d.ts +11 -0
  86. package/dist/components/policy-catalog/editors/scheduling/schedulingEditorControl.d.ts +26 -0
  87. package/dist/components/policy-catalog/editors/scheduling/schedulingEditorPanel.d.ts +6 -0
  88. package/dist/components/policy-catalog/editors/scheduling/schedulingEditorStore.d.ts +32 -0
  89. package/dist/components/policy-catalog/editors/scheduling/sections/averageTimesSection.d.ts +6 -0
  90. package/dist/components/policy-catalog/editors/scheduling/sections/dailyLimitsSection.d.ts +6 -0
  91. package/dist/components/policy-catalog/editors/scheduling/sections/defaultTimesSection.d.ts +6 -0
  92. package/dist/components/policy-catalog/editors/scheduling/sections/formatTimeRow.d.ts +22 -0
  93. package/dist/components/policy-catalog/editors/scheduling/sections/modificationFlagsSection.d.ts +6 -0
  94. package/dist/components/policy-catalog/editors/scheduling/sections/recoveryTimesSection.d.ts +6 -0
  95. package/dist/components/policy-catalog/editors/scheduling/styles.d.ts +27 -0
  96. package/dist/components/policy-catalog/editors/scheduling/types.d.ts +65 -0
  97. package/dist/components/policy-catalog/engine/policyCatalogStore.d.ts +25 -0
  98. package/dist/components/policy-catalog/index.d.ts +22 -0
  99. package/dist/components/policy-catalog/types.d.ts +57 -0
  100. package/dist/components/policy-catalog/ui/editorShell.d.ts +11 -0
  101. package/dist/components/policy-catalog/ui/jsonEditor.d.ts +5 -0
  102. package/dist/components/policy-catalog/ui/policyCatalogLayout.d.ts +6 -0
  103. package/dist/components/policy-catalog/ui/policyCatalogPanel.d.ts +10 -0
  104. package/dist/components/policy-catalog/ui/styles.d.ts +28 -0
  105. package/dist/components/popover/tipster.d.ts +14 -0
  106. package/dist/components/print-composition-editor/printCompositionEditor.d.ts +2 -0
  107. package/dist/components/print-composition-editor/printCompositionEditorTypes.d.ts +77 -0
  108. package/dist/components/renderSchematicStructure/index.d.ts +4 -0
  109. package/dist/components/renderSchematicStructure/renderSchematicMatchUp.d.ts +26 -0
  110. package/dist/components/renderSchematicStructure/renderSchematicRound.d.ts +15 -0
  111. package/dist/components/renderSchematicStructure/renderSchematicStructure.d.ts +12 -0
  112. package/dist/components/renderStructure/isLuckyDraw.d.ts +9 -0
  113. package/dist/components/renderStructure/renderAddress.d.ts +5 -0
  114. package/dist/components/renderStructure/renderCenterInfo.d.ts +10 -0
  115. package/dist/components/renderStructure/renderContainer.d.ts +4 -0
  116. package/dist/components/renderStructure/renderFlag.d.ts +6 -0
  117. package/dist/components/renderStructure/renderFrill.d.ts +10 -0
  118. package/dist/components/renderStructure/renderGameScore.d.ts +3 -0
  119. package/dist/components/renderStructure/renderIndividual.d.ts +12 -0
  120. package/dist/components/renderStructure/renderMatchUp.d.ts +14 -0
  121. package/dist/components/renderStructure/renderParticipant.d.ts +11 -0
  122. package/dist/components/renderStructure/renderParticipantDetail.d.ts +7 -0
  123. package/dist/components/renderStructure/renderParticipantInput.d.ts +10 -0
  124. package/dist/components/renderStructure/renderPersonAttribute.d.ts +6 -0
  125. package/dist/components/renderStructure/renderRound.d.ts +17 -0
  126. package/dist/components/renderStructure/renderRoundHeader.d.ts +8 -0
  127. package/dist/components/renderStructure/renderScale.d.ts +8 -0
  128. package/dist/components/renderStructure/renderSchedule.d.ts +5 -0
  129. package/dist/components/renderStructure/renderSeeding.d.ts +6 -0
  130. package/dist/components/renderStructure/renderSide.d.ts +9 -0
  131. package/dist/components/renderStructure/renderSideScore.d.ts +16 -0
  132. package/dist/components/renderStructure/renderStatusPill.d.ts +3 -0
  133. package/dist/components/renderStructure/renderStructure.d.ts +13 -0
  134. package/dist/components/renderStructure/renderTeam.d.ts +5 -0
  135. package/dist/components/renderStructure/renderTeamLogo.d.ts +4 -0
  136. package/dist/components/renderStructure/renderTick.d.ts +3 -0
  137. package/dist/components/schedule-page/controller/schedulePageControl.d.ts +18 -0
  138. package/dist/components/schedule-page/domain/matchUpCatalogProjections.d.ts +4 -0
  139. package/dist/components/schedule-page/domain/scheduleIssues.d.ts +2 -0
  140. package/dist/components/schedule-page/domain/utils.d.ts +5 -0
  141. package/dist/components/schedule-page/engine/schedulePageStore.d.ts +34 -0
  142. package/dist/components/schedule-page/index.d.ts +24 -0
  143. package/dist/components/schedule-page/types.d.ts +218 -0
  144. package/dist/components/schedule-page/ui/courtGridSlot.d.ts +8 -0
  145. package/dist/components/schedule-page/ui/dateStrip.d.ts +5 -0
  146. package/dist/components/schedule-page/ui/inspectorPanel.d.ts +2 -0
  147. package/dist/components/schedule-page/ui/issuesPanel.d.ts +2 -0
  148. package/dist/components/schedule-page/ui/matchUpCard.d.ts +5 -0
  149. package/dist/components/schedule-page/ui/matchUpCatalog.d.ts +11 -0
  150. package/dist/components/schedule-page/ui/scheduleCellTypeAhead.d.ts +23 -0
  151. package/dist/components/schedule-page/ui/scheduleGridCell.d.ts +8 -0
  152. package/dist/components/schedule-page/ui/schedulePageLayout.d.ts +18 -0
  153. package/dist/components/schedule-page/ui/styles.d.ts +41 -0
  154. package/dist/components/scheduling-profile/controller/schedulingProfileControl.d.ts +14 -0
  155. package/dist/components/scheduling-profile/domain/catalogProjections.d.ts +16 -0
  156. package/dist/components/scheduling-profile/domain/dndApply.d.ts +2 -0
  157. package/dist/components/scheduling-profile/domain/issueIndex.d.ts +2 -0
  158. package/dist/components/scheduling-profile/domain/profileProjections.d.ts +6 -0
  159. package/dist/components/scheduling-profile/domain/utils.d.ts +7 -0
  160. package/dist/components/scheduling-profile/domain/validateProfile.d.ts +13 -0
  161. package/dist/components/scheduling-profile/engine/profileStore.d.ts +27 -0
  162. package/dist/components/scheduling-profile/index.d.ts +25 -0
  163. package/dist/components/scheduling-profile/types.d.ts +197 -0
  164. package/dist/components/scheduling-profile/ui/cardPopover.d.ts +11 -0
  165. package/dist/components/scheduling-profile/ui/dateStrip.d.ts +5 -0
  166. package/dist/components/scheduling-profile/ui/inspectorPanel.d.ts +2 -0
  167. package/dist/components/scheduling-profile/ui/issuesPanel.d.ts +5 -0
  168. package/dist/components/scheduling-profile/ui/roundCard.d.ts +12 -0
  169. package/dist/components/scheduling-profile/ui/roundCatalog.d.ts +8 -0
  170. package/dist/components/scheduling-profile/ui/schedulingProfileLayout.d.ts +15 -0
  171. package/dist/components/scheduling-profile/ui/styles.d.ts +46 -0
  172. package/dist/components/scheduling-profile/ui/venueBoard.d.ts +7 -0
  173. package/dist/components/scorecard/index.d.ts +2 -0
  174. package/dist/components/scorecard/renderScorecard.d.ts +26 -0
  175. package/dist/components/scoring/approaches/dialPadApproach.d.ts +2 -0
  176. package/dist/components/scoring/approaches/dialPadLogic.d.ts +12 -0
  177. package/dist/components/scoring/approaches/dynamicSetsApproach.d.ts +2 -0
  178. package/dist/components/scoring/approaches/freeScoreApproach.d.ts +2 -0
  179. package/dist/components/scoring/approaches/inlineScoringApproach.d.ts +2 -0
  180. package/dist/components/scoring/config.d.ts +28 -0
  181. package/dist/components/scoring/index.d.ts +6 -0
  182. package/dist/components/scoring/logic/dynamicSetsLogic.d.ts +124 -0
  183. package/dist/components/scoring/scoringModal.d.ts +2 -0
  184. package/dist/components/scoring/types.d.ts +60 -0
  185. package/dist/components/scoring/utils/scoreFormatters.d.ts +12 -0
  186. package/dist/components/scoring/utils/scoreValidator.d.ts +16 -0
  187. package/dist/components/scoring/utils/setExpansionLogic.d.ts +24 -0
  188. package/dist/components/temporal-grid/controller/temporalGridControl.d.ts +137 -0
  189. package/dist/components/temporal-grid/controller/viewProjections.d.ts +220 -0
  190. package/dist/components/temporal-grid/engine/viewState.d.ts +34 -0
  191. package/dist/components/temporal-grid/index.d.ts +18 -0
  192. package/dist/components/temporal-grid/timeline/CourtTimeline.d.ts +77 -0
  193. package/dist/components/temporal-grid/timeline/InteractionManager.d.ts +59 -0
  194. package/dist/components/temporal-grid/timeline/ItemRenderer.d.ts +35 -0
  195. package/dist/components/temporal-grid/timeline/RowLayout.d.ts +38 -0
  196. package/dist/components/temporal-grid/timeline/TimeAxis.d.ts +41 -0
  197. package/dist/components/temporal-grid/timeline/TimeScale.d.ts +106 -0
  198. package/dist/components/temporal-grid/timeline/types.d.ts +124 -0
  199. package/dist/components/temporal-grid/ui/blockPopover.d.ts +29 -0
  200. package/dist/components/temporal-grid/ui/courtAvailabilityModal.d.ts +29 -0
  201. package/dist/components/temporal-grid/ui/modernTimePicker.d.ts +46 -0
  202. package/dist/components/temporal-grid/ui/statsBar.d.ts +21 -0
  203. package/dist/components/temporal-grid/ui/temporalGrid.d.ts +149 -0
  204. package/dist/components/temporal-grid/ui/viewToolbar.d.ts +37 -0
  205. package/dist/components/topology-builder/controller/topologyBuilderControl.d.ts +19 -0
  206. package/dist/components/topology-builder/domain/feedRounds.d.ts +42 -0
  207. package/dist/components/topology-builder/domain/generateDrawFromTopology.d.ts +16 -0
  208. package/dist/components/topology-builder/domain/playoffProfilesCache.d.ts +16 -0
  209. package/dist/components/topology-builder/domain/previewGenerator.d.ts +9 -0
  210. package/dist/components/topology-builder/domain/templates.d.ts +2 -0
  211. package/dist/components/topology-builder/domain/topologyToDrawOptions.d.ts +6 -0
  212. package/dist/components/topology-builder/domain/topologyValidator.d.ts +8 -0
  213. package/dist/components/topology-builder/engine/topologyStore.d.ts +30 -0
  214. package/dist/components/topology-builder/index.d.ts +23 -0
  215. package/dist/components/topology-builder/types.d.ts +59 -0
  216. package/dist/components/topology-builder/ui/edgeEditor.d.ts +7 -0
  217. package/dist/components/topology-builder/ui/nodeEditor.d.ts +9 -0
  218. package/dist/components/topology-builder/ui/structureCard.d.ts +39 -0
  219. package/dist/components/topology-builder/ui/toolbar.d.ts +15 -0
  220. package/dist/components/topology-builder/ui/topologyBuilderLayout.d.ts +7 -0
  221. package/dist/components/topology-builder/ui/topologyCanvas.d.ts +10 -0
  222. package/dist/components/validators/numericRange.d.ts +1 -0
  223. package/dist/components/validators/numericValidator.d.ts +1 -0
  224. package/dist/compositions/compositions.d.ts +2 -0
  225. package/dist/compositions/lineHeights.d.ts +5 -0
  226. package/dist/compositions/resolvePublishedComposition.d.ts +12 -0
  227. package/dist/constants/matchUpFormats.d.ts +34 -0
  228. package/dist/courthive-components.css +1 -1
  229. package/dist/courthive-components.es.js +4 -4
  230. package/dist/courthive-components.umd.js +1 -1
  231. package/dist/data/componentConstants.d.ts +1 -0
  232. package/dist/data/generateEventData.d.ts +15 -0
  233. package/dist/data/generateMatchUps.d.ts +25 -0
  234. package/dist/helpers/createTypeAhead.d.ts +14 -0
  235. package/dist/helpers/drawStateManager.d.ts +91 -0
  236. package/dist/helpers/getAttr.d.ts +4 -0
  237. package/dist/helpers/typeOf.d.ts +4 -0
  238. package/dist/index.d.ts +80 -4006
  239. package/dist/styles/centerInfoStyle.d.ts +6 -0
  240. package/dist/styles/containerStyle.d.ts +1 -0
  241. package/dist/styles/flagStyle.d.ts +3 -0
  242. package/dist/styles/getChevronStyle.d.ts +4 -0
  243. package/dist/styles/getLinkStyle.d.ts +25 -0
  244. package/dist/styles/getMatchUpStyle.d.ts +4 -0
  245. package/dist/styles/getSelectedMatchUpStyle.d.ts +1 -0
  246. package/dist/styles/groupNameStyle.d.ts +1 -0
  247. package/dist/styles/groupSeparatorStyle.d.ts +4 -0
  248. package/dist/styles/matchUpContainerStyle.d.ts +1 -0
  249. package/dist/styles/participantDetailStyle.d.ts +1 -0
  250. package/dist/styles/participantStyle.d.ts +17 -0
  251. package/dist/styles/pillStyle.d.ts +3 -0
  252. package/dist/styles/resultStyles.d.ts +4 -0
  253. package/dist/styles/roundContainerStyle.d.ts +1 -0
  254. package/dist/styles/roundHeaderStyle.d.ts +1 -0
  255. package/dist/styles/roundStyle.d.ts +3 -0
  256. package/dist/styles/scaleStyle.d.ts +3 -0
  257. package/dist/styles/schedulingStyle.d.ts +1 -0
  258. package/dist/styles/scoreStyles.d.ts +9 -0
  259. package/dist/styles/scoreWrapperStyle.d.ts +4 -0
  260. package/dist/styles/seedStyle.d.ts +1 -0
  261. package/dist/styles/sideStyles.d.ts +3 -0
  262. package/dist/styles/structureStyle.d.ts +1 -0
  263. package/dist/styles/teamLogoStyle.d.ts +1 -0
  264. package/dist/styles/themes/australianTheme.d.ts +1 -0
  265. package/dist/styles/themes/basicCardTheme.d.ts +1 -0
  266. package/dist/styles/themes/basicTheme.d.ts +1 -0
  267. package/dist/styles/themes/createTheme.d.ts +5 -0
  268. package/dist/styles/themes/frenchTheme.d.ts +1 -0
  269. package/dist/styles/themes/index.d.ts +7 -0
  270. package/dist/styles/themes/itfTheme.d.ts +1 -0
  271. package/dist/styles/themes/usOpenTheme.d.ts +1 -0
  272. package/dist/styles/themes/wimbledonTheme.d.ts +1 -0
  273. package/dist/tools/freeScore/freeScore.d.ts +79 -0
  274. package/dist/types.d.ts +321 -0
  275. package/dist/utilities/isElement.d.ts +1 -0
  276. package/dist/validators/dateValidator.d.ts +1 -0
  277. package/dist/validators/emailValidator.d.ts +1 -0
  278. package/dist/validators/index.d.ts +7 -0
  279. package/dist/validators/nameValidator.d.ts +1 -0
  280. package/dist/validators/numericRange.d.ts +1 -0
  281. package/dist/validators/numericValidator.d.ts +1 -0
  282. package/dist/validators/passwordValidator.d.ts +1 -0
  283. package/dist/validators/wordValidator.d.ts +1 -0
  284. package/dist/version.d.ts +1 -0
  285. package/package.json +4 -4
@@ -0,0 +1,146 @@
1
+ /**
2
+ * Ranking Points Editor — Type Definitions
3
+ *
4
+ * Mirrors the factory's rankingTypes.ts shapes for the editor state.
5
+ * Uses `any` for complex polymorphic types (PositionValue, LevelKeyed)
6
+ * to avoid importing factory internals into the component library.
7
+ */
8
+ export type RankingEditorSection = 'metadata' | 'awardProfiles' | 'qualityWinProfiles' | 'aggregationRules';
9
+ export interface RankingPointsEditorState {
10
+ draft: RankingPolicyData;
11
+ expandedSections: Set<RankingEditorSection>;
12
+ expandedProfiles: Set<number>;
13
+ profileFilter: string;
14
+ dirty: boolean;
15
+ readonly: boolean;
16
+ }
17
+ export type RankingPointsEditorChangeListener = (state: RankingPointsEditorState) => void;
18
+ export interface RankingPointsEditorConfig {
19
+ initialPolicy?: RankingPolicyData;
20
+ onChange?: (policy: RankingPolicyData) => void;
21
+ readonly?: boolean;
22
+ }
23
+ export interface RankingPolicyData {
24
+ policyName?: string;
25
+ policyVersion?: string;
26
+ validDateRange?: DateRange;
27
+ awardProfiles?: AwardProfileData[];
28
+ qualityWinProfiles?: QualityWinProfileData[];
29
+ aggregationRules?: AggregationRulesData;
30
+ requireWinForPoints?: boolean;
31
+ requireWinFirstRound?: boolean;
32
+ doublesAttribution?: string;
33
+ categoryResolution?: string;
34
+ }
35
+ export interface AwardProfileData {
36
+ profileName?: string;
37
+ finishingPositionRanges?: Record<string, any>;
38
+ finishingRound?: Record<string, any>;
39
+ perWinPoints?: any;
40
+ pointsPerWin?: any;
41
+ finishingPositionPoints?: {
42
+ participationOrders: number[];
43
+ };
44
+ maxCountableMatches?: any;
45
+ bonusPoints?: BonusPointData[];
46
+ requireWinForPoints?: boolean;
47
+ requireWinFirstRound?: boolean;
48
+ dateRanges?: DateRange[];
49
+ eventTypes?: string[];
50
+ drawTypes?: string[];
51
+ drawSizes?: number[];
52
+ maxDrawSize?: number;
53
+ stages?: string[];
54
+ stageSequences?: number[];
55
+ levels?: number[];
56
+ maxLevel?: number;
57
+ flights?: any;
58
+ maxFlightNumber?: number;
59
+ participationOrder?: number;
60
+ category?: CategoryScopeData;
61
+ priority?: number;
62
+ }
63
+ export interface BonusPointData {
64
+ finishingPositions: number[];
65
+ value: any;
66
+ }
67
+ export interface QualityWinProfileData {
68
+ rankingRanges: QualityWinRangeData[];
69
+ rankingScaleName: string;
70
+ rankingEventType?: string;
71
+ rankingSnapshot?: string;
72
+ unrankedOpponentBehavior?: string;
73
+ defaultRank?: number;
74
+ levels?: number[];
75
+ eventTypes?: string[];
76
+ drawTypes?: string[];
77
+ stages?: string[];
78
+ dateRanges?: DateRange[];
79
+ category?: CategoryScopeData;
80
+ maxBonusPerTournament?: number;
81
+ includeWalkovers?: boolean;
82
+ }
83
+ export interface QualityWinRangeData {
84
+ rankRange: [number, number];
85
+ value: number;
86
+ }
87
+ export interface AggregationRulesData {
88
+ countingBuckets?: CountingBucketData[];
89
+ bestOfCount?: number;
90
+ rollingPeriodDays?: number;
91
+ decayFunction?: string;
92
+ decaySteps?: {
93
+ afterDays: number;
94
+ multiplier: number;
95
+ }[];
96
+ separateByGender?: boolean;
97
+ perCategory?: boolean;
98
+ minCountableResults?: number;
99
+ maxResultsPerLevel?: Record<string, number>;
100
+ doublesAttribution?: string;
101
+ tiebreakCriteria?: string[];
102
+ }
103
+ export interface CountingBucketData {
104
+ bucketName?: string;
105
+ eventTypes?: string[];
106
+ pointComponents?: string[];
107
+ bestOfCount?: number;
108
+ maxResultsPerLevel?: Record<string, number>;
109
+ minResults?: number;
110
+ levels?: number[];
111
+ mandatoryRules?: MandatoryRuleData[];
112
+ }
113
+ export interface MandatoryRuleData {
114
+ ruleName?: string;
115
+ levels: number[];
116
+ bestOfCount?: number;
117
+ }
118
+ export interface CategoryScopeData {
119
+ ageCategoryCodes?: string[];
120
+ genders?: string[];
121
+ categoryNames?: string[];
122
+ categoryTypes?: string[];
123
+ ratingTypes?: string[];
124
+ ballTypes?: string[];
125
+ wheelchairClasses?: string[];
126
+ subTypes?: string[];
127
+ }
128
+ export interface DateRange {
129
+ startDate?: string;
130
+ endDate?: string;
131
+ }
132
+ export type TableLayout = {
133
+ type: 'flat';
134
+ } | {
135
+ type: 'level-columns';
136
+ levels: number[];
137
+ } | {
138
+ type: 'flight-columns';
139
+ flights: number[];
140
+ } | {
141
+ type: 'level-flight-tabs';
142
+ levels: number[];
143
+ flightsPerLevel: Record<number, number[]>;
144
+ } | {
145
+ type: 'conditional';
146
+ };
@@ -0,0 +1,5 @@
1
+ import { SchedulingPolicyData } from '../types';
2
+ /** Get a human-readable description for a matchUp format code */
3
+ export declare function formatCodeLabel(code: string): string;
4
+ /** Create empty scheduling policy with sensible structure */
5
+ export declare function emptySchedulingPolicy(): SchedulingPolicyData;
@@ -0,0 +1,2 @@
1
+ import { SchedulingPolicyData, SchedulingValidationResult } from '../types';
2
+ export declare function validateSchedulingPolicy(data: SchedulingPolicyData): SchedulingValidationResult[];
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Scheduling Editor — Public API
3
+ *
4
+ * Standalone exports for the scheduling policy editor.
5
+ */
6
+ export { SchedulingEditorControl, createSchedulingEditor } from './schedulingEditorControl';
7
+ export { SchedulingEditorStore } from './schedulingEditorStore';
8
+ export { validateSchedulingPolicy } from './domain/schedulingValidation';
9
+ export { formatCodeLabel, emptySchedulingPolicy } from './domain/schedulingProjections';
10
+ export { buildSchedulingEditorPanel } from './schedulingEditorPanel';
11
+ export type { SchedulingPolicyData, SchedulingEditorState, SchedulingEditorSection, SchedulingEditorChangeListener, SchedulingEditorConfig, SchedulingValidationResult, ValidationSeverity, MinutesEntry, AverageTimeEntry, RecoveryTimeEntry, MatchUpAverageTime, MatchUpRecoveryTime } from './types';
@@ -0,0 +1,26 @@
1
+ import { SchedulingEditorStore } from './schedulingEditorStore';
2
+ import { SchedulingPolicyData, SchedulingEditorConfig } from './types';
3
+ import { PolicyEditorInstance as CatalogEditorInstance } from '../../types';
4
+ export declare class SchedulingEditorControl {
5
+ private readonly store;
6
+ private readonly panel;
7
+ private readonly unsubscribe;
8
+ private container;
9
+ constructor(config: SchedulingEditorConfig);
10
+ render(container: HTMLElement): void;
11
+ destroy(): void;
12
+ getData(): SchedulingPolicyData;
13
+ setData(data: SchedulingPolicyData): void;
14
+ getStore(): SchedulingEditorStore;
15
+ /**
16
+ * Create as a PolicyEditorInstance for embedding in the catalog editor shell.
17
+ */
18
+ static createEditorInstance(config: {
19
+ initialData: Record<string, unknown>;
20
+ onChange: (data: Record<string, unknown>) => void;
21
+ }): CatalogEditorInstance;
22
+ }
23
+ /**
24
+ * Convenience factory for standalone use (e.g., TMX scheduling page).
25
+ */
26
+ export declare function createSchedulingEditor(config: SchedulingEditorConfig, container: HTMLElement): SchedulingEditorControl;
@@ -0,0 +1,6 @@
1
+ import { SchedulingEditorState, SchedulingEditorConfig } from './types';
2
+ import { SchedulingEditorStore } from './schedulingEditorStore';
3
+ export declare function buildSchedulingEditorPanel(store: SchedulingEditorStore, config: SchedulingEditorConfig): {
4
+ element: HTMLElement;
5
+ update(state: SchedulingEditorState): void;
6
+ };
@@ -0,0 +1,32 @@
1
+ import { SchedulingPolicyData, SchedulingEditorState, SchedulingEditorSection, SchedulingEditorChangeListener, SchedulingEditorConfig } from './types';
2
+ export declare class SchedulingEditorStore {
3
+ private state;
4
+ private readonly listeners;
5
+ private readonly config;
6
+ constructor(config: SchedulingEditorConfig);
7
+ getState(): SchedulingEditorState;
8
+ getData(): SchedulingPolicyData;
9
+ setData(data: SchedulingPolicyData): void;
10
+ toggleSection(sectionId: SchedulingEditorSection): void;
11
+ setModificationFlag(key: 'courts' | 'venues', value: boolean): void;
12
+ setDailyLimit(key: 'SINGLES' | 'DOUBLES' | 'total', value: number): void;
13
+ setDefaultAverageTime(index: number, field: 'default' | 'DOUBLES', value: number | undefined): void;
14
+ setDefaultRecoveryTime(index: number, field: 'default' | 'DOUBLES', value: number | undefined): void;
15
+ addAverageFormatGroup(): void;
16
+ removeAverageFormatGroup(index: number): void;
17
+ setAverageFormatCodes(groupIndex: number, codes: string[]): void;
18
+ setAverageTime(groupIndex: number, overrideIndex: number, field: 'default' | 'DOUBLES', value: number | undefined): void;
19
+ addAverageCategoryOverride(groupIndex: number): void;
20
+ removeAverageCategoryOverride(groupIndex: number, overrideIndex: number): void;
21
+ setAverageOverrideCategories(groupIndex: number, overrideIndex: number, key: 'categoryNames' | 'categoryTypes', values: string[]): void;
22
+ addRecoveryFormatGroup(): void;
23
+ removeRecoveryFormatGroup(index: number): void;
24
+ setRecoveryFormatCodes(groupIndex: number, codes: string[]): void;
25
+ setRecoveryTime(groupIndex: number, overrideIndex: number, field: 'default' | 'DOUBLES', value: number | undefined): void;
26
+ addRecoveryCategoryOverride(groupIndex: number): void;
27
+ removeRecoveryCategoryOverride(groupIndex: number, overrideIndex: number): void;
28
+ setRecoveryOverrideCategories(groupIndex: number, overrideIndex: number, key: 'categoryNames' | 'categoryTypes', values: string[]): void;
29
+ subscribe(listener: SchedulingEditorChangeListener): () => void;
30
+ private commitDraft;
31
+ private emit;
32
+ }
@@ -0,0 +1,6 @@
1
+ import { SchedulingEditorState, SchedulingEditorConfig } from '../types';
2
+ import { SchedulingEditorStore } from '../schedulingEditorStore';
3
+ export declare function buildAverageTimesSection(store: SchedulingEditorStore, config: SchedulingEditorConfig): {
4
+ element: HTMLElement;
5
+ update(state: SchedulingEditorState): void;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { SchedulingEditorState } from '../types';
2
+ import { SchedulingEditorStore } from '../schedulingEditorStore';
3
+ export declare function buildDailyLimitsSection(store: SchedulingEditorStore): {
4
+ element: HTMLElement;
5
+ update(state: SchedulingEditorState): void;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { SchedulingEditorState } from '../types';
2
+ import { SchedulingEditorStore } from '../schedulingEditorStore';
3
+ export declare function buildDefaultTimesSection(store: SchedulingEditorStore): {
4
+ element: HTMLElement;
5
+ update(state: SchedulingEditorState): void;
6
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Format Time Row — Reusable card for one format group.
3
+ *
4
+ * Format codes are added via the matchUpFormat modal editor.
5
+ * Tags display existing codes with remove buttons.
6
+ */
7
+ export interface FormatTimeRowConfig {
8
+ formatCodes: string[];
9
+ overrides: {
10
+ categoryLabel: string;
11
+ isDefault: boolean;
12
+ defaultMinutes: number;
13
+ doublesMinutes?: number;
14
+ }[];
15
+ availableFormats: string[];
16
+ onFormatCodesChange: (codes: string[]) => void;
17
+ onTimeChange: (overrideIndex: number, field: 'default' | 'DOUBLES', value: number | undefined) => void;
18
+ onAddOverride: () => void;
19
+ onRemoveOverride: (index: number) => void;
20
+ onRemoveGroup: () => void;
21
+ }
22
+ export declare function buildFormatTimeRow(config: FormatTimeRowConfig): HTMLElement;
@@ -0,0 +1,6 @@
1
+ import { SchedulingEditorState } from '../types';
2
+ import { SchedulingEditorStore } from '../schedulingEditorStore';
3
+ export declare function buildModificationFlagsSection(store: SchedulingEditorStore): {
4
+ element: HTMLElement;
5
+ update(state: SchedulingEditorState): void;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { SchedulingEditorState, SchedulingEditorConfig } from '../types';
2
+ import { SchedulingEditorStore } from '../schedulingEditorStore';
3
+ export declare function buildRecoveryTimesSection(store: SchedulingEditorStore, config: SchedulingEditorConfig): {
4
+ element: HTMLElement;
5
+ update(state: SchedulingEditorState): void;
6
+ };
@@ -0,0 +1,27 @@
1
+ export declare const seSectionStyle: () => string;
2
+ export declare const seSectionHeaderStyle: () => string;
3
+ export declare const seSectionChevronStyle: () => string;
4
+ export declare const seSectionBodyStyle: () => string;
5
+ export declare const seFieldRowStyle: () => string;
6
+ export declare const seFieldLabelStyle: () => string;
7
+ export declare const seFieldInputStyle: () => string;
8
+ export declare const seFieldUnitStyle: () => string;
9
+ export declare const seCheckboxRowStyle: () => string;
10
+ export declare const seFormatGroupStyle: () => string;
11
+ export declare const seFormatGroupHeaderStyle: () => string;
12
+ export declare const seFormatGroupLabelStyle: () => string;
13
+ export declare const seTagPickerStyle: () => string;
14
+ export declare const seTagStyle: () => string;
15
+ export declare const seTagRemoveStyle: () => string;
16
+ export declare const seTagAddWrapStyle: () => string;
17
+ export declare const seTagAddBtnStyle: () => string;
18
+ export declare const seTagDropdownStyle: () => string;
19
+ export declare const seTagDropdownInputStyle: () => string;
20
+ export declare const seTagDropdownItemStyle: () => string;
21
+ export declare const seTagDropdownEmptyStyle: () => string;
22
+ export declare const seOverrideRowStyle: () => string;
23
+ export declare const seOverrideCategoriesStyle: () => string;
24
+ export declare const seOverrideRemoveStyle: () => string;
25
+ export declare const seAddBtnStyle: () => string;
26
+ export declare const seRemoveGroupBtnStyle: () => string;
27
+ export declare const seEditorStyle: () => string;
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Scheduling Policy Editor — Type Definitions
3
+ *
4
+ * Mirrors the factory's scheduling policy data shape exactly.
5
+ */
6
+ export interface MinutesEntry {
7
+ default: number;
8
+ DOUBLES?: number;
9
+ }
10
+ export interface AverageTimeEntry {
11
+ categoryNames?: string[];
12
+ categoryTypes?: string[];
13
+ minutes: MinutesEntry;
14
+ }
15
+ export interface RecoveryTimeEntry {
16
+ categoryNames?: string[];
17
+ categoryTypes?: string[];
18
+ minutes: MinutesEntry;
19
+ }
20
+ export interface MatchUpAverageTime {
21
+ matchUpFormatCodes: string[];
22
+ averageTimes: AverageTimeEntry[];
23
+ }
24
+ export interface MatchUpRecoveryTime {
25
+ matchUpFormatCodes: string[];
26
+ recoveryTimes: RecoveryTimeEntry[];
27
+ }
28
+ export interface SchedulingPolicyData {
29
+ allowModificationWhenMatchUpsScheduled?: {
30
+ courts: boolean;
31
+ venues: boolean;
32
+ };
33
+ defaultTimes?: {
34
+ averageTimes?: AverageTimeEntry[];
35
+ recoveryTimes?: RecoveryTimeEntry[];
36
+ };
37
+ defaultDailyLimits?: {
38
+ SINGLES?: number;
39
+ DOUBLES?: number;
40
+ total?: number;
41
+ };
42
+ matchUpAverageTimes?: MatchUpAverageTime[];
43
+ matchUpRecoveryTimes?: MatchUpRecoveryTime[];
44
+ matchUpDailyLimits?: unknown[];
45
+ }
46
+ export type SchedulingEditorSection = 'modificationFlags' | 'dailyLimits' | 'defaultTimes' | 'averageTimes' | 'recoveryTimes';
47
+ export interface SchedulingEditorState {
48
+ draft: SchedulingPolicyData;
49
+ expandedSections: Set<SchedulingEditorSection>;
50
+ dirty: boolean;
51
+ }
52
+ export type SchedulingEditorChangeListener = (state: SchedulingEditorState) => void;
53
+ export type ValidationSeverity = 'error' | 'warning';
54
+ export interface SchedulingValidationResult {
55
+ severity: ValidationSeverity;
56
+ path: string;
57
+ message: string;
58
+ }
59
+ export interface SchedulingEditorConfig {
60
+ initialPolicy?: SchedulingPolicyData;
61
+ categoryNames?: string[];
62
+ categoryTypes?: string[];
63
+ matchUpFormatCodes?: string[];
64
+ onChange?: (policy: SchedulingPolicyData) => void;
65
+ }
@@ -0,0 +1,25 @@
1
+ import { PolicyCatalogState, PolicyCatalogChangeListener, PolicyCatalogConfig, PolicyCatalogItem, CatalogGroupBy } from '../types';
2
+ export declare class PolicyCatalogStore {
3
+ private state;
4
+ private readonly listeners;
5
+ private readonly config;
6
+ constructor(config: PolicyCatalogConfig);
7
+ getState(): PolicyCatalogState;
8
+ getSelectedItem(): PolicyCatalogItem | null;
9
+ setCatalogSearch(query: string): void;
10
+ setCatalogGroupBy(mode: CatalogGroupBy): void;
11
+ selectPolicy(id: string): void;
12
+ clearSelection(): void;
13
+ updateEditorDraft(data: Record<string, unknown>): void;
14
+ markDirty(): void;
15
+ markClean(): void;
16
+ savePolicy(): void;
17
+ resetDraft(): void;
18
+ applyPolicy(): void;
19
+ addNewPolicy(policyType: string): string;
20
+ duplicatePolicy(sourceId: string): string | null;
21
+ deletePolicy(id: string): void;
22
+ subscribe(listener: PolicyCatalogChangeListener): () => void;
23
+ private setState;
24
+ private emit;
25
+ }
@@ -0,0 +1,22 @@
1
+ import { PolicyCatalogConfig } from './types';
2
+ import { PolicyCatalogControl } from './controller/policyCatalogControl';
3
+ /**
4
+ * Policy Catalog — Public API
5
+ *
6
+ * Main entry point for the policy catalog component.
7
+ */
8
+ export { PolicyCatalogControl } from './controller/policyCatalogControl';
9
+ export { PolicyCatalogStore } from './engine/policyCatalogStore';
10
+ export { filterPolicyCatalog, groupPolicyCatalog } from './domain/catalogProjections';
11
+ export { POLICY_TYPE_METADATA, POLICY_TYPE_GROUPS, getPolicyTypeMeta, getEmptyPolicyData } from './domain/policyDefaults';
12
+ export { deepClone } from './domain/utils';
13
+ export { buildPolicyCatalogPanel } from './ui/policyCatalogPanel';
14
+ export { buildEditorShell } from './ui/editorShell';
15
+ export { buildPolicyCatalogLayout } from './ui/policyCatalogLayout';
16
+ export { buildJsonEditor } from './ui/jsonEditor';
17
+ export { SchedulingEditorControl, createSchedulingEditor, SchedulingEditorStore, validateSchedulingPolicy, formatCodeLabel, emptySchedulingPolicy, buildSchedulingEditorPanel } from './editors/scheduling';
18
+ export { RankingPointsEditorControl, createRankingPointsEditor, RankingPointsEditorStore, buildRankingPointsEditorPanel, emptyRankingPolicy } from './editors/ranking';
19
+ export type { PolicyCatalogItem, PolicyCatalogState, PolicyCatalogChangeListener, PolicyCatalogConfig, PolicyEditorInstance, PolicyEditorPlugin, PolicySource, PolicyTypeGroup, PolicyTypeMeta, CatalogGroupBy, UIPanel } from './types';
20
+ export type { SchedulingPolicyData, SchedulingEditorState, SchedulingEditorSection, SchedulingEditorChangeListener, SchedulingEditorConfig, SchedulingValidationResult, ValidationSeverity, MinutesEntry, AverageTimeEntry, RecoveryTimeEntry, MatchUpAverageTime, MatchUpRecoveryTime } from './editors/scheduling';
21
+ export type { RankingPolicyData, RankingPointsEditorState, RankingEditorSection, RankingPointsEditorChangeListener, RankingPointsEditorConfig, AwardProfileData, QualityWinProfileData, AggregationRulesData, TableLayout } from './editors/ranking';
22
+ export declare function createPolicyCatalog(config: PolicyCatalogConfig, container: HTMLElement): PolicyCatalogControl;
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Policy Catalog — Type Definitions
3
+ */
4
+ export type PolicyTypeGroup = 'Tournament Operations' | 'Scoring & Results' | 'Ranking Points' | 'Draw Configuration' | 'Participants' | 'Display & Audit';
5
+ export interface PolicyTypeMeta {
6
+ policyType: string;
7
+ label: string;
8
+ description: string;
9
+ group: PolicyTypeGroup;
10
+ hasEditor: boolean;
11
+ }
12
+ export type PolicySource = 'builtin' | 'user';
13
+ export interface PolicyCatalogItem {
14
+ id: string;
15
+ name: string;
16
+ policyType: string;
17
+ source: PolicySource;
18
+ description: string;
19
+ policyData: Record<string, unknown>;
20
+ }
21
+ export type CatalogGroupBy = 'type' | 'source';
22
+ export interface PolicyCatalogState {
23
+ catalog: PolicyCatalogItem[];
24
+ searchQuery: string;
25
+ groupBy: CatalogGroupBy;
26
+ selectedId: string | null;
27
+ editorDraft: Record<string, unknown> | null;
28
+ dirty: boolean;
29
+ }
30
+ export type PolicyCatalogChangeListener = (state: PolicyCatalogState) => void;
31
+ export interface PolicyEditorInstance {
32
+ element: HTMLElement;
33
+ setData(data: Record<string, unknown>): void;
34
+ getData(): Record<string, unknown>;
35
+ destroy(): void;
36
+ }
37
+ export interface PolicyEditorPlugin {
38
+ policyType: string;
39
+ create(config: {
40
+ initialData: Record<string, unknown>;
41
+ onChange: (data: Record<string, unknown>) => void;
42
+ }): PolicyEditorInstance;
43
+ }
44
+ export interface PolicyCatalogConfig {
45
+ builtinPolicies?: PolicyCatalogItem[];
46
+ userPolicies?: PolicyCatalogItem[];
47
+ editorPlugins?: PolicyEditorPlugin[];
48
+ onPolicySaved?: (item: PolicyCatalogItem) => void;
49
+ onPolicyApplied?: (item: PolicyCatalogItem) => void;
50
+ onPolicyCreated?: (item: PolicyCatalogItem) => void;
51
+ onPolicyDeleted?: (id: string) => void;
52
+ onSelectionChanged?: (item: PolicyCatalogItem | null) => void;
53
+ }
54
+ export interface UIPanel<S> {
55
+ element: HTMLElement;
56
+ update(state: S): void;
57
+ }
@@ -0,0 +1,11 @@
1
+ import { PolicyCatalogState, UIPanel } from '../types';
2
+ export interface EditorShellCallbacks {
3
+ onSave: () => void;
4
+ onReset: () => void;
5
+ onApply: () => void;
6
+ onDuplicate: () => void;
7
+ }
8
+ export interface EditorShellPanel extends UIPanel<PolicyCatalogState> {
9
+ bodyElement: HTMLElement;
10
+ }
11
+ export declare function buildEditorShell(callbacks: EditorShellCallbacks): EditorShellPanel;
@@ -0,0 +1,5 @@
1
+ import { PolicyEditorInstance } from '../types';
2
+ export declare function buildJsonEditor(config: {
3
+ initialData: Record<string, unknown>;
4
+ onChange: (data: Record<string, unknown>) => void;
5
+ }): PolicyEditorInstance;
@@ -0,0 +1,6 @@
1
+ import { PolicyCatalogState, UIPanel } from '../types';
2
+ import { EditorShellPanel } from './editorShell';
3
+ export declare function buildPolicyCatalogLayout(panels: {
4
+ catalogPanel: UIPanel<PolicyCatalogState>;
5
+ editorShell: EditorShellPanel;
6
+ }): UIPanel<PolicyCatalogState>;
@@ -0,0 +1,10 @@
1
+ import { PolicyCatalogState, UIPanel, CatalogGroupBy } from '../types';
2
+ export interface PolicyCatalogPanelCallbacks {
3
+ onSearchChange: (query: string) => void;
4
+ onGroupByChange: (mode: CatalogGroupBy) => void;
5
+ onSelectPolicy: (id: string) => void;
6
+ onNewPolicy?: (policyType: string) => void;
7
+ onDuplicatePolicy?: (id: string) => void;
8
+ onDeletePolicy?: (id: string) => void;
9
+ }
10
+ export declare function buildPolicyCatalogPanel(callbacks: PolicyCatalogPanelCallbacks): UIPanel<PolicyCatalogState>;
@@ -0,0 +1,28 @@
1
+ export declare const pcLayoutStyle: () => string;
2
+ export declare const pcPanelStyle: () => string;
3
+ export declare const pcPanelHeaderStyle: () => string;
4
+ export declare const pcPanelTitleStyle: () => string;
5
+ export declare const pcPanelMetaStyle: () => string;
6
+ export declare const pcToolbarStyle: () => string;
7
+ export declare const pcInputStyle: () => string;
8
+ export declare const pcSelectStyle: () => string;
9
+ export declare const pcCatalogStyle: () => string;
10
+ export declare const pcGroupStyle: () => string;
11
+ export declare const pcGroupHeaderStyle: () => string;
12
+ export declare const pcGroupChevronStyle: () => string;
13
+ export declare const pcGroupBodyStyle: () => string;
14
+ export declare const pcCardStyle: () => string;
15
+ export declare const pcCardTitleStyle: () => string;
16
+ export declare const pcCardMetaStyle: () => string;
17
+ export declare const pcTypeBadgeStyle: () => string;
18
+ export declare const pcEditorStyle: () => string;
19
+ export declare const pcEditorHeaderStyle: () => string;
20
+ export declare const pcEditorHeaderLeftStyle: () => string;
21
+ export declare const pcEditorActionsStyle: () => string;
22
+ export declare const pcBtnStyle: () => string;
23
+ export declare const pcBtnPrimaryStyle: () => string;
24
+ export declare const pcDirtyDotStyle: () => string;
25
+ export declare const pcEditorBodyStyle: () => string;
26
+ export declare const pcEmptyStyle: () => string;
27
+ export declare const pcJsonEditorStyle: () => string;
28
+ export declare const pcJsonErrorStyle: () => string;
@@ -0,0 +1,14 @@
1
+ import { Instance } from 'tippy.js';
2
+ export declare function destroyTipster(target?: HTMLElement | any): void;
3
+ type TipsterParams = {
4
+ title?: string;
5
+ options?: any[];
6
+ menuItems?: any[];
7
+ coords?: any;
8
+ callback?: (result: any) => void;
9
+ config?: any;
10
+ target?: HTMLElement;
11
+ items?: any[];
12
+ };
13
+ export declare function tipster(params: TipsterParams): Instance | undefined;
14
+ export {};
@@ -0,0 +1,2 @@
1
+ import { PrintCompositionEditorConfig, PrintCompositionEditorHandle } from './printCompositionEditorTypes';
2
+ export declare function createPrintCompositionEditor(container: HTMLElement, config: PrintCompositionEditorConfig): PrintCompositionEditorHandle;