gl-w-frontend
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -1,12 +0,12 @@ | ||
declare const array: { | ||
declare const Array: { | ||
removeArrayDuplicateLegacy: (array: any[]) => any[]; | ||
sortByKey: (array: any[], key: string, asc: boolean) => PromiseLike<any[]>; | ||
}; | ||
declare const arraySort: { | ||
declare const ArraySort: { | ||
sortByKey: (array: any[], key: string, asc: boolean) => PromiseLike<any[]>; | ||
}; | ||
declare const arrayRemove: { | ||
declare const ArrayRemove: { | ||
removeArrayDuplicateLegacy: (array: any[]) => any[]; | ||
}; | ||
declare const attachment: { | ||
declare const Attachment: { | ||
validateFile: (input: HTMLInputElement, accepts: string[]) => boolean; | ||
@@ -17,9 +17,9 @@ validateFileSize: (input: HTMLInputElement) => boolean; | ||
}; | ||
declare const attachmentConvert: { | ||
declare const AttachmentConvert: { | ||
textFileToUrlImage: (file: File) => PromiseLike<string>; | ||
}; | ||
declare const attachmentParse: { | ||
declare const AttachmentParse: { | ||
parseAcceptFiles: (accepts: string) => string[]; | ||
}; | ||
declare const browser: { | ||
declare const Browser: { | ||
isIE: () => boolean; | ||
@@ -32,7 +32,7 @@ isBeforeIE11: () => boolean; | ||
}; | ||
declare const browserVersion: { | ||
declare const BrowserVersion: { | ||
isIE: () => boolean; | ||
isBeforeIE11: () => boolean; | ||
}; | ||
declare const browserFullscreen: { | ||
declare const BrowserFullscreen: { | ||
disableFullscreenListener: () => void; | ||
@@ -43,3 +43,3 @@ fullscreenListener: (menuButton: import("./scripts/core/services/menu/core-services-menu.interfaces").IMenuButton, alt: import("./scripts/core/services/menu/core-services-menu.interfaces").IFullScreenAlt, src: import("./scripts/core/services/menu/core-services-menu.interfaces").IFullScreenSrc, showLog?: boolean) => void; | ||
}; | ||
declare const comboBox: { | ||
declare const ComboBox: { | ||
initialize: (combobox: HTMLSelectElement, callback: any, invalidCallback: any) => void; | ||
@@ -50,15 +50,15 @@ loadData: (combobox: HTMLSelectElement, data: import("./scripts/core/services/combobox/core-services-combobox.interface").IComboBoxData[], keepValue: boolean) => Promise<unknown>; | ||
}; | ||
declare const comboBoxCore: { | ||
declare const ComboBoxCore: { | ||
initialize: (combobox: HTMLSelectElement, callback: any, invalidCallback: any) => void; | ||
loadData: (combobox: HTMLSelectElement, data: import("./scripts/core/services/combobox/core-services-combobox.interface").IComboBoxData[], keepValue: boolean) => Promise<unknown>; | ||
}; | ||
declare const comboBoxData: { | ||
declare const ComboBoxData: { | ||
dataByValue: (arrayData: import("./scripts/core/services/combobox/core-services-combobox.interface").IComboBoxData[], value: string) => string; | ||
}; | ||
declare const comboBoxDom: { | ||
declare const ComboBoxDom: { | ||
disableInput: (combobox: HTMLSelectElement, disable: boolean) => void; | ||
}; | ||
declare const elements: { | ||
declare const Elements: { | ||
removeChildElements: (elementClassId: string | HTMLElement) => void; | ||
}; | ||
export { array, arraySort, arrayRemove, attachment, attachmentConvert, attachmentParse, browser, browserVersion, browserFullscreen, comboBox, comboBoxCore, comboBoxData, comboBoxDom, elements }; | ||
export { Array, ArraySort, ArrayRemove, Attachment, AttachmentConvert, AttachmentParse, Browser, BrowserVersion, BrowserFullscreen, ComboBox, ComboBoxCore, ComboBoxData, ComboBoxDom, Elements }; |
@@ -1,3 +0,2 @@ | ||
// import * as $ from 'jquery'; | ||
// import 'node_modules/jquery-ui-dist/jquery-ui.js'; | ||
/* tslint:disable:variable-name */ | ||
import { validateFile, validateFileSize, textFileToUrlImage, parseAcceptFiles } from './scripts/core/services/attachment/core-services-attachment.service'; | ||
@@ -9,35 +8,26 @@ import { removeArrayDuplicateLegacy, sortByKey } from './scripts/core/services/array/core-services-array.service'; | ||
// region Array | ||
var array = { removeArrayDuplicateLegacy: removeArrayDuplicateLegacy, sortByKey: sortByKey }; | ||
var arraySort = { sortByKey: sortByKey }; | ||
var arrayRemove = { removeArrayDuplicateLegacy: removeArrayDuplicateLegacy }; | ||
var Array = { removeArrayDuplicateLegacy: removeArrayDuplicateLegacy, sortByKey: sortByKey }; | ||
var ArraySort = { sortByKey: sortByKey }; | ||
var ArrayRemove = { removeArrayDuplicateLegacy: removeArrayDuplicateLegacy }; | ||
// endregion | ||
// region Attachment | ||
var attachment = { validateFile: validateFile, validateFileSize: validateFileSize, textFileToUrlImage: textFileToUrlImage, parseAcceptFiles: parseAcceptFiles }; | ||
var attachmentConvert = { textFileToUrlImage: textFileToUrlImage }; | ||
var attachmentParse = { parseAcceptFiles: parseAcceptFiles }; | ||
var Attachment = { validateFile: validateFile, validateFileSize: validateFileSize, textFileToUrlImage: textFileToUrlImage, parseAcceptFiles: parseAcceptFiles }; | ||
var AttachmentConvert = { textFileToUrlImage: textFileToUrlImage }; | ||
var AttachmentParse = { parseAcceptFiles: parseAcceptFiles }; | ||
// endregion | ||
// region Browser | ||
var browser = { isIE: isIE, isBeforeIE11: isBeforeIE11, disableFullscreenListener: disableFullscreenListener, fullscreenListener: fullscreenListener, toggleFullScreen: toggleFullScreen, hasFullscreen: hasFullscreen }; | ||
var browserVersion = { isIE: isIE, isBeforeIE11: isBeforeIE11 }; | ||
var browserFullscreen = { disableFullscreenListener: disableFullscreenListener, fullscreenListener: fullscreenListener, toggleFullScreen: toggleFullScreen, hasFullscreen: hasFullscreen }; | ||
var Browser = { isIE: isIE, isBeforeIE11: isBeforeIE11, disableFullscreenListener: disableFullscreenListener, fullscreenListener: fullscreenListener, toggleFullScreen: toggleFullScreen, hasFullscreen: hasFullscreen }; | ||
var BrowserVersion = { isIE: isIE, isBeforeIE11: isBeforeIE11 }; | ||
var BrowserFullscreen = { disableFullscreenListener: disableFullscreenListener, fullscreenListener: fullscreenListener, toggleFullScreen: toggleFullScreen, hasFullscreen: hasFullscreen }; | ||
// endregion | ||
// region ComboBox | ||
var comboBox = { initialize: initialize, loadData: loadData, dataByValue: dataByValue, disableInput: disableInput }; | ||
var comboBoxCore = { initialize: initialize, loadData: loadData }; | ||
var comboBoxData = { dataByValue: dataByValue }; | ||
var comboBoxDom = { disableInput: disableInput }; | ||
var ComboBox = { initialize: initialize, loadData: loadData, dataByValue: dataByValue, disableInput: disableInput }; | ||
var ComboBoxCore = { initialize: initialize, loadData: loadData }; | ||
var ComboBoxData = { dataByValue: dataByValue }; | ||
var ComboBoxDom = { disableInput: disableInput }; | ||
// endregion | ||
// region Elements | ||
var elements = { removeChildElements: removeChildElements }; | ||
var Elements = { removeChildElements: removeChildElements }; | ||
// endregion | ||
// module.exports = { | ||
// array, arraySort, arrayRemove, | ||
// attachment, attachmentConvert, attachmentParse, | ||
// browser, browserVersion, browserFullscreen, | ||
// comboBox, comboBoxCore, comboBoxData, comboBoxDom, | ||
// elements | ||
// }; | ||
export { | ||
// $, | ||
array, arraySort, arrayRemove, attachment, attachmentConvert, attachmentParse, browser, browserVersion, browserFullscreen, comboBox, comboBoxCore, comboBoxData, comboBoxDom, elements }; | ||
export { Array, ArraySort, ArrayRemove, Attachment, AttachmentConvert, AttachmentParse, Browser, BrowserVersion, BrowserFullscreen, ComboBox, ComboBoxCore, ComboBoxData, ComboBoxDom, Elements }; | ||
//# sourceMappingURL=index.js.map |
@@ -1,12 +0,12 @@ | ||
declare const array: { | ||
declare const Array: { | ||
removeArrayDuplicateLegacy: (array: any[]) => any[]; | ||
sortByKey: (array: any[], key: string, asc: boolean) => PromiseLike<any[]>; | ||
}; | ||
declare const arraySort: { | ||
declare const ArraySort: { | ||
sortByKey: (array: any[], key: string, asc: boolean) => PromiseLike<any[]>; | ||
}; | ||
declare const arrayRemove: { | ||
declare const ArrayRemove: { | ||
removeArrayDuplicateLegacy: (array: any[]) => any[]; | ||
}; | ||
declare const attachment: { | ||
declare const Attachment: { | ||
validateFile: (input: HTMLInputElement, accepts: string[]) => boolean; | ||
@@ -17,9 +17,9 @@ validateFileSize: (input: HTMLInputElement) => boolean; | ||
}; | ||
declare const attachmentConvert: { | ||
declare const AttachmentConvert: { | ||
textFileToUrlImage: (file: File) => PromiseLike<string>; | ||
}; | ||
declare const attachmentParse: { | ||
declare const AttachmentParse: { | ||
parseAcceptFiles: (accepts: string) => string[]; | ||
}; | ||
declare const browser: { | ||
declare const Browser: { | ||
isIE: () => boolean; | ||
@@ -32,7 +32,7 @@ isBeforeIE11: () => boolean; | ||
}; | ||
declare const browserVersion: { | ||
declare const BrowserVersion: { | ||
isIE: () => boolean; | ||
isBeforeIE11: () => boolean; | ||
}; | ||
declare const browserFullscreen: { | ||
declare const BrowserFullscreen: { | ||
disableFullscreenListener: () => void; | ||
@@ -43,3 +43,3 @@ fullscreenListener: (menuButton: import("./scripts/core/services/menu/core-services-menu.interfaces").IMenuButton, alt: import("./scripts/core/services/menu/core-services-menu.interfaces").IFullScreenAlt, src: import("./scripts/core/services/menu/core-services-menu.interfaces").IFullScreenSrc, showLog?: boolean) => void; | ||
}; | ||
declare const comboBox: { | ||
declare const ComboBox: { | ||
initialize: (combobox: HTMLSelectElement, callback: any, invalidCallback: any) => void; | ||
@@ -50,15 +50,15 @@ loadData: (combobox: HTMLSelectElement, data: import("./scripts/core/services/combobox/core-services-combobox.interface").IComboBoxData[], keepValue: boolean) => Promise<unknown>; | ||
}; | ||
declare const comboBoxCore: { | ||
declare const ComboBoxCore: { | ||
initialize: (combobox: HTMLSelectElement, callback: any, invalidCallback: any) => void; | ||
loadData: (combobox: HTMLSelectElement, data: import("./scripts/core/services/combobox/core-services-combobox.interface").IComboBoxData[], keepValue: boolean) => Promise<unknown>; | ||
}; | ||
declare const comboBoxData: { | ||
declare const ComboBoxData: { | ||
dataByValue: (arrayData: import("./scripts/core/services/combobox/core-services-combobox.interface").IComboBoxData[], value: string) => string; | ||
}; | ||
declare const comboBoxDom: { | ||
declare const ComboBoxDom: { | ||
disableInput: (combobox: HTMLSelectElement, disable: boolean) => void; | ||
}; | ||
declare const elements: { | ||
declare const Elements: { | ||
removeChildElements: (elementClassId: string | HTMLElement) => void; | ||
}; | ||
export { array, arraySort, arrayRemove, attachment, attachmentConvert, attachmentParse, browser, browserVersion, browserFullscreen, comboBox, comboBoxCore, comboBoxData, comboBoxDom, elements }; | ||
export { Array, ArraySort, ArrayRemove, Attachment, 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 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; |
{ | ||
"name": "gl-w-frontend", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Common code for using among web front-end development such as pure JavaScript, ES6+ and TypeScript", | ||
@@ -10,3 +10,4 @@ "main": "lib/", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "npm run clean && tsc && tsc -m es6 --outDir lib/esm", | ||
"build-clean": "npm run clean && tsc && tsc -m es6 --outDir lib/esm", | ||
"build": "tsc && tsc -m es6 --outDir lib/esm", | ||
"fast-build": "tsc", | ||
@@ -13,0 +14,0 @@ "format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"", |
# gl-w-frontend # | ||
[![version](https://img.shields.io/badge/version-1.3.1-green.svg)](https://www.npmjs.com/package/gl-w-frontend) | ||
[![version](https://img.shields.io/badge/version-1.3.2-green.svg)](https://www.npmjs.com/package/gl-w-frontend) | ||
@@ -50,4 +50,4 @@ ### What is this repository for? ### | ||
I'm really thankful for those packages creators! | ||
* [Screenfull](https://www.npmjs.com/package/screenfull): @sindresorhus | ||
* [Screenfull](https://www.npmjs.com/package/screenfull): @github/sindresorhus | ||
* [jquery-ui-dist](https://github.com/jquery/jquery-ui/graphs/contributors) | ||
* [jquery](https://github.com/jquery/jquery/graphs/contributors) |
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
78502
837