qcobjects-sdk 2.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +23 -0
- package/.github/FUNDING.yml +12 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/.github/ISSUE_TEMPLATE/custom.md +10 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/.github/ISSUE_TEMPLATE/issue-template.md +33 -0
- package/.github/workflows/npmpublish.yml +36 -0
- package/CHANGELOG.md +47 -0
- package/CNAME +1 -0
- package/QCObjects-SDK.js +95 -0
- package/README.md +864 -0
- package/README.rst +398 -0
- package/VERSION +1 -0
- package/_config.yml +1 -0
- package/css/base-modal.css +43 -0
- package/css/basic-layout-embedded-nav.css +14 -0
- package/css/basic-layout.css +76 -0
- package/css/components/horizontal-list.css +64 -0
- package/css/components/list.css +57 -0
- package/css/components/splashscreen.css +111 -0
- package/css/modal.css +46 -0
- package/demo-tests/test-component-grid.html +50 -0
- package/demo-tests/test-component-list.html +40 -0
- package/demo-tests/test-component-notifications.html +30 -0
- package/demo-tests/test-component-slider.html +52 -0
- package/favicon.ico +0 -0
- package/index.rst +398 -0
- package/js/org.qcobjects.cloud.auth.session.data.js +72 -0
- package/js/org.qcobjects.cloud.auth.session.usertoken.js +95 -0
- package/js/org.qcobjects.components.grid.js +59 -0
- package/js/org.qcobjects.components.js +226 -0
- package/js/org.qcobjects.components.list.js +48 -0
- package/js/org.qcobjects.components.notifications.js +168 -0
- package/js/org.qcobjects.components.slider.js +194 -0
- package/js/org.qcobjects.components.splashscreen.js +565 -0
- package/js/org.qcobjects.controllers.form.js +196 -0
- package/js/org.qcobjects.controllers.grid.js +268 -0
- package/js/org.qcobjects.controllers.js +10 -0
- package/js/org.qcobjects.controllers.list.js +229 -0
- package/js/org.qcobjects.controllers.slider.js +132 -0
- package/js/org.qcobjects.controllers.swagger.js +77 -0
- package/js/org.qcobjects.effects.js +262 -0
- package/js/org.qcobjects.i18n_messages.js +55 -0
- package/js/org.qcobjects.modal.controllers.js +42 -0
- package/js/org.qcobjects.modal.effects.js +48 -0
- package/js/org.qcobjects.models.js +40 -0
- package/js/org.qcobjects.tools.canvas.js +52 -0
- package/js/org.qcobjects.tools.js +59 -0
- package/js/org.qcobjects.tools.layouts.js +71 -0
- package/js/org.qcobjects.views.js +37 -0
- package/package.json +48 -0
- package/spec/support/jasmine.json +16 -0
- package/spec/testsSpec.js +9 -0
- package/templates/components/modalyoulose.tpl.html +3 -0
- package/templates/components/modalyouwin.tpl.html +4 -0
- package/templates/components/splashscreen.tpl.html +128 -0
- package/templates/components/swagger-ui.tpl.html +22 -0
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
"env": {
|
|
4
|
+
"browser": true,
|
|
5
|
+
"es6": true,
|
|
6
|
+
"node": true
|
|
7
|
+
},
|
|
8
|
+
"extends": [
|
|
9
|
+
"qcobjects",
|
|
10
|
+
"eslint:recommended"
|
|
11
|
+
],
|
|
12
|
+
"globals": {
|
|
13
|
+
"Atomics": "readonly",
|
|
14
|
+
"SharedArrayBuffer": "readonly"
|
|
15
|
+
},
|
|
16
|
+
"parserOptions": {
|
|
17
|
+
"ecmaVersion": 2018
|
|
18
|
+
},
|
|
19
|
+
"rules": {
|
|
20
|
+
"semi": ["error", "always"],
|
|
21
|
+
"quotes": ["error", "double"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# These are supported funding model platforms
|
|
2
|
+
|
|
3
|
+
github: [jeanmachuca]
|
|
4
|
+
patreon: qcobjects # Replace with a single Patreon username
|
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
|
6
|
+
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
+
otechie: # Replace with a single Otechie username
|
|
12
|
+
custom: ['http://sponsorsignup.qcobjects.dev/'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Describe the bug**
|
|
11
|
+
A clear and concise description of what the bug is.
|
|
12
|
+
|
|
13
|
+
**To Reproduce**
|
|
14
|
+
Steps to reproduce the behavior:
|
|
15
|
+
1. Go to '...'
|
|
16
|
+
2. Click on '....'
|
|
17
|
+
3. Scroll down to '....'
|
|
18
|
+
4. See error
|
|
19
|
+
|
|
20
|
+
**Expected behavior**
|
|
21
|
+
A clear and concise description of what you expected to happen.
|
|
22
|
+
|
|
23
|
+
**Screenshots**
|
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
|
25
|
+
|
|
26
|
+
**Desktop (please complete the following information):**
|
|
27
|
+
- OS: [e.g. iOS]
|
|
28
|
+
- Browser [e.g. chrome, safari]
|
|
29
|
+
- Version [e.g. 22]
|
|
30
|
+
|
|
31
|
+
**Smartphone (please complete the following information):**
|
|
32
|
+
- Device: [e.g. iPhone6]
|
|
33
|
+
- OS: [e.g. iOS8.1]
|
|
34
|
+
- Browser [e.g. stock browser, safari]
|
|
35
|
+
- Version [e.g. 22]
|
|
36
|
+
|
|
37
|
+
**Additional context**
|
|
38
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Describe alternatives you've considered**
|
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
+
|
|
19
|
+
**Additional context**
|
|
20
|
+
Add any other context or screenshots about the feature request here.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Issue template
|
|
3
|
+
about: QCObjects issue template
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Purpose:**
|
|
11
|
+
Name of your purpose or proposal
|
|
12
|
+
Example: Compliance with ECMA 262
|
|
13
|
+
|
|
14
|
+
**Feature:**
|
|
15
|
+
Feature (existing or new) that you want to affect with this issue.
|
|
16
|
+
Examples are: Nested components stack, dynamic components load. Dynamic complex cache control, etc.
|
|
17
|
+
|
|
18
|
+
**Artifact:**
|
|
19
|
+
The artifact that you are affecting, touching , involving with this issue .
|
|
20
|
+
Examples: Component Tag, Component Class, Controller, View, Effect, Import, Export, global scope... etc
|
|
21
|
+
|
|
22
|
+
**Priority:**
|
|
23
|
+
How concerned are you about this issue: High priority, low priority, middle priority. (Please no other values here)
|
|
24
|
+
|
|
25
|
+
**Changes:**
|
|
26
|
+
Please put here a piece of code you want to simplify or improve. You’re free to fork QCObjects for your own needs but I highly recommend you to spend some time standardizing. We review everything and test everything almost everywhere we can before to put in action a code change. And it’s because we want to make QCObjects a really professional tool, not just another “JavaScript something”. We want your projects to be listed in the best quality line lists. So please let us reject some proposals in order to make this happen.
|
|
27
|
+
|
|
28
|
+
-------
|
|
29
|
+
|
|
30
|
+
__Additional Information__
|
|
31
|
+
Issues will not be deleted unless they not meet the GitHub code of conduct.
|
|
32
|
+
All the issues will be answered as soon as possible.
|
|
33
|
+
Please try to read the issues first before to put a new one.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
|
3
|
+
|
|
4
|
+
name: Node.js Package
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
tags:
|
|
9
|
+
- 'v*.*.*'
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v2
|
|
16
|
+
- uses: actions/setup-node@v1
|
|
17
|
+
with:
|
|
18
|
+
node-version: 12
|
|
19
|
+
- run: npm ci
|
|
20
|
+
- run: npm test
|
|
21
|
+
|
|
22
|
+
publish-npm:
|
|
23
|
+
needs: build
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v2
|
|
27
|
+
- uses: actions/setup-node@v1
|
|
28
|
+
with:
|
|
29
|
+
node-version: 12
|
|
30
|
+
registry-url: https://registry.npmjs.org/
|
|
31
|
+
- name: Set up NPM authentication
|
|
32
|
+
run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
|
|
33
|
+
- run: npm ci
|
|
34
|
+
- run: npm publish
|
|
35
|
+
env:
|
|
36
|
+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
This is an automatic Changelog history of versions generated using the command: **qcobjects v-changelog > CHANGELOG.md**
|
|
4
|
+
|
|
5
|
+
## v0 -> v0.0
|
|
6
|
+
|
|
7
|
+
- DataGridController exec runComponentHelpers when done for subcomponents
|
|
8
|
+
- DataGridController for components
|
|
9
|
+
- FormController
|
|
10
|
+
- FormValidations
|
|
11
|
+
- New Version
|
|
12
|
+
- Paginated Datagrid Controller
|
|
13
|
+
- SwaggerUIComponent && SwaggerUIController
|
|
14
|
+
- TransitionEffect Class for using with effectClass attribute in component HTML tag
|
|
15
|
+
- VideoSplashScreenComponent
|
|
16
|
+
- [DataGridController][addSubcomponents] fix cached & shadowed attributes for subcomponent
|
|
17
|
+
- [DataGridController][addSubcomponents] fix done method
|
|
18
|
+
- _DOMCreateElement
|
|
19
|
+
- __dataIndex and __dataLength for DataGridComponent
|
|
20
|
+
- adding scripts for git version
|
|
21
|
+
- blur && focus binding events FormField
|
|
22
|
+
- colored border helper function for BasicLayout
|
|
23
|
+
- css modal
|
|
24
|
+
- default basePath remoteSDK for ModalComponent
|
|
25
|
+
- fix DataGridController name of subcomponent class
|
|
26
|
+
- fix FormController
|
|
27
|
+
- fix ModalComponent
|
|
28
|
+
- fix addSubcomponents in DataGridController
|
|
29
|
+
- fix isBrowser
|
|
30
|
+
- fixing DataGridController
|
|
31
|
+
- github actions integration
|
|
32
|
+
- i18n only when is executing in browser
|
|
33
|
+
- i18n_messages
|
|
34
|
+
- isInvalid FormController
|
|
35
|
+
- modal
|
|
36
|
+
- modal enclosure component
|
|
37
|
+
- moving TransitionEffect out of SDK
|
|
38
|
+
- normalizing the use of module.exports
|
|
39
|
+
- returning global when module.exports
|
|
40
|
+
- shadowed component
|
|
41
|
+
- swagger-ui controller
|
|
42
|
+
- swagger-ui template
|
|
43
|
+
- upgrade
|
|
44
|
+
## v0 -> v0.1
|
|
45
|
+
|
|
46
|
+
- New Version
|
|
47
|
+
- Paginated Datagrid Controller
|
package/CNAME
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
sdk.qcobjects.dev
|
package/QCObjects-SDK.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects SDK 2.3
|
|
3
|
+
* ________________
|
|
4
|
+
*
|
|
5
|
+
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
|
+
*
|
|
7
|
+
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
+
* QuickCorp/QCObjects is licensed under the
|
|
9
|
+
* GNU Lesser General Public License v3.0
|
|
10
|
+
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
+
*
|
|
12
|
+
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
+
* complete source code of licensed works and modifications under the same
|
|
14
|
+
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
+
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
+
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
+
* work may be distributed under different terms and without source code for
|
|
18
|
+
* the larger work.
|
|
19
|
+
*
|
|
20
|
+
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
|
+
*
|
|
22
|
+
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
23
|
+
* license document, but changing it is not allowed.
|
|
24
|
+
*/
|
|
25
|
+
(function(_top) {
|
|
26
|
+
"use strict";
|
|
27
|
+
var isBrowser = typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self;
|
|
28
|
+
var remoteImportsPath = CONFIG.get("remoteImportsPath");
|
|
29
|
+
var external = (!CONFIG.get("useLocalSDK"))?(true):(false);
|
|
30
|
+
CONFIG.set("remoteImportsPath","https://sdk.qcobjects.dev/js/");
|
|
31
|
+
if (typeof _top._DOMCreateElement === "undefined"){
|
|
32
|
+
_top._DOMCreateElement = function (elementName) {
|
|
33
|
+
var _ret_;
|
|
34
|
+
if (isBrowser) {
|
|
35
|
+
_ret_ = document.createElement(elementName);
|
|
36
|
+
} else {
|
|
37
|
+
_ret_ = {};
|
|
38
|
+
}
|
|
39
|
+
return _ret_;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
var _imports_;
|
|
43
|
+
if (isBrowser){
|
|
44
|
+
_imports_ = [
|
|
45
|
+
Import("org.qcobjects.i18n_messages",function (){},external),
|
|
46
|
+
Import("org.qcobjects.models",function (){},external),
|
|
47
|
+
Import("org.qcobjects.components",function (){},external),
|
|
48
|
+
Import("org.qcobjects.components.grid",function (){},external),
|
|
49
|
+
Import("org.qcobjects.components.list",function (){},external),
|
|
50
|
+
Import("org.qcobjects.components.slider",function (){},external),
|
|
51
|
+
Import("org.qcobjects.components.notifications",function (){},external),
|
|
52
|
+
Import("org.qcobjects.components.splashscreen",function (){},external),
|
|
53
|
+
Import("org.qcobjects.controllers",function (){},external),
|
|
54
|
+
Import("org.qcobjects.controllers.grid",function (){},external),
|
|
55
|
+
Import("org.qcobjects.controllers.list",function (){},external),
|
|
56
|
+
Import("org.qcobjects.controllers.slider",function (){},external),
|
|
57
|
+
Import("org.qcobjects.controllers.form",function (){},external),
|
|
58
|
+
Import("org.qcobjects.controllers.swagger",function (){},external),
|
|
59
|
+
Import("org.qcobjects.modal.controllers",function (){},external),
|
|
60
|
+
Import("org.qcobjects.modal.effects",function (){},external),
|
|
61
|
+
Import("org.qcobjects.views",function (){},external),
|
|
62
|
+
Import("org.qcobjects.effects",function (){},external),
|
|
63
|
+
Import("org.qcobjects.tools.canvas",function (){},external),
|
|
64
|
+
Import("org.qcobjects.tools.layouts",function (){},external),
|
|
65
|
+
Import("org.qcobjects.cloud.auth.session.usertoken",function (){},external),
|
|
66
|
+
Import("org.qcobjects.cloud.auth.session.data",function (){},external)
|
|
67
|
+
];
|
|
68
|
+
} else {
|
|
69
|
+
// non-browsers environment
|
|
70
|
+
var _relative_path_ = "qcobjects-sdk/js/";
|
|
71
|
+
_imports_ = [
|
|
72
|
+
Import(_relative_path_+"org.qcobjects.models",function (){},external),
|
|
73
|
+
Import(_relative_path_+"org.qcobjects.components",function (){},external),
|
|
74
|
+
Import(_relative_path_+"org.qcobjects.controllers",function (){},external),
|
|
75
|
+
Import(_relative_path_+"org.qcobjects.views",function (){},external),
|
|
76
|
+
Import(_relative_path_+"org.qcobjects.effects",function (){},external),
|
|
77
|
+
Import(_relative_path_+"org.qcobjects.modal.effects",function (){},external),
|
|
78
|
+
Import(_relative_path_+"org.qcobjects.tools.canvas",function (){},external),
|
|
79
|
+
Import(_relative_path_+"org.qcobjects.tools.layouts",function (){},external),
|
|
80
|
+
Import(_relative_path_+"org.qcobjects.cloud.auth.session.usertoken",function (){},external),
|
|
81
|
+
Import("org.qcobjects.cloud.auth.session.data",function (){},external)
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
_top._sdk_ = Promise.all(_imports_).then(function (){
|
|
85
|
+
CONFIG.set("useSDK",true);
|
|
86
|
+
CONFIG.set("remoteImportsPath",remoteImportsPath);
|
|
87
|
+
|
|
88
|
+
_top.__start__();
|
|
89
|
+
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
}).call(null,(typeof module === "object" && typeof module.exports === "object")?(module.exports = global):((typeof global === "object")?(global):(
|
|
94
|
+
(typeof window === "object")?(window):({})
|
|
95
|
+
)));
|