Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sap-ux/fe-fpm-writer

Package Overview
Dependencies
Maintainers
3
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-ux/fe-fpm-writer - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

dist/view/index.d.ts

3

dist/common/defaults.d.ts

@@ -19,5 +19,6 @@ import type { CustomElement, InternalCustomElement, Manifest } from './types';

* if value is not passed then "Text" control would be generated
* @param {boolean} isController - controls if `controller` should be added to handler path
* @returns default content for fragment
*/
export declare function getDefaultFragmentContent(text: string, eventHandler?: string): string;
export declare function getDefaultFragmentContent(text: string, eventHandler?: string, isController?: boolean): string;
//# sourceMappingURL=defaults.d.ts.map

@@ -33,5 +33,6 @@ "use strict";

* if value is not passed then "Text" control would be generated
* @param {boolean} isController - controls if `controller` should be added to handler path
* @returns default content for fragment
*/
function getDefaultFragmentContent(text, eventHandler) {
function getDefaultFragmentContent(text, eventHandler, isController = false) {
let content;

@@ -41,3 +42,3 @@ if (eventHandler) {

const method = parts.pop();
const handler = parts.join('/');
const handler = `${parts.join('/')}${isController ? '.controller' : ''}`;
content = `<Button core:require="{ handler: '${handler}'}" text="${text}" press="handler.${method}" />`;

@@ -44,0 +45,0 @@ }

@@ -14,3 +14,3 @@ import type { ManifestNamespace } from '@sap-ux/ui5-config';

/**
* Target folder relative to the manifest that is used to generate the custom extension content (e.g. view, fragment, controoler).
* Target folder relative to the manifest that is used to generate the custom extension content (e.g. view, fragment, controller).
* If undefined then `ext/${id}` is used.

@@ -54,2 +54,46 @@ */

}
export interface ViewVariant {
/**
* The key entry is used for initializing the corresponding IconTabBar item.
*/
key: string;
/**
* The annotationPath of a specific variant.
*/
annotationPath: string;
/**
* View title, is shown in the tab item.
*/
label?: string;
/**
* If you switch from an app with only a single table to an app with multiple tables, you can keep the previously defined variant on one tab.
*/
keepPreviousPersonalization?: boolean;
/**
* The template being used for the custom view.
*/
template?: string;
}
export interface Views {
/**
* The paths section contains a set of entries that point to the variants defined in the annotations.
*/
paths?: Array<ViewVariant>;
/**
* Determines whether the count is displayed in the tabs (default setting: false).
*/
showCounts?: boolean;
}
export interface Ui5TargetSettings {
settings?: {
/**
* Represents the entity set that defines either the aggregation or the root object of the component.
*/
entitySet?: string;
/**
* By default, the list report displays only one table. You can define multiple views of a table, and add a chart, if required.
*/
views?: Views;
};
}
//# sourceMappingURL=types.d.ts.map

@@ -9,4 +9,6 @@ export { CustomPage } from './page/types';

export { generateCustomSection } from './section';
export { CustomView } from './view/types';
export { generateCustomView } from './view';
export { enableFPM, FPMConfig } from './app';
export { validateBasePath, validateVersion } from './common/validate';
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateVersion = exports.validateBasePath = exports.enableFPM = exports.generateCustomSection = exports.generateCustomColumn = exports.generateCustomAction = exports.TargetControl = exports.generateCustomPage = void 0;
exports.validateVersion = exports.validateBasePath = exports.enableFPM = exports.generateCustomView = exports.generateCustomSection = exports.generateCustomColumn = exports.generateCustomAction = exports.TargetControl = exports.generateCustomPage = void 0;
var page_1 = require("./page");

@@ -14,2 +14,4 @@ Object.defineProperty(exports, "generateCustomPage", { enumerable: true, get: function () { return page_1.generateCustomPage; } });

Object.defineProperty(exports, "generateCustomSection", { enumerable: true, get: function () { return section_1.generateCustomSection; } });
var view_1 = require("./view");
Object.defineProperty(exports, "generateCustomView", { enumerable: true, get: function () { return view_1.generateCustomView; } });
var app_1 = require("./app");

@@ -16,0 +18,0 @@ Object.defineProperty(exports, "enableFPM", { enumerable: true, get: function () { return app_1.enableFPM; } });

{
"name": "@sap-ux/fe-fpm-writer",
"description": "SAP Fiori elements flexible programming model writer",
"version": "0.7.0",
"version": "0.8.0",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc