atom-ui-lib
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -0,1 +1,4 @@ | ||
/** | ||
* In example : { name: 'Images', extensions: ['jpg', 'png', 'gif'] } | ||
*/ | ||
export interface ExtensionFilter { | ||
@@ -2,0 +5,0 @@ name: string; |
@@ -142,3 +142,7 @@ import tm = require("./treeModel"); | ||
private disposeTooltipListeners(); | ||
/** | ||
* may be called multiple times | ||
*/ | ||
dispose(): void; | ||
wasDisposed: boolean; | ||
getPercentWidth(): number; | ||
@@ -167,3 +171,9 @@ setPercentWidth(value: number): BasicComponent<T>; | ||
private _oldIcon; | ||
focusPropagator: (x: any) => void; | ||
destroyListener: (x: any) => void; | ||
protected customize(element: T): void; | ||
/** | ||
* | ||
* @returns not null element; | ||
*/ | ||
protected selfRender(): T; | ||
@@ -747,5 +757,7 @@ protected selfRenderFooter(): HTMLElement; | ||
private _txt; | ||
num: number; | ||
constructor(text: string | IBinding, _onchange: EventHandler); | ||
private grammar; | ||
setGrammar(id: string): void; | ||
renderUI(): HTMLInputElement; | ||
private innerSetGrammar(); | ||
@@ -760,2 +772,3 @@ protected mini: boolean; | ||
setSoftWrapped(wrap: boolean): boolean; | ||
dispose(): void; | ||
protected customize(element: HTMLInputElement): void; | ||
@@ -871,2 +884,3 @@ setText(newText: string, handle?: boolean): void; | ||
constructor(caption: string, value: string | IBinding, onChange: EventHandler, layoutType?: LayoutType, placeholder?: string); | ||
dispose(): void; | ||
customize(element: any): void; | ||
@@ -1017,3 +1031,9 @@ } | ||
export declare function masterDetails<R, T>(selectionProvider: SelectionProvider<T>, viewer: Viewer<R>, convert?: Convertor<T, R>): void; | ||
/** | ||
* function to show dialog prompt | ||
* @param name | ||
* @param callBack | ||
* @param initialValue | ||
*/ | ||
export declare function prompt(name: string, callBack: (newValue: string) => void, initialValue?: string): void; | ||
export import fdUtils = require("./fileDialogUtils"); |
@@ -0,1 +1,300 @@ | ||
///// <reference path="../typings/main.d.ts" /> | ||
//var webpack = require("webpack"); | ||
// | ||
//import path =require("path"); | ||
//import http = require('http'); | ||
//import url = require('url'); | ||
//import fs = require('fs'); | ||
// | ||
//var StringReplacePlugin = require("string-replace-webpack-plugin"); | ||
//var wrench = require('wrench'); | ||
// | ||
//var showStats = true; | ||
// | ||
//webFs.setRequestHandler(requestedPath => { | ||
// if(showStats) { | ||
// console.log("path added to bundle: " + requestedPath); | ||
// } | ||
// | ||
// var filePath = null; | ||
// | ||
// if(requestedPath.indexOf('/examples') === 0) { | ||
// filePath = path.resolve(__dirname, '../../..' + requestedPath); | ||
// } else { | ||
// filePath = path.resolve(__dirname, '../..' + requestedPath); | ||
// } | ||
// | ||
// var exist = fs.existsSync(filePath); | ||
// var directory = exist ? fs.statSync(filePath).isDirectory() : false; | ||
// var content = exist && !directory ? fs.readFileSync(filePath).toString() : null; | ||
// | ||
// var names = directory ? fs.readdirSync(filePath) : []; | ||
// | ||
// var result = { | ||
// exist: exist, | ||
// content: content, | ||
// directory: directory, | ||
// names: names | ||
// }; | ||
// | ||
// return JSON.stringify(result); | ||
//}) | ||
// | ||
//var exec = require('child_process').exec; | ||
// | ||
//var httpServer: http.Server = null; | ||
// | ||
//var contentServer: http.Server = null; | ||
// | ||
//var port = 9595; | ||
// | ||
//export function doBuild(destination?: any, needServer: boolean = true, runSite: boolean = true, showStats: boolean = true, openMicrosite: boolean = false, done = null) { | ||
// var fullPath = path.resolve(__dirname, './bundledUI.js'); | ||
// | ||
// var currentDirectory = path.dirname(fullPath); | ||
// | ||
// var outputPath = destination ? destination : (currentDirectory + "/bundled"); | ||
// | ||
// if(!fs.existsSync(outputPath)) { | ||
// fs.mkdirSync(outputPath); | ||
// } | ||
// | ||
// fs.writeFileSync(currentDirectory + "/bundled" + "/webFsPort.js", 'exports.value = ' + port + ';exports.mode=' + (needServer ? '"withServer"' : '"standAlone"') + ';'); | ||
// | ||
// var config = { | ||
// context: currentDirectory, | ||
// | ||
// entry: fullPath, | ||
// | ||
// output: { | ||
// path: outputPath, | ||
// | ||
// filename: "bundle.js" | ||
// }, | ||
// | ||
// resolve: { | ||
// alias: { | ||
// atom: path.resolve(__dirname, './UI.js'), | ||
// pathwatcher: path.resolve(__dirname, './pathwatcherWeb.js'), | ||
// fs: path.resolve(__dirname, './webFs.js'), | ||
// 'atom-space-pen-views': path.resolve(__dirname, './spacePenViewsWeb.js'), | ||
// 'webFsPort': currentDirectory + "/bundled/webFsPort.js", | ||
// dummyContentLoader: path.resolve(__dirname, needServer ? './dummyContentLoader.js' : './embedContentLoader.js') | ||
// } | ||
// }, | ||
// | ||
// externals: [ | ||
// { | ||
// child_process: true, | ||
// xmlhttprequest: true, | ||
// pluralize: true, | ||
// webpack: true, | ||
// remote: true, | ||
// "./dummyContentLoader": "contentLoader", | ||
// "./resourceRegistry": "resourceRegistry", | ||
// "./TSDeclModel": "TS", | ||
// "./JavaClientSerializer": "JavaSerializer", | ||
// "../../automation/executorDeploy": "executorDeploy", | ||
// './atomWrapper': 'atom', | ||
// '../raml1/atomWrapper': 'atom', | ||
// '../../ramlscript/platformExecution': 'platformExecution', | ||
// './tooltipManager': 'tooltipManagerReq' | ||
// } | ||
// ], | ||
// | ||
// plugins: [ | ||
// //new webpack.optimize.UglifyJsPlugin({ | ||
// // minimize: false, | ||
// // output: {comments: false}, | ||
// // sourceMap: false | ||
// //}), | ||
// | ||
// new StringReplacePlugin(), | ||
// | ||
// new webpack.DefinePlugin({ | ||
// 'process.platform': { | ||
// match: function(arg) { | ||
// | ||
// } | ||
// }, | ||
// 'process.env': { | ||
// 'HOME': '"/virtual"' | ||
// }, | ||
// 'global.WeakMap': null | ||
// }) | ||
// ], | ||
// | ||
// module: { | ||
// loaders: [ | ||
// { | ||
// test: /\.json$/, | ||
// loader: "json" | ||
// }, | ||
// | ||
// { | ||
// test: /\.js$/, loader: StringReplacePlugin.replace({ | ||
// replacements: [ | ||
// { | ||
// pattern: /# sourceMappingURL/ig, | ||
// | ||
// replacement: function (match, p1, offset, string) { | ||
// return 'sourceMappingURL'; | ||
// } | ||
// } | ||
// ] | ||
// }) | ||
// } | ||
// ] | ||
// }, | ||
// | ||
// target: "web", | ||
// | ||
// node: { | ||
// console: false, | ||
// global: true, | ||
// process: true, | ||
// Buffer: true, | ||
// __filename: true, | ||
// __dirname: true, | ||
// setImmediate: true | ||
// } | ||
// }; | ||
// | ||
// webpack(config, function (err, stats) { | ||
// if (err) { | ||
// console.log(err.message); | ||
// return; | ||
// } | ||
// | ||
// if(showStats) { | ||
// console.log(stats.toString({ reasons: true, errorDetails: true })); | ||
// } | ||
// | ||
// | ||
// if(needServer) { | ||
// startServer(); | ||
// | ||
// console.log("Server started"); | ||
// } | ||
// | ||
// if(runSite) { | ||
// console.log("Opening browser"); | ||
// | ||
// exec('open http://localhost:' + port + '/atom/ramlscript/bundled/index.html'); | ||
// } | ||
// | ||
// if(openMicrosite) { | ||
// exec('open ' + path.resolve(__dirname, '../../../microsite/dist/index.html')); | ||
// } | ||
// | ||
// if(done) { | ||
// done(); | ||
// } | ||
// }); | ||
//} | ||
// | ||
//export function startServer() { | ||
// if(!httpServer) { | ||
// httpServer = http.createServer(doStuff); | ||
// | ||
// httpServer.listen(port); | ||
// } | ||
//} | ||
// | ||
//function doStuff(request: http.ServerRequest, response: http.ServerResponse) { | ||
// var parsedUrl = url.parse(request.url, true); | ||
// | ||
// var uri : string = parsedUrl.pathname; | ||
// | ||
// response.setHeader("Access-Control-Allow-Origin", "*"); | ||
// | ||
// if(uri.length > 2) { | ||
// var opt = 'utf8' | ||
// | ||
// if(path.basename(uri).indexOf('.woff') > 0) { | ||
// opt = 'binary' | ||
// | ||
// response.setHeader('Content-Type', 'application/x-font-woff'); | ||
// } else if(path.basename(uri).indexOf('.png') > 0) { | ||
// opt = 'binary' | ||
// | ||
// response.setHeader('Content-Type', 'image/png'); | ||
// } | ||
// | ||
// var content = doContentStuff(uri, opt); | ||
// | ||
// response.end(content, opt); | ||
// | ||
// return; | ||
// } | ||
// | ||
// request.on('data', function (chunk) { | ||
// console.log("requested path: " + chunk); | ||
// | ||
// var filePath = path.resolve(__dirname, '../..' + chunk); | ||
// | ||
// var exist = fs.existsSync(filePath); | ||
// var directory = exist ? fs.statSync(filePath).isDirectory() : false; | ||
// var content = exist && !directory ? fs.readFileSync(filePath).toString() : null; | ||
// | ||
// var names = directory ? fs.readdirSync(filePath) : []; | ||
// | ||
// var result = { | ||
// exist: exist, | ||
// content: content, | ||
// directory: directory, | ||
// names: names | ||
// }; | ||
// | ||
// response.end(JSON.stringify(result)); | ||
// }); | ||
//} | ||
// | ||
//function doContentStuff(uri, opt) { | ||
// var filePath = path.resolve(__dirname, '../..' + uri); | ||
// | ||
// try { | ||
// return fs.readFileSync(filePath, opt).toString() | ||
// } catch(exception) { | ||
// return ''; | ||
// } | ||
//} | ||
// | ||
//export function showRaml(version: string) { | ||
// startServer(); | ||
// | ||
// exec('open http://localhost:' + port + '/raml1/artifacts/output/raml' + version + '.html'); | ||
//} | ||
// | ||
//export function buildMicrosite(projects, _showStats: boolean, open: boolean = false, customDist = null, done = null) { | ||
// var src = path.resolve(__dirname, "./bundled"); | ||
// var dist = customDist ? customDist : path.resolve(__dirname, '../../../microsite/dist/bundled'); | ||
// | ||
// showStats = _showStats; | ||
// | ||
// fileList.forEach(filePath => { | ||
// webFs.readFileSync(filePath); | ||
// }); | ||
// | ||
// projects.forEach(project => { | ||
// if(!project.files) { | ||
// return; | ||
// } | ||
// | ||
// project.files.forEach(filePath => { | ||
// webFs.readFileSync(project.url + '/' + filePath); | ||
// }); | ||
// }); | ||
// | ||
// fs.writeFileSync(path.resolve(__dirname, './temp/initialWebFs.json'), JSON.stringify((<any>webFs).memory)); | ||
// fs.writeFileSync(path.resolve(__dirname, './temp/projectDescriptors.json'), JSON.stringify(projects)); | ||
// | ||
// if(fs.existsSync(dist)) { | ||
// wrench.rmdirSyncRecursive(dist, true); | ||
// } | ||
// | ||
// wrench.copyDirSyncRecursive(src , dist); | ||
// | ||
// doBuild(dist, false, false, showStats, open, done); | ||
//} | ||
//# sourceMappingURL=UIBuilder.js.map |
{ | ||
"name": "atom-ui-lib", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"private": false, | ||
@@ -9,3 +9,3 @@ "main": "dist/UI.js", | ||
"typings-for-idea": "node ./tools/createDeclarations", | ||
"build": "rm -rf dist/ && ./node_modules/typescript/bin/tsc ", | ||
"build": "rimraf dist && tsc", | ||
"pullall" : "dev-env-installer pullall", | ||
@@ -39,4 +39,5 @@ "buildall" : "dev-env-installer buildall", | ||
"json-loader":"^0.5.1", | ||
"dev-env-installer":"^0.0.2" | ||
"dev-env-installer":"^0.0.2", | ||
"rimraf":"*" | ||
} | ||
} |
#Atom UI Library | ||
Library of JFace inspired controls for Atom. My first steps in typescript+atom+html | ||
[![Build Status](https://travis-ci.org/mulesoft-labs/ui-libs.svg?branch=master)](https://travis-ci.org/mulesoft-labs/ui-libs) | ||
Library of JFace inspired controls for Atom. My first steps in typescript+atom+html |
{ | ||
"api-workbench" : { | ||
"build" : "gulp build", | ||
"test" : "gulp test", | ||
"gitUrl" : "https://github.com/mulesoft-labs/api-workbench", | ||
"gitBranch" : "parserExtract", | ||
"installTypings" : true | ||
}, | ||
"atom-ui-lib" : { | ||
@@ -14,2 +7,2 @@ "build" : "npm run build", | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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 too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
446697
8689
6
6