@selfhelp/shared 1.24.0 → 1.27.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 CHANGED
@@ -10,6 +10,52 @@ All notable changes to `@selfhelp/shared` will be documented in this file.
10
10
  This project follows semantic versioning.
11
11
 
12
12
 
13
+ ## v1.27.0
14
+
15
+ Minor: role-scope permission names (pairs with core `0.1.48`, frontend `0.1.75`).
16
+ Breaking rename of client permission constants; no backward compatibility (pre-release).
17
+
18
+ - **Removed** `PERMISSIONS.ADMIN_CMS_PREFERENCES_UPDATE` (`admin.cms_preferences.update`):
19
+ core 0.1.48 removes the permission (it guarded no route).
20
+ - **Removed** `PERMISSIONS.ADMIN_SETTINGS` (`admin.settings`) and
21
+ `PERMISSIONS.ADMIN_AUDIT_VIEW` (`admin.audit.view`).
22
+ - **Added** `ADMIN_LANGUAGE_READ` / `ADMIN_LANGUAGE_UPDATE`
23
+ (`admin.language.read` / `admin.language.update`), `ADMIN_AUDIT_READ`
24
+ (`admin.audit.read`), and `ADMIN_SECTION_READ` (`admin.section.read`).
25
+ - No mobile-preview constant (shared never had one).
26
+
27
+ ## v1.26.0
28
+
29
+ Minor: access cleanup contracts for page ACL and plugin public routes (pairs with
30
+ core `0.1.47`, frontend `0.1.74`).
31
+
32
+ - **Page ACL is one right.** `IPageItem` and `transformPageData` keep only
33
+ `acl_select`. The leftover `acl_insert` / `acl_update` / `acl_delete` fields
34
+ are removed (F03).
35
+ - **Plugin route `public`.** `IPluginManifestApiRoute` gains optional
36
+ `public?: boolean`. A route needs a permission **or** `public: true`, never
37
+ both and never neither (F09 / C3).
38
+
39
+ ## v1.25.0
40
+
41
+ Minor: Entry List with Form is its own form (pairs with core `0.1.45`, frontend
42
+ `0.1.72`, mobile `0.1.37`).
43
+
44
+ - **`FORM_SECTION_STYLE_NAMES`.** Exported from the registry entry point and the
45
+ package root: `['form-record', 'form-log', 'entry-record-form', 'entry-form-list']`
46
+ as const, plus `TFormSectionStyleName`. The CMS add-section dialog uses it to
47
+ hide these styles below an `entry-form-list`.
48
+ - **`IEntryFormListStyle` form fields.** The list carries the same form knobs as
49
+ a form-record (`name`, save/update/cancel labels and colours, alerts,
50
+ confirm, button layout, `redirect_at_end`) via `TEntryFormListFormFields`
51
+ (`Pick` of `IFormRecordStyle`), so types cannot drift. Put the inputs
52
+ directly inside the list; a nested form style is refused by the backend.
53
+ - **`data_table` on a list.** Empty: the list owns its table (created on first
54
+ submit). Set to another table: read-only override (delete and quick actions
55
+ only). Documented on `IFormListBaseStyle` and in `form_section_id` (own list
56
+ id when the list writes; `null` for a foreign table or a data view).
57
+ - **Registry description** of `entry-form-list` updated to match.
58
+
13
59
  ## v1.24.0
14
60
 
15
61
  - **Form list URL mode `history`.** `TFormListMode` and `FORM_LIST_MODES` include
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { T as TStyleName, j as IContentField, k as IBaseApiResponse, l as IAboutItem, m as TMobileButtonFeedback, n as TMobileFieldVariant, o as TMobileSelectPresentation, p as IFormInvalidData, q as IFormListRestoreBlockedData, r as IFormStaleVersionData, s as IFormListFilesCell, t as TFormListMode, u as IFormListSort } from './styles.registry-aopb3vsI.mjs';
2
- export { B as BASE_STYLE_REGISTRY, v as IAccordionItemStyle, w as IAccordionStyle, x as IActionIconStyle, y as IAdminDataRecordCompareResponse, z as IAdminDataRecordHistoryResponse, A as IAdminDataRecordRestoreRequest, C as IAdminDataRecordRestoreResponse, D as IAdminDataRecordVersionResponse, E as IAlertStyle, F as IApiError, G as IApiMeta, H as IAspectRatioStyle, J as IAudioStyle, K as IAvatarStyle, L as IBackgroundImageStyle, M as IBadgeStyle, N as IBaseStyle, O as IBlockquoteStyle, P as IBoxStyle, Q as IButtonStyle, R as ICardSegmentStyle, U as ICardStyle, V as ICarouselStyle, W as ICenterStyle, X as ICheckboxStyle, Y as IChipStyle, Z as ICodeStyle, $ as IColorInputStyle, a0 as IColorPickerStyle, a1 as IComboboxStyle, a2 as IContainerStyle, a3 as IDataContainerStyle, a4 as IDataViewStyle, a5 as IDatePickerStyle, a6 as IDividerStyle, a7 as IEntryFormListStyle, a8 as IEntryListStyle, a9 as IEntryRecordDeleteStyle, aa as IEntryRecordFormStyle, ab as IEntryRecordStyle, ac as IEntryTableEntry, ad as IEntryTableStyle, ae as IFieldsetStyle, af as IFigureStyle, ag as IFileInputStyle, ah as IFlexStyle, ai as IFormDeleteData, aj as IFormDeleteRequest, ak as IFormDeleteResponse, al as IFormEffectiveContext, am as IFormFileFieldOp, an as IFormInputError, ao as IFormListActor, ap as IFormListBaseStyle, aq as IFormListCapabilities, ar as IFormListColumn, as as IFormListCompareData, at as IFormListCompareQuery, au as IFormListCompareResponse, av as IFormListControl, aw as IFormListControlOption, ax as IFormListError, ay as IFormListFileChange, az as IFormListFileValue, aA as IFormListHistoricalFile, aB as IFormListHistoryData, aC as IFormListHistoryQuery, aD as IFormListHistoryResponse, aE as IFormListInfo, aF as IFormListPagination, aG as IFormListQuickActionData, aH as IFormListQuickActionInfo, aI as IFormListQuickActionRequest, aJ as IFormListQuickActionResponse, aK as IFormListRecordAccess, aL as IFormListRestoreBlocker, aM as IFormListRestoreChange, aN as IFormListRestorePreview, aO as IFormListRestoreRequest, aP as IFormListRestoreResponse, aQ as IFormListRestoreResult, aR as IFormListRevision, aS as IFormListRow, aT as IFormListSelected, aU as IFormListServedState, aV as IFormListState, aW as IFormListStateField, aX as IFormListStateResponse, aY as IFormListValueChange, aZ as IFormListVersionData, a_ as IFormListVersionResponse, a$ as IFormLogStyle, b0 as IFormRecordStyle, b1 as IFormResultLegacyFields, b2 as IFormStyle, b3 as IFormSubmitData, b4 as IFormSubmitRequest, b5 as IFormSubmitResponse, b6 as IFormUpdateData, b7 as IFormUpdateRequest, b8 as IFormUpdateResponse, b9 as IGridColumnStyle, ba as IGridStyle, bb as IGroupStyle, bc as IHighlightStyle, bd as IHtmlTagStyle, be as IImageStyle, bf as IIndicatorStyle, bg as IInputStyle, bh as IKbdStyle, bi as ILinkStyle, bj as IListItemStyle, bk as IListStyle, bl as ILoginStyle, bm as ILoopStyle, bn as IMeta, bo as IMissingStyle, bp as INoAccessStyle, bq as INotFoundStyle, br as INotificationStyle, bs as INumberInputStyle, bt as IPaperStyle, bu as IPlatformAbout, a as IPluginStyleRegistryEntry, bv as IProfileStyle, bw as IProgressRootStyle, bx as IProgressSectionStyle, by as IProgressStyle, bz as IRadioStyle, bA as IRangeSliderStyle, bB as IRatingStyle, bC as IRefContainerStyle, bD as IRegisterStyle, bE as IResetPasswordStyle, bF as IRichTextEditorStyle, bG as IScrollAreaStyle, bH as ISegmentedControlStyle, bI as ISelectStyle, bJ as ISimpleGridStyle, bK as ISliderStyle, bL as ISpaceStyle, bM as ISpoilerStyle, bN as IStackStyle, I as IStyleRegistryEntry, bO as IStyleWithSpacing, bP as ISwitchStyle, bQ as ITabStyle, bR as ITabsStyle, bS as ITextInputStyle, bT as ITextStyle, bU as ITextareaStyle, bV as IThemeIconStyle, bW as ITimelineItemStyle, bX as ITimelineStyle, bY as ITitleStyle, bZ as ITwoFactorAuthStyle, b_ as ITypographyStyle, b$ as IUnknownStyle, c0 as IValidateStyle, c1 as IVersionStyle, c2 as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, c3 as TDataRevisionOperation, c4 as TDataRevisionSource, c5 as TFormConflictData, c6 as TFormInputRule, c7 as TFormListCellValue, c8 as TFormListChange, c9 as TFormListColumnFormat, ca as TFormListControlType, cb as TFormListErrorReason, cc as TFormListLabels, cd as TFormListLayout, ce as TFormListOpenMode, cf as TFormListPresentation, cg as TFormListRestoreBlockerReason, ch as TFormListRestoreData, ci as TFormListSortDirection, cj as TFormListStyleName, ck as TFormListTextMatch, cl as TFormWriteRefusalReason, cm as TMantineAccordionChevronPosition, cn as TMantineAccordionDisableChevronRotation, co as TMantineAccordionLoop, cp as TMantineAccordionMultiple, cq as TMantineAnchorUnderline, cr as TMantineBorder, cs as TMantineCardPadding, ct as TMantineCardShadow, cu as TMantineCols, cv as TMantineDividerVariant, cw as TMantineGap, cx as TMantineGridOffset, cy as TMantineGridOrder, cz as TMantineHeight, cA as TMantineIconSize, cB as TMantineImageFit, cC as TMantineLineClamp, cD as TMantineListCenter, cE as TMantineListStyleType, cF as TMantineListType, cG as TMantineListWithPadding, cH as TMantinePaperShadow, cI as TMantineProgressTransition, cJ as TMantineScrollAreaSize, cK as TMantineScrollAreaType, cL as TMantineTextAlign, cM as TMantineTextDecoration, cN as TMantineTextFontStyle, cO as TMantineTextFontWeight, cP as TMantineTextInherit, cQ as TMantineTextInputVariant, cR as TMantineTextSpan, cS as TMantineTextTransform, cT as TMantineTextTruncate, cU as TMantineTextVariant, cV as TMantineTextareaAutosize, cW as TMantineTextareaResize, cX as TMantineTextareaVariant, cY as TMantineTimelineAlign, cZ as TMantineTitleLineClamp, c_ as TMantineTitleTextWrap, c$ as TMantineTranslatable, d0 as TMantineUseInputWrapper, d1 as TMantineWidth, d2 as TSharedBorder, d3 as TSharedCols, d4 as TSharedDimension, d5 as TSharedDividerLabelPosition, d6 as TSharedDividerVariant, d7 as TSharedLabelPosition, d8 as TStyle, b as TStylePlacement, d as TStylePlatform, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from './styles.registry-aopb3vsI.mjs';
1
+ import { T as TStyleName, k as IContentField, l as IBaseApiResponse, m as IAboutItem, n as TMobileButtonFeedback, o as TMobileFieldVariant, p as TMobileSelectPresentation, q as IFormInvalidData, r as IFormListRestoreBlockedData, s as IFormStaleVersionData, t as IFormListFilesCell, u as TFormListMode, v as IFormListSort } from './styles.registry-DnIJqEzM.mjs';
2
+ export { B as BASE_STYLE_REGISTRY, F as FORM_SECTION_STYLE_NAMES, w as IAccordionItemStyle, x as IAccordionStyle, y as IActionIconStyle, z as IAdminDataRecordCompareResponse, A as IAdminDataRecordHistoryResponse, C as IAdminDataRecordRestoreRequest, D as IAdminDataRecordRestoreResponse, E as IAdminDataRecordVersionResponse, G as IAlertStyle, H as IApiError, J as IApiMeta, K as IAspectRatioStyle, L as IAudioStyle, M as IAvatarStyle, N as IBackgroundImageStyle, O as IBadgeStyle, P as IBaseStyle, Q as IBlockquoteStyle, R as IBoxStyle, U as IButtonStyle, V as ICardSegmentStyle, W as ICardStyle, X as ICarouselStyle, Y as ICenterStyle, Z as ICheckboxStyle, $ as IChipStyle, a0 as ICodeStyle, a1 as IColorInputStyle, a2 as IColorPickerStyle, a3 as IComboboxStyle, a4 as IContainerStyle, a5 as IDataContainerStyle, a6 as IDataViewStyle, a7 as IDatePickerStyle, a8 as IDividerStyle, a9 as IEntryFormListStyle, aa as IEntryListStyle, ab as IEntryRecordDeleteStyle, ac as IEntryRecordFormStyle, ad as IEntryRecordStyle, ae as IEntryTableEntry, af as IEntryTableStyle, ag as IFieldsetStyle, ah as IFigureStyle, ai as IFileInputStyle, aj as IFlexStyle, ak as IFormDeleteData, al as IFormDeleteRequest, am as IFormDeleteResponse, an as IFormEffectiveContext, ao as IFormFileFieldOp, ap as IFormInputError, aq as IFormListActor, ar as IFormListBaseStyle, as as IFormListCapabilities, at as IFormListColumn, au as IFormListCompareData, av as IFormListCompareQuery, aw as IFormListCompareResponse, ax as IFormListControl, ay as IFormListControlOption, az as IFormListError, aA as IFormListFileChange, aB as IFormListFileValue, aC as IFormListHistoricalFile, aD as IFormListHistoryData, aE as IFormListHistoryQuery, aF as IFormListHistoryResponse, aG as IFormListInfo, aH as IFormListPagination, aI as IFormListQuickActionData, aJ as IFormListQuickActionInfo, aK as IFormListQuickActionRequest, aL as IFormListQuickActionResponse, aM as IFormListRecordAccess, aN as IFormListRestoreBlocker, aO as IFormListRestoreChange, aP as IFormListRestorePreview, aQ as IFormListRestoreRequest, aR as IFormListRestoreResponse, aS as IFormListRestoreResult, aT as IFormListRevision, aU as IFormListRow, aV as IFormListSelected, aW as IFormListServedState, aX as IFormListState, aY as IFormListStateField, aZ as IFormListStateResponse, a_ as IFormListValueChange, a$ as IFormListVersionData, b0 as IFormListVersionResponse, b1 as IFormLogStyle, b2 as IFormRecordStyle, b3 as IFormResultLegacyFields, b4 as IFormStyle, b5 as IFormSubmitData, b6 as IFormSubmitRequest, b7 as IFormSubmitResponse, b8 as IFormUpdateData, b9 as IFormUpdateRequest, ba as IFormUpdateResponse, bb as IGridColumnStyle, bc as IGridStyle, bd as IGroupStyle, be as IHighlightStyle, bf as IHtmlTagStyle, bg as IImageStyle, bh as IIndicatorStyle, bi as IInputStyle, bj as IKbdStyle, bk as ILinkStyle, bl as IListItemStyle, bm as IListStyle, bn as ILoginStyle, bo as ILoopStyle, bp as IMeta, bq as IMissingStyle, br as INoAccessStyle, bs as INotFoundStyle, bt as INotificationStyle, bu as INumberInputStyle, bv as IPaperStyle, bw as IPlatformAbout, a as IPluginStyleRegistryEntry, bx as IProfileStyle, by as IProgressRootStyle, bz as IProgressSectionStyle, bA as IProgressStyle, bB as IRadioStyle, bC as IRangeSliderStyle, bD as IRatingStyle, bE as IRefContainerStyle, bF as IRegisterStyle, bG as IResetPasswordStyle, bH as IRichTextEditorStyle, bI as IScrollAreaStyle, bJ as ISegmentedControlStyle, bK as ISelectStyle, bL as ISimpleGridStyle, bM as ISliderStyle, bN as ISpaceStyle, bO as ISpoilerStyle, bP as IStackStyle, I as IStyleRegistryEntry, bQ as IStyleWithSpacing, bR as ISwitchStyle, bS as ITabStyle, bT as ITabsStyle, bU as ITextInputStyle, bV as ITextStyle, bW as ITextareaStyle, bX as IThemeIconStyle, bY as ITimelineItemStyle, bZ as ITimelineStyle, b_ as ITitleStyle, b$ as ITwoFactorAuthStyle, c0 as ITypographyStyle, c1 as IUnknownStyle, c2 as IValidateStyle, c3 as IVersionStyle, c4 as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, c5 as TDataRevisionOperation, c6 as TDataRevisionSource, c7 as TEntryFormListFormFields, c8 as TFormConflictData, c9 as TFormInputRule, ca as TFormListCellValue, cb as TFormListChange, cc as TFormListColumnFormat, cd as TFormListControlType, ce as TFormListErrorReason, cf as TFormListLabels, cg as TFormListLayout, ch as TFormListOpenMode, ci as TFormListPresentation, cj as TFormListRestoreBlockerReason, ck as TFormListRestoreData, cl as TFormListSortDirection, cm as TFormListStyleName, cn as TFormListTextMatch, e as TFormSectionStyleName, co as TFormWriteRefusalReason, cp as TMantineAccordionChevronPosition, cq as TMantineAccordionDisableChevronRotation, cr as TMantineAccordionLoop, cs as TMantineAccordionMultiple, ct as TMantineAnchorUnderline, cu as TMantineBorder, cv as TMantineCardPadding, cw as TMantineCardShadow, cx as TMantineCols, cy as TMantineDividerVariant, cz as TMantineGap, cA as TMantineGridOffset, cB as TMantineGridOrder, cC as TMantineHeight, cD as TMantineIconSize, cE as TMantineImageFit, cF as TMantineLineClamp, cG as TMantineListCenter, cH as TMantineListStyleType, cI as TMantineListType, cJ as TMantineListWithPadding, cK as TMantinePaperShadow, cL as TMantineProgressTransition, cM as TMantineScrollAreaSize, cN as TMantineScrollAreaType, cO as TMantineTextAlign, cP as TMantineTextDecoration, cQ as TMantineTextFontStyle, cR as TMantineTextFontWeight, cS as TMantineTextInherit, cT as TMantineTextInputVariant, cU as TMantineTextSpan, cV as TMantineTextTransform, cW as TMantineTextTruncate, cX as TMantineTextVariant, cY as TMantineTextareaAutosize, cZ as TMantineTextareaResize, c_ as TMantineTextareaVariant, c$ as TMantineTimelineAlign, d0 as TMantineTitleLineClamp, d1 as TMantineTitleTextWrap, d2 as TMantineTranslatable, d3 as TMantineUseInputWrapper, d4 as TMantineWidth, d5 as TSharedBorder, d6 as TSharedCols, d7 as TSharedDimension, d8 as TSharedDividerLabelPosition, d9 as TSharedDividerVariant, da as TSharedLabelPosition, db as TStyle, b as TStylePlacement, d as TStylePlatform, f as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, g as _resetPluginStyleRegistry, h as extendStyleRegistry, i as getMergedStyleRegistry, j as getPluginStyleRegistry } from './styles.registry-DnIJqEzM.mjs';
3
3
  export { v as TMantineAccordionVariant, y as TMantineActionIconLoading, d as TMantineAlign, z as TMantineAllowNextClicks, A as TMantineAllowStepClick, B as TMantineAspectRatio, C as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, D as TMantineBlock, E as TMantineCenterInline, F as TMantineChecked, G as TMantineChipChecked, H as TMantineChipMultiple, s as TMantineChipVariant, I as TMantineClampBehavior, J as TMantineCodeBlock, T as TMantineColor, K as TMantineColorFormat, L as TMantineColorInputSwatches, M as TMantineColorPickerSwatches, N as TMantineColorPickerSwatchesPerRow, O as TMantineCompact, P as TMantineContainerFluid, e as TMantineDirection, Q as TMantineDisabled, n as TMantineFieldsetVariant, R as TMantineFileAccept, S as TMantineFileInputMultiple, U as TMantineFluid, V as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, W as TMantineGroupGrow, X as TMantineGroupWrap, Y as TMantineGrow, Z as TMantineHighlight, t as TMantineIndicatorPosition, _ as TMantineInline, $ as TMantineIsLink, c as TMantineJustify, a0 as TMantineKbdSize, a1 as TMantineLoading, a2 as TMantineMultiple, a3 as TMantineNotificationWithCloseButton, a4 as TMantineNumberInputDecimalScale, a5 as TMantineOpenInNewTab, j as TMantineOrientation, a6 as TMantineProcessing, a as TMantineRadius, a7 as TMantineRangeSliderMarks, a8 as TMantineRatingCount, a9 as TMantineRatingFractions, aa as TMantineRatingReadonly, ab as TMantineReadonly, m as TMantineSize, ac as TMantineSpaceHorizontal, ad as TMantineSpacing, o as TMantineSpoilerMaxHeight, ae as TMantineSwatches, af as TMantineTabDisabled, w as TMantineTabsVariant, u as TMantineThemeIconVariant, x as TMantineTimelineLineVariant, l as TMantineTitleOrder, ag as TMantineUseMantineStyle, p as TMantineVariant, ah as TMantineWithCloseButton, ai as TMantineWithIcon, f as TMantineWrap, k as TSharedRadius, b as TSharedSize } from './common-qaDIAYS3.mjs';
4
4
  import { ReactNode, ComponentType } from 'react';
5
5
  import { THeroUiButtonVariant, THeroUiSize } from './theme/index.mjs';
@@ -52,10 +52,8 @@ interface IPageAccessTypeInfo {
52
52
  interface IPageItem extends IBasePageInfo {
53
53
  id_users?: number;
54
54
  id_pages?: number;
55
+ /** Page ACL: members of a group with this right can see the page and use its forms. */
55
56
  acl_select?: 0 | 1;
56
- acl_insert?: 0 | 1;
57
- acl_update?: 0 | 1;
58
- acl_delete?: 0 | 1;
59
57
  id_page_types?: number;
60
58
  id_page_access_types?: number;
61
59
  title?: string | null;
@@ -267,14 +265,15 @@ declare const PERMISSIONS: {
267
265
  readonly ADMIN_SCHEDULED_JOB_EXECUTE: "admin.scheduled_job.execute";
268
266
  readonly ADMIN_SCHEDULED_JOB_DELETE: "admin.scheduled_job.delete";
269
267
  readonly ADMIN_SCHEDULED_JOB_MANAGE: "admin.scheduled_job.manage";
268
+ readonly ADMIN_SECTION_READ: "admin.section.read";
270
269
  readonly ADMIN_SECTION_DELETE: "admin.section.delete";
271
- readonly ADMIN_SETTINGS: "admin.settings";
270
+ readonly ADMIN_LANGUAGE_READ: "admin.language.read";
271
+ readonly ADMIN_LANGUAGE_UPDATE: "admin.language.update";
272
272
  readonly ADMIN_CMS_PREFERENCES_READ: "admin.cms_preferences.read";
273
- readonly ADMIN_CMS_PREFERENCES_UPDATE: "admin.cms_preferences.update";
274
273
  readonly ADMIN_CACHE_READ: "admin.cache.read";
275
274
  readonly ADMIN_CACHE_CLEAR: "admin.cache.clear";
276
275
  readonly ADMIN_CACHE_MANAGE: "admin.cache.manage";
277
- readonly ADMIN_AUDIT_VIEW: "admin.audit.view";
276
+ readonly ADMIN_AUDIT_READ: "admin.audit.read";
278
277
  };
279
278
  type TPermission = (typeof PERMISSIONS)[keyof typeof PERMISSIONS];
280
279
 
@@ -3023,9 +3022,6 @@ interface IRawPage {
3023
3022
  mobile_icon?: string | null;
3024
3023
  id_users?: number;
3025
3024
  acl_select?: 0 | 1;
3026
- acl_insert?: 0 | 1;
3027
- acl_update?: 0 | 1;
3028
- acl_delete?: 0 | 1;
3029
3025
  id_page_types?: number;
3030
3026
  id_page_access_types?: number;
3031
3027
  children?: IRawPage[];
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { T as TStyleName, j as IContentField, k as IBaseApiResponse, l as IAboutItem, m as TMobileButtonFeedback, n as TMobileFieldVariant, o as TMobileSelectPresentation, p as IFormInvalidData, q as IFormListRestoreBlockedData, r as IFormStaleVersionData, s as IFormListFilesCell, t as TFormListMode, u as IFormListSort } from './styles.registry-BKWoDg7q.js';
2
- export { B as BASE_STYLE_REGISTRY, v as IAccordionItemStyle, w as IAccordionStyle, x as IActionIconStyle, y as IAdminDataRecordCompareResponse, z as IAdminDataRecordHistoryResponse, A as IAdminDataRecordRestoreRequest, C as IAdminDataRecordRestoreResponse, D as IAdminDataRecordVersionResponse, E as IAlertStyle, F as IApiError, G as IApiMeta, H as IAspectRatioStyle, J as IAudioStyle, K as IAvatarStyle, L as IBackgroundImageStyle, M as IBadgeStyle, N as IBaseStyle, O as IBlockquoteStyle, P as IBoxStyle, Q as IButtonStyle, R as ICardSegmentStyle, U as ICardStyle, V as ICarouselStyle, W as ICenterStyle, X as ICheckboxStyle, Y as IChipStyle, Z as ICodeStyle, $ as IColorInputStyle, a0 as IColorPickerStyle, a1 as IComboboxStyle, a2 as IContainerStyle, a3 as IDataContainerStyle, a4 as IDataViewStyle, a5 as IDatePickerStyle, a6 as IDividerStyle, a7 as IEntryFormListStyle, a8 as IEntryListStyle, a9 as IEntryRecordDeleteStyle, aa as IEntryRecordFormStyle, ab as IEntryRecordStyle, ac as IEntryTableEntry, ad as IEntryTableStyle, ae as IFieldsetStyle, af as IFigureStyle, ag as IFileInputStyle, ah as IFlexStyle, ai as IFormDeleteData, aj as IFormDeleteRequest, ak as IFormDeleteResponse, al as IFormEffectiveContext, am as IFormFileFieldOp, an as IFormInputError, ao as IFormListActor, ap as IFormListBaseStyle, aq as IFormListCapabilities, ar as IFormListColumn, as as IFormListCompareData, at as IFormListCompareQuery, au as IFormListCompareResponse, av as IFormListControl, aw as IFormListControlOption, ax as IFormListError, ay as IFormListFileChange, az as IFormListFileValue, aA as IFormListHistoricalFile, aB as IFormListHistoryData, aC as IFormListHistoryQuery, aD as IFormListHistoryResponse, aE as IFormListInfo, aF as IFormListPagination, aG as IFormListQuickActionData, aH as IFormListQuickActionInfo, aI as IFormListQuickActionRequest, aJ as IFormListQuickActionResponse, aK as IFormListRecordAccess, aL as IFormListRestoreBlocker, aM as IFormListRestoreChange, aN as IFormListRestorePreview, aO as IFormListRestoreRequest, aP as IFormListRestoreResponse, aQ as IFormListRestoreResult, aR as IFormListRevision, aS as IFormListRow, aT as IFormListSelected, aU as IFormListServedState, aV as IFormListState, aW as IFormListStateField, aX as IFormListStateResponse, aY as IFormListValueChange, aZ as IFormListVersionData, a_ as IFormListVersionResponse, a$ as IFormLogStyle, b0 as IFormRecordStyle, b1 as IFormResultLegacyFields, b2 as IFormStyle, b3 as IFormSubmitData, b4 as IFormSubmitRequest, b5 as IFormSubmitResponse, b6 as IFormUpdateData, b7 as IFormUpdateRequest, b8 as IFormUpdateResponse, b9 as IGridColumnStyle, ba as IGridStyle, bb as IGroupStyle, bc as IHighlightStyle, bd as IHtmlTagStyle, be as IImageStyle, bf as IIndicatorStyle, bg as IInputStyle, bh as IKbdStyle, bi as ILinkStyle, bj as IListItemStyle, bk as IListStyle, bl as ILoginStyle, bm as ILoopStyle, bn as IMeta, bo as IMissingStyle, bp as INoAccessStyle, bq as INotFoundStyle, br as INotificationStyle, bs as INumberInputStyle, bt as IPaperStyle, bu as IPlatformAbout, a as IPluginStyleRegistryEntry, bv as IProfileStyle, bw as IProgressRootStyle, bx as IProgressSectionStyle, by as IProgressStyle, bz as IRadioStyle, bA as IRangeSliderStyle, bB as IRatingStyle, bC as IRefContainerStyle, bD as IRegisterStyle, bE as IResetPasswordStyle, bF as IRichTextEditorStyle, bG as IScrollAreaStyle, bH as ISegmentedControlStyle, bI as ISelectStyle, bJ as ISimpleGridStyle, bK as ISliderStyle, bL as ISpaceStyle, bM as ISpoilerStyle, bN as IStackStyle, I as IStyleRegistryEntry, bO as IStyleWithSpacing, bP as ISwitchStyle, bQ as ITabStyle, bR as ITabsStyle, bS as ITextInputStyle, bT as ITextStyle, bU as ITextareaStyle, bV as IThemeIconStyle, bW as ITimelineItemStyle, bX as ITimelineStyle, bY as ITitleStyle, bZ as ITwoFactorAuthStyle, b_ as ITypographyStyle, b$ as IUnknownStyle, c0 as IValidateStyle, c1 as IVersionStyle, c2 as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, c3 as TDataRevisionOperation, c4 as TDataRevisionSource, c5 as TFormConflictData, c6 as TFormInputRule, c7 as TFormListCellValue, c8 as TFormListChange, c9 as TFormListColumnFormat, ca as TFormListControlType, cb as TFormListErrorReason, cc as TFormListLabels, cd as TFormListLayout, ce as TFormListOpenMode, cf as TFormListPresentation, cg as TFormListRestoreBlockerReason, ch as TFormListRestoreData, ci as TFormListSortDirection, cj as TFormListStyleName, ck as TFormListTextMatch, cl as TFormWriteRefusalReason, cm as TMantineAccordionChevronPosition, cn as TMantineAccordionDisableChevronRotation, co as TMantineAccordionLoop, cp as TMantineAccordionMultiple, cq as TMantineAnchorUnderline, cr as TMantineBorder, cs as TMantineCardPadding, ct as TMantineCardShadow, cu as TMantineCols, cv as TMantineDividerVariant, cw as TMantineGap, cx as TMantineGridOffset, cy as TMantineGridOrder, cz as TMantineHeight, cA as TMantineIconSize, cB as TMantineImageFit, cC as TMantineLineClamp, cD as TMantineListCenter, cE as TMantineListStyleType, cF as TMantineListType, cG as TMantineListWithPadding, cH as TMantinePaperShadow, cI as TMantineProgressTransition, cJ as TMantineScrollAreaSize, cK as TMantineScrollAreaType, cL as TMantineTextAlign, cM as TMantineTextDecoration, cN as TMantineTextFontStyle, cO as TMantineTextFontWeight, cP as TMantineTextInherit, cQ as TMantineTextInputVariant, cR as TMantineTextSpan, cS as TMantineTextTransform, cT as TMantineTextTruncate, cU as TMantineTextVariant, cV as TMantineTextareaAutosize, cW as TMantineTextareaResize, cX as TMantineTextareaVariant, cY as TMantineTimelineAlign, cZ as TMantineTitleLineClamp, c_ as TMantineTitleTextWrap, c$ as TMantineTranslatable, d0 as TMantineUseInputWrapper, d1 as TMantineWidth, d2 as TSharedBorder, d3 as TSharedCols, d4 as TSharedDimension, d5 as TSharedDividerLabelPosition, d6 as TSharedDividerVariant, d7 as TSharedLabelPosition, d8 as TStyle, b as TStylePlacement, d as TStylePlatform, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from './styles.registry-BKWoDg7q.js';
1
+ import { T as TStyleName, k as IContentField, l as IBaseApiResponse, m as IAboutItem, n as TMobileButtonFeedback, o as TMobileFieldVariant, p as TMobileSelectPresentation, q as IFormInvalidData, r as IFormListRestoreBlockedData, s as IFormStaleVersionData, t as IFormListFilesCell, u as TFormListMode, v as IFormListSort } from './styles.registry-C2ACy7H0.js';
2
+ export { B as BASE_STYLE_REGISTRY, F as FORM_SECTION_STYLE_NAMES, w as IAccordionItemStyle, x as IAccordionStyle, y as IActionIconStyle, z as IAdminDataRecordCompareResponse, A as IAdminDataRecordHistoryResponse, C as IAdminDataRecordRestoreRequest, D as IAdminDataRecordRestoreResponse, E as IAdminDataRecordVersionResponse, G as IAlertStyle, H as IApiError, J as IApiMeta, K as IAspectRatioStyle, L as IAudioStyle, M as IAvatarStyle, N as IBackgroundImageStyle, O as IBadgeStyle, P as IBaseStyle, Q as IBlockquoteStyle, R as IBoxStyle, U as IButtonStyle, V as ICardSegmentStyle, W as ICardStyle, X as ICarouselStyle, Y as ICenterStyle, Z as ICheckboxStyle, $ as IChipStyle, a0 as ICodeStyle, a1 as IColorInputStyle, a2 as IColorPickerStyle, a3 as IComboboxStyle, a4 as IContainerStyle, a5 as IDataContainerStyle, a6 as IDataViewStyle, a7 as IDatePickerStyle, a8 as IDividerStyle, a9 as IEntryFormListStyle, aa as IEntryListStyle, ab as IEntryRecordDeleteStyle, ac as IEntryRecordFormStyle, ad as IEntryRecordStyle, ae as IEntryTableEntry, af as IEntryTableStyle, ag as IFieldsetStyle, ah as IFigureStyle, ai as IFileInputStyle, aj as IFlexStyle, ak as IFormDeleteData, al as IFormDeleteRequest, am as IFormDeleteResponse, an as IFormEffectiveContext, ao as IFormFileFieldOp, ap as IFormInputError, aq as IFormListActor, ar as IFormListBaseStyle, as as IFormListCapabilities, at as IFormListColumn, au as IFormListCompareData, av as IFormListCompareQuery, aw as IFormListCompareResponse, ax as IFormListControl, ay as IFormListControlOption, az as IFormListError, aA as IFormListFileChange, aB as IFormListFileValue, aC as IFormListHistoricalFile, aD as IFormListHistoryData, aE as IFormListHistoryQuery, aF as IFormListHistoryResponse, aG as IFormListInfo, aH as IFormListPagination, aI as IFormListQuickActionData, aJ as IFormListQuickActionInfo, aK as IFormListQuickActionRequest, aL as IFormListQuickActionResponse, aM as IFormListRecordAccess, aN as IFormListRestoreBlocker, aO as IFormListRestoreChange, aP as IFormListRestorePreview, aQ as IFormListRestoreRequest, aR as IFormListRestoreResponse, aS as IFormListRestoreResult, aT as IFormListRevision, aU as IFormListRow, aV as IFormListSelected, aW as IFormListServedState, aX as IFormListState, aY as IFormListStateField, aZ as IFormListStateResponse, a_ as IFormListValueChange, a$ as IFormListVersionData, b0 as IFormListVersionResponse, b1 as IFormLogStyle, b2 as IFormRecordStyle, b3 as IFormResultLegacyFields, b4 as IFormStyle, b5 as IFormSubmitData, b6 as IFormSubmitRequest, b7 as IFormSubmitResponse, b8 as IFormUpdateData, b9 as IFormUpdateRequest, ba as IFormUpdateResponse, bb as IGridColumnStyle, bc as IGridStyle, bd as IGroupStyle, be as IHighlightStyle, bf as IHtmlTagStyle, bg as IImageStyle, bh as IIndicatorStyle, bi as IInputStyle, bj as IKbdStyle, bk as ILinkStyle, bl as IListItemStyle, bm as IListStyle, bn as ILoginStyle, bo as ILoopStyle, bp as IMeta, bq as IMissingStyle, br as INoAccessStyle, bs as INotFoundStyle, bt as INotificationStyle, bu as INumberInputStyle, bv as IPaperStyle, bw as IPlatformAbout, a as IPluginStyleRegistryEntry, bx as IProfileStyle, by as IProgressRootStyle, bz as IProgressSectionStyle, bA as IProgressStyle, bB as IRadioStyle, bC as IRangeSliderStyle, bD as IRatingStyle, bE as IRefContainerStyle, bF as IRegisterStyle, bG as IResetPasswordStyle, bH as IRichTextEditorStyle, bI as IScrollAreaStyle, bJ as ISegmentedControlStyle, bK as ISelectStyle, bL as ISimpleGridStyle, bM as ISliderStyle, bN as ISpaceStyle, bO as ISpoilerStyle, bP as IStackStyle, I as IStyleRegistryEntry, bQ as IStyleWithSpacing, bR as ISwitchStyle, bS as ITabStyle, bT as ITabsStyle, bU as ITextInputStyle, bV as ITextStyle, bW as ITextareaStyle, bX as IThemeIconStyle, bY as ITimelineItemStyle, bZ as ITimelineStyle, b_ as ITitleStyle, b$ as ITwoFactorAuthStyle, c0 as ITypographyStyle, c1 as IUnknownStyle, c2 as IValidateStyle, c3 as IVersionStyle, c4 as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, c5 as TDataRevisionOperation, c6 as TDataRevisionSource, c7 as TEntryFormListFormFields, c8 as TFormConflictData, c9 as TFormInputRule, ca as TFormListCellValue, cb as TFormListChange, cc as TFormListColumnFormat, cd as TFormListControlType, ce as TFormListErrorReason, cf as TFormListLabels, cg as TFormListLayout, ch as TFormListOpenMode, ci as TFormListPresentation, cj as TFormListRestoreBlockerReason, ck as TFormListRestoreData, cl as TFormListSortDirection, cm as TFormListStyleName, cn as TFormListTextMatch, e as TFormSectionStyleName, co as TFormWriteRefusalReason, cp as TMantineAccordionChevronPosition, cq as TMantineAccordionDisableChevronRotation, cr as TMantineAccordionLoop, cs as TMantineAccordionMultiple, ct as TMantineAnchorUnderline, cu as TMantineBorder, cv as TMantineCardPadding, cw as TMantineCardShadow, cx as TMantineCols, cy as TMantineDividerVariant, cz as TMantineGap, cA as TMantineGridOffset, cB as TMantineGridOrder, cC as TMantineHeight, cD as TMantineIconSize, cE as TMantineImageFit, cF as TMantineLineClamp, cG as TMantineListCenter, cH as TMantineListStyleType, cI as TMantineListType, cJ as TMantineListWithPadding, cK as TMantinePaperShadow, cL as TMantineProgressTransition, cM as TMantineScrollAreaSize, cN as TMantineScrollAreaType, cO as TMantineTextAlign, cP as TMantineTextDecoration, cQ as TMantineTextFontStyle, cR as TMantineTextFontWeight, cS as TMantineTextInherit, cT as TMantineTextInputVariant, cU as TMantineTextSpan, cV as TMantineTextTransform, cW as TMantineTextTruncate, cX as TMantineTextVariant, cY as TMantineTextareaAutosize, cZ as TMantineTextareaResize, c_ as TMantineTextareaVariant, c$ as TMantineTimelineAlign, d0 as TMantineTitleLineClamp, d1 as TMantineTitleTextWrap, d2 as TMantineTranslatable, d3 as TMantineUseInputWrapper, d4 as TMantineWidth, d5 as TSharedBorder, d6 as TSharedCols, d7 as TSharedDimension, d8 as TSharedDividerLabelPosition, d9 as TSharedDividerVariant, da as TSharedLabelPosition, db as TStyle, b as TStylePlacement, d as TStylePlatform, f as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, g as _resetPluginStyleRegistry, h as extendStyleRegistry, i as getMergedStyleRegistry, j as getPluginStyleRegistry } from './styles.registry-C2ACy7H0.js';
3
3
  export { v as TMantineAccordionVariant, y as TMantineActionIconLoading, d as TMantineAlign, z as TMantineAllowNextClicks, A as TMantineAllowStepClick, B as TMantineAspectRatio, C as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, D as TMantineBlock, E as TMantineCenterInline, F as TMantineChecked, G as TMantineChipChecked, H as TMantineChipMultiple, s as TMantineChipVariant, I as TMantineClampBehavior, J as TMantineCodeBlock, T as TMantineColor, K as TMantineColorFormat, L as TMantineColorInputSwatches, M as TMantineColorPickerSwatches, N as TMantineColorPickerSwatchesPerRow, O as TMantineCompact, P as TMantineContainerFluid, e as TMantineDirection, Q as TMantineDisabled, n as TMantineFieldsetVariant, R as TMantineFileAccept, S as TMantineFileInputMultiple, U as TMantineFluid, V as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, W as TMantineGroupGrow, X as TMantineGroupWrap, Y as TMantineGrow, Z as TMantineHighlight, t as TMantineIndicatorPosition, _ as TMantineInline, $ as TMantineIsLink, c as TMantineJustify, a0 as TMantineKbdSize, a1 as TMantineLoading, a2 as TMantineMultiple, a3 as TMantineNotificationWithCloseButton, a4 as TMantineNumberInputDecimalScale, a5 as TMantineOpenInNewTab, j as TMantineOrientation, a6 as TMantineProcessing, a as TMantineRadius, a7 as TMantineRangeSliderMarks, a8 as TMantineRatingCount, a9 as TMantineRatingFractions, aa as TMantineRatingReadonly, ab as TMantineReadonly, m as TMantineSize, ac as TMantineSpaceHorizontal, ad as TMantineSpacing, o as TMantineSpoilerMaxHeight, ae as TMantineSwatches, af as TMantineTabDisabled, w as TMantineTabsVariant, u as TMantineThemeIconVariant, x as TMantineTimelineLineVariant, l as TMantineTitleOrder, ag as TMantineUseMantineStyle, p as TMantineVariant, ah as TMantineWithCloseButton, ai as TMantineWithIcon, f as TMantineWrap, k as TSharedRadius, b as TSharedSize } from './common-qaDIAYS3.js';
4
4
  import { ReactNode, ComponentType } from 'react';
5
5
  import { THeroUiButtonVariant, THeroUiSize } from './theme/index.js';
@@ -52,10 +52,8 @@ interface IPageAccessTypeInfo {
52
52
  interface IPageItem extends IBasePageInfo {
53
53
  id_users?: number;
54
54
  id_pages?: number;
55
+ /** Page ACL: members of a group with this right can see the page and use its forms. */
55
56
  acl_select?: 0 | 1;
56
- acl_insert?: 0 | 1;
57
- acl_update?: 0 | 1;
58
- acl_delete?: 0 | 1;
59
57
  id_page_types?: number;
60
58
  id_page_access_types?: number;
61
59
  title?: string | null;
@@ -267,14 +265,15 @@ declare const PERMISSIONS: {
267
265
  readonly ADMIN_SCHEDULED_JOB_EXECUTE: "admin.scheduled_job.execute";
268
266
  readonly ADMIN_SCHEDULED_JOB_DELETE: "admin.scheduled_job.delete";
269
267
  readonly ADMIN_SCHEDULED_JOB_MANAGE: "admin.scheduled_job.manage";
268
+ readonly ADMIN_SECTION_READ: "admin.section.read";
270
269
  readonly ADMIN_SECTION_DELETE: "admin.section.delete";
271
- readonly ADMIN_SETTINGS: "admin.settings";
270
+ readonly ADMIN_LANGUAGE_READ: "admin.language.read";
271
+ readonly ADMIN_LANGUAGE_UPDATE: "admin.language.update";
272
272
  readonly ADMIN_CMS_PREFERENCES_READ: "admin.cms_preferences.read";
273
- readonly ADMIN_CMS_PREFERENCES_UPDATE: "admin.cms_preferences.update";
274
273
  readonly ADMIN_CACHE_READ: "admin.cache.read";
275
274
  readonly ADMIN_CACHE_CLEAR: "admin.cache.clear";
276
275
  readonly ADMIN_CACHE_MANAGE: "admin.cache.manage";
277
- readonly ADMIN_AUDIT_VIEW: "admin.audit.view";
276
+ readonly ADMIN_AUDIT_READ: "admin.audit.read";
278
277
  };
279
278
  type TPermission = (typeof PERMISSIONS)[keyof typeof PERMISSIONS];
280
279
 
@@ -3023,9 +3022,6 @@ interface IRawPage {
3023
3022
  mobile_icon?: string | null;
3024
3023
  id_users?: number;
3025
3024
  acl_select?: 0 | 1;
3026
- acl_insert?: 0 | 1;
3027
- acl_update?: 0 | 1;
3028
- acl_delete?: 0 | 1;
3029
3025
  id_page_types?: number;
3030
3026
  id_page_access_types?: number;
3031
3027
  children?: IRawPage[];
package/dist/index.js CHANGED
@@ -59,6 +59,7 @@ __export(index_exports, {
59
59
  FORM_LIST_SEARCH_MAX_LENGTH: () => FORM_LIST_SEARCH_MAX_LENGTH,
60
60
  FORM_LIST_SEARCH_MIN_LENGTH: () => FORM_LIST_SEARCH_MIN_LENGTH,
61
61
  FORM_RECORD_PREFILL_SKIP_FIELDS: () => FORM_RECORD_PREFILL_SKIP_FIELDS,
62
+ FORM_SECTION_STYLE_NAMES: () => FORM_SECTION_STYLE_NAMES,
62
63
  FULL_RADIUS_PX: () => FULL_RADIUS_PX,
63
64
  HEADER_CLIENT_TYPE: () => HEADER_CLIENT_TYPE,
64
65
  LINE_HEIGHT: () => LINE_HEIGHT,
@@ -287,14 +288,15 @@ var PERMISSIONS = {
287
288
  ADMIN_SCHEDULED_JOB_EXECUTE: "admin.scheduled_job.execute",
288
289
  ADMIN_SCHEDULED_JOB_DELETE: "admin.scheduled_job.delete",
289
290
  ADMIN_SCHEDULED_JOB_MANAGE: "admin.scheduled_job.manage",
291
+ ADMIN_SECTION_READ: "admin.section.read",
290
292
  ADMIN_SECTION_DELETE: "admin.section.delete",
291
- ADMIN_SETTINGS: "admin.settings",
293
+ ADMIN_LANGUAGE_READ: "admin.language.read",
294
+ ADMIN_LANGUAGE_UPDATE: "admin.language.update",
292
295
  ADMIN_CMS_PREFERENCES_READ: "admin.cms_preferences.read",
293
- ADMIN_CMS_PREFERENCES_UPDATE: "admin.cms_preferences.update",
294
296
  ADMIN_CACHE_READ: "admin.cache.read",
295
297
  ADMIN_CACHE_CLEAR: "admin.cache.clear",
296
298
  ADMIN_CACHE_MANAGE: "admin.cache.manage",
297
- ADMIN_AUDIT_VIEW: "admin.audit.view"
299
+ ADMIN_AUDIT_READ: "admin.audit.read"
298
300
  };
299
301
 
300
302
  // src/types/cms-app.ts
@@ -515,9 +517,19 @@ var BASE_STYLE_REGISTRY = {
515
517
  "ref-container": { description: "Renders content referenced from another section", category: "layout", canHaveChildren: true },
516
518
  "data-container": { description: "Data-scoped container (renders subtree against a data scope)", category: "layout", canHaveChildren: true },
517
519
  "entry-table": { description: "Built-in admin CRUD grid over a form's records (search/sort/paginate/CSV, add / edit / delete actions)", category: "forms", canHaveChildren: false },
518
- "entry-form-list": { description: "Entry list with form: server-rendered list of records with create / view / edit / delete, quick actions and history", category: "forms", canHaveChildren: true },
520
+ "entry-form-list": {
521
+ description: "Entry List with Form: a list of records that is also the form that creates and edits them (put the inputs directly inside it); supports search, sort, filters, paging, quick actions and history",
522
+ category: "forms",
523
+ canHaveChildren: true
524
+ },
519
525
  "data-view": { description: "Read-only server-rendered table, cards or your own layout (sections placed inside, drawn once per record) of records of a data table", category: "forms", canHaveChildren: true }
520
526
  };
527
+ var FORM_SECTION_STYLE_NAMES = [
528
+ "form-record",
529
+ "form-log",
530
+ "entry-record-form",
531
+ "entry-form-list"
532
+ ];
521
533
  var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
522
534
  var PLUGIN_STYLE_REGISTRY = {};
523
535
  var REGISTERED_PLUGIN_KEYS = /* @__PURE__ */ new Map();
@@ -3299,9 +3311,6 @@ function transformPageData(apiPage) {
3299
3311
  id_users: apiPage.id_users,
3300
3312
  id_pages: apiPage.id_pages ?? id,
3301
3313
  acl_select: apiPage.acl_select,
3302
- acl_insert: apiPage.acl_insert,
3303
- acl_update: apiPage.acl_update,
3304
- acl_delete: apiPage.acl_delete,
3305
3314
  id_page_types: apiPage.id_page_types,
3306
3315
  id_page_access_types: apiPage.id_page_access_types
3307
3316
  };
@@ -3341,6 +3350,7 @@ function transformPagesData(pages) {
3341
3350
  FORM_LIST_SEARCH_MAX_LENGTH,
3342
3351
  FORM_LIST_SEARCH_MIN_LENGTH,
3343
3352
  FORM_RECORD_PREFILL_SKIP_FIELDS,
3353
+ FORM_SECTION_STYLE_NAMES,
3344
3354
  FULL_RADIUS_PX,
3345
3355
  HEADER_CLIENT_TYPE,
3346
3356
  LINE_HEIGHT,
package/dist/index.mjs CHANGED
@@ -44,14 +44,15 @@ var PERMISSIONS = {
44
44
  ADMIN_SCHEDULED_JOB_EXECUTE: "admin.scheduled_job.execute",
45
45
  ADMIN_SCHEDULED_JOB_DELETE: "admin.scheduled_job.delete",
46
46
  ADMIN_SCHEDULED_JOB_MANAGE: "admin.scheduled_job.manage",
47
+ ADMIN_SECTION_READ: "admin.section.read",
47
48
  ADMIN_SECTION_DELETE: "admin.section.delete",
48
- ADMIN_SETTINGS: "admin.settings",
49
+ ADMIN_LANGUAGE_READ: "admin.language.read",
50
+ ADMIN_LANGUAGE_UPDATE: "admin.language.update",
49
51
  ADMIN_CMS_PREFERENCES_READ: "admin.cms_preferences.read",
50
- ADMIN_CMS_PREFERENCES_UPDATE: "admin.cms_preferences.update",
51
52
  ADMIN_CACHE_READ: "admin.cache.read",
52
53
  ADMIN_CACHE_CLEAR: "admin.cache.clear",
53
54
  ADMIN_CACHE_MANAGE: "admin.cache.manage",
54
- ADMIN_AUDIT_VIEW: "admin.audit.view"
55
+ ADMIN_AUDIT_READ: "admin.audit.read"
55
56
  };
56
57
 
57
58
  // src/types/cms-app.ts
@@ -272,9 +273,19 @@ var BASE_STYLE_REGISTRY = {
272
273
  "ref-container": { description: "Renders content referenced from another section", category: "layout", canHaveChildren: true },
273
274
  "data-container": { description: "Data-scoped container (renders subtree against a data scope)", category: "layout", canHaveChildren: true },
274
275
  "entry-table": { description: "Built-in admin CRUD grid over a form's records (search/sort/paginate/CSV, add / edit / delete actions)", category: "forms", canHaveChildren: false },
275
- "entry-form-list": { description: "Entry list with form: server-rendered list of records with create / view / edit / delete, quick actions and history", category: "forms", canHaveChildren: true },
276
+ "entry-form-list": {
277
+ description: "Entry List with Form: a list of records that is also the form that creates and edits them (put the inputs directly inside it); supports search, sort, filters, paging, quick actions and history",
278
+ category: "forms",
279
+ canHaveChildren: true
280
+ },
276
281
  "data-view": { description: "Read-only server-rendered table, cards or your own layout (sections placed inside, drawn once per record) of records of a data table", category: "forms", canHaveChildren: true }
277
282
  };
283
+ var FORM_SECTION_STYLE_NAMES = [
284
+ "form-record",
285
+ "form-log",
286
+ "entry-record-form",
287
+ "entry-form-list"
288
+ ];
278
289
  var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
279
290
  var PLUGIN_STYLE_REGISTRY = {};
280
291
  var REGISTERED_PLUGIN_KEYS = /* @__PURE__ */ new Map();
@@ -3056,9 +3067,6 @@ function transformPageData(apiPage) {
3056
3067
  id_users: apiPage.id_users,
3057
3068
  id_pages: apiPage.id_pages ?? id,
3058
3069
  acl_select: apiPage.acl_select,
3059
- acl_insert: apiPage.acl_insert,
3060
- acl_update: apiPage.acl_update,
3061
- acl_delete: apiPage.acl_delete,
3062
3070
  id_page_types: apiPage.id_page_types,
3063
3071
  id_page_access_types: apiPage.id_page_access_types
3064
3072
  };
@@ -3097,6 +3105,7 @@ export {
3097
3105
  FORM_LIST_SEARCH_MAX_LENGTH,
3098
3106
  FORM_LIST_SEARCH_MIN_LENGTH,
3099
3107
  FORM_RECORD_PREFILL_SKIP_FIELDS,
3108
+ FORM_SECTION_STYLE_NAMES,
3100
3109
  FULL_RADIUS_PX,
3101
3110
  HEADER_CLIENT_TYPE,
3102
3111
  LINE_HEIGHT,
@@ -153,6 +153,13 @@ interface IPluginManifestApiRoute {
153
153
  methods: ('GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE')[];
154
154
  /** Permission key required. */
155
155
  permission?: string;
156
+ /**
157
+ * When true, the route is open without a permission check (stored as
158
+ * `api_routes.is_public`). A plugin route needs at least one permission
159
+ * **or** `public: true`. Having neither is refused at install, update and
160
+ * sync. Having both is refused too: a public route checks no permission.
161
+ */
162
+ public?: boolean;
156
163
  }
157
164
  interface IPluginManifestScheduledJob {
158
165
  /** Job type key. */
@@ -153,6 +153,13 @@ interface IPluginManifestApiRoute {
153
153
  methods: ('GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE')[];
154
154
  /** Permission key required. */
155
155
  permission?: string;
156
+ /**
157
+ * When true, the route is open without a permission check (stored as
158
+ * `api_routes.is_public`). A plugin route needs at least one permission
159
+ * **or** `public: true`. Having neither is refused at install, update and
160
+ * sync. Having both is refused too: a public route checks no permission.
161
+ */
162
+ public?: boolean;
156
163
  }
157
164
  interface IPluginManifestScheduledJob {
158
165
  /** Job type key. */
@@ -1,5 +1,5 @@
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-8YXAk-4o.mjs';
2
- import { I as IStyleRegistryEntry } from '../styles.registry-aopb3vsI.mjs';
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-BNnCN1Qo.mjs';
2
+ import { I as IStyleRegistryEntry } from '../styles.registry-DnIJqEzM.mjs';
3
3
  import '../common-qaDIAYS3.mjs';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
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-8YXAk-4o.js';
2
- import { I as IStyleRegistryEntry } from '../styles.registry-BKWoDg7q.js';
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-BNnCN1Qo.js';
2
+ import { I as IStyleRegistryEntry } from '../styles.registry-C2ACy7H0.js';
3
3
  import '../common-qaDIAYS3.js';
4
4
 
5
5
  /**
@@ -288,7 +288,11 @@ var BASE_STYLE_REGISTRY = {
288
288
  "ref-container": { description: "Renders content referenced from another section", category: "layout", canHaveChildren: true },
289
289
  "data-container": { description: "Data-scoped container (renders subtree against a data scope)", category: "layout", canHaveChildren: true },
290
290
  "entry-table": { description: "Built-in admin CRUD grid over a form's records (search/sort/paginate/CSV, add / edit / delete actions)", category: "forms", canHaveChildren: false },
291
- "entry-form-list": { description: "Entry list with form: server-rendered list of records with create / view / edit / delete, quick actions and history", category: "forms", canHaveChildren: true },
291
+ "entry-form-list": {
292
+ description: "Entry List with Form: a list of records that is also the form that creates and edits them (put the inputs directly inside it); supports search, sort, filters, paging, quick actions and history",
293
+ category: "forms",
294
+ canHaveChildren: true
295
+ },
292
296
  "data-view": { description: "Read-only server-rendered table, cards or your own layout (sections placed inside, drawn once per record) of records of a data table", category: "forms", canHaveChildren: true }
293
297
  };
294
298
  var PLUGIN_STYLE_REGISTRY = {};
@@ -240,7 +240,11 @@ var BASE_STYLE_REGISTRY = {
240
240
  "ref-container": { description: "Renders content referenced from another section", category: "layout", canHaveChildren: true },
241
241
  "data-container": { description: "Data-scoped container (renders subtree against a data scope)", category: "layout", canHaveChildren: true },
242
242
  "entry-table": { description: "Built-in admin CRUD grid over a form's records (search/sort/paginate/CSV, add / edit / delete actions)", category: "forms", canHaveChildren: false },
243
- "entry-form-list": { description: "Entry list with form: server-rendered list of records with create / view / edit / delete, quick actions and history", category: "forms", canHaveChildren: true },
243
+ "entry-form-list": {
244
+ description: "Entry List with Form: a list of records that is also the form that creates and edits them (put the inputs directly inside it); supports search, sort, filters, paging, quick actions and history",
245
+ category: "forms",
246
+ canHaveChildren: true
247
+ },
244
248
  "data-view": { description: "Read-only server-rendered table, cards or your own layout (sections placed inside, drawn once per record) of records of a data table", category: "forms", canHaveChildren: true }
245
249
  };
246
250
  var PLUGIN_STYLE_REGISTRY = {};
@@ -1,5 +1,5 @@
1
- import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-aopb3vsI.mjs';
2
- export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-aopb3vsI.mjs';
1
+ import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-DnIJqEzM.mjs';
2
+ export { B as BASE_STYLE_REGISTRY, F as FORM_SECTION_STYLE_NAMES, S as STYLE_REGISTRY, e as TFormSectionStyleName, f as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, g as _resetPluginStyleRegistry, h as extendStyleRegistry, i as getMergedStyleRegistry, j as getPluginStyleRegistry } from '../styles.registry-DnIJqEzM.mjs';
3
3
  import '../common-qaDIAYS3.mjs';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-BKWoDg7q.js';
2
- export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-BKWoDg7q.js';
1
+ import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-C2ACy7H0.js';
2
+ export { B as BASE_STYLE_REGISTRY, F as FORM_SECTION_STYLE_NAMES, S as STYLE_REGISTRY, e as TFormSectionStyleName, f as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, g as _resetPluginStyleRegistry, h as extendStyleRegistry, i as getMergedStyleRegistry, j as getPluginStyleRegistry } from '../styles.registry-C2ACy7H0.js';
3
3
  import '../common-qaDIAYS3.js';
4
4
 
5
5
  /**
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var registry_exports = {};
22
22
  __export(registry_exports, {
23
23
  BASE_STYLE_REGISTRY: () => BASE_STYLE_REGISTRY,
24
+ FORM_SECTION_STYLE_NAMES: () => FORM_SECTION_STYLE_NAMES,
24
25
  STYLE_REGISTRY: () => STYLE_REGISTRY,
25
26
  _resetPluginStyleRegistry: () => _resetPluginStyleRegistry,
26
27
  extendStyleRegistry: () => extendStyleRegistry,
@@ -142,9 +143,19 @@ var BASE_STYLE_REGISTRY = {
142
143
  "ref-container": { description: "Renders content referenced from another section", category: "layout", canHaveChildren: true },
143
144
  "data-container": { description: "Data-scoped container (renders subtree against a data scope)", category: "layout", canHaveChildren: true },
144
145
  "entry-table": { description: "Built-in admin CRUD grid over a form's records (search/sort/paginate/CSV, add / edit / delete actions)", category: "forms", canHaveChildren: false },
145
- "entry-form-list": { description: "Entry list with form: server-rendered list of records with create / view / edit / delete, quick actions and history", category: "forms", canHaveChildren: true },
146
+ "entry-form-list": {
147
+ description: "Entry List with Form: a list of records that is also the form that creates and edits them (put the inputs directly inside it); supports search, sort, filters, paging, quick actions and history",
148
+ category: "forms",
149
+ canHaveChildren: true
150
+ },
146
151
  "data-view": { description: "Read-only server-rendered table, cards or your own layout (sections placed inside, drawn once per record) of records of a data table", category: "forms", canHaveChildren: true }
147
152
  };
153
+ var FORM_SECTION_STYLE_NAMES = [
154
+ "form-record",
155
+ "form-log",
156
+ "entry-record-form",
157
+ "entry-form-list"
158
+ ];
148
159
  var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
149
160
  var PLUGIN_STYLE_REGISTRY = {};
150
161
  var REGISTERED_PLUGIN_KEYS = /* @__PURE__ */ new Map();
@@ -259,6 +270,7 @@ function isStylePlacementAllowed(name, isRoot) {
259
270
  // Annotate the CommonJS export names for ESM import in node:
260
271
  0 && (module.exports = {
261
272
  BASE_STYLE_REGISTRY,
273
+ FORM_SECTION_STYLE_NAMES,
262
274
  STYLE_REGISTRY,
263
275
  _resetPluginStyleRegistry,
264
276
  extendStyleRegistry,
@@ -99,9 +99,19 @@ var BASE_STYLE_REGISTRY = {
99
99
  "ref-container": { description: "Renders content referenced from another section", category: "layout", canHaveChildren: true },
100
100
  "data-container": { description: "Data-scoped container (renders subtree against a data scope)", category: "layout", canHaveChildren: true },
101
101
  "entry-table": { description: "Built-in admin CRUD grid over a form's records (search/sort/paginate/CSV, add / edit / delete actions)", category: "forms", canHaveChildren: false },
102
- "entry-form-list": { description: "Entry list with form: server-rendered list of records with create / view / edit / delete, quick actions and history", category: "forms", canHaveChildren: true },
102
+ "entry-form-list": {
103
+ description: "Entry List with Form: a list of records that is also the form that creates and edits them (put the inputs directly inside it); supports search, sort, filters, paging, quick actions and history",
104
+ category: "forms",
105
+ canHaveChildren: true
106
+ },
103
107
  "data-view": { description: "Read-only server-rendered table, cards or your own layout (sections placed inside, drawn once per record) of records of a data table", category: "forms", canHaveChildren: true }
104
108
  };
109
+ var FORM_SECTION_STYLE_NAMES = [
110
+ "form-record",
111
+ "form-log",
112
+ "entry-record-form",
113
+ "entry-form-list"
114
+ ];
105
115
  var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
106
116
  var PLUGIN_STYLE_REGISTRY = {};
107
117
  var REGISTERED_PLUGIN_KEYS = /* @__PURE__ */ new Map();
@@ -215,6 +225,7 @@ function isStylePlacementAllowed(name, isRoot) {
215
225
  }
216
226
  export {
217
227
  BASE_STYLE_REGISTRY,
228
+ FORM_SECTION_STYLE_NAMES,
218
229
  STYLE_REGISTRY,
219
230
  _resetPluginStyleRegistry,
220
231
  extendStyleRegistry,
@@ -920,7 +920,13 @@ interface IFormListInfo {
920
920
  style: TFormListStyleName;
921
921
  layout: TFormListLayout;
922
922
  form_presentation: TFormListPresentation;
923
- /** The inline form that creates and edits records; null for a data view. */
923
+ /**
924
+ * The section that creates and edits records.
925
+ * For an `entry-form-list` that owns its table (no foreign `data_table`),
926
+ * this is the **list's own** section id. It is `null` for a `data-view`
927
+ * and for an `entry-form-list` with a foreign `data_table` (read-only
928
+ * override: delete and quick actions only, no form).
929
+ */
924
930
  form_section_id: number | null;
925
931
  /** False while the list's form was never submitted: there is nothing to read yet. */
926
932
  table_exists: boolean;
@@ -1818,7 +1824,14 @@ interface IFormListBaseStyle extends IStyleWithSpacing {
1818
1824
  title?: IContentField<string>;
1819
1825
  /** The list's name in the URL (`<key>.page`, `<key>.q`, ...); unique on a page. */
1820
1826
  list_key?: IContentField<string>;
1821
- /** Numeric `data_tables.id`, or empty: the table of the inline form. Required for a data view. */
1827
+ /**
1828
+ * Numeric `data_tables.id`, or empty.
1829
+ * - On `entry-form-list`: empty means the list owns its table (created on
1830
+ * first submit as `data_tables.name = "<list section id>"`). Set to another
1831
+ * table for a read-only override: the list only deletes and runs quick
1832
+ * actions; inputs, create and edit are refused.
1833
+ * - On `data-view`: required; the view is always read-only.
1834
+ */
1822
1835
  data_table?: IContentField<string>;
1823
1836
  list_layout?: IContentField<TFormListLayout>;
1824
1837
  /** Rows per page, 1 to 100. */
@@ -1837,11 +1850,22 @@ interface IFormListBaseStyle extends IStyleWithSpacing {
1837
1850
  label_search?: IContentField<string>;
1838
1851
  }
1839
1852
  /**
1840
- * Entry List with Form: a server-rendered list of records with create, view,
1841
- * edit, delete and quick actions, over the generic data store. Its child
1842
- * sections include the inline form that creates and edits records.
1853
+ * Form fields that an Entry List with Form carries when it is its own form.
1854
+ * Picked from {@link IFormRecordStyle} so labels, alerts and button knobs cannot
1855
+ * drift from standalone forms. Not included: `description` (the list has
1856
+ * `title`), `close_modal_on_save`, `redirect_on_save`, `btn_cancel_url` (the
1857
+ * list closes its modal or returns to itself).
1843
1858
  */
1844
- interface IEntryFormListStyle extends IFormListBaseStyle {
1859
+ type TEntryFormListFormFields = Pick<IFormRecordStyle, 'name' | 'btn_save_label' | 'btn_save_color' | 'btn_update_label' | 'btn_update_color' | 'btn_cancel_label' | 'btn_cancel_color' | 'alert_success' | 'alert_success_title' | 'alert_error' | 'alert_error_title' | 'confirm_submit' | 'confirm_message' | 'buttons_size' | 'buttons_radius' | 'buttons_variant' | 'buttons_position' | 'buttons_order' | 'redirect_at_end'>;
1860
+ /**
1861
+ * Entry List with Form: a server-rendered list of records that is also the form
1862
+ * that creates and edits them. Put the inputs directly inside the list; the
1863
+ * first successful submit creates `data_tables.name = "<list section id>"`.
1864
+ * A nested `form-record` / `form-log` / `entry-record-form` / `entry-form-list`
1865
+ * is refused. When {@link IFormListBaseStyle.data_table} names another table,
1866
+ * the list is a read-only override (delete and quick actions only).
1867
+ */
1868
+ interface IEntryFormListStyle extends IFormListBaseStyle, TEntryFormListFormFields {
1845
1869
  style_name: 'entry-form-list';
1846
1870
  form_presentation?: IContentField<TFormListPresentation>;
1847
1871
  /** JSON: up to 8 server-defined quick actions `{id, label, confirm, set, when}`. */
@@ -2757,7 +2781,7 @@ declare const BASE_STYLE_REGISTRY: {
2757
2781
  readonly canHaveChildren: false;
2758
2782
  };
2759
2783
  readonly 'entry-form-list': {
2760
- readonly description: "Entry list with form: server-rendered list of records with create / view / edit / delete, quick actions and history";
2784
+ readonly description: "Entry List with Form: a list of records that is also the form that creates and edits them (put the inputs directly inside it); supports search, sort, filters, paging, quick actions and history";
2761
2785
  readonly category: "forms";
2762
2786
  readonly canHaveChildren: true;
2763
2787
  };
@@ -2767,6 +2791,15 @@ declare const BASE_STYLE_REGISTRY: {
2767
2791
  readonly canHaveChildren: true;
2768
2792
  };
2769
2793
  };
2794
+ /**
2795
+ * Style names that act as a form section: standalone forms plus
2796
+ * `entry-form-list` (the list is the form). Used by the CMS add-section
2797
+ * dialog to hide these styles below an `entry-form-list`, and by clients
2798
+ * that need the same closed set the backend refuses to nest.
2799
+ */
2800
+ declare const FORM_SECTION_STYLE_NAMES: readonly ["form-record", "form-log", "entry-record-form", "entry-form-list"];
2801
+ /** One of {@link FORM_SECTION_STYLE_NAMES}. */
2802
+ type TFormSectionStyleName = (typeof FORM_SECTION_STYLE_NAMES)[number];
2770
2803
  /**
2771
2804
  * Backward-compatible alias for the core registry. Pre-plugin code
2772
2805
  * imported `STYLE_REGISTRY`; that import still works and still resolves
@@ -3230,7 +3263,7 @@ declare const STYLE_REGISTRY: {
3230
3263
  readonly canHaveChildren: false;
3231
3264
  };
3232
3265
  readonly 'entry-form-list': {
3233
- readonly description: "Entry list with form: server-rendered list of records with create / view / edit / delete, quick actions and history";
3266
+ readonly description: "Entry List with Form: a list of records that is also the form that creates and edits them (put the inputs directly inside it); supports search, sort, filters, paging, quick actions and history";
3234
3267
  readonly category: "forms";
3235
3268
  readonly canHaveChildren: true;
3236
3269
  };
@@ -3284,4 +3317,4 @@ declare function getPluginStyleRegistry(): Record<string, IPluginStyleRegistryEn
3284
3317
  */
3285
3318
  declare function _resetPluginStyleRegistry(): void;
3286
3319
 
3287
- export { type IColorInputStyle as $, type IAdminDataRecordRestoreRequest as A, BASE_STYLE_REGISTRY as B, type IAdminDataRecordRestoreResponse as C, type IAdminDataRecordVersionResponse as D, type IAlertStyle as E, type IApiError as F, type IApiMeta as G, type IAspectRatioStyle as H, type IStyleRegistryEntry as I, type IAudioStyle as J, type IAvatarStyle as K, type IBackgroundImageStyle as L, type IBadgeStyle as M, type IBaseStyle as N, type IBlockquoteStyle as O, type IBoxStyle as P, type IButtonStyle as Q, type ICardSegmentStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type ICardStyle as U, type ICarouselStyle as V, type ICenterStyle as W, type ICheckboxStyle as X, type IChipStyle as Y, type ICodeStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type IFormLogStyle as a$, type IColorPickerStyle as a0, type IComboboxStyle as a1, type IContainerStyle as a2, type IDataContainerStyle as a3, type IDataViewStyle as a4, type IDatePickerStyle as a5, type IDividerStyle as a6, type IEntryFormListStyle as a7, type IEntryListStyle as a8, type IEntryRecordDeleteStyle as a9, type IFormListHistoricalFile as aA, type IFormListHistoryData as aB, type IFormListHistoryQuery as aC, type IFormListHistoryResponse as aD, type IFormListInfo as aE, type IFormListPagination as aF, type IFormListQuickActionData as aG, type IFormListQuickActionInfo as aH, type IFormListQuickActionRequest as aI, type IFormListQuickActionResponse as aJ, type IFormListRecordAccess as aK, type IFormListRestoreBlocker as aL, type IFormListRestoreChange as aM, type IFormListRestorePreview as aN, type IFormListRestoreRequest as aO, type IFormListRestoreResponse as aP, type IFormListRestoreResult as aQ, type IFormListRevision as aR, type IFormListRow as aS, type IFormListSelected as aT, type IFormListServedState as aU, type IFormListState as aV, type IFormListStateField as aW, type IFormListStateResponse as aX, type IFormListValueChange as aY, type IFormListVersionData as aZ, type IFormListVersionResponse as a_, type IEntryRecordFormStyle as aa, type IEntryRecordStyle as ab, type IEntryTableEntry as ac, type IEntryTableStyle as ad, type IFieldsetStyle as ae, type IFigureStyle as af, type IFileInputStyle as ag, type IFlexStyle as ah, type IFormDeleteData as ai, type IFormDeleteRequest as aj, type IFormDeleteResponse as ak, type IFormEffectiveContext as al, type IFormFileFieldOp as am, type IFormInputError as an, type IFormListActor as ao, type IFormListBaseStyle as ap, type IFormListCapabilities as aq, type IFormListColumn as ar, type IFormListCompareData as as, type IFormListCompareQuery as at, type IFormListCompareResponse as au, type IFormListControl as av, type IFormListControlOption as aw, type IFormListError as ax, type IFormListFileChange as ay, type IFormListFileValue as az, type TStylePlacement as b, type IUnknownStyle as b$, type IFormRecordStyle as b0, type IFormResultLegacyFields as b1, type IFormStyle as b2, type IFormSubmitData as b3, type IFormSubmitRequest as b4, type IFormSubmitResponse as b5, type IFormUpdateData as b6, type IFormUpdateRequest as b7, type IFormUpdateResponse as b8, type IGridColumnStyle as b9, type IRangeSliderStyle as bA, type IRatingStyle as bB, type IRefContainerStyle as bC, type IRegisterStyle as bD, type IResetPasswordStyle as bE, type IRichTextEditorStyle as bF, type IScrollAreaStyle as bG, type ISegmentedControlStyle as bH, type ISelectStyle as bI, type ISimpleGridStyle as bJ, type ISliderStyle as bK, type ISpaceStyle as bL, type ISpoilerStyle as bM, type IStackStyle as bN, type IStyleWithSpacing as bO, type ISwitchStyle as bP, type ITabStyle as bQ, type ITabsStyle as bR, type ITextInputStyle as bS, type ITextStyle as bT, type ITextareaStyle as bU, type IThemeIconStyle as bV, type ITimelineItemStyle as bW, type ITimelineStyle as bX, type ITitleStyle as bY, type ITwoFactorAuthStyle as bZ, type ITypographyStyle as b_, type IGridStyle as ba, type IGroupStyle as bb, type IHighlightStyle as bc, type IHtmlTagStyle as bd, type IImageStyle as be, type IIndicatorStyle as bf, type IInputStyle as bg, type IKbdStyle as bh, type ILinkStyle as bi, type IListItemStyle as bj, type IListStyle as bk, type ILoginStyle as bl, type ILoopStyle as bm, type IMeta as bn, type IMissingStyle as bo, type INoAccessStyle as bp, type INotFoundStyle as bq, type INotificationStyle as br, type INumberInputStyle as bs, type IPaperStyle as bt, type IPlatformAbout as bu, type IProfileStyle as bv, type IProgressRootStyle as bw, type IProgressSectionStyle as bx, type IProgressStyle as by, type IRadioStyle as bz, type TConcretePlatform as c, type TMantineTranslatable as c$, type IValidateStyle as c0, type IVersionStyle as c1, type IVideoStyle as c2, type TDataRevisionOperation as c3, type TDataRevisionSource as c4, type TFormConflictData as c5, type TFormInputRule as c6, type TFormListCellValue as c7, type TFormListChange as c8, type TFormListColumnFormat as c9, type TMantineIconSize as cA, type TMantineImageFit as cB, type TMantineLineClamp as cC, type TMantineListCenter as cD, type TMantineListStyleType as cE, type TMantineListType as cF, type TMantineListWithPadding as cG, type TMantinePaperShadow as cH, type TMantineProgressTransition as cI, type TMantineScrollAreaSize as cJ, type TMantineScrollAreaType as cK, type TMantineTextAlign as cL, type TMantineTextDecoration as cM, type TMantineTextFontStyle as cN, type TMantineTextFontWeight as cO, type TMantineTextInherit as cP, type TMantineTextInputVariant as cQ, type TMantineTextSpan as cR, type TMantineTextTransform as cS, type TMantineTextTruncate as cT, type TMantineTextVariant as cU, type TMantineTextareaAutosize as cV, type TMantineTextareaResize as cW, type TMantineTextareaVariant as cX, type TMantineTimelineAlign as cY, type TMantineTitleLineClamp as cZ, type TMantineTitleTextWrap as c_, type TFormListControlType as ca, type TFormListErrorReason as cb, type TFormListLabels as cc, type TFormListLayout as cd, type TFormListOpenMode as ce, type TFormListPresentation as cf, type TFormListRestoreBlockerReason as cg, type TFormListRestoreData as ch, type TFormListSortDirection as ci, type TFormListStyleName as cj, type TFormListTextMatch as ck, type TFormWriteRefusalReason as cl, type TMantineAccordionChevronPosition as cm, type TMantineAccordionDisableChevronRotation as cn, type TMantineAccordionLoop as co, type TMantineAccordionMultiple as cp, type TMantineAnchorUnderline as cq, type TMantineBorder as cr, type TMantineCardPadding as cs, type TMantineCardShadow as ct, type TMantineCols as cu, type TMantineDividerVariant as cv, type TMantineGap as cw, type TMantineGridOffset as cx, type TMantineGridOrder as cy, type TMantineHeight as cz, type TStylePlatform as d, type TMantineUseInputWrapper as d0, type TMantineWidth as d1, type TSharedBorder as d2, type TSharedCols as d3, type TSharedDimension as d4, type TSharedDividerLabelPosition as d5, type TSharedDividerVariant as d6, type TSharedLabelPosition as d7, type TStyle as d8, type TStyleRegistryKey as e, _resetPluginStyleRegistry as f, extendStyleRegistry as g, getMergedStyleRegistry as h, getPluginStyleRegistry as i, type IContentField as j, type IBaseApiResponse as k, type IAboutItem as l, type TMobileButtonFeedback as m, type TMobileFieldVariant as n, type TMobileSelectPresentation as o, type IFormInvalidData as p, type IFormListRestoreBlockedData as q, type IFormStaleVersionData as r, type IFormListFilesCell as s, type TFormListMode as t, type IFormListSort as u, type IAccordionItemStyle as v, type IAccordionStyle as w, type IActionIconStyle as x, type IAdminDataRecordCompareResponse as y, type IAdminDataRecordHistoryResponse as z };
3320
+ export { type IChipStyle as $, type IAdminDataRecordHistoryResponse as A, BASE_STYLE_REGISTRY as B, type IAdminDataRecordRestoreRequest as C, type IAdminDataRecordRestoreResponse as D, type IAdminDataRecordVersionResponse as E, FORM_SECTION_STYLE_NAMES as F, type IAlertStyle as G, type IApiError as H, type IStyleRegistryEntry as I, type IApiMeta as J, type IAspectRatioStyle as K, type IAudioStyle as L, type IAvatarStyle as M, type IBackgroundImageStyle as N, type IBadgeStyle as O, type IBaseStyle as P, type IBlockquoteStyle as Q, type IBoxStyle as R, STYLE_REGISTRY as S, type TStyleName 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, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type IFormListVersionData as a$, type ICodeStyle as a0, type IColorInputStyle as a1, type IColorPickerStyle as a2, type IComboboxStyle as a3, type IContainerStyle as a4, type IDataContainerStyle as a5, type IDataViewStyle as a6, type IDatePickerStyle as a7, type IDividerStyle as a8, type IEntryFormListStyle as a9, type IFormListFileChange as aA, type IFormListFileValue as aB, type IFormListHistoricalFile as aC, type IFormListHistoryData as aD, type IFormListHistoryQuery as aE, type IFormListHistoryResponse as aF, type IFormListInfo as aG, type IFormListPagination as aH, type IFormListQuickActionData as aI, type IFormListQuickActionInfo as aJ, type IFormListQuickActionRequest as aK, type IFormListQuickActionResponse as aL, type IFormListRecordAccess as aM, type IFormListRestoreBlocker as aN, type IFormListRestoreChange as aO, type IFormListRestorePreview as aP, type IFormListRestoreRequest as aQ, type IFormListRestoreResponse as aR, type IFormListRestoreResult as aS, type IFormListRevision as aT, type IFormListRow as aU, type IFormListSelected as aV, type IFormListServedState as aW, type IFormListState as aX, type IFormListStateField as aY, type IFormListStateResponse as aZ, type IFormListValueChange as a_, type IEntryListStyle as aa, type IEntryRecordDeleteStyle as ab, type IEntryRecordFormStyle as ac, type IEntryRecordStyle as ad, type IEntryTableEntry as ae, type IEntryTableStyle as af, type IFieldsetStyle as ag, type IFigureStyle as ah, type IFileInputStyle as ai, type IFlexStyle as aj, type IFormDeleteData as ak, type IFormDeleteRequest as al, type IFormDeleteResponse as am, type IFormEffectiveContext as an, type IFormFileFieldOp as ao, type IFormInputError as ap, type IFormListActor as aq, type IFormListBaseStyle as ar, type IFormListCapabilities as as, type IFormListColumn as at, type IFormListCompareData as au, type IFormListCompareQuery as av, type IFormListCompareResponse as aw, type IFormListControl as ax, type IFormListControlOption as ay, type IFormListError as az, type TStylePlacement as b, type ITwoFactorAuthStyle as b$, type IFormListVersionResponse as b0, type IFormLogStyle as b1, type IFormRecordStyle as b2, type IFormResultLegacyFields as b3, type IFormStyle as b4, type IFormSubmitData as b5, type IFormSubmitRequest as b6, type IFormSubmitResponse as b7, type IFormUpdateData as b8, type IFormUpdateRequest as b9, type IProgressStyle as bA, type IRadioStyle as bB, type IRangeSliderStyle as bC, type IRatingStyle as bD, type IRefContainerStyle as bE, type IRegisterStyle as bF, type IResetPasswordStyle as bG, type IRichTextEditorStyle as bH, type IScrollAreaStyle as bI, type ISegmentedControlStyle as bJ, type ISelectStyle as bK, type ISimpleGridStyle as bL, type ISliderStyle as bM, type ISpaceStyle as bN, type ISpoilerStyle as bO, type IStackStyle as bP, type IStyleWithSpacing as bQ, type ISwitchStyle as bR, type ITabStyle as bS, type ITabsStyle as bT, type ITextInputStyle as bU, type ITextStyle as bV, type ITextareaStyle as bW, type IThemeIconStyle as bX, type ITimelineItemStyle as bY, type ITimelineStyle as bZ, type ITitleStyle as b_, type IFormUpdateResponse as ba, type IGridColumnStyle as bb, type IGridStyle as bc, type IGroupStyle as bd, type IHighlightStyle as be, type IHtmlTagStyle as bf, type IImageStyle as bg, type IIndicatorStyle as bh, type IInputStyle as bi, type IKbdStyle as bj, type ILinkStyle as bk, type IListItemStyle as bl, type IListStyle as bm, type ILoginStyle as bn, type ILoopStyle as bo, type IMeta as bp, type IMissingStyle as bq, type INoAccessStyle as br, type INotFoundStyle as bs, type INotificationStyle as bt, type INumberInputStyle as bu, type IPaperStyle as bv, type IPlatformAbout as bw, type IProfileStyle as bx, type IProgressRootStyle as by, type IProgressSectionStyle as bz, type TConcretePlatform as c, type TMantineTimelineAlign as c$, type ITypographyStyle as c0, type IUnknownStyle as c1, type IValidateStyle as c2, type IVersionStyle as c3, type IVideoStyle as c4, type TDataRevisionOperation as c5, type TDataRevisionSource as c6, type TEntryFormListFormFields as c7, type TFormConflictData as c8, type TFormInputRule as c9, type TMantineGridOffset as cA, type TMantineGridOrder as cB, type TMantineHeight as cC, type TMantineIconSize as cD, type TMantineImageFit as cE, type TMantineLineClamp as cF, type TMantineListCenter as cG, type TMantineListStyleType as cH, type TMantineListType as cI, type TMantineListWithPadding as cJ, type TMantinePaperShadow as cK, type TMantineProgressTransition as cL, type TMantineScrollAreaSize as cM, type TMantineScrollAreaType as cN, type TMantineTextAlign as cO, type TMantineTextDecoration as cP, type TMantineTextFontStyle as cQ, type TMantineTextFontWeight as cR, type TMantineTextInherit as cS, type TMantineTextInputVariant as cT, type TMantineTextSpan as cU, type TMantineTextTransform as cV, type TMantineTextTruncate as cW, type TMantineTextVariant as cX, type TMantineTextareaAutosize as cY, type TMantineTextareaResize as cZ, type TMantineTextareaVariant as c_, type TFormListCellValue as ca, type TFormListChange as cb, type TFormListColumnFormat as cc, type TFormListControlType as cd, type TFormListErrorReason as ce, type TFormListLabels as cf, type TFormListLayout as cg, type TFormListOpenMode as ch, type TFormListPresentation as ci, type TFormListRestoreBlockerReason as cj, type TFormListRestoreData as ck, type TFormListSortDirection as cl, type TFormListStyleName as cm, type TFormListTextMatch as cn, type TFormWriteRefusalReason as co, type TMantineAccordionChevronPosition as cp, type TMantineAccordionDisableChevronRotation as cq, type TMantineAccordionLoop as cr, type TMantineAccordionMultiple as cs, type TMantineAnchorUnderline as ct, type TMantineBorder as cu, type TMantineCardPadding as cv, type TMantineCardShadow as cw, type TMantineCols as cx, type TMantineDividerVariant as cy, type TMantineGap as cz, type TStylePlatform as d, type TMantineTitleLineClamp as d0, type TMantineTitleTextWrap as d1, type TMantineTranslatable as d2, type TMantineUseInputWrapper as d3, type TMantineWidth as d4, type TSharedBorder as d5, type TSharedCols as d6, type TSharedDimension as d7, type TSharedDividerLabelPosition as d8, type TSharedDividerVariant as d9, type TSharedLabelPosition as da, type TStyle as db, type TFormSectionStyleName as e, type TStyleRegistryKey as f, _resetPluginStyleRegistry as g, extendStyleRegistry as h, getMergedStyleRegistry as i, getPluginStyleRegistry as j, type IContentField as k, type IBaseApiResponse as l, type IAboutItem as m, type TMobileButtonFeedback as n, type TMobileFieldVariant as o, type TMobileSelectPresentation as p, type IFormInvalidData as q, type IFormListRestoreBlockedData as r, type IFormStaleVersionData as s, type IFormListFilesCell as t, type TFormListMode as u, type IFormListSort as v, type IAccordionItemStyle as w, type IAccordionStyle as x, type IActionIconStyle as y, type IAdminDataRecordCompareResponse as z };
@@ -920,7 +920,13 @@ interface IFormListInfo {
920
920
  style: TFormListStyleName;
921
921
  layout: TFormListLayout;
922
922
  form_presentation: TFormListPresentation;
923
- /** The inline form that creates and edits records; null for a data view. */
923
+ /**
924
+ * The section that creates and edits records.
925
+ * For an `entry-form-list` that owns its table (no foreign `data_table`),
926
+ * this is the **list's own** section id. It is `null` for a `data-view`
927
+ * and for an `entry-form-list` with a foreign `data_table` (read-only
928
+ * override: delete and quick actions only, no form).
929
+ */
924
930
  form_section_id: number | null;
925
931
  /** False while the list's form was never submitted: there is nothing to read yet. */
926
932
  table_exists: boolean;
@@ -1818,7 +1824,14 @@ interface IFormListBaseStyle extends IStyleWithSpacing {
1818
1824
  title?: IContentField<string>;
1819
1825
  /** The list's name in the URL (`<key>.page`, `<key>.q`, ...); unique on a page. */
1820
1826
  list_key?: IContentField<string>;
1821
- /** Numeric `data_tables.id`, or empty: the table of the inline form. Required for a data view. */
1827
+ /**
1828
+ * Numeric `data_tables.id`, or empty.
1829
+ * - On `entry-form-list`: empty means the list owns its table (created on
1830
+ * first submit as `data_tables.name = "<list section id>"`). Set to another
1831
+ * table for a read-only override: the list only deletes and runs quick
1832
+ * actions; inputs, create and edit are refused.
1833
+ * - On `data-view`: required; the view is always read-only.
1834
+ */
1822
1835
  data_table?: IContentField<string>;
1823
1836
  list_layout?: IContentField<TFormListLayout>;
1824
1837
  /** Rows per page, 1 to 100. */
@@ -1837,11 +1850,22 @@ interface IFormListBaseStyle extends IStyleWithSpacing {
1837
1850
  label_search?: IContentField<string>;
1838
1851
  }
1839
1852
  /**
1840
- * Entry List with Form: a server-rendered list of records with create, view,
1841
- * edit, delete and quick actions, over the generic data store. Its child
1842
- * sections include the inline form that creates and edits records.
1853
+ * Form fields that an Entry List with Form carries when it is its own form.
1854
+ * Picked from {@link IFormRecordStyle} so labels, alerts and button knobs cannot
1855
+ * drift from standalone forms. Not included: `description` (the list has
1856
+ * `title`), `close_modal_on_save`, `redirect_on_save`, `btn_cancel_url` (the
1857
+ * list closes its modal or returns to itself).
1843
1858
  */
1844
- interface IEntryFormListStyle extends IFormListBaseStyle {
1859
+ type TEntryFormListFormFields = Pick<IFormRecordStyle, 'name' | 'btn_save_label' | 'btn_save_color' | 'btn_update_label' | 'btn_update_color' | 'btn_cancel_label' | 'btn_cancel_color' | 'alert_success' | 'alert_success_title' | 'alert_error' | 'alert_error_title' | 'confirm_submit' | 'confirm_message' | 'buttons_size' | 'buttons_radius' | 'buttons_variant' | 'buttons_position' | 'buttons_order' | 'redirect_at_end'>;
1860
+ /**
1861
+ * Entry List with Form: a server-rendered list of records that is also the form
1862
+ * that creates and edits them. Put the inputs directly inside the list; the
1863
+ * first successful submit creates `data_tables.name = "<list section id>"`.
1864
+ * A nested `form-record` / `form-log` / `entry-record-form` / `entry-form-list`
1865
+ * is refused. When {@link IFormListBaseStyle.data_table} names another table,
1866
+ * the list is a read-only override (delete and quick actions only).
1867
+ */
1868
+ interface IEntryFormListStyle extends IFormListBaseStyle, TEntryFormListFormFields {
1845
1869
  style_name: 'entry-form-list';
1846
1870
  form_presentation?: IContentField<TFormListPresentation>;
1847
1871
  /** JSON: up to 8 server-defined quick actions `{id, label, confirm, set, when}`. */
@@ -2757,7 +2781,7 @@ declare const BASE_STYLE_REGISTRY: {
2757
2781
  readonly canHaveChildren: false;
2758
2782
  };
2759
2783
  readonly 'entry-form-list': {
2760
- readonly description: "Entry list with form: server-rendered list of records with create / view / edit / delete, quick actions and history";
2784
+ readonly description: "Entry List with Form: a list of records that is also the form that creates and edits them (put the inputs directly inside it); supports search, sort, filters, paging, quick actions and history";
2761
2785
  readonly category: "forms";
2762
2786
  readonly canHaveChildren: true;
2763
2787
  };
@@ -2767,6 +2791,15 @@ declare const BASE_STYLE_REGISTRY: {
2767
2791
  readonly canHaveChildren: true;
2768
2792
  };
2769
2793
  };
2794
+ /**
2795
+ * Style names that act as a form section: standalone forms plus
2796
+ * `entry-form-list` (the list is the form). Used by the CMS add-section
2797
+ * dialog to hide these styles below an `entry-form-list`, and by clients
2798
+ * that need the same closed set the backend refuses to nest.
2799
+ */
2800
+ declare const FORM_SECTION_STYLE_NAMES: readonly ["form-record", "form-log", "entry-record-form", "entry-form-list"];
2801
+ /** One of {@link FORM_SECTION_STYLE_NAMES}. */
2802
+ type TFormSectionStyleName = (typeof FORM_SECTION_STYLE_NAMES)[number];
2770
2803
  /**
2771
2804
  * Backward-compatible alias for the core registry. Pre-plugin code
2772
2805
  * imported `STYLE_REGISTRY`; that import still works and still resolves
@@ -3230,7 +3263,7 @@ declare const STYLE_REGISTRY: {
3230
3263
  readonly canHaveChildren: false;
3231
3264
  };
3232
3265
  readonly 'entry-form-list': {
3233
- readonly description: "Entry list with form: server-rendered list of records with create / view / edit / delete, quick actions and history";
3266
+ readonly description: "Entry List with Form: a list of records that is also the form that creates and edits them (put the inputs directly inside it); supports search, sort, filters, paging, quick actions and history";
3234
3267
  readonly category: "forms";
3235
3268
  readonly canHaveChildren: true;
3236
3269
  };
@@ -3284,4 +3317,4 @@ declare function getPluginStyleRegistry(): Record<string, IPluginStyleRegistryEn
3284
3317
  */
3285
3318
  declare function _resetPluginStyleRegistry(): void;
3286
3319
 
3287
- export { type IColorInputStyle as $, type IAdminDataRecordRestoreRequest as A, BASE_STYLE_REGISTRY as B, type IAdminDataRecordRestoreResponse as C, type IAdminDataRecordVersionResponse as D, type IAlertStyle as E, type IApiError as F, type IApiMeta as G, type IAspectRatioStyle as H, type IStyleRegistryEntry as I, type IAudioStyle as J, type IAvatarStyle as K, type IBackgroundImageStyle as L, type IBadgeStyle as M, type IBaseStyle as N, type IBlockquoteStyle as O, type IBoxStyle as P, type IButtonStyle as Q, type ICardSegmentStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type ICardStyle as U, type ICarouselStyle as V, type ICenterStyle as W, type ICheckboxStyle as X, type IChipStyle as Y, type ICodeStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type IFormLogStyle as a$, type IColorPickerStyle as a0, type IComboboxStyle as a1, type IContainerStyle as a2, type IDataContainerStyle as a3, type IDataViewStyle as a4, type IDatePickerStyle as a5, type IDividerStyle as a6, type IEntryFormListStyle as a7, type IEntryListStyle as a8, type IEntryRecordDeleteStyle as a9, type IFormListHistoricalFile as aA, type IFormListHistoryData as aB, type IFormListHistoryQuery as aC, type IFormListHistoryResponse as aD, type IFormListInfo as aE, type IFormListPagination as aF, type IFormListQuickActionData as aG, type IFormListQuickActionInfo as aH, type IFormListQuickActionRequest as aI, type IFormListQuickActionResponse as aJ, type IFormListRecordAccess as aK, type IFormListRestoreBlocker as aL, type IFormListRestoreChange as aM, type IFormListRestorePreview as aN, type IFormListRestoreRequest as aO, type IFormListRestoreResponse as aP, type IFormListRestoreResult as aQ, type IFormListRevision as aR, type IFormListRow as aS, type IFormListSelected as aT, type IFormListServedState as aU, type IFormListState as aV, type IFormListStateField as aW, type IFormListStateResponse as aX, type IFormListValueChange as aY, type IFormListVersionData as aZ, type IFormListVersionResponse as a_, type IEntryRecordFormStyle as aa, type IEntryRecordStyle as ab, type IEntryTableEntry as ac, type IEntryTableStyle as ad, type IFieldsetStyle as ae, type IFigureStyle as af, type IFileInputStyle as ag, type IFlexStyle as ah, type IFormDeleteData as ai, type IFormDeleteRequest as aj, type IFormDeleteResponse as ak, type IFormEffectiveContext as al, type IFormFileFieldOp as am, type IFormInputError as an, type IFormListActor as ao, type IFormListBaseStyle as ap, type IFormListCapabilities as aq, type IFormListColumn as ar, type IFormListCompareData as as, type IFormListCompareQuery as at, type IFormListCompareResponse as au, type IFormListControl as av, type IFormListControlOption as aw, type IFormListError as ax, type IFormListFileChange as ay, type IFormListFileValue as az, type TStylePlacement as b, type IUnknownStyle as b$, type IFormRecordStyle as b0, type IFormResultLegacyFields as b1, type IFormStyle as b2, type IFormSubmitData as b3, type IFormSubmitRequest as b4, type IFormSubmitResponse as b5, type IFormUpdateData as b6, type IFormUpdateRequest as b7, type IFormUpdateResponse as b8, type IGridColumnStyle as b9, type IRangeSliderStyle as bA, type IRatingStyle as bB, type IRefContainerStyle as bC, type IRegisterStyle as bD, type IResetPasswordStyle as bE, type IRichTextEditorStyle as bF, type IScrollAreaStyle as bG, type ISegmentedControlStyle as bH, type ISelectStyle as bI, type ISimpleGridStyle as bJ, type ISliderStyle as bK, type ISpaceStyle as bL, type ISpoilerStyle as bM, type IStackStyle as bN, type IStyleWithSpacing as bO, type ISwitchStyle as bP, type ITabStyle as bQ, type ITabsStyle as bR, type ITextInputStyle as bS, type ITextStyle as bT, type ITextareaStyle as bU, type IThemeIconStyle as bV, type ITimelineItemStyle as bW, type ITimelineStyle as bX, type ITitleStyle as bY, type ITwoFactorAuthStyle as bZ, type ITypographyStyle as b_, type IGridStyle as ba, type IGroupStyle as bb, type IHighlightStyle as bc, type IHtmlTagStyle as bd, type IImageStyle as be, type IIndicatorStyle as bf, type IInputStyle as bg, type IKbdStyle as bh, type ILinkStyle as bi, type IListItemStyle as bj, type IListStyle as bk, type ILoginStyle as bl, type ILoopStyle as bm, type IMeta as bn, type IMissingStyle as bo, type INoAccessStyle as bp, type INotFoundStyle as bq, type INotificationStyle as br, type INumberInputStyle as bs, type IPaperStyle as bt, type IPlatformAbout as bu, type IProfileStyle as bv, type IProgressRootStyle as bw, type IProgressSectionStyle as bx, type IProgressStyle as by, type IRadioStyle as bz, type TConcretePlatform as c, type TMantineTranslatable as c$, type IValidateStyle as c0, type IVersionStyle as c1, type IVideoStyle as c2, type TDataRevisionOperation as c3, type TDataRevisionSource as c4, type TFormConflictData as c5, type TFormInputRule as c6, type TFormListCellValue as c7, type TFormListChange as c8, type TFormListColumnFormat as c9, type TMantineIconSize as cA, type TMantineImageFit as cB, type TMantineLineClamp as cC, type TMantineListCenter as cD, type TMantineListStyleType as cE, type TMantineListType as cF, type TMantineListWithPadding as cG, type TMantinePaperShadow as cH, type TMantineProgressTransition as cI, type TMantineScrollAreaSize as cJ, type TMantineScrollAreaType as cK, type TMantineTextAlign as cL, type TMantineTextDecoration as cM, type TMantineTextFontStyle as cN, type TMantineTextFontWeight as cO, type TMantineTextInherit as cP, type TMantineTextInputVariant as cQ, type TMantineTextSpan as cR, type TMantineTextTransform as cS, type TMantineTextTruncate as cT, type TMantineTextVariant as cU, type TMantineTextareaAutosize as cV, type TMantineTextareaResize as cW, type TMantineTextareaVariant as cX, type TMantineTimelineAlign as cY, type TMantineTitleLineClamp as cZ, type TMantineTitleTextWrap as c_, type TFormListControlType as ca, type TFormListErrorReason as cb, type TFormListLabels as cc, type TFormListLayout as cd, type TFormListOpenMode as ce, type TFormListPresentation as cf, type TFormListRestoreBlockerReason as cg, type TFormListRestoreData as ch, type TFormListSortDirection as ci, type TFormListStyleName as cj, type TFormListTextMatch as ck, type TFormWriteRefusalReason as cl, type TMantineAccordionChevronPosition as cm, type TMantineAccordionDisableChevronRotation as cn, type TMantineAccordionLoop as co, type TMantineAccordionMultiple as cp, type TMantineAnchorUnderline as cq, type TMantineBorder as cr, type TMantineCardPadding as cs, type TMantineCardShadow as ct, type TMantineCols as cu, type TMantineDividerVariant as cv, type TMantineGap as cw, type TMantineGridOffset as cx, type TMantineGridOrder as cy, type TMantineHeight as cz, type TStylePlatform as d, type TMantineUseInputWrapper as d0, type TMantineWidth as d1, type TSharedBorder as d2, type TSharedCols as d3, type TSharedDimension as d4, type TSharedDividerLabelPosition as d5, type TSharedDividerVariant as d6, type TSharedLabelPosition as d7, type TStyle as d8, type TStyleRegistryKey as e, _resetPluginStyleRegistry as f, extendStyleRegistry as g, getMergedStyleRegistry as h, getPluginStyleRegistry as i, type IContentField as j, type IBaseApiResponse as k, type IAboutItem as l, type TMobileButtonFeedback as m, type TMobileFieldVariant as n, type TMobileSelectPresentation as o, type IFormInvalidData as p, type IFormListRestoreBlockedData as q, type IFormStaleVersionData as r, type IFormListFilesCell as s, type TFormListMode as t, type IFormListSort as u, type IAccordionItemStyle as v, type IAccordionStyle as w, type IActionIconStyle as x, type IAdminDataRecordCompareResponse as y, type IAdminDataRecordHistoryResponse as z };
3320
+ export { type IChipStyle as $, type IAdminDataRecordHistoryResponse as A, BASE_STYLE_REGISTRY as B, type IAdminDataRecordRestoreRequest as C, type IAdminDataRecordRestoreResponse as D, type IAdminDataRecordVersionResponse as E, FORM_SECTION_STYLE_NAMES as F, type IAlertStyle as G, type IApiError as H, type IStyleRegistryEntry as I, type IApiMeta as J, type IAspectRatioStyle as K, type IAudioStyle as L, type IAvatarStyle as M, type IBackgroundImageStyle as N, type IBadgeStyle as O, type IBaseStyle as P, type IBlockquoteStyle as Q, type IBoxStyle as R, STYLE_REGISTRY as S, type TStyleName 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, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type IFormListVersionData as a$, type ICodeStyle as a0, type IColorInputStyle as a1, type IColorPickerStyle as a2, type IComboboxStyle as a3, type IContainerStyle as a4, type IDataContainerStyle as a5, type IDataViewStyle as a6, type IDatePickerStyle as a7, type IDividerStyle as a8, type IEntryFormListStyle as a9, type IFormListFileChange as aA, type IFormListFileValue as aB, type IFormListHistoricalFile as aC, type IFormListHistoryData as aD, type IFormListHistoryQuery as aE, type IFormListHistoryResponse as aF, type IFormListInfo as aG, type IFormListPagination as aH, type IFormListQuickActionData as aI, type IFormListQuickActionInfo as aJ, type IFormListQuickActionRequest as aK, type IFormListQuickActionResponse as aL, type IFormListRecordAccess as aM, type IFormListRestoreBlocker as aN, type IFormListRestoreChange as aO, type IFormListRestorePreview as aP, type IFormListRestoreRequest as aQ, type IFormListRestoreResponse as aR, type IFormListRestoreResult as aS, type IFormListRevision as aT, type IFormListRow as aU, type IFormListSelected as aV, type IFormListServedState as aW, type IFormListState as aX, type IFormListStateField as aY, type IFormListStateResponse as aZ, type IFormListValueChange as a_, type IEntryListStyle as aa, type IEntryRecordDeleteStyle as ab, type IEntryRecordFormStyle as ac, type IEntryRecordStyle as ad, type IEntryTableEntry as ae, type IEntryTableStyle as af, type IFieldsetStyle as ag, type IFigureStyle as ah, type IFileInputStyle as ai, type IFlexStyle as aj, type IFormDeleteData as ak, type IFormDeleteRequest as al, type IFormDeleteResponse as am, type IFormEffectiveContext as an, type IFormFileFieldOp as ao, type IFormInputError as ap, type IFormListActor as aq, type IFormListBaseStyle as ar, type IFormListCapabilities as as, type IFormListColumn as at, type IFormListCompareData as au, type IFormListCompareQuery as av, type IFormListCompareResponse as aw, type IFormListControl as ax, type IFormListControlOption as ay, type IFormListError as az, type TStylePlacement as b, type ITwoFactorAuthStyle as b$, type IFormListVersionResponse as b0, type IFormLogStyle as b1, type IFormRecordStyle as b2, type IFormResultLegacyFields as b3, type IFormStyle as b4, type IFormSubmitData as b5, type IFormSubmitRequest as b6, type IFormSubmitResponse as b7, type IFormUpdateData as b8, type IFormUpdateRequest as b9, type IProgressStyle as bA, type IRadioStyle as bB, type IRangeSliderStyle as bC, type IRatingStyle as bD, type IRefContainerStyle as bE, type IRegisterStyle as bF, type IResetPasswordStyle as bG, type IRichTextEditorStyle as bH, type IScrollAreaStyle as bI, type ISegmentedControlStyle as bJ, type ISelectStyle as bK, type ISimpleGridStyle as bL, type ISliderStyle as bM, type ISpaceStyle as bN, type ISpoilerStyle as bO, type IStackStyle as bP, type IStyleWithSpacing as bQ, type ISwitchStyle as bR, type ITabStyle as bS, type ITabsStyle as bT, type ITextInputStyle as bU, type ITextStyle as bV, type ITextareaStyle as bW, type IThemeIconStyle as bX, type ITimelineItemStyle as bY, type ITimelineStyle as bZ, type ITitleStyle as b_, type IFormUpdateResponse as ba, type IGridColumnStyle as bb, type IGridStyle as bc, type IGroupStyle as bd, type IHighlightStyle as be, type IHtmlTagStyle as bf, type IImageStyle as bg, type IIndicatorStyle as bh, type IInputStyle as bi, type IKbdStyle as bj, type ILinkStyle as bk, type IListItemStyle as bl, type IListStyle as bm, type ILoginStyle as bn, type ILoopStyle as bo, type IMeta as bp, type IMissingStyle as bq, type INoAccessStyle as br, type INotFoundStyle as bs, type INotificationStyle as bt, type INumberInputStyle as bu, type IPaperStyle as bv, type IPlatformAbout as bw, type IProfileStyle as bx, type IProgressRootStyle as by, type IProgressSectionStyle as bz, type TConcretePlatform as c, type TMantineTimelineAlign as c$, type ITypographyStyle as c0, type IUnknownStyle as c1, type IValidateStyle as c2, type IVersionStyle as c3, type IVideoStyle as c4, type TDataRevisionOperation as c5, type TDataRevisionSource as c6, type TEntryFormListFormFields as c7, type TFormConflictData as c8, type TFormInputRule as c9, type TMantineGridOffset as cA, type TMantineGridOrder as cB, type TMantineHeight as cC, type TMantineIconSize as cD, type TMantineImageFit as cE, type TMantineLineClamp as cF, type TMantineListCenter as cG, type TMantineListStyleType as cH, type TMantineListType as cI, type TMantineListWithPadding as cJ, type TMantinePaperShadow as cK, type TMantineProgressTransition as cL, type TMantineScrollAreaSize as cM, type TMantineScrollAreaType as cN, type TMantineTextAlign as cO, type TMantineTextDecoration as cP, type TMantineTextFontStyle as cQ, type TMantineTextFontWeight as cR, type TMantineTextInherit as cS, type TMantineTextInputVariant as cT, type TMantineTextSpan as cU, type TMantineTextTransform as cV, type TMantineTextTruncate as cW, type TMantineTextVariant as cX, type TMantineTextareaAutosize as cY, type TMantineTextareaResize as cZ, type TMantineTextareaVariant as c_, type TFormListCellValue as ca, type TFormListChange as cb, type TFormListColumnFormat as cc, type TFormListControlType as cd, type TFormListErrorReason as ce, type TFormListLabels as cf, type TFormListLayout as cg, type TFormListOpenMode as ch, type TFormListPresentation as ci, type TFormListRestoreBlockerReason as cj, type TFormListRestoreData as ck, type TFormListSortDirection as cl, type TFormListStyleName as cm, type TFormListTextMatch as cn, type TFormWriteRefusalReason as co, type TMantineAccordionChevronPosition as cp, type TMantineAccordionDisableChevronRotation as cq, type TMantineAccordionLoop as cr, type TMantineAccordionMultiple as cs, type TMantineAnchorUnderline as ct, type TMantineBorder as cu, type TMantineCardPadding as cv, type TMantineCardShadow as cw, type TMantineCols as cx, type TMantineDividerVariant as cy, type TMantineGap as cz, type TStylePlatform as d, type TMantineTitleLineClamp as d0, type TMantineTitleTextWrap as d1, type TMantineTranslatable as d2, type TMantineUseInputWrapper as d3, type TMantineWidth as d4, type TSharedBorder as d5, type TSharedCols as d6, type TSharedDimension as d7, type TSharedDividerLabelPosition as d8, type TSharedDividerVariant as d9, type TSharedLabelPosition as da, type TStyle as db, type TFormSectionStyleName as e, type TStyleRegistryKey as f, _resetPluginStyleRegistry as g, extendStyleRegistry as h, getMergedStyleRegistry as i, getPluginStyleRegistry as j, type IContentField as k, type IBaseApiResponse as l, type IAboutItem as m, type TMobileButtonFeedback as n, type TMobileFieldVariant as o, type TMobileSelectPresentation as p, type IFormInvalidData as q, type IFormListRestoreBlockedData as r, type IFormStaleVersionData as s, type IFormListFilesCell as t, type TFormListMode as u, type IFormListSort as v, type IAccordionItemStyle as w, type IAccordionStyle as x, type IActionIconStyle as y, type IAdminDataRecordCompareResponse as z };
@@ -1,4 +1,4 @@
1
- import { I as IPluginManifest } from '../manifest-8YXAk-4o.mjs';
1
+ import { I as IPluginManifest } from '../manifest-BNnCN1Qo.mjs';
2
2
 
3
3
  /**
4
4
  * `@selfhelp/shared/testing` — the plugin certification kit.
@@ -1,4 +1,4 @@
1
- import { I as IPluginManifest } from '../manifest-8YXAk-4o.js';
1
+ import { I as IPluginManifest } from '../manifest-BNnCN1Qo.js';
2
2
 
3
3
  /**
4
4
  * `@selfhelp/shared/testing` — the plugin certification kit.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@selfhelp/shared",
3
- "version": "1.24.0",
3
+ "version": "1.27.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",
@@ -0,0 +1,30 @@
1
+ /*
2
+ SPDX-FileCopyrightText: 2026 Humdek, University of Bern
3
+ SPDX-License-Identifier: MPL-2.0
4
+ */
5
+ import { describe, expect, expectTypeOf, it } from 'vitest';
6
+ import type { IPluginManifestApiRoute } from '../manifest';
7
+
8
+ describe('IPluginManifestApiRoute', () => {
9
+ it('accepts public: true on a route item (C3)', () => {
10
+ const route: IPluginManifestApiRoute = {
11
+ name: 'surveyjs_public_published',
12
+ path: '/cms-api/v1/plugins/sh2-shp-survey-js/surveys/{id}/published',
13
+ methods: ['GET'],
14
+ public: true,
15
+ };
16
+ expect(route.public).toBe(true);
17
+ expectTypeOf(route.public).toEqualTypeOf<boolean | undefined>();
18
+ });
19
+
20
+ it('keeps permission-only routes valid without public', () => {
21
+ const route: IPluginManifestApiRoute = {
22
+ name: 'surveyjs_admin_list',
23
+ path: '/cms-api/v1/plugins/sh2-shp-survey-js/surveys',
24
+ methods: ['GET'],
25
+ permission: 'surveyjs.surveys.manage',
26
+ };
27
+ expect(route.permission).toBe('surveyjs.surveys.manage');
28
+ expect(route.public).toBeUndefined();
29
+ });
30
+ });
@@ -191,6 +191,13 @@ export interface IPluginManifestApiRoute {
191
191
  methods: ('GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE')[];
192
192
  /** Permission key required. */
193
193
  permission?: string;
194
+ /**
195
+ * When true, the route is open without a permission check (stored as
196
+ * `api_routes.is_public`). A plugin route needs at least one permission
197
+ * **or** `public: true`. Having neither is refused at install, update and
198
+ * sync. Having both is refused too: a public route checks no permission.
199
+ */
200
+ public?: boolean;
194
201
  }
195
202
 
196
203
  export interface IPluginManifestScheduledJob {
@@ -6,6 +6,7 @@
6
6
  import { afterEach, describe, expect, it } from 'vitest';
7
7
  import {
8
8
  BASE_STYLE_REGISTRY,
9
+ FORM_SECTION_STYLE_NAMES,
9
10
  STYLE_REGISTRY,
10
11
  extendStyleRegistry,
11
12
  getMergedStyleRegistry,
@@ -73,6 +74,19 @@ describe('shared style registry', () => {
73
74
  expect(getRegistryEntry('text')?.canHaveChildren).toBe(false);
74
75
  expect(getRegistryEntry('container')?.canHaveChildren).toBe(true);
75
76
  });
77
+
78
+ it('lists every FORM_SECTION_STYLE_NAMES entry in the core registry', () => {
79
+ expect([...FORM_SECTION_STYLE_NAMES]).toEqual([
80
+ 'form-record',
81
+ 'form-log',
82
+ 'entry-record-form',
83
+ 'entry-form-list',
84
+ ]);
85
+ for (const name of FORM_SECTION_STYLE_NAMES) {
86
+ expect(BASE_STYLE_REGISTRY[name], name).toBeDefined();
87
+ expect(isKnownStyleName(name), name).toBe(true);
88
+ }
89
+ });
76
90
  });
77
91
 
78
92
  describe('lookups for unknown keys are safe', () => {
@@ -227,10 +227,31 @@ export const BASE_STYLE_REGISTRY = {
227
227
  'ref-container': { description: 'Renders content referenced from another section', category: 'layout', canHaveChildren: true },
228
228
  'data-container': { description: 'Data-scoped container (renders subtree against a data scope)', category: 'layout', canHaveChildren: true },
229
229
  'entry-table': { description: 'Built-in admin CRUD grid over a form\'s records (search/sort/paginate/CSV, add / edit / delete actions)', category: 'forms', canHaveChildren: false },
230
- 'entry-form-list': { description: 'Entry list with form: server-rendered list of records with create / view / edit / delete, quick actions and history', category: 'forms', canHaveChildren: true },
230
+ 'entry-form-list': {
231
+ description:
232
+ 'Entry List with Form: a list of records that is also the form that creates and edits them (put the inputs directly inside it); supports search, sort, filters, paging, quick actions and history',
233
+ category: 'forms',
234
+ canHaveChildren: true,
235
+ },
231
236
  'data-view': { description: 'Read-only server-rendered table, cards or your own layout (sections placed inside, drawn once per record) of records of a data table', category: 'forms', canHaveChildren: true },
232
237
  } as const satisfies Record<string, IStyleRegistryEntry>;
233
238
 
239
+ /**
240
+ * Style names that act as a form section: standalone forms plus
241
+ * `entry-form-list` (the list is the form). Used by the CMS add-section
242
+ * dialog to hide these styles below an `entry-form-list`, and by clients
243
+ * that need the same closed set the backend refuses to nest.
244
+ */
245
+ export const FORM_SECTION_STYLE_NAMES = [
246
+ 'form-record',
247
+ 'form-log',
248
+ 'entry-record-form',
249
+ 'entry-form-list',
250
+ ] as const;
251
+
252
+ /** One of {@link FORM_SECTION_STYLE_NAMES}. */
253
+ export type TFormSectionStyleName = (typeof FORM_SECTION_STYLE_NAMES)[number];
254
+
234
255
  /**
235
256
  * Backward-compatible alias for the core registry. Pre-plugin code
236
257
  * imported `STYLE_REGISTRY`; that import still works and still resolves
@@ -69,7 +69,13 @@ export interface IFormListInfo {
69
69
  style: TFormListStyleName;
70
70
  layout: TFormListLayout;
71
71
  form_presentation: TFormListPresentation;
72
- /** The inline form that creates and edits records; null for a data view. */
72
+ /**
73
+ * The section that creates and edits records.
74
+ * For an `entry-form-list` that owns its table (no foreign `data_table`),
75
+ * this is the **list's own** section id. It is `null` for a `data-view`
76
+ * and for an `entry-form-list` with a foreign `data_table` (read-only
77
+ * override: delete and quick actions only, no form).
78
+ */
73
79
  form_section_id: number | null;
74
80
  /** False while the list's form was never submitted: there is nothing to read yet. */
75
81
  table_exists: boolean;
package/src/types/auth.ts CHANGED
@@ -104,14 +104,15 @@ export const PERMISSIONS = {
104
104
  ADMIN_SCHEDULED_JOB_EXECUTE: 'admin.scheduled_job.execute',
105
105
  ADMIN_SCHEDULED_JOB_DELETE: 'admin.scheduled_job.delete',
106
106
  ADMIN_SCHEDULED_JOB_MANAGE: 'admin.scheduled_job.manage',
107
+ ADMIN_SECTION_READ: 'admin.section.read',
107
108
  ADMIN_SECTION_DELETE: 'admin.section.delete',
108
- ADMIN_SETTINGS: 'admin.settings',
109
+ ADMIN_LANGUAGE_READ: 'admin.language.read',
110
+ ADMIN_LANGUAGE_UPDATE: 'admin.language.update',
109
111
  ADMIN_CMS_PREFERENCES_READ: 'admin.cms_preferences.read',
110
- ADMIN_CMS_PREFERENCES_UPDATE: 'admin.cms_preferences.update',
111
112
  ADMIN_CACHE_READ: 'admin.cache.read',
112
113
  ADMIN_CACHE_CLEAR: 'admin.cache.clear',
113
114
  ADMIN_CACHE_MANAGE: 'admin.cache.manage',
114
- ADMIN_AUDIT_VIEW: 'admin.audit.view',
115
+ ADMIN_AUDIT_READ: 'admin.audit.read',
115
116
  } as const;
116
117
 
117
118
  export type TPermission = (typeof PERMISSIONS)[keyof typeof PERMISSIONS];
@@ -52,10 +52,8 @@ export interface IPageAccessTypeInfo {
52
52
  export interface IPageItem extends IBasePageInfo {
53
53
  id_users?: number;
54
54
  id_pages?: number;
55
+ /** Page ACL: members of a group with this right can see the page and use its forms. */
55
56
  acl_select?: 0 | 1;
56
- acl_insert?: 0 | 1;
57
- acl_update?: 0 | 1;
58
- acl_delete?: 0 | 1;
59
57
  id_page_types?: number;
60
58
  id_page_access_types?: number;
61
59
  title?: string | null;
@@ -0,0 +1,44 @@
1
+ /*
2
+ * SPDX-FileCopyrightText: 2026 Humdek, University of Bern
3
+ * SPDX-License-Identifier: MPL-2.0
4
+ */
5
+
6
+ import { describe, expectTypeOf, it } from 'vitest';
7
+ import type { IContentField } from '../base';
8
+ import type { IEntryFormListStyle, IFormRecordStyle, TEntryFormListFormFields } from '../forms';
9
+
10
+ /**
11
+ * Compile-time pin: the form fields on Entry List with Form stay aligned with
12
+ * form-record (Pick), so a rename or type change on the form cannot drift.
13
+ */
14
+ describe('TEntryFormListFormFields', () => {
15
+ it('matches the corresponding IFormRecordStyle members', () => {
16
+ expectTypeOf<TEntryFormListFormFields['name']>().toEqualTypeOf<IFormRecordStyle['name']>();
17
+ expectTypeOf<TEntryFormListFormFields['btn_save_label']>().toEqualTypeOf<
18
+ IFormRecordStyle['btn_save_label']
19
+ >();
20
+ expectTypeOf<TEntryFormListFormFields['btn_update_label']>().toEqualTypeOf<
21
+ IFormRecordStyle['btn_update_label']
22
+ >();
23
+ expectTypeOf<TEntryFormListFormFields['btn_update_color']>().toEqualTypeOf<
24
+ IFormRecordStyle['btn_update_color']
25
+ >();
26
+ expectTypeOf<TEntryFormListFormFields['alert_success']>().toEqualTypeOf<
27
+ IFormRecordStyle['alert_success']
28
+ >();
29
+ expectTypeOf<TEntryFormListFormFields['redirect_at_end']>().toEqualTypeOf<
30
+ IFormRecordStyle['redirect_at_end']
31
+ >();
32
+ expectTypeOf<TEntryFormListFormFields['buttons_order']>().toEqualTypeOf<
33
+ IFormRecordStyle['buttons_order']
34
+ >();
35
+ });
36
+
37
+ it('is carried by IEntryFormListStyle without changing style_name', () => {
38
+ expectTypeOf<IEntryFormListStyle['style_name']>().toEqualTypeOf<'entry-form-list'>();
39
+ expectTypeOf<IEntryFormListStyle['name']>().toEqualTypeOf<IContentField<string> | undefined>();
40
+ expectTypeOf<IEntryFormListStyle['btn_update_label']>().toEqualTypeOf<
41
+ IContentField<string> | undefined
42
+ >();
43
+ });
44
+ });
@@ -614,7 +614,14 @@ export interface IFormListBaseStyle extends IStyleWithSpacing {
614
614
  title?: IContentField<string>;
615
615
  /** The list's name in the URL (`<key>.page`, `<key>.q`, ...); unique on a page. */
616
616
  list_key?: IContentField<string>;
617
- /** Numeric `data_tables.id`, or empty: the table of the inline form. Required for a data view. */
617
+ /**
618
+ * Numeric `data_tables.id`, or empty.
619
+ * - On `entry-form-list`: empty means the list owns its table (created on
620
+ * first submit as `data_tables.name = "<list section id>"`). Set to another
621
+ * table for a read-only override: the list only deletes and runs quick
622
+ * actions; inputs, create and edit are refused.
623
+ * - On `data-view`: required; the view is always read-only.
624
+ */
618
625
  data_table?: IContentField<string>;
619
626
  list_layout?: IContentField<TFormListLayout>;
620
627
  /** Rows per page, 1 to 100. */
@@ -634,11 +641,44 @@ export interface IFormListBaseStyle extends IStyleWithSpacing {
634
641
  }
635
642
 
636
643
  /**
637
- * Entry List with Form: a server-rendered list of records with create, view,
638
- * edit, delete and quick actions, over the generic data store. Its child
639
- * sections include the inline form that creates and edits records.
644
+ * Form fields that an Entry List with Form carries when it is its own form.
645
+ * Picked from {@link IFormRecordStyle} so labels, alerts and button knobs cannot
646
+ * drift from standalone forms. Not included: `description` (the list has
647
+ * `title`), `close_modal_on_save`, `redirect_on_save`, `btn_cancel_url` (the
648
+ * list closes its modal or returns to itself).
649
+ */
650
+ export type TEntryFormListFormFields = Pick<
651
+ IFormRecordStyle,
652
+ | 'name'
653
+ | 'btn_save_label'
654
+ | 'btn_save_color'
655
+ | 'btn_update_label'
656
+ | 'btn_update_color'
657
+ | 'btn_cancel_label'
658
+ | 'btn_cancel_color'
659
+ | 'alert_success'
660
+ | 'alert_success_title'
661
+ | 'alert_error'
662
+ | 'alert_error_title'
663
+ | 'confirm_submit'
664
+ | 'confirm_message'
665
+ | 'buttons_size'
666
+ | 'buttons_radius'
667
+ | 'buttons_variant'
668
+ | 'buttons_position'
669
+ | 'buttons_order'
670
+ | 'redirect_at_end'
671
+ >;
672
+
673
+ /**
674
+ * Entry List with Form: a server-rendered list of records that is also the form
675
+ * that creates and edits them. Put the inputs directly inside the list; the
676
+ * first successful submit creates `data_tables.name = "<list section id>"`.
677
+ * A nested `form-record` / `form-log` / `entry-record-form` / `entry-form-list`
678
+ * is refused. When {@link IFormListBaseStyle.data_table} names another table,
679
+ * the list is a read-only override (delete and quick actions only).
640
680
  */
641
- export interface IEntryFormListStyle extends IFormListBaseStyle {
681
+ export interface IEntryFormListStyle extends IFormListBaseStyle, TEntryFormListFormFields {
642
682
  style_name: 'entry-form-list';
643
683
  form_presentation?: IContentField<TFormListPresentation>;
644
684
  /** JSON: up to 8 server-defined quick actions `{id, label, confirm, set, when}`. */
@@ -61,6 +61,16 @@ describe('transformPageData', () => {
61
61
  expect(result.keyword).toBe('');
62
62
  expect(result.children).toEqual([]);
63
63
  });
64
+
65
+ it('passes through acl_select only (page ACL is one right)', () => {
66
+ const result = transformPageData({
67
+ id: 1,
68
+ keyword: 'seen',
69
+ acl_select: 1,
70
+ });
71
+ expect(result.acl_select).toBe(1);
72
+ expect(Object.keys(result).filter((k) => k.startsWith('acl_'))).toEqual(['acl_select']);
73
+ });
64
74
  });
65
75
 
66
76
  describe('transformPagesData', () => {
@@ -26,9 +26,6 @@ interface IRawPage {
26
26
  mobile_icon?: string | null;
27
27
  id_users?: number;
28
28
  acl_select?: 0 | 1;
29
- acl_insert?: 0 | 1;
30
- acl_update?: 0 | 1;
31
- acl_delete?: 0 | 1;
32
29
  id_page_types?: number;
33
30
  id_page_access_types?: number;
34
31
  children?: IRawPage[];
@@ -62,9 +59,6 @@ export function transformPageData(apiPage: IRawPage): IPageItem {
62
59
  id_users: apiPage.id_users,
63
60
  id_pages: apiPage.id_pages ?? id,
64
61
  acl_select: apiPage.acl_select,
65
- acl_insert: apiPage.acl_insert,
66
- acl_update: apiPage.acl_update,
67
- acl_delete: apiPage.acl_delete,
68
62
  id_page_types: apiPage.id_page_types,
69
63
  id_page_access_types: apiPage.id_page_access_types,
70
64
  };