gl-w-frontend
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -17,2 +17,6 @@ declare const Array: { | ||
}; | ||
declare const AttachmentValidate: { | ||
validateFile: (input: HTMLInputElement, accepts: string[]) => boolean; | ||
validateFileSize: (input: HTMLInputElement) => boolean; | ||
}; | ||
declare const AttachmentConvert: { | ||
@@ -61,2 +65,2 @@ textFileToUrlImage: (file: File) => PromiseLike<string>; | ||
}; | ||
export { Array, ArraySort, ArrayRemove, Attachment, AttachmentConvert, AttachmentParse, Browser, BrowserVersion, BrowserFullscreen, ComboBox, ComboBoxCore, ComboBoxData, ComboBoxDom, Elements }; | ||
export { Array, ArraySort, ArrayRemove, Attachment, AttachmentValidate, AttachmentConvert, AttachmentParse, Browser, BrowserVersion, BrowserFullscreen, ComboBox, ComboBoxCore, ComboBoxData, ComboBoxDom, Elements }; |
@@ -14,2 +14,3 @@ /* tslint:disable:variable-name */ | ||
var Attachment = { validateFile: validateFile, validateFileSize: validateFileSize, textFileToUrlImage: textFileToUrlImage, parseAcceptFiles: parseAcceptFiles }; | ||
var AttachmentValidate = { validateFile: validateFile, validateFileSize: validateFileSize }; | ||
var AttachmentConvert = { textFileToUrlImage: textFileToUrlImage }; | ||
@@ -32,3 +33,3 @@ var AttachmentParse = { parseAcceptFiles: parseAcceptFiles }; | ||
// endregion | ||
export { Array, ArraySort, ArrayRemove, Attachment, AttachmentConvert, AttachmentParse, Browser, BrowserVersion, BrowserFullscreen, ComboBox, ComboBoxCore, ComboBoxData, ComboBoxDom, Elements }; | ||
export { Array, ArraySort, ArrayRemove, Attachment, AttachmentValidate, AttachmentConvert, AttachmentParse, Browser, BrowserVersion, BrowserFullscreen, ComboBox, ComboBoxCore, ComboBoxData, ComboBoxDom, Elements }; | ||
//# sourceMappingURL=index.js.map |
/** | ||
* Convert | ||
**/ | ||
*/ | ||
export declare const textFileToUrlImage: (file: File) => PromiseLike<string>; | ||
/** | ||
* Parser | ||
**/ | ||
*/ | ||
export declare const parseAcceptFiles: (accepts: string) => string[]; | ||
/** | ||
* Validate | ||
**/ | ||
*/ | ||
export declare const validateFile: (input: HTMLInputElement, accepts: string[]) => boolean; | ||
export declare const validateFileSize: (input: HTMLInputElement) => boolean; |
/** | ||
* Convert | ||
**/ | ||
*/ | ||
export var textFileToUrlImage = function (file) { | ||
@@ -15,3 +15,3 @@ return new Promise(function (resolve) { | ||
* Parser | ||
**/ | ||
*/ | ||
export var parseAcceptFiles = function (accepts) { | ||
@@ -27,3 +27,3 @@ return accepts | ||
* Validate | ||
**/ | ||
*/ | ||
export var validateFile = function (input, accepts) { | ||
@@ -57,3 +57,2 @@ var fileName = input.value; | ||
* The user must include the attribute 'data-maxsize' in mb(megabyte); | ||
* @param input | ||
*/ | ||
@@ -60,0 +59,0 @@ var fileMaxSize = function (input) { |
@@ -17,2 +17,6 @@ declare const Array: { | ||
}; | ||
declare const AttachmentValidate: { | ||
validateFile: (input: HTMLInputElement, accepts: string[]) => boolean; | ||
validateFileSize: (input: HTMLInputElement) => boolean; | ||
}; | ||
declare const AttachmentConvert: { | ||
@@ -61,2 +65,2 @@ textFileToUrlImage: (file: File) => PromiseLike<string>; | ||
}; | ||
export { Array, ArraySort, ArrayRemove, Attachment, AttachmentConvert, AttachmentParse, Browser, BrowserVersion, BrowserFullscreen, ComboBox, ComboBoxCore, ComboBoxData, ComboBoxDom, Elements }; | ||
export { Array, ArraySort, ArrayRemove, Attachment, AttachmentValidate, AttachmentConvert, AttachmentParse, Browser, BrowserVersion, BrowserFullscreen, ComboBox, ComboBoxCore, ComboBoxData, ComboBoxDom, Elements }; |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var core_services_attachment_service_1=require("./scripts/core/services/attachment/core-services-attachment.service");var core_services_array_service_1=require("./scripts/core/services/array/core-services-array.service");var core_services_browser_service_1=require("./scripts/core/services/browser/core-services-browser.service");var core_services_combobox_service_1=require("./scripts/core/services/combobox/core-services-combobox.service");var core_services_elements_service_1=require("./scripts/core/services/elements/core-services-elements.service");var Array={removeArrayDuplicateLegacy:core_services_array_service_1.removeArrayDuplicateLegacy,sortByKey:core_services_array_service_1.sortByKey};exports.Array=Array;var ArraySort={sortByKey:core_services_array_service_1.sortByKey};exports.ArraySort=ArraySort;var ArrayRemove={removeArrayDuplicateLegacy:core_services_array_service_1.removeArrayDuplicateLegacy};exports.ArrayRemove=ArrayRemove;var Attachment={validateFile:core_services_attachment_service_1.validateFile,validateFileSize:core_services_attachment_service_1.validateFileSize,textFileToUrlImage:core_services_attachment_service_1.textFileToUrlImage,parseAcceptFiles:core_services_attachment_service_1.parseAcceptFiles};exports.Attachment=Attachment;var AttachmentConvert={textFileToUrlImage:core_services_attachment_service_1.textFileToUrlImage};exports.AttachmentConvert=AttachmentConvert;var AttachmentParse={parseAcceptFiles:core_services_attachment_service_1.parseAcceptFiles};exports.AttachmentParse=AttachmentParse;var Browser={isIE:core_services_browser_service_1.isIE,isBeforeIE11:core_services_browser_service_1.isBeforeIE11,disableFullscreenListener:core_services_browser_service_1.disableFullscreenListener,fullscreenListener:core_services_browser_service_1.fullscreenListener,toggleFullScreen:core_services_browser_service_1.toggleFullScreen,hasFullscreen:core_services_browser_service_1.hasFullscreen};exports.Browser=Browser;var BrowserVersion={isIE:core_services_browser_service_1.isIE,isBeforeIE11:core_services_browser_service_1.isBeforeIE11};exports.BrowserVersion=BrowserVersion;var BrowserFullscreen={disableFullscreenListener:core_services_browser_service_1.disableFullscreenListener,fullscreenListener:core_services_browser_service_1.fullscreenListener,toggleFullScreen:core_services_browser_service_1.toggleFullScreen,hasFullscreen:core_services_browser_service_1.hasFullscreen};exports.BrowserFullscreen=BrowserFullscreen;var ComboBox={initialize:core_services_combobox_service_1.initialize,loadData:core_services_combobox_service_1.loadData,dataByValue:core_services_combobox_service_1.dataByValue,disableInput:core_services_combobox_service_1.disableInput};exports.ComboBox=ComboBox;var ComboBoxCore={initialize:core_services_combobox_service_1.initialize,loadData:core_services_combobox_service_1.loadData};exports.ComboBoxCore=ComboBoxCore;var ComboBoxData={dataByValue:core_services_combobox_service_1.dataByValue};exports.ComboBoxData=ComboBoxData;var ComboBoxDom={disableInput:core_services_combobox_service_1.disableInput};exports.ComboBoxDom=ComboBoxDom;var Elements={removeChildElements:core_services_elements_service_1.removeChildElements};exports.Elements=Elements; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var core_services_attachment_service_1=require("./scripts/core/services/attachment/core-services-attachment.service");var core_services_array_service_1=require("./scripts/core/services/array/core-services-array.service");var core_services_browser_service_1=require("./scripts/core/services/browser/core-services-browser.service");var core_services_combobox_service_1=require("./scripts/core/services/combobox/core-services-combobox.service");var core_services_elements_service_1=require("./scripts/core/services/elements/core-services-elements.service");var Array={removeArrayDuplicateLegacy:core_services_array_service_1.removeArrayDuplicateLegacy,sortByKey:core_services_array_service_1.sortByKey};exports.Array=Array;var ArraySort={sortByKey:core_services_array_service_1.sortByKey};exports.ArraySort=ArraySort;var ArrayRemove={removeArrayDuplicateLegacy:core_services_array_service_1.removeArrayDuplicateLegacy};exports.ArrayRemove=ArrayRemove;var Attachment={validateFile:core_services_attachment_service_1.validateFile,validateFileSize:core_services_attachment_service_1.validateFileSize,textFileToUrlImage:core_services_attachment_service_1.textFileToUrlImage,parseAcceptFiles:core_services_attachment_service_1.parseAcceptFiles};exports.Attachment=Attachment;var AttachmentValidate={validateFile:core_services_attachment_service_1.validateFile,validateFileSize:core_services_attachment_service_1.validateFileSize};exports.AttachmentValidate=AttachmentValidate;var AttachmentConvert={textFileToUrlImage:core_services_attachment_service_1.textFileToUrlImage};exports.AttachmentConvert=AttachmentConvert;var AttachmentParse={parseAcceptFiles:core_services_attachment_service_1.parseAcceptFiles};exports.AttachmentParse=AttachmentParse;var Browser={isIE:core_services_browser_service_1.isIE,isBeforeIE11:core_services_browser_service_1.isBeforeIE11,disableFullscreenListener:core_services_browser_service_1.disableFullscreenListener,fullscreenListener:core_services_browser_service_1.fullscreenListener,toggleFullScreen:core_services_browser_service_1.toggleFullScreen,hasFullscreen:core_services_browser_service_1.hasFullscreen};exports.Browser=Browser;var BrowserVersion={isIE:core_services_browser_service_1.isIE,isBeforeIE11:core_services_browser_service_1.isBeforeIE11};exports.BrowserVersion=BrowserVersion;var BrowserFullscreen={disableFullscreenListener:core_services_browser_service_1.disableFullscreenListener,fullscreenListener:core_services_browser_service_1.fullscreenListener,toggleFullScreen:core_services_browser_service_1.toggleFullScreen,hasFullscreen:core_services_browser_service_1.hasFullscreen};exports.BrowserFullscreen=BrowserFullscreen;var ComboBox={initialize:core_services_combobox_service_1.initialize,loadData:core_services_combobox_service_1.loadData,dataByValue:core_services_combobox_service_1.dataByValue,disableInput:core_services_combobox_service_1.disableInput};exports.ComboBox=ComboBox;var ComboBoxCore={initialize:core_services_combobox_service_1.initialize,loadData:core_services_combobox_service_1.loadData};exports.ComboBoxCore=ComboBoxCore;var ComboBoxData={dataByValue:core_services_combobox_service_1.dataByValue};exports.ComboBoxData=ComboBoxData;var ComboBoxDom={disableInput:core_services_combobox_service_1.disableInput};exports.ComboBoxDom=ComboBoxDom;var Elements={removeChildElements:core_services_elements_service_1.removeChildElements};exports.Elements=Elements; |
/** | ||
* Convert | ||
**/ | ||
*/ | ||
export declare const textFileToUrlImage: (file: File) => PromiseLike<string>; | ||
/** | ||
* Parser | ||
**/ | ||
*/ | ||
export declare const parseAcceptFiles: (accepts: string) => string[]; | ||
/** | ||
* Validate | ||
**/ | ||
*/ | ||
export declare const validateFile: (input: HTMLInputElement, accepts: string[]) => boolean; | ||
export declare const validateFileSize: (input: HTMLInputElement) => boolean; |
{ | ||
"name": "gl-w-frontend", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "Common code for using among web front-end development such as pure JavaScript, ES6+ and TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/", |
# gl-w-frontend # | ||
[![version](https://img.shields.io/badge/version-1.3.3-green.svg)](https://www.npmjs.com/package/gl-w-frontend) | ||
[![version](https://img.shields.io/badge/version-1.3.4-green.svg)](https://www.npmjs.com/package/gl-w-frontend) | ||
@@ -4,0 +4,0 @@ ### What is this repository for? ### |
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
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
80311
844