@selfhelp/shared 1.6.1 → 1.7.0
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/CHANGELOG.md +23 -0
- package/dist/index.d.mts +40 -3
- package/dist/index.d.ts +40 -3
- package/dist/plugin-sdk/index.d.mts +1 -1
- package/dist/plugin-sdk/index.d.ts +1 -1
- package/dist/registry/index.d.mts +2 -2
- package/dist/registry/index.d.ts +2 -2
- package/dist/{styles.registry-0MsmyRmF.d.mts → styles.registry-B147FVHY.d.mts} +32 -1
- package/dist/{styles.registry-CtpsJ4gS.d.ts → styles.registry-D49K8F5z.d.ts} +32 -1
- package/package.json +1 -1
- package/src/types/index.ts +1 -0
- package/src/types/styles/auth.ts +1 -1
- package/src/types/styles/error.ts +44 -0
- package/src/types/styles/forms.ts +33 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,29 @@ All notable changes to `@selfhelp/shared` will be documented in this file.
|
|
|
9
9
|
|
|
10
10
|
This project follows semantic versioning.
|
|
11
11
|
|
|
12
|
+
## v1.7.0
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- Error-page style contracts in a new `styles/error.ts` (re-exported from the
|
|
17
|
+
package root): `INoAccessStyle` (the 403 `no-access` / `no-access-guest`
|
|
18
|
+
pages), `INotFoundStyle` (the 404 page) and `IMissingStyle`. Each carries the
|
|
19
|
+
shared `title` / `message` / `button_label` (plus `login_label` /
|
|
20
|
+
`show_login` for the access-denied variants) copy fields and the
|
|
21
|
+
`mantine_color` / `mantine_radius` / `mantine_shadow` /
|
|
22
|
+
`mantine_button_variant` / `show_icon` presentation fields that the new
|
|
23
|
+
styled system error pages render.
|
|
24
|
+
- `IShowUserInputStyle` + `IShowUserInputEntry` (`styles/forms.ts`): the
|
|
25
|
+
contract for the new **showUserInput** style, which renders a form's
|
|
26
|
+
collected entries as a table. It covers the data-table feature flags
|
|
27
|
+
(`dt_sortable` / `dt_searching` / `dt_paginate` / `dt_info` /
|
|
28
|
+
`dt_default_order_column` / `dt_default_order_dir`), `csv_export`,
|
|
29
|
+
`delete_entry` with translatable `delete_modal_title` / `delete_modal_body`,
|
|
30
|
+
column remapping via `fields_map`, `own_entries_only` / `show_timestamp`, the
|
|
31
|
+
full `mantine_table_*` styling set, and the `entries` array — where each row
|
|
32
|
+
exposes `record_id`, `id_users` and the per-row `_can_delete` flag the
|
|
33
|
+
renderer uses to show a trash icon only for rows the current user may delete.
|
|
34
|
+
|
|
12
35
|
## v1.6.1
|
|
13
36
|
|
|
14
37
|
### Added
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY,
|
|
1
|
+
import { f as IStyleWithSpacing, h as IContentField, T as TStyleName } from './styles.registry-B147FVHY.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, i as IAccordionItemStyle, j as IAccordionStyle, k as IActionIconStyle, l as IAlertStyle, m as IAspectRatioStyle, n as IAudioStyle, o as IAvatarStyle, p as IBackgroundImageStyle, q as IBadgeStyle, r as IBaseStyle, s as IBlockquoteStyle, t as IBoxStyle, u as IButtonStyle, v as ICardSegmentStyle, w as ICardStyle, x as ICarouselStyle, y as ICenterStyle, z as ICheckboxStyle, A as IChipStyle, C as ICodeStyle, D as IColorInputStyle, E as IColorPickerStyle, F as IComboboxStyle, G as IContainerStyle, H as IDatePickerStyle, J as IDividerStyle, K as IEntryListStyle, L as IEntryRecordDeleteStyle, M as IEntryRecordStyle, N as IFieldsetStyle, O as IFigureStyle, P as IFileInputStyle, Q as IFlexStyle, R as IFormLogStyle, U as IFormRecordStyle, V as IFormStyle, W as IGridColumnStyle, X as IGridStyle, Y as IGroupStyle, Z as IHighlightStyle, $ as IHtmlTagStyle, a0 as IImageStyle, a1 as IIndicatorStyle, a2 as IInputStyle, a3 as IKbdStyle, a4 as ILinkStyle, a5 as IListItemStyle, a6 as IListStyle, a7 as ILoginStyle, a8 as ILoopStyle, a9 as INotificationStyle, aa as INumberInputStyle, ab as IPaperStyle, a as IPluginStyleRegistryEntry, ac as IProfileStyle, ad as IProgressRootStyle, ae as IProgressSectionStyle, af as IProgressStyle, ag as IRadioStyle, ah as IRangeSliderStyle, ai as IRatingStyle, aj as IRegisterStyle, ak as IResetPasswordStyle, al as IRichTextEditorStyle, am as IScrollAreaStyle, an as ISegmentedControlStyle, ao as ISelectStyle, ap as IShowUserInputEntry, aq as IShowUserInputStyle, ar as ISimpleGridStyle, as as ISliderStyle, at as ISpaceStyle, au as ISpoilerStyle, av as IStackStyle, I as IStyleRegistryEntry, aw as ISwitchStyle, ax as ITabStyle, ay as ITabsStyle, az as ITextInputStyle, aA as ITextStyle, aB as ITextareaStyle, aC as IThemeIconStyle, aD as ITimelineStyle, aE as ITitleStyle, aF as ITwoFactorAuthStyle, aG as ITypographyStyle, aH as IUnknownStyle, aI as IValidateStyle, aJ as IVideoStyle, S as STYLE_REGISTRY, aK as TMantineAccordionChevronPosition, aL as TMantineAccordionDisableChevronRotation, aM as TMantineAccordionLoop, aN as TMantineAccordionMultiple, aO as TMantineBorder, aP as TMantineCardShadow, aQ as TMantineCheckboxLabelPosition, aR as TMantineCols, aS as TMantineDividerVariant, aT as TMantineGap, aU as TMantineGridOffset, aV as TMantineGridOrder, aW as TMantineHeight, aX as TMantineIconSize, aY as TMantineImageFit, aZ as TMantineLineClamp, a_ as TMantineListCenter, a$ as TMantineListStyleType, b0 as TMantineListType, b1 as TMantineListWithPadding, b2 as TMantinePaperShadow, b3 as TMantineProgressTransition, b4 as TMantineScrollAreaSize, b5 as TMantineScrollAreaType, b6 as TMantineTextAlign, b7 as TMantineTextDecoration, b8 as TMantineTextFontStyle, b9 as TMantineTextFontWeight, ba as TMantineTextInherit, bb as TMantineTextInputVariant, bc as TMantineTextSpan, bd as TMantineTextTransform, be as TMantineTextTruncate, bf as TMantineTextVariant, bg as TMantineTextareaAutosize, bh as TMantineTextareaResize, bi as TMantineTextareaVariant, bj as TMantineTimelineAlign, bk as TMantineTitleLineClamp, bl as TMantineTitleTextWrap, bm as TMantineTranslatable, bn as TMantineUseInputWrapper, bo as TMantineWidth, bp as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-B147FVHY.mjs';
|
|
3
3
|
export { s as TMantineAccordionVariant, v as TMantineActionIconLoading, d as TMantineAlign, w as TMantineAllowNextClicks, x as TMantineAllowStepClick, y as TMantineAspectRatio, z as TMantineAutoContrast, o as TMantineAvatarVariant, n as TMantineBadgeVariant, A as TMantineBlock, B as TMantineCenterInline, C as TMantineChecked, D as TMantineChipChecked, E as TMantineChipMultiple, p as TMantineChipVariant, F as TMantineClampBehavior, G as TMantineCodeBlock, i as TMantineColor, H as TMantineColorFormat, I as TMantineColorInputSwatches, J as TMantineColorPickerSwatches, K as TMantineColorPickerSwatchesPerRow, L as TMantineCompact, M as TMantineContainerFluid, e as TMantineDirection, N as TMantineDisabled, k as TMantineFieldsetVariant, O as TMantineFileAccept, P as TMantineFileInputMultiple, Q as TMantineFluid, R as TMantineFullWidth, S as TMantineGridGrow, U as TMantineGridOverflow, g as TMantineGridSpan, V as TMantineGroupGrow, W as TMantineGroupWrap, X as TMantineGrow, Y as TMantineHighlight, q as TMantineIndicatorPosition, Z as TMantineInline, _ as TMantineIsLink, c as TMantineJustify, $ as TMantineKbdSize, a0 as TMantineLoading, a1 as TMantineMultiple, a2 as TMantineNotificationWithCloseButton, a3 as TMantineNumberInputDecimalScale, a4 as TMantineOpenInNewTab, h as TMantineOrientation, a5 as TMantineProcessing, T as TMantineRadius, a6 as TMantineRangeSliderMarks, a7 as TMantineRatingCount, a8 as TMantineRatingFractions, a9 as TMantineRatingReadonly, aa as TMantineReadonly, a as TMantineSize, ab as TMantineSpaceHorizontal, b as TMantineSpacing, l as TMantineSpoilerMaxHeight, ac as TMantineSwatches, ad as TMantineTabDisabled, t as TMantineTabsVariant, r as TMantineThemeIconVariant, u as TMantineTimelineLineVariant, j as TMantineTitleOrder, ae as TMantineUseMantineStyle, m as TMantineVariant, af as TMantineWithCloseButton, ag as TMantineWithIcon, f as TMantineWrap } from './common-B96dASgu.mjs';
|
|
4
4
|
export { TAnyStyleName, TPluginStyleImplMap, TStyleImplMap, getRegistryEntry, getRegistryEntryAny, getStylePluginId, isKnownStyleName, isRegisteredStyleName } from './registry/index.mjs';
|
|
5
5
|
export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, colorToHex, radiusToPx, sizeToFontPx, spacingToPx } from './theme/index.mjs';
|
|
6
6
|
export { sharedTailwindExtend, sharedTailwindPreset } from './theme/tailwind.mjs';
|
|
7
7
|
|
|
8
|
+
interface INoAccessStyle extends IStyleWithSpacing {
|
|
9
|
+
style_name: 'noAccess';
|
|
10
|
+
title?: IContentField<string>;
|
|
11
|
+
message?: IContentField<string>;
|
|
12
|
+
button_label?: IContentField<string>;
|
|
13
|
+
login_label?: IContentField<string>;
|
|
14
|
+
show_login?: IContentField<string>;
|
|
15
|
+
mantine_color?: IContentField<string>;
|
|
16
|
+
mantine_radius?: IContentField<string>;
|
|
17
|
+
mantine_shadow?: IContentField<string>;
|
|
18
|
+
mantine_button_variant?: IContentField<string>;
|
|
19
|
+
show_icon?: IContentField<string>;
|
|
20
|
+
}
|
|
21
|
+
interface INotFoundStyle extends IStyleWithSpacing {
|
|
22
|
+
style_name: 'notFound';
|
|
23
|
+
title?: IContentField<string>;
|
|
24
|
+
message?: IContentField<string>;
|
|
25
|
+
button_label?: IContentField<string>;
|
|
26
|
+
login_label?: IContentField<string>;
|
|
27
|
+
mantine_color?: IContentField<string>;
|
|
28
|
+
mantine_radius?: IContentField<string>;
|
|
29
|
+
mantine_shadow?: IContentField<string>;
|
|
30
|
+
mantine_button_variant?: IContentField<string>;
|
|
31
|
+
show_icon?: IContentField<string>;
|
|
32
|
+
}
|
|
33
|
+
interface IMissingStyle extends IStyleWithSpacing {
|
|
34
|
+
style_name: 'missing';
|
|
35
|
+
title?: IContentField<string>;
|
|
36
|
+
message?: IContentField<string>;
|
|
37
|
+
button_label?: IContentField<string>;
|
|
38
|
+
mantine_color?: IContentField<string>;
|
|
39
|
+
mantine_radius?: IContentField<string>;
|
|
40
|
+
mantine_shadow?: IContentField<string>;
|
|
41
|
+
mantine_button_variant?: IContentField<string>;
|
|
42
|
+
show_icon?: IContentField<string>;
|
|
43
|
+
}
|
|
44
|
+
|
|
8
45
|
/**
|
|
9
46
|
* Comprehensive page type system, single source of truth for both apps.
|
|
10
47
|
*/
|
|
@@ -1409,4 +1446,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
|
|
|
1409
1446
|
*/
|
|
1410
1447
|
declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
|
|
1411
1448
|
|
|
1412
|
-
export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, type DatabaseMigrationMetadata, ENDPOINTS, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IClassPattern, type IClassRemap, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IForgotPasswordRequest, type IForgotPasswordResponse, type IFormDeleteRequest, type IFormDeleteResponse, type IFormResultLegacyFields, type IFormSubmitData, type IFormSubmitRequest, type IFormSubmitResponse, type IFormUpdateData, type IFormUpdateRequest, type IFormUpdateResponse, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMeta, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageSectionWithFields, type IPageSectionsData, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type ISpacingValue, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LITERAL_CLASSES, type LockPluginEntry, type LockServiceEntry, PERMISSIONS, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, type TPermission, type TPlatform, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, type WorkerRelease, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, transformPageData, transformPagesData };
|
|
1449
|
+
export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, type DatabaseMigrationMetadata, ENDPOINTS, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IClassPattern, type IClassRemap, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IForgotPasswordRequest, type IForgotPasswordResponse, type IFormDeleteRequest, type IFormDeleteResponse, type IFormResultLegacyFields, type IFormSubmitData, type IFormSubmitRequest, type IFormSubmitResponse, type IFormUpdateData, type IFormUpdateRequest, type IFormUpdateResponse, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMeta, type IMissingStyle, type INoAccessStyle, type INotFoundStyle, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageSectionWithFields, type IPageSectionsData, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type ISpacingValue, IStyleWithSpacing, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LITERAL_CLASSES, type LockPluginEntry, type LockServiceEntry, PERMISSIONS, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, type TPermission, type TPlatform, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, type WorkerRelease, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, transformPageData, transformPagesData };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY,
|
|
1
|
+
import { f as IStyleWithSpacing, h as IContentField, T as TStyleName } from './styles.registry-D49K8F5z.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, i as IAccordionItemStyle, j as IAccordionStyle, k as IActionIconStyle, l as IAlertStyle, m as IAspectRatioStyle, n as IAudioStyle, o as IAvatarStyle, p as IBackgroundImageStyle, q as IBadgeStyle, r as IBaseStyle, s as IBlockquoteStyle, t as IBoxStyle, u as IButtonStyle, v as ICardSegmentStyle, w as ICardStyle, x as ICarouselStyle, y as ICenterStyle, z as ICheckboxStyle, A as IChipStyle, C as ICodeStyle, D as IColorInputStyle, E as IColorPickerStyle, F as IComboboxStyle, G as IContainerStyle, H as IDatePickerStyle, J as IDividerStyle, K as IEntryListStyle, L as IEntryRecordDeleteStyle, M as IEntryRecordStyle, N as IFieldsetStyle, O as IFigureStyle, P as IFileInputStyle, Q as IFlexStyle, R as IFormLogStyle, U as IFormRecordStyle, V as IFormStyle, W as IGridColumnStyle, X as IGridStyle, Y as IGroupStyle, Z as IHighlightStyle, $ as IHtmlTagStyle, a0 as IImageStyle, a1 as IIndicatorStyle, a2 as IInputStyle, a3 as IKbdStyle, a4 as ILinkStyle, a5 as IListItemStyle, a6 as IListStyle, a7 as ILoginStyle, a8 as ILoopStyle, a9 as INotificationStyle, aa as INumberInputStyle, ab as IPaperStyle, a as IPluginStyleRegistryEntry, ac as IProfileStyle, ad as IProgressRootStyle, ae as IProgressSectionStyle, af as IProgressStyle, ag as IRadioStyle, ah as IRangeSliderStyle, ai as IRatingStyle, aj as IRegisterStyle, ak as IResetPasswordStyle, al as IRichTextEditorStyle, am as IScrollAreaStyle, an as ISegmentedControlStyle, ao as ISelectStyle, ap as IShowUserInputEntry, aq as IShowUserInputStyle, ar as ISimpleGridStyle, as as ISliderStyle, at as ISpaceStyle, au as ISpoilerStyle, av as IStackStyle, I as IStyleRegistryEntry, aw as ISwitchStyle, ax as ITabStyle, ay as ITabsStyle, az as ITextInputStyle, aA as ITextStyle, aB as ITextareaStyle, aC as IThemeIconStyle, aD as ITimelineStyle, aE as ITitleStyle, aF as ITwoFactorAuthStyle, aG as ITypographyStyle, aH as IUnknownStyle, aI as IValidateStyle, aJ as IVideoStyle, S as STYLE_REGISTRY, aK as TMantineAccordionChevronPosition, aL as TMantineAccordionDisableChevronRotation, aM as TMantineAccordionLoop, aN as TMantineAccordionMultiple, aO as TMantineBorder, aP as TMantineCardShadow, aQ as TMantineCheckboxLabelPosition, aR as TMantineCols, aS as TMantineDividerVariant, aT as TMantineGap, aU as TMantineGridOffset, aV as TMantineGridOrder, aW as TMantineHeight, aX as TMantineIconSize, aY as TMantineImageFit, aZ as TMantineLineClamp, a_ as TMantineListCenter, a$ as TMantineListStyleType, b0 as TMantineListType, b1 as TMantineListWithPadding, b2 as TMantinePaperShadow, b3 as TMantineProgressTransition, b4 as TMantineScrollAreaSize, b5 as TMantineScrollAreaType, b6 as TMantineTextAlign, b7 as TMantineTextDecoration, b8 as TMantineTextFontStyle, b9 as TMantineTextFontWeight, ba as TMantineTextInherit, bb as TMantineTextInputVariant, bc as TMantineTextSpan, bd as TMantineTextTransform, be as TMantineTextTruncate, bf as TMantineTextVariant, bg as TMantineTextareaAutosize, bh as TMantineTextareaResize, bi as TMantineTextareaVariant, bj as TMantineTimelineAlign, bk as TMantineTitleLineClamp, bl as TMantineTitleTextWrap, bm as TMantineTranslatable, bn as TMantineUseInputWrapper, bo as TMantineWidth, bp as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-D49K8F5z.js';
|
|
3
3
|
export { s as TMantineAccordionVariant, v as TMantineActionIconLoading, d as TMantineAlign, w as TMantineAllowNextClicks, x as TMantineAllowStepClick, y as TMantineAspectRatio, z as TMantineAutoContrast, o as TMantineAvatarVariant, n as TMantineBadgeVariant, A as TMantineBlock, B as TMantineCenterInline, C as TMantineChecked, D as TMantineChipChecked, E as TMantineChipMultiple, p as TMantineChipVariant, F as TMantineClampBehavior, G as TMantineCodeBlock, i as TMantineColor, H as TMantineColorFormat, I as TMantineColorInputSwatches, J as TMantineColorPickerSwatches, K as TMantineColorPickerSwatchesPerRow, L as TMantineCompact, M as TMantineContainerFluid, e as TMantineDirection, N as TMantineDisabled, k as TMantineFieldsetVariant, O as TMantineFileAccept, P as TMantineFileInputMultiple, Q as TMantineFluid, R as TMantineFullWidth, S as TMantineGridGrow, U as TMantineGridOverflow, g as TMantineGridSpan, V as TMantineGroupGrow, W as TMantineGroupWrap, X as TMantineGrow, Y as TMantineHighlight, q as TMantineIndicatorPosition, Z as TMantineInline, _ as TMantineIsLink, c as TMantineJustify, $ as TMantineKbdSize, a0 as TMantineLoading, a1 as TMantineMultiple, a2 as TMantineNotificationWithCloseButton, a3 as TMantineNumberInputDecimalScale, a4 as TMantineOpenInNewTab, h as TMantineOrientation, a5 as TMantineProcessing, T as TMantineRadius, a6 as TMantineRangeSliderMarks, a7 as TMantineRatingCount, a8 as TMantineRatingFractions, a9 as TMantineRatingReadonly, aa as TMantineReadonly, a as TMantineSize, ab as TMantineSpaceHorizontal, b as TMantineSpacing, l as TMantineSpoilerMaxHeight, ac as TMantineSwatches, ad as TMantineTabDisabled, t as TMantineTabsVariant, r as TMantineThemeIconVariant, u as TMantineTimelineLineVariant, j as TMantineTitleOrder, ae as TMantineUseMantineStyle, m as TMantineVariant, af as TMantineWithCloseButton, ag as TMantineWithIcon, f as TMantineWrap } from './common-B96dASgu.js';
|
|
4
4
|
export { TAnyStyleName, TPluginStyleImplMap, TStyleImplMap, getRegistryEntry, getRegistryEntryAny, getStylePluginId, isKnownStyleName, isRegisteredStyleName } from './registry/index.js';
|
|
5
5
|
export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, colorToHex, radiusToPx, sizeToFontPx, spacingToPx } from './theme/index.js';
|
|
6
6
|
export { sharedTailwindExtend, sharedTailwindPreset } from './theme/tailwind.js';
|
|
7
7
|
|
|
8
|
+
interface INoAccessStyle extends IStyleWithSpacing {
|
|
9
|
+
style_name: 'noAccess';
|
|
10
|
+
title?: IContentField<string>;
|
|
11
|
+
message?: IContentField<string>;
|
|
12
|
+
button_label?: IContentField<string>;
|
|
13
|
+
login_label?: IContentField<string>;
|
|
14
|
+
show_login?: IContentField<string>;
|
|
15
|
+
mantine_color?: IContentField<string>;
|
|
16
|
+
mantine_radius?: IContentField<string>;
|
|
17
|
+
mantine_shadow?: IContentField<string>;
|
|
18
|
+
mantine_button_variant?: IContentField<string>;
|
|
19
|
+
show_icon?: IContentField<string>;
|
|
20
|
+
}
|
|
21
|
+
interface INotFoundStyle extends IStyleWithSpacing {
|
|
22
|
+
style_name: 'notFound';
|
|
23
|
+
title?: IContentField<string>;
|
|
24
|
+
message?: IContentField<string>;
|
|
25
|
+
button_label?: IContentField<string>;
|
|
26
|
+
login_label?: IContentField<string>;
|
|
27
|
+
mantine_color?: IContentField<string>;
|
|
28
|
+
mantine_radius?: IContentField<string>;
|
|
29
|
+
mantine_shadow?: IContentField<string>;
|
|
30
|
+
mantine_button_variant?: IContentField<string>;
|
|
31
|
+
show_icon?: IContentField<string>;
|
|
32
|
+
}
|
|
33
|
+
interface IMissingStyle extends IStyleWithSpacing {
|
|
34
|
+
style_name: 'missing';
|
|
35
|
+
title?: IContentField<string>;
|
|
36
|
+
message?: IContentField<string>;
|
|
37
|
+
button_label?: IContentField<string>;
|
|
38
|
+
mantine_color?: IContentField<string>;
|
|
39
|
+
mantine_radius?: IContentField<string>;
|
|
40
|
+
mantine_shadow?: IContentField<string>;
|
|
41
|
+
mantine_button_variant?: IContentField<string>;
|
|
42
|
+
show_icon?: IContentField<string>;
|
|
43
|
+
}
|
|
44
|
+
|
|
8
45
|
/**
|
|
9
46
|
* Comprehensive page type system, single source of truth for both apps.
|
|
10
47
|
*/
|
|
@@ -1409,4 +1446,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
|
|
|
1409
1446
|
*/
|
|
1410
1447
|
declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
|
|
1411
1448
|
|
|
1412
|
-
export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, type DatabaseMigrationMetadata, ENDPOINTS, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IClassPattern, type IClassRemap, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IForgotPasswordRequest, type IForgotPasswordResponse, type IFormDeleteRequest, type IFormDeleteResponse, type IFormResultLegacyFields, type IFormSubmitData, type IFormSubmitRequest, type IFormSubmitResponse, type IFormUpdateData, type IFormUpdateRequest, type IFormUpdateResponse, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMeta, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageSectionWithFields, type IPageSectionsData, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type ISpacingValue, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LITERAL_CLASSES, type LockPluginEntry, type LockServiceEntry, PERMISSIONS, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, type TPermission, type TPlatform, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, type WorkerRelease, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, transformPageData, transformPagesData };
|
|
1449
|
+
export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, type DatabaseMigrationMetadata, ENDPOINTS, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IClassPattern, type IClassRemap, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IForgotPasswordRequest, type IForgotPasswordResponse, type IFormDeleteRequest, type IFormDeleteResponse, type IFormResultLegacyFields, type IFormSubmitData, type IFormSubmitRequest, type IFormSubmitResponse, type IFormUpdateData, type IFormUpdateRequest, type IFormUpdateResponse, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMeta, type IMissingStyle, type INoAccessStyle, type INotFoundStyle, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageSectionWithFields, type IPageSectionsData, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type ISpacingValue, IStyleWithSpacing, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LITERAL_CLASSES, type LockPluginEntry, type LockServiceEntry, PERMISSIONS, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, type TPermission, type TPlatform, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, type WorkerRelease, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, transformPageData, transformPagesData };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { I as IPluginManifest, a as IPluginManifestAdminPage, b as IPluginManifestApiRoute, c as IPluginManifestAsset, d as IPluginManifestCapability, e as IPluginManifestCompatibility, f as IPluginManifestConflict, g as IPluginManifestDataAccess, h as IPluginManifestDependency, i as IPluginManifestExternalHost, j as IPluginManifestFeatureFlag, k as IPluginManifestHealth, l as IPluginManifestLookupExtension, m as IPluginManifestMobile, n as IPluginManifestPermission, o as IPluginManifestRealtimeTopic, p as IPluginManifestScheduledJob, q as IPluginManifestSecurity, r as IPluginManifestStyle, s as IPluginManifestTrustLevel } from '../manifest-C8sBTLJb.mjs';
|
|
2
|
-
import { I as IStyleRegistryEntry } from '../styles.registry-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-B147FVHY.mjs';
|
|
3
3
|
import '../common-B96dASgu.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { I as IPluginManifest, a as IPluginManifestAdminPage, b as IPluginManifestApiRoute, c as IPluginManifestAsset, d as IPluginManifestCapability, e as IPluginManifestCompatibility, f as IPluginManifestConflict, g as IPluginManifestDataAccess, h as IPluginManifestDependency, i as IPluginManifestExternalHost, j as IPluginManifestFeatureFlag, k as IPluginManifestHealth, l as IPluginManifestLookupExtension, m as IPluginManifestMobile, n as IPluginManifestPermission, o as IPluginManifestRealtimeTopic, p as IPluginManifestScheduledJob, q as IPluginManifestSecurity, r as IPluginManifestStyle, s as IPluginManifestTrustLevel } from '../manifest-C8sBTLJb.js';
|
|
2
|
-
import { I as IStyleRegistryEntry } from '../styles.registry-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-D49K8F5z.js';
|
|
3
3
|
import '../common-B96dASgu.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-B147FVHY.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-B147FVHY.mjs';
|
|
3
3
|
import '../common-B96dASgu.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-D49K8F5z.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-D49K8F5z.js';
|
|
3
3
|
import '../common-B96dASgu.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1027,6 +1027,37 @@ interface IProgressSectionStyle extends IBaseStyle {
|
|
|
1027
1027
|
mantine_tooltip_position?: IContentField<string>;
|
|
1028
1028
|
use_mantine_style?: IContentField<string>;
|
|
1029
1029
|
}
|
|
1030
|
+
interface IShowUserInputEntry {
|
|
1031
|
+
record_id: number;
|
|
1032
|
+
id_users: number;
|
|
1033
|
+
_can_delete?: boolean;
|
|
1034
|
+
[key: string]: unknown;
|
|
1035
|
+
}
|
|
1036
|
+
interface IShowUserInputStyle extends IBaseStyle {
|
|
1037
|
+
style_name: 'showUserInput';
|
|
1038
|
+
own_entries_only?: IContentField<string>;
|
|
1039
|
+
show_timestamp?: IContentField<string>;
|
|
1040
|
+
dt_sortable?: IContentField<string>;
|
|
1041
|
+
dt_searching?: IContentField<string>;
|
|
1042
|
+
dt_paginate?: IContentField<string>;
|
|
1043
|
+
dt_info?: IContentField<string>;
|
|
1044
|
+
dt_default_order_column?: IContentField<string>;
|
|
1045
|
+
dt_default_order_dir?: IContentField<string>;
|
|
1046
|
+
csv_export?: IContentField<string>;
|
|
1047
|
+
delete_entry?: IContentField<string>;
|
|
1048
|
+
fields_map?: IContentField<string>;
|
|
1049
|
+
delete_modal_title?: IContentField<string>;
|
|
1050
|
+
delete_modal_body?: IContentField<string>;
|
|
1051
|
+
mantine_spacing_margin_padding?: IContentField<string>;
|
|
1052
|
+
mantine_table_striped?: IContentField<string>;
|
|
1053
|
+
mantine_table_highlight_on_hover?: IContentField<string>;
|
|
1054
|
+
mantine_table_with_table_border?: IContentField<string>;
|
|
1055
|
+
mantine_table_with_column_borders?: IContentField<string>;
|
|
1056
|
+
mantine_table_with_row_borders?: IContentField<string>;
|
|
1057
|
+
mantine_table_sticky_header?: IContentField<string>;
|
|
1058
|
+
mantine_table_caption_side?: IContentField<string>;
|
|
1059
|
+
entries?: IShowUserInputEntry[];
|
|
1060
|
+
}
|
|
1030
1061
|
|
|
1031
1062
|
type TMantineAccordionMultiple = '0' | '1';
|
|
1032
1063
|
type TMantineAccordionChevronPosition = 'left' | 'right';
|
|
@@ -2320,4 +2351,4 @@ declare function getPluginStyleRegistry(): Record<string, IPluginStyleRegistryEn
|
|
|
2320
2351
|
*/
|
|
2321
2352
|
declare function _resetPluginStyleRegistry(): void;
|
|
2322
2353
|
|
|
2323
|
-
export { type
|
|
2354
|
+
export { type IHtmlTagStyle as $, type IChipStyle as A, BASE_STYLE_REGISTRY as B, type ICodeStyle as C, type IColorInputStyle as D, type IColorPickerStyle as E, type IComboboxStyle as F, type IContainerStyle as G, type IDatePickerStyle as H, type IStyleRegistryEntry as I, type IDividerStyle as J, type IEntryListStyle as K, type IEntryRecordDeleteStyle as L, type IEntryRecordStyle as M, type IFieldsetStyle as N, type IFigureStyle as O, type IFileInputStyle as P, type IFlexStyle as Q, type IFormLogStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type IFormRecordStyle as U, type IFormStyle as V, type IGridColumnStyle as W, type IGridStyle as X, type IGroupStyle as Y, type IHighlightStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type TMantineListStyleType as a$, type IImageStyle as a0, type IIndicatorStyle as a1, type IInputStyle as a2, type IKbdStyle as a3, type ILinkStyle as a4, type IListItemStyle as a5, type IListStyle as a6, type ILoginStyle as a7, type ILoopStyle as a8, type INotificationStyle as a9, type ITextStyle as aA, type ITextareaStyle as aB, type IThemeIconStyle as aC, type ITimelineStyle as aD, type ITitleStyle as aE, type ITwoFactorAuthStyle as aF, type ITypographyStyle as aG, type IUnknownStyle as aH, type IValidateStyle as aI, type IVideoStyle as aJ, type TMantineAccordionChevronPosition as aK, type TMantineAccordionDisableChevronRotation as aL, type TMantineAccordionLoop as aM, type TMantineAccordionMultiple as aN, type TMantineBorder as aO, type TMantineCardShadow as aP, type TMantineCheckboxLabelPosition as aQ, type TMantineCols as aR, type TMantineDividerVariant as aS, type TMantineGap as aT, type TMantineGridOffset as aU, type TMantineGridOrder as aV, type TMantineHeight as aW, type TMantineIconSize as aX, type TMantineImageFit as aY, type TMantineLineClamp as aZ, type TMantineListCenter as a_, type INumberInputStyle as aa, type IPaperStyle as ab, type IProfileStyle as ac, type IProgressRootStyle as ad, type IProgressSectionStyle as ae, type IProgressStyle as af, type IRadioStyle as ag, type IRangeSliderStyle as ah, type IRatingStyle as ai, type IRegisterStyle as aj, type IResetPasswordStyle as ak, type IRichTextEditorStyle as al, type IScrollAreaStyle as am, type ISegmentedControlStyle as an, type ISelectStyle as ao, type IShowUserInputEntry as ap, type IShowUserInputStyle as aq, type ISimpleGridStyle as ar, type ISliderStyle as as, type ISpaceStyle as at, type ISpoilerStyle as au, type IStackStyle as av, type ISwitchStyle as aw, type ITabStyle as ax, type ITabsStyle as ay, type ITextInputStyle as az, type TStyleRegistryKey as b, type TMantineListType as b0, type TMantineListWithPadding as b1, type TMantinePaperShadow as b2, type TMantineProgressTransition as b3, type TMantineScrollAreaSize as b4, type TMantineScrollAreaType as b5, type TMantineTextAlign as b6, type TMantineTextDecoration as b7, type TMantineTextFontStyle as b8, type TMantineTextFontWeight as b9, type TMantineTextInherit as ba, type TMantineTextInputVariant as bb, type TMantineTextSpan as bc, type TMantineTextTransform as bd, type TMantineTextTruncate as be, type TMantineTextVariant as bf, type TMantineTextareaAutosize as bg, type TMantineTextareaResize as bh, type TMantineTextareaVariant as bi, type TMantineTimelineAlign as bj, type TMantineTitleLineClamp as bk, type TMantineTitleTextWrap as bl, type TMantineTranslatable as bm, type TMantineUseInputWrapper as bn, type TMantineWidth as bo, type TStyle as bp, _resetPluginStyleRegistry as c, getPluginStyleRegistry as d, extendStyleRegistry as e, type IStyleWithSpacing as f, getMergedStyleRegistry as g, type IContentField as h, type IAccordionItemStyle as i, type IAccordionStyle as j, type IActionIconStyle as k, type IAlertStyle as l, type IAspectRatioStyle as m, type IAudioStyle as n, type IAvatarStyle as o, type IBackgroundImageStyle as p, type IBadgeStyle as q, type IBaseStyle as r, type IBlockquoteStyle as s, type IBoxStyle as t, type IButtonStyle as u, type ICardSegmentStyle as v, type ICardStyle as w, type ICarouselStyle as x, type ICenterStyle as y, type ICheckboxStyle as z };
|
|
@@ -1027,6 +1027,37 @@ interface IProgressSectionStyle extends IBaseStyle {
|
|
|
1027
1027
|
mantine_tooltip_position?: IContentField<string>;
|
|
1028
1028
|
use_mantine_style?: IContentField<string>;
|
|
1029
1029
|
}
|
|
1030
|
+
interface IShowUserInputEntry {
|
|
1031
|
+
record_id: number;
|
|
1032
|
+
id_users: number;
|
|
1033
|
+
_can_delete?: boolean;
|
|
1034
|
+
[key: string]: unknown;
|
|
1035
|
+
}
|
|
1036
|
+
interface IShowUserInputStyle extends IBaseStyle {
|
|
1037
|
+
style_name: 'showUserInput';
|
|
1038
|
+
own_entries_only?: IContentField<string>;
|
|
1039
|
+
show_timestamp?: IContentField<string>;
|
|
1040
|
+
dt_sortable?: IContentField<string>;
|
|
1041
|
+
dt_searching?: IContentField<string>;
|
|
1042
|
+
dt_paginate?: IContentField<string>;
|
|
1043
|
+
dt_info?: IContentField<string>;
|
|
1044
|
+
dt_default_order_column?: IContentField<string>;
|
|
1045
|
+
dt_default_order_dir?: IContentField<string>;
|
|
1046
|
+
csv_export?: IContentField<string>;
|
|
1047
|
+
delete_entry?: IContentField<string>;
|
|
1048
|
+
fields_map?: IContentField<string>;
|
|
1049
|
+
delete_modal_title?: IContentField<string>;
|
|
1050
|
+
delete_modal_body?: IContentField<string>;
|
|
1051
|
+
mantine_spacing_margin_padding?: IContentField<string>;
|
|
1052
|
+
mantine_table_striped?: IContentField<string>;
|
|
1053
|
+
mantine_table_highlight_on_hover?: IContentField<string>;
|
|
1054
|
+
mantine_table_with_table_border?: IContentField<string>;
|
|
1055
|
+
mantine_table_with_column_borders?: IContentField<string>;
|
|
1056
|
+
mantine_table_with_row_borders?: IContentField<string>;
|
|
1057
|
+
mantine_table_sticky_header?: IContentField<string>;
|
|
1058
|
+
mantine_table_caption_side?: IContentField<string>;
|
|
1059
|
+
entries?: IShowUserInputEntry[];
|
|
1060
|
+
}
|
|
1030
1061
|
|
|
1031
1062
|
type TMantineAccordionMultiple = '0' | '1';
|
|
1032
1063
|
type TMantineAccordionChevronPosition = 'left' | 'right';
|
|
@@ -2320,4 +2351,4 @@ declare function getPluginStyleRegistry(): Record<string, IPluginStyleRegistryEn
|
|
|
2320
2351
|
*/
|
|
2321
2352
|
declare function _resetPluginStyleRegistry(): void;
|
|
2322
2353
|
|
|
2323
|
-
export { type
|
|
2354
|
+
export { type IHtmlTagStyle as $, type IChipStyle as A, BASE_STYLE_REGISTRY as B, type ICodeStyle as C, type IColorInputStyle as D, type IColorPickerStyle as E, type IComboboxStyle as F, type IContainerStyle as G, type IDatePickerStyle as H, type IStyleRegistryEntry as I, type IDividerStyle as J, type IEntryListStyle as K, type IEntryRecordDeleteStyle as L, type IEntryRecordStyle as M, type IFieldsetStyle as N, type IFigureStyle as O, type IFileInputStyle as P, type IFlexStyle as Q, type IFormLogStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type IFormRecordStyle as U, type IFormStyle as V, type IGridColumnStyle as W, type IGridStyle as X, type IGroupStyle as Y, type IHighlightStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type TMantineListStyleType as a$, type IImageStyle as a0, type IIndicatorStyle as a1, type IInputStyle as a2, type IKbdStyle as a3, type ILinkStyle as a4, type IListItemStyle as a5, type IListStyle as a6, type ILoginStyle as a7, type ILoopStyle as a8, type INotificationStyle as a9, type ITextStyle as aA, type ITextareaStyle as aB, type IThemeIconStyle as aC, type ITimelineStyle as aD, type ITitleStyle as aE, type ITwoFactorAuthStyle as aF, type ITypographyStyle as aG, type IUnknownStyle as aH, type IValidateStyle as aI, type IVideoStyle as aJ, type TMantineAccordionChevronPosition as aK, type TMantineAccordionDisableChevronRotation as aL, type TMantineAccordionLoop as aM, type TMantineAccordionMultiple as aN, type TMantineBorder as aO, type TMantineCardShadow as aP, type TMantineCheckboxLabelPosition as aQ, type TMantineCols as aR, type TMantineDividerVariant as aS, type TMantineGap as aT, type TMantineGridOffset as aU, type TMantineGridOrder as aV, type TMantineHeight as aW, type TMantineIconSize as aX, type TMantineImageFit as aY, type TMantineLineClamp as aZ, type TMantineListCenter as a_, type INumberInputStyle as aa, type IPaperStyle as ab, type IProfileStyle as ac, type IProgressRootStyle as ad, type IProgressSectionStyle as ae, type IProgressStyle as af, type IRadioStyle as ag, type IRangeSliderStyle as ah, type IRatingStyle as ai, type IRegisterStyle as aj, type IResetPasswordStyle as ak, type IRichTextEditorStyle as al, type IScrollAreaStyle as am, type ISegmentedControlStyle as an, type ISelectStyle as ao, type IShowUserInputEntry as ap, type IShowUserInputStyle as aq, type ISimpleGridStyle as ar, type ISliderStyle as as, type ISpaceStyle as at, type ISpoilerStyle as au, type IStackStyle as av, type ISwitchStyle as aw, type ITabStyle as ax, type ITabsStyle as ay, type ITextInputStyle as az, type TStyleRegistryKey as b, type TMantineListType as b0, type TMantineListWithPadding as b1, type TMantinePaperShadow as b2, type TMantineProgressTransition as b3, type TMantineScrollAreaSize as b4, type TMantineScrollAreaType as b5, type TMantineTextAlign as b6, type TMantineTextDecoration as b7, type TMantineTextFontStyle as b8, type TMantineTextFontWeight as b9, type TMantineTextInherit as ba, type TMantineTextInputVariant as bb, type TMantineTextSpan as bc, type TMantineTextTransform as bd, type TMantineTextTruncate as be, type TMantineTextVariant as bf, type TMantineTextareaAutosize as bg, type TMantineTextareaResize as bh, type TMantineTextareaVariant as bi, type TMantineTimelineAlign as bj, type TMantineTitleLineClamp as bk, type TMantineTitleTextWrap as bl, type TMantineTranslatable as bm, type TMantineUseInputWrapper as bn, type TMantineWidth as bo, type TStyle as bp, _resetPluginStyleRegistry as c, getPluginStyleRegistry as d, extendStyleRegistry as e, type IStyleWithSpacing as f, getMergedStyleRegistry as g, type IContentField as h, type IAccordionItemStyle as i, type IAccordionStyle as j, type IActionIconStyle as k, type IAlertStyle as l, type IAspectRatioStyle as m, type IAudioStyle as n, type IAvatarStyle as o, type IBackgroundImageStyle as p, type IBadgeStyle as q, type IBaseStyle as r, type IBlockquoteStyle as s, type IBoxStyle as t, type IButtonStyle as u, type ICardSegmentStyle as v, type ICardStyle as w, type ICarouselStyle as x, type ICenterStyle as y, type ICheckboxStyle as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfhelp/shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Shared TypeScript package for SelfHelp web frontend and mobile app: style registry, types, API contracts, Mantine theme tokens, condition + interpolation engines, CMS class allow-list.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
package/src/types/index.ts
CHANGED
package/src/types/styles/auth.ts
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
SPDX-FileCopyrightText: 2026 Humdek, University of Bern
|
|
3
|
+
SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
import type { IContentField, IStyleWithSpacing } from './base';
|
|
6
|
+
|
|
7
|
+
export interface INoAccessStyle extends IStyleWithSpacing {
|
|
8
|
+
style_name: 'noAccess';
|
|
9
|
+
title?: IContentField<string>;
|
|
10
|
+
message?: IContentField<string>;
|
|
11
|
+
button_label?: IContentField<string>;
|
|
12
|
+
login_label?: IContentField<string>;
|
|
13
|
+
show_login?: IContentField<string>;
|
|
14
|
+
mantine_color?: IContentField<string>;
|
|
15
|
+
mantine_radius?: IContentField<string>;
|
|
16
|
+
mantine_shadow?: IContentField<string>;
|
|
17
|
+
mantine_button_variant?: IContentField<string>;
|
|
18
|
+
show_icon?: IContentField<string>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface INotFoundStyle extends IStyleWithSpacing {
|
|
22
|
+
style_name: 'notFound';
|
|
23
|
+
title?: IContentField<string>;
|
|
24
|
+
message?: IContentField<string>;
|
|
25
|
+
button_label?: IContentField<string>;
|
|
26
|
+
login_label?: IContentField<string>;
|
|
27
|
+
mantine_color?: IContentField<string>;
|
|
28
|
+
mantine_radius?: IContentField<string>;
|
|
29
|
+
mantine_shadow?: IContentField<string>;
|
|
30
|
+
mantine_button_variant?: IContentField<string>;
|
|
31
|
+
show_icon?: IContentField<string>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface IMissingStyle extends IStyleWithSpacing {
|
|
35
|
+
style_name: 'missing';
|
|
36
|
+
title?: IContentField<string>;
|
|
37
|
+
message?: IContentField<string>;
|
|
38
|
+
button_label?: IContentField<string>;
|
|
39
|
+
mantine_color?: IContentField<string>;
|
|
40
|
+
mantine_radius?: IContentField<string>;
|
|
41
|
+
mantine_shadow?: IContentField<string>;
|
|
42
|
+
mantine_button_variant?: IContentField<string>;
|
|
43
|
+
show_icon?: IContentField<string>;
|
|
44
|
+
}
|
|
@@ -437,3 +437,36 @@ export interface IProgressSectionStyle extends IBaseStyle {
|
|
|
437
437
|
mantine_tooltip_position?: IContentField<string>;
|
|
438
438
|
use_mantine_style?: IContentField<string>;
|
|
439
439
|
}
|
|
440
|
+
|
|
441
|
+
export interface IShowUserInputEntry {
|
|
442
|
+
record_id: number;
|
|
443
|
+
id_users: number;
|
|
444
|
+
_can_delete?: boolean;
|
|
445
|
+
[key: string]: unknown;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export interface IShowUserInputStyle extends IBaseStyle {
|
|
449
|
+
style_name: 'showUserInput';
|
|
450
|
+
own_entries_only?: IContentField<string>;
|
|
451
|
+
show_timestamp?: IContentField<string>;
|
|
452
|
+
dt_sortable?: IContentField<string>;
|
|
453
|
+
dt_searching?: IContentField<string>;
|
|
454
|
+
dt_paginate?: IContentField<string>;
|
|
455
|
+
dt_info?: IContentField<string>;
|
|
456
|
+
dt_default_order_column?: IContentField<string>;
|
|
457
|
+
dt_default_order_dir?: IContentField<string>;
|
|
458
|
+
csv_export?: IContentField<string>;
|
|
459
|
+
delete_entry?: IContentField<string>;
|
|
460
|
+
fields_map?: IContentField<string>;
|
|
461
|
+
delete_modal_title?: IContentField<string>;
|
|
462
|
+
delete_modal_body?: IContentField<string>;
|
|
463
|
+
mantine_spacing_margin_padding?: IContentField<string>;
|
|
464
|
+
mantine_table_striped?: IContentField<string>;
|
|
465
|
+
mantine_table_highlight_on_hover?: IContentField<string>;
|
|
466
|
+
mantine_table_with_table_border?: IContentField<string>;
|
|
467
|
+
mantine_table_with_column_borders?: IContentField<string>;
|
|
468
|
+
mantine_table_with_row_borders?: IContentField<string>;
|
|
469
|
+
mantine_table_sticky_header?: IContentField<string>;
|
|
470
|
+
mantine_table_caption_side?: IContentField<string>;
|
|
471
|
+
entries?: IShowUserInputEntry[];
|
|
472
|
+
}
|