diff --git a/README-es.pdf b/README-es.pdf new file mode 100644 index 0000000..ed2beca Binary files /dev/null and b/README-es.pdf differ diff --git a/README.md b/README.md index fa1edbf..b1bdf4e 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![logo](https://qcobjects.dev/qcobjects_01.png) -[![GitHub license](https://img.shields.io/github/license/QuickCorp/QCObjects.svg)](https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FQuickCorp%2FQCObjects.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FQuickCorp%2FQCObjects?ref=badge_shield) [![](https://data.jsdelivr.com/v1/package/npm/qcobjects/badge)](https://www.jsdelivr.com/package/npm/qcobjects) [![Badge for version for Visual Studio Code extension Quickcorp.QCObjects-vscode](https://vsmarketplacebadge.apphb.com/version/Quickcorp.QCObjects-vscode.svg)](https://marketplace.visualstudio.com/items?itemName=Quickcorp.QCObjects-vscode) [![Documentation Status](https://readthedocs.org/projects/qcobjects/badge/?version=latest)](https://qcobjects.readthedocs.io/?badge=latest) [![GitHub release](https://img.shields.io/github/issues/QuickCorp/QCObjects.svg)](https://github.com/QuickCorp/QCObjects/releases/) [![GitHub stars](https://img.shields.io/github/stars/QuickCorp/QCObjects.svg)](https://github.com/QuickCorp/QCObjects) [![npm version](https://badge.fury.io/js/qcobjects.svg)](https://badge.fury.io/js/qcobjects) ![apm: version](https://flat.badgen.net/apm/v/qcobjects-syntax?params) ![docker pulls](https://img.shields.io/docker/pulls/quickcorp/qcobjects.svg) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md) +[![GitHub license](https://img.shields.io/github/license/QuickCorp/QCObjects.svg)](https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FQuickCorp%2FQCObjects.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FQuickCorp%2FQCObjects?ref=badge_shield) [![](https://data.jsdelivr.com/v1/package/npm/qcobjects/badge)](https://www.jsdelivr.com/package/npm/qcobjects) [![Documentation Status](https://readthedocs.org/projects/qcobjects/badge/?version=latest)](https://qcobjects.readthedocs.io/?badge=latest) [![GitHub release](https://img.shields.io/github/issues/QuickCorp/QCObjects.svg)](https://github.com/QuickCorp/QCObjects/releases/) [![GitHub stars](https://img.shields.io/github/stars/QuickCorp/QCObjects.svg)](https://github.com/QuickCorp/QCObjects) [![npm version](https://badge.fury.io/js/qcobjects.svg)](https://badge.fury.io/js/qcobjects) ![apm: version](https://flat.badgen.net/apm/v/qcobjects-syntax?params) ![docker pulls](https://img.shields.io/docker/pulls/quickcorp/qcobjects.svg) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/5295/badge)](https://bestpractices.coreinfrastructure.org/projects/5295) @@ -92,61 +92,235 @@ _________________________ - [Using CDNJS](#using-cdnjs) - [Reference](#reference) - [Essentials](#essentials) - - [QC_Object](#qcobject) + - [QC\_Object](#qc_object) - [ComplexStorageCache](#complexstoragecache) + - [Usage:](#usage) + - [Example:](#example) - [asyncLoad](#asyncload) + - [Usage:](#usage-1) + - [Example:](#example-1) - [Class](#class) - - [QC_Append, append method](#qcappend-append-method) - - [The \_super\_ method](#the-super-method) + - [Usage:](#usage-2) + - [Example:](#example-2) + - [QC\_Append, append method](#qc_append-append-method) + - [Usage:](#usage-3) + - [Example:](#example-3) + - [The \_super\_ method](#the-_super_-method) + - [Usage:](#usage-4) + - [Example:](#example-4) - [New](#new) + - [Usage:](#usage-5) + - [Example:](#example-5) - [InheritClass](#inheritclass) - [ClassFactory](#classfactory) - - [\_Crypt](#crypt) + - [Example:](#example-6) + - [\_Crypt](#_crypt) + - [Example (1):](#example-1) + - [Example (2):](#example-2) - [GLOBAL](#global) + - [Example:](#example-7) - [CONFIG](#config) + - [Usage from memory:](#usage-from-memory) + - [Usage from config.json:](#usage-from-configjson) + - [Usage from an encrypted config.json:](#usage-from-an-encrypted-configjson) + - [Dynamic CONFIG Settings](#dynamic-config-settings) - [Processor](#processor) + - [Usage:](#usage-6) + - [Example:](#example-8) - [waitUntil](#waituntil) + - [Usage:](#usage-7) + - [Example:](#example-9) - [Package](#package) + - [Usage:](#usage-8) + - [Example (1):](#example-1-1) + - [Example (2):](#example-2-1) - [Import](#import) + - [Usage:](#usage-9) + - [Example (1):](#example-1-2) + - [Example (2):](#example-2-2) - [Export](#export) + - [Usage:](#usage-10) + - [Example:](#example-10) - [Cast](#cast) + - [Usage:](#usage-11) + - [Example:](#example-11) - [Tag](#tag) + - [Usage:](#usage-12) + - [Example:](#example-12) - [Ready](#ready) + - [Usage:](#usage-13) - [Component Class](#component-class) + - [Properties](#properties) + - [Methods](#methods) - [Component HTML Tag](#component-html-tag) + - [Available attributes](#available-attributes) + - [The name Attribute](#the-name-attribute) + - [Usage:](#usage-14) + - [Example:](#example-13) + - [The cached Attribute](#the-cached-attribute) + - [Usage:](#usage-15) + - [The data property tag declaration](#the-data-property-tag-declaration) + - [The controllerClass Attribute](#the-controllerclass-attribute) + - [Usage:](#usage-16) + - [The viewClass Attribute](#the-viewclass-attribute) + - [Usage:](#usage-17) + - [The componentClass Attribute](#the-componentclass-attribute) + - [Usage:](#usage-18) + - [The effecClass Attribute](#the-effecclass-attribute) + - [Usage:](#usage-19) + - [The template-source Attribute](#the-template-source-attribute) + - [Usage:](#usage-20) + - [The tplextension Attribute](#the-tplextension-attribute) + - [Usage:](#usage-21) + - [ComponentURI](#componenturi) + - [Example:](#example-14) + - [componentLoader](#componentloader) + - [Usage:](#usage-22) + - [Example:](#example-15) + - [buildComponents](#buildcomponents) + - [Usage:](#usage-23) + - [Example:](#example-16) - [Controller](#controller) - [View](#view) - [VO](#vo) - [Service](#service) + - [Properties](#properties-1) + - [Methods](#methods-1) - [serviceLoader](#serviceloader) + - [Usage:](#usage-24) + - [Example:](#example-17) - [JSONService](#jsonservice) + - [Properties](#properties-2) + - [Methods](#methods-2) + - [Example:](#example-18) - [ConfigService](#configservice) + - [Example:](#example-19) - [SourceJS](#sourcejs) + - [Example:](#example-20) - [SourceCSS](#sourcecss) - [Effect](#effect) + - [Example:](#example-21) - [Timer](#timer) + - [Example:](#example-22) - [List and Math Functions](#list-and-math-functions) - [ArrayList](#arraylist) - [ArrayCollection](#arraycollection) - - [[ArrayList or Array].unique](#arraylist-or-arrayunique) - - [[ArrayList or Array].table](#arraylist-or-arraytable) - - [[ArrayList or Array].sort](#arraylist-or-arraysort) - - [[ArrayList or Array].sortBy](#arraylist-or-arraysortby) - - [[ArrayList or Array].matrix](#arraylist-or-arraymatrix) - - [[ArrayList or Array].matrix2d](#arraylist-or-arraymatrix2d) - - [[ArrayList or Array].matrix3d](#arraylist-or-arraymatrix3d) + - [\[ArrayList or Array\].unique](#arraylist-or-arrayunique) + - [\[ArrayList or Array\].table](#arraylist-or-arraytable) + - [\[ArrayList or Array\].sort](#arraylist-or-arraysort) + - [\[ArrayList or Array\].sortBy](#arraylist-or-arraysortby) + - [\[ArrayList or Array\].matrix](#arraylist-or-arraymatrix) + - [Usage](#usage-25) + - [\[ArrayList or Array\].matrix2d](#arraylist-or-arraymatrix2d) + - [\[ArrayList or Array\].matrix3d](#arraylist-or-arraymatrix3d) - [range](#range) + - [Usage](#usage-26) - [Array.sum](#arraysum) - [Array.avg](#arrayavg) - [Array.min](#arraymin) - [Array.max](#arraymax) - [SDK](#sdk) - [SDK Components](#sdk-components) + - [org.quickcorp.components.ShadowedComponent](#orgquickcorpcomponentsshadowedcomponent) + - [Usage:](#usage-27) + - [org.quickcorp.components.FormField](#orgquickcorpcomponentsformfield) + - [Usage:](#usage-28) + - [FormField.executeBindings():](#formfieldexecutebindings) + - [Data Binding Event Change:](#data-binding-event-change) + - [Data Binding Event Blur:](#data-binding-event-blur) + - [Data Binding Event Focus:](#data-binding-event-focus) + - [Data Binding Event Keydown:](#data-binding-event-keydown) + - [org.quickcorp.components.ButtonField](#orgquickcorpcomponentsbuttonfield) + - [Usage:](#usage-29) + - [org.quickcorp.components.InputField](#orgquickcorpcomponentsinputfield) + - [Usage:](#usage-30) + - [org.quickcorp.components.TextField](#orgquickcorpcomponentstextfield) + - [Usage:](#usage-31) + - [org.quickcorp.components.EmailField](#orgquickcorpcomponentsemailfield) + - [Usage:](#usage-32) + - [org.quickcorp.components.GridComponent](#orgquickcorpcomponentsgridcomponent) + - [Usage:](#usage-33) + - [Example:](#example-23) + - [org.quickcorp.components.ModalEnclosureComponent](#orgquickcorpcomponentsmodalenclosurecomponent) + - [org.quickcorp.components.ModalComponent](#orgquickcorpcomponentsmodalcomponent) + - [org.quickcorp.components.SwaggerUIComponent](#orgquickcorpcomponentsswaggeruicomponent) + - [Usage:](#usage-34) + - [org.quickcorp.components.splashscreen.VideoSplashScreenComponent](#orgquickcorpcomponentssplashscreenvideosplashscreencomponent) + - [Example:](#example-24) - [SDK Controllers](#sdk-controllers) + - [org.quickcorp.controllers.GridController](#orgquickcorpcontrollersgridcontroller) + - [org.quickcorp.controllers.DataGridController](#orgquickcorpcontrollersdatagridcontroller) + - [Usage:](#usage-35) + - [Example:](#example-25) + - [org.quickcorp.controllers.ModalController](#orgquickcorpcontrollersmodalcontroller) + - [org.quickcorp.controllers.FormValidations](#orgquickcorpcontrollersformvalidations) + - [Usage:](#usage-36) + - [org.quickcorp.controllers.FormController](#orgquickcorpcontrollersformcontroller) + - [\[FormController\].serviceClass](#formcontrollerserviceclass) + - [\[FormController\].formSettings](#formcontrollerformsettings) + - [\[FormController\].validations](#formcontrollervalidations) + - [Usage:](#usage-37) + - [\[FormController\].formSaveTouchHandler](#formcontrollerformsavetouchhandler) + - [A complete example of FormController](#a-complete-example-of-formcontroller) + - [org.quickcorp.controllers.SwaggerUIController](#orgquickcorpcontrollersswaggeruicontroller) + - [Usage:](#usage-38) - [SDK Effects](#sdk-effects) + - [org.quickcorp.tools.effects.Move](#orgquickcorptoolseffectsmove) + - [Usage:](#usage-39) + - [Example:](#example-26) + - [org.quickcorp.tools.effects.MoveXInFromRight](#orgquickcorptoolseffectsmovexinfromright) + - [Usage:](#usage-40) + - [Example:](#example-27) + - [org.quickcorp.tools.effects.MoveXInFromLeft](#orgquickcorptoolseffectsmovexinfromleft) + - [Usage:](#usage-41) + - [Example:](#example-28) + - [org.quickcorp.tools.effects.MoveYInFromBottom](#orgquickcorptoolseffectsmoveyinfrombottom) + - [Usage:](#usage-42) + - [Example:](#example-29) + - [org.quickcorp.tools.effects.MoveYInFromTop](#orgquickcorptoolseffectsmoveyinfromtop) + - [Usage:](#usage-43) + - [Example:](#example-30) + - [org.quickcorp.tools.effects.RotateX](#orgquickcorptoolseffectsrotatex) + - [Usage:](#usage-44) + - [Example:](#example-31) + - [org.quickcorp.tools.effects.RotateY](#orgquickcorptoolseffectsrotatey) + - [Usage:](#usage-45) + - [Example:](#example-32) + - [org.quickcorp.tools.effects.RotateZ](#orgquickcorptoolseffectsrotatez) + - [Usage:](#usage-46) + - [Example:](#example-33) + - [org.quickcorp.tools.effects.Rotate](#orgquickcorptoolseffectsrotate) + - [Usage:](#usage-47) + - [Example:](#example-34) + - [org.quickcorp.tools.effects.Fade](#orgquickcorptoolseffectsfade) + - [Usage:](#usage-48) + - [org.quickcorp.tools.effects.Radius](#orgquickcorptoolseffectsradius) + - [Usage:](#usage-49) + - [Example:](#example-35) + - [org.quickcorp.tools.effects.Resize](#orgquickcorptoolseffectsresize) + - [Usage:](#usage-50) + - [Example:](#example-36) + - [org.quickcorp.tools.effects.WipeLeft](#orgquickcorptoolseffectswipeleft) + - [Usage:](#usage-51) + - [Example](#example-37) + - [org.quickcorp.tools.effects.WipeRight](#orgquickcorptoolseffectswiperight) + - [Usage:](#usage-52) + - [Example](#example-38) + - [org.quickcorp.tools.effects.WipeUp](#orgquickcorptoolseffectswipeup) + - [Usage:](#usage-53) + - [Example](#example-39) + - [org.quickcorp.tools.effects.WipeDown](#orgquickcorptoolseffectswipedown) + - [Usage:](#usage-54) + - [Example](#example-40) - [SDK Misc Tools](#sdk-misc-tools) + - [org.quickcorp.tools.canvas.CanvasTool](#orgquickcorptoolscanvascanvastool) + - [org.quickcorp.tools.layouts.BasicLayout](#orgquickcorptoolslayoutsbasiclayout) - [SDK Views](#sdk-views) + - [org.quickcorp.views.GridView](#orgquickcorpviewsgridview) - [SDK i18n messages](#sdk-i18n-messages) + - [org.quickcorp.i18n\_messages.i18n\_messages](#orgquickcorpi18n_messagesi18n_messages) + - [Usage:](#usage-55) + - [Example](#example-41) - [The QCObjects HTTP2 Built-In Server](#the-qcobjects-http2-built-in-server) - [Start serving your files with QCObjects](#start-serving-your-files-with-qcobjects) - [Principals of an N-Tier or Multitier architecture](#principals-of-an-n-tier-or-multitier-architecture) @@ -166,7 +340,7 @@ _________________________ - [Step 4: Once you have done the above components declaration, you will now want to code your controllers (cl.quickcorp.controller.js)](#step-4-once-you-have-done-the-above-components-declaration-you-will-now-want-to-code-your-controllers-clquickcorpcontrollerjs) - [Step 5: To use into the HTML5 code you only need to do some settings between script tags:](#step-5-to-use-into-the-html5-code-you-only-need-to-do-some-settings-between-script-tags) - [QCObjects CLI Tool](#qcobjects-cli-tool) - - [Usage](#usage) + - [Usage](#usage-56) - [Options](#options) - [Commands](#commands) - [Use:](#use) @@ -436,7 +610,6 @@ https://atom.io/packages/qcobjects-syntax ## Using QCObjects in Visual Studio Code: -[![Badge for installs for Visual Studio Code extension Quickcorp.QCObjects-vscode](https://vsmarketplacebadge.apphb.com/version/Quickcorp.QCObjects-vscode.svg)](https://marketplace.visualstudio.com/items?itemName=Quickcorp.QCObjects-vscode) https://marketplace.visualstudio.com/items?itemName=Quickcorp.QCObjects-vscode diff --git a/README.pdf b/README.pdf new file mode 100644 index 0000000..7a04dd4 Binary files /dev/null and b/README.pdf differ diff --git a/package-lock.json b/package-lock.json index 539201a..1a24236 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "peerDependencies": { "@types/qcobjects": "github:QCObjects/-types-qcobjects", "@types/qcobjects-sdk": "github:QCObjects/-types-qcobjects-sdk", - "qcobjects-sdk": ">=2.4.55" + "qcobjects-sdk": ">=2.4.64" } }, "node_modules/@adobe/css-tools": { @@ -2369,9 +2369,9 @@ } }, "node_modules/qcobjects-sdk": { - "version": "2.4.55", - "resolved": "https://registry.npmjs.org/qcobjects-sdk/-/qcobjects-sdk-2.4.55.tgz", - "integrity": "sha512-1T9Xg/zg30tn3qC/6jrAFj4Fw56J4bHsMuZlSCfXyJ6T5ZgqhU3Oeyol4C/AEk7shACY6ThEvcMRC3BPW2ZHMA==", + "version": "2.4.64", + "resolved": "https://registry.npmjs.org/qcobjects-sdk/-/qcobjects-sdk-2.4.64.tgz", + "integrity": "sha512-eh8VGvB3h4EoKokCZuB8OaeuqicF+6PIm0Wn+9cetKgPgEpaDQLtII/TcqmD4qjAmZvlYJmijDeAGYWMNMeHfQ==", "peer": true, "peerDependencies": { "qcobjects": ">=2.4.84" diff --git a/package.json b/package.json index 681bbb8..6fa7e09 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "lint": "(npx eslint src/**/*.ts --fix --ext ts)", "preversion": "npm cache verify && npm test", "sync": "git add . && git commit -am ", - "postversion": "git push && git push --tags " + "postversion": "git push && git push --tags ", + "generate-readme-pdf":"npx markdown-pdf --paper-format \"Letter\" -o README.pdf README.md && npx markdown-pdf --paper-format \"Letter\" -o README-es.pdf README-es.md" }, "repository": { "type": "git", @@ -103,7 +104,7 @@ "peerDependencies": { "@types/qcobjects": "github:QCObjects/-types-qcobjects", "@types/qcobjects-sdk": "github:QCObjects/-types-qcobjects-sdk", - "qcobjects-sdk": ">=2.4.55" + "qcobjects-sdk": ">=2.4.64" }, "engines": { "npm": ">=9", diff --git a/src/QCObjects.js b/src/QCObjects.js index 0770296..050f8a3 100644 --- a/src/QCObjects.js +++ b/src/QCObjects.js @@ -870,6 +870,9 @@ var __register_class__ = function (_class_, __namespace) { var name = _class_.name || __getType__(_class_); + if (typeof _class_.__definition === "undefined"){ + _class_.__definition = {}; + } _class_.__definition.__classType = name; if (typeof __namespace !== "undefined"){ _class_.__definition.__namespace = __namespace; @@ -2155,6 +2158,7 @@ __namespace = undefined; constructor ({ + __parent__, templateURI= "", template, tplsource= "default", @@ -2179,6 +2183,7 @@ throw Error(`No arguments in component. You must at least give one argument.`); } super({ + __parent__, templateURI, template, tplextension,