@abpjs/text-template-management 3.0.0 → 3.1.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/dist/index.d.mts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +12 -0
- package/dist/index.mjs +11 -0
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -273,6 +273,28 @@ declare namespace TextTemplateManagement {
|
|
|
273
273
|
sorting?: string;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* Input for getting template definition list
|
|
278
|
+
* Extends PagedResultRequestDto with optional filterText
|
|
279
|
+
* @since 3.1.0
|
|
280
|
+
*/
|
|
281
|
+
interface GetTemplateDefinitionListInput {
|
|
282
|
+
/** Filter text for searching templates */
|
|
283
|
+
filterText?: string;
|
|
284
|
+
/** Skip count for pagination */
|
|
285
|
+
skipCount?: number;
|
|
286
|
+
/** Max result count for pagination */
|
|
287
|
+
maxResultCount?: number;
|
|
288
|
+
/** Sorting field and order */
|
|
289
|
+
sorting?: string;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Factory function to create GetTemplateDefinitionListInput
|
|
293
|
+
* @param initialValues Optional initial values
|
|
294
|
+
* @returns GetTemplateDefinitionListInput instance
|
|
295
|
+
* @since 3.1.0
|
|
296
|
+
*/
|
|
297
|
+
declare function createGetTemplateDefinitionListInput(initialValues?: Partial<GetTemplateDefinitionListInput>): GetTemplateDefinitionListInput;
|
|
276
298
|
|
|
277
299
|
/**
|
|
278
300
|
* Text Template Management Extension Tokens
|
|
@@ -747,4 +769,4 @@ interface TemplateContentsComponentProps {
|
|
|
747
769
|
*/
|
|
748
770
|
declare function TemplateContentsComponent({ templateName, cultures, defaultCultureName, onSave, onRestore, className, }: TemplateContentsComponentProps): React.ReactElement;
|
|
749
771
|
|
|
750
|
-
export { DEFAULT_TEXT_TEMPLATES_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATES_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATES_TOOLBAR_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTIONS, type EntityAction, type EntityActionContributorCallback, type EntityProp, type EntityPropContributorCallback, TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ROUTES, TEXT_TEMPLATE_MANAGEMENT_ROUTE_CONFIG, TEXT_TEMPLATE_MANAGEMENT_ROUTE_PROVIDERS, TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS, TemplateContentService, TemplateContentsComponent, type TemplateContentsComponentProps, TemplateDefinitionService, TextTemplateManagement, type TextTemplateManagementComponentKey, type TextTemplateManagementConfigOptions, type TextTemplateManagementEntityActionContributors, type TextTemplateManagementEntityPropContributors, TextTemplateManagementExtensionsGuard, type TextTemplateManagementPolicyNameKey, type TextTemplateManagementRouteNameKey, TextTemplateManagementStateService, type TextTemplateManagementToolbarActionContributors, TextTemplatesComponent, type TextTemplatesComponentProps, type ToolbarAction, type ToolbarActionContributorCallback, type UseTextTemplatesReturn, configureRoutes, eTextTemplateManagementComponents, eTextTemplateManagementPolicyNames, eTextTemplateManagementRouteNames, initializeTextTemplateManagementRoutes, textTemplateManagementExtensionsGuard, useTextTemplateManagementExtensionsGuard, useTextTemplates };
|
|
772
|
+
export { DEFAULT_TEXT_TEMPLATES_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATES_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATES_TOOLBAR_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTIONS, type EntityAction, type EntityActionContributorCallback, type EntityProp, type EntityPropContributorCallback, type GetTemplateDefinitionListInput, TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ROUTES, TEXT_TEMPLATE_MANAGEMENT_ROUTE_CONFIG, TEXT_TEMPLATE_MANAGEMENT_ROUTE_PROVIDERS, TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS, TemplateContentService, TemplateContentsComponent, type TemplateContentsComponentProps, TemplateDefinitionService, TextTemplateManagement, type TextTemplateManagementComponentKey, type TextTemplateManagementConfigOptions, type TextTemplateManagementEntityActionContributors, type TextTemplateManagementEntityPropContributors, TextTemplateManagementExtensionsGuard, type TextTemplateManagementPolicyNameKey, type TextTemplateManagementRouteNameKey, TextTemplateManagementStateService, type TextTemplateManagementToolbarActionContributors, TextTemplatesComponent, type TextTemplatesComponentProps, type ToolbarAction, type ToolbarActionContributorCallback, type UseTextTemplatesReturn, configureRoutes, createGetTemplateDefinitionListInput, eTextTemplateManagementComponents, eTextTemplateManagementPolicyNames, eTextTemplateManagementRouteNames, initializeTextTemplateManagementRoutes, textTemplateManagementExtensionsGuard, useTextTemplateManagementExtensionsGuard, useTextTemplates };
|
package/dist/index.d.ts
CHANGED
|
@@ -273,6 +273,28 @@ declare namespace TextTemplateManagement {
|
|
|
273
273
|
sorting?: string;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* Input for getting template definition list
|
|
278
|
+
* Extends PagedResultRequestDto with optional filterText
|
|
279
|
+
* @since 3.1.0
|
|
280
|
+
*/
|
|
281
|
+
interface GetTemplateDefinitionListInput {
|
|
282
|
+
/** Filter text for searching templates */
|
|
283
|
+
filterText?: string;
|
|
284
|
+
/** Skip count for pagination */
|
|
285
|
+
skipCount?: number;
|
|
286
|
+
/** Max result count for pagination */
|
|
287
|
+
maxResultCount?: number;
|
|
288
|
+
/** Sorting field and order */
|
|
289
|
+
sorting?: string;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Factory function to create GetTemplateDefinitionListInput
|
|
293
|
+
* @param initialValues Optional initial values
|
|
294
|
+
* @returns GetTemplateDefinitionListInput instance
|
|
295
|
+
* @since 3.1.0
|
|
296
|
+
*/
|
|
297
|
+
declare function createGetTemplateDefinitionListInput(initialValues?: Partial<GetTemplateDefinitionListInput>): GetTemplateDefinitionListInput;
|
|
276
298
|
|
|
277
299
|
/**
|
|
278
300
|
* Text Template Management Extension Tokens
|
|
@@ -747,4 +769,4 @@ interface TemplateContentsComponentProps {
|
|
|
747
769
|
*/
|
|
748
770
|
declare function TemplateContentsComponent({ templateName, cultures, defaultCultureName, onSave, onRestore, className, }: TemplateContentsComponentProps): React.ReactElement;
|
|
749
771
|
|
|
750
|
-
export { DEFAULT_TEXT_TEMPLATES_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATES_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATES_TOOLBAR_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTIONS, type EntityAction, type EntityActionContributorCallback, type EntityProp, type EntityPropContributorCallback, TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ROUTES, TEXT_TEMPLATE_MANAGEMENT_ROUTE_CONFIG, TEXT_TEMPLATE_MANAGEMENT_ROUTE_PROVIDERS, TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS, TemplateContentService, TemplateContentsComponent, type TemplateContentsComponentProps, TemplateDefinitionService, TextTemplateManagement, type TextTemplateManagementComponentKey, type TextTemplateManagementConfigOptions, type TextTemplateManagementEntityActionContributors, type TextTemplateManagementEntityPropContributors, TextTemplateManagementExtensionsGuard, type TextTemplateManagementPolicyNameKey, type TextTemplateManagementRouteNameKey, TextTemplateManagementStateService, type TextTemplateManagementToolbarActionContributors, TextTemplatesComponent, type TextTemplatesComponentProps, type ToolbarAction, type ToolbarActionContributorCallback, type UseTextTemplatesReturn, configureRoutes, eTextTemplateManagementComponents, eTextTemplateManagementPolicyNames, eTextTemplateManagementRouteNames, initializeTextTemplateManagementRoutes, textTemplateManagementExtensionsGuard, useTextTemplateManagementExtensionsGuard, useTextTemplates };
|
|
772
|
+
export { DEFAULT_TEXT_TEMPLATES_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATES_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATES_TOOLBAR_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTIONS, type EntityAction, type EntityActionContributorCallback, type EntityProp, type EntityPropContributorCallback, type GetTemplateDefinitionListInput, TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ROUTES, TEXT_TEMPLATE_MANAGEMENT_ROUTE_CONFIG, TEXT_TEMPLATE_MANAGEMENT_ROUTE_PROVIDERS, TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS, TemplateContentService, TemplateContentsComponent, type TemplateContentsComponentProps, TemplateDefinitionService, TextTemplateManagement, type TextTemplateManagementComponentKey, type TextTemplateManagementConfigOptions, type TextTemplateManagementEntityActionContributors, type TextTemplateManagementEntityPropContributors, TextTemplateManagementExtensionsGuard, type TextTemplateManagementPolicyNameKey, type TextTemplateManagementRouteNameKey, TextTemplateManagementStateService, type TextTemplateManagementToolbarActionContributors, TextTemplatesComponent, type TextTemplatesComponentProps, type ToolbarAction, type ToolbarActionContributorCallback, type UseTextTemplatesReturn, configureRoutes, createGetTemplateDefinitionListInput, eTextTemplateManagementComponents, eTextTemplateManagementPolicyNames, eTextTemplateManagementRouteNames, initializeTextTemplateManagementRoutes, textTemplateManagementExtensionsGuard, useTextTemplateManagementExtensionsGuard, useTextTemplates };
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ __export(index_exports, {
|
|
|
39
39
|
TextTemplateManagementStateService: () => TextTemplateManagementStateService,
|
|
40
40
|
TextTemplatesComponent: () => TextTemplatesComponent,
|
|
41
41
|
configureRoutes: () => configureRoutes,
|
|
42
|
+
createGetTemplateDefinitionListInput: () => createGetTemplateDefinitionListInput,
|
|
42
43
|
eTextTemplateManagementComponents: () => eTextTemplateManagementComponents,
|
|
43
44
|
eTextTemplateManagementPolicyNames: () => eTextTemplateManagementPolicyNames,
|
|
44
45
|
eTextTemplateManagementRouteNames: () => eTextTemplateManagementRouteNames,
|
|
@@ -148,6 +149,16 @@ var TextTemplateManagementExtensionsGuard = class {
|
|
|
148
149
|
}
|
|
149
150
|
};
|
|
150
151
|
|
|
152
|
+
// src/models/text-template-management.ts
|
|
153
|
+
function createGetTemplateDefinitionListInput(initialValues) {
|
|
154
|
+
return {
|
|
155
|
+
filterText: initialValues?.filterText,
|
|
156
|
+
skipCount: initialValues?.skipCount ?? 0,
|
|
157
|
+
maxResultCount: initialValues?.maxResultCount ?? 10,
|
|
158
|
+
sorting: initialValues?.sorting
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
151
162
|
// src/constants/routes.ts
|
|
152
163
|
var TEXT_TEMPLATE_MANAGEMENT_ROUTES = {
|
|
153
164
|
routes: [
|
|
@@ -969,6 +980,7 @@ var styles2 = {
|
|
|
969
980
|
TextTemplateManagementStateService,
|
|
970
981
|
TextTemplatesComponent,
|
|
971
982
|
configureRoutes,
|
|
983
|
+
createGetTemplateDefinitionListInput,
|
|
972
984
|
eTextTemplateManagementComponents,
|
|
973
985
|
eTextTemplateManagementPolicyNames,
|
|
974
986
|
eTextTemplateManagementRouteNames,
|
package/dist/index.mjs
CHANGED
|
@@ -97,6 +97,16 @@ var TextTemplateManagementExtensionsGuard = class {
|
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
+
// src/models/text-template-management.ts
|
|
101
|
+
function createGetTemplateDefinitionListInput(initialValues) {
|
|
102
|
+
return {
|
|
103
|
+
filterText: initialValues?.filterText,
|
|
104
|
+
skipCount: initialValues?.skipCount ?? 0,
|
|
105
|
+
maxResultCount: initialValues?.maxResultCount ?? 10,
|
|
106
|
+
sorting: initialValues?.sorting
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
100
110
|
// src/constants/routes.ts
|
|
101
111
|
var TEXT_TEMPLATE_MANAGEMENT_ROUTES = {
|
|
102
112
|
routes: [
|
|
@@ -917,6 +927,7 @@ export {
|
|
|
917
927
|
TextTemplateManagementStateService,
|
|
918
928
|
TextTemplatesComponent,
|
|
919
929
|
configureRoutes,
|
|
930
|
+
createGetTemplateDefinitionListInput,
|
|
920
931
|
eTextTemplateManagementComponents,
|
|
921
932
|
eTextTemplateManagementPolicyNames,
|
|
922
933
|
eTextTemplateManagementRouteNames,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abpjs/text-template-management",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "ABP Framework text-template-management components for React - translated from @volo/abp.ng.text-template-management",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@chakra-ui/react": "^3.2.0",
|
|
27
27
|
"@emotion/react": "^11.11.0",
|
|
28
|
-
"@abpjs/core": "3.
|
|
29
|
-
"@abpjs/theme-shared": "3.
|
|
28
|
+
"@abpjs/core": "3.1.0",
|
|
29
|
+
"@abpjs/theme-shared": "3.1.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@volo/abp.ng.text-template-management": "3.
|
|
32
|
+
"@volo/abp.ng.text-template-management": "3.1.0",
|
|
33
33
|
"@testing-library/jest-dom": "^6.9.1",
|
|
34
34
|
"@testing-library/react": "^14.0.0",
|
|
35
35
|
"@testing-library/user-event": "^14.6.1",
|