qcobjects-sdk 0.0.1 → 0.0.3

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.
Files changed (57) hide show
  1. package/.eslintrc.json +28 -0
  2. package/.github/FUNDING.yml +12 -0
  3. package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  4. package/.github/ISSUE_TEMPLATE/custom.md +10 -0
  5. package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  6. package/.github/ISSUE_TEMPLATE/issue-template.md +33 -0
  7. package/.github/workflows/codeql-analysis.yml +71 -0
  8. package/.github/workflows/npmpublish-beta.yml +38 -0
  9. package/.github/workflows/npmpublish-lts.yml +38 -0
  10. package/.github/workflows/npmpublish-main.yml +38 -0
  11. package/CHANGELOG.md +47 -0
  12. package/QCObjects-SDK.js +108 -232
  13. package/README.md +951 -6
  14. package/VERSION +1 -0
  15. package/css/base-modal.css +43 -0
  16. package/css/basic-layout-embedded-nav.css +14 -0
  17. package/css/basic-layout.css +76 -0
  18. package/css/components/horizontal-list.css +64 -0
  19. package/css/components/list.css +57 -0
  20. package/css/components/splashscreen.css +111 -0
  21. package/css/modal.css +46 -0
  22. package/demo-tests/test-component-grid.html +63 -0
  23. package/demo-tests/test-component-list.html +53 -0
  24. package/demo-tests/test-component-notifications.html +49 -0
  25. package/demo-tests/test-component-slider.html +68 -0
  26. package/favicon.ico +0 -0
  27. package/js/org.qcobjects.cloud.auth.session.data.js +136 -0
  28. package/js/org.qcobjects.cloud.auth.session.usertoken.js +107 -0
  29. package/js/org.qcobjects.components.grid.js +71 -0
  30. package/js/org.qcobjects.components.js +277 -0
  31. package/js/org.qcobjects.components.list.js +57 -0
  32. package/js/org.qcobjects.components.notifications.js +190 -0
  33. package/js/org.qcobjects.components.slider.js +217 -0
  34. package/js/org.qcobjects.components.splashscreen.js +622 -0
  35. package/js/org.qcobjects.controllers.form.js +214 -0
  36. package/js/org.qcobjects.controllers.grid.js +289 -0
  37. package/js/org.qcobjects.controllers.js +42 -0
  38. package/js/org.qcobjects.controllers.list.js +241 -0
  39. package/js/org.qcobjects.controllers.slider.js +148 -0
  40. package/js/org.qcobjects.controllers.swagger.js +86 -0
  41. package/js/org.qcobjects.effects.js +388 -0
  42. package/js/org.qcobjects.i18n_messages.js +58 -0
  43. package/js/org.qcobjects.modal.controllers.js +47 -0
  44. package/js/org.qcobjects.modal.effects.js +57 -0
  45. package/js/org.qcobjects.models.js +48 -0
  46. package/js/org.qcobjects.tools.canvas.js +59 -0
  47. package/js/org.qcobjects.tools.js +68 -0
  48. package/js/org.qcobjects.tools.layouts.js +82 -0
  49. package/js/org.qcobjects.views.js +42 -0
  50. package/package.json +17 -4
  51. package/spec/support/jasmine.json +16 -0
  52. package/spec/testsSpec.js +9 -0
  53. package/templates/components/modalyoulose.tpl.html +3 -0
  54. package/templates/components/modalyouwin.tpl.html +4 -0
  55. package/templates/components/splashscreen.tpl.html +128 -0
  56. package/templates/components/swagger-ui.tpl.html +22 -0
  57. package/v2.4 version +1 -0
package/.eslintrc.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "root": true,
3
+ "env": {
4
+ "browser": true,
5
+ "node": true,
6
+ "es2021": true,
7
+ "es2020": true,
8
+ "es2017": true,
9
+ "es6": true
10
+ },
11
+ "extends": [
12
+ "eslint:recommended"
13
+ ],
14
+ "globals": {
15
+ "Atomics": "readonly",
16
+ "SharedArrayBuffer": "readonly"
17
+ },
18
+ "parserOptions": {
19
+ "ecmaVersion": "latest",
20
+ "ecmaFeatures": {}
21
+ },
22
+ "rules": {
23
+ "semi": ["error", "always"],
24
+ "quotes": ["error", "double"],
25
+ "no-unused-vars": 1,
26
+ "no-undef": 0
27
+ }
28
+ }
@@ -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,10 @@
1
+ ---
2
+ name: Custom issue template
3
+ about: Describe this issue template's purpose here.
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+
@@ -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,71 @@
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ main ]
17
+ pull_request:
18
+ # The branches below must be a subset of the branches above
19
+ branches: [ "v2.3", "v2.4" ]
20
+ schedule:
21
+ - cron: '23 16 * * 2'
22
+
23
+ jobs:
24
+ analyze:
25
+ name: Analyze
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+ security-events: write
31
+
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ language: [ 'javascript' ]
36
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37
+ # Learn more:
38
+ # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
39
+
40
+ steps:
41
+ - name: Checkout repository
42
+ uses: actions/checkout@v2
43
+
44
+ # Initializes the CodeQL tools for scanning.
45
+ - name: Initialize CodeQL
46
+ uses: github/codeql-action/init@v1
47
+ with:
48
+ languages: ${{ matrix.language }}
49
+ # If you wish to specify custom queries, you can do so here or in a config file.
50
+ # By default, queries listed here will override any specified in a config file.
51
+ # Prefix the list here with "+" to use these queries and those in the config file.
52
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
53
+
54
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55
+ # If this step fails, then you should remove it and run the build manually (see below)
56
+ - name: Autobuild
57
+ uses: github/codeql-action/autobuild@v1
58
+
59
+ # ℹ️ Command-line programs to run using the OS shell.
60
+ # 📚 https://git.io/JvXDl
61
+
62
+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63
+ # and modify them (or add more) to build your code if your project
64
+ # uses a compiled language
65
+
66
+ #- run: |
67
+ # make bootstrap
68
+ # make release
69
+
70
+ - name: Perform CodeQL Analysis
71
+ uses: github/codeql-action/analyze@v1
@@ -0,0 +1,38 @@
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 Publish Beta version
5
+
6
+ on:
7
+ push:
8
+ branches:
9
+ - 'v*.*-beta'
10
+ tags:
11
+ - 'v*.*.*-beta'
12
+
13
+ jobs:
14
+ build:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v3.3.0
18
+ - uses: actions/setup-node@v3.6.0
19
+ with:
20
+ node-version: 16
21
+ - run: npm ci
22
+ - run: npm test
23
+
24
+ publish-npm:
25
+ needs: build
26
+ runs-on: ubuntu-latest
27
+ steps:
28
+ - uses: actions/checkout@v3.3.0
29
+ - uses: actions/setup-node@v3.6.0
30
+ with:
31
+ node-version: 16
32
+ registry-url: https://registry.npmjs.org/
33
+ - name: Set up NPM authentication
34
+ run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
35
+ - run: npm ci
36
+ - run: npm publish --tag ${GITHUB_REF##*/}
37
+ env:
38
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
@@ -0,0 +1,38 @@
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 Publish LTS version
5
+
6
+ on:
7
+ push:
8
+ branches:
9
+ - 'v*.*-lts'
10
+ tags:
11
+ - 'v*.*.*-lts'
12
+
13
+ jobs:
14
+ build:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v3.3.0
18
+ - uses: actions/setup-node@v3.6.0
19
+ with:
20
+ node-version: 16
21
+ - run: npm ci
22
+ - run: npm test
23
+
24
+ publish-npm:
25
+ needs: build
26
+ runs-on: ubuntu-latest
27
+ steps:
28
+ - uses: actions/checkout@v3.3.0
29
+ - uses: actions/setup-node@v3.6.0
30
+ with:
31
+ node-version: 16
32
+ registry-url: https://registry.npmjs.org/
33
+ - name: Set up NPM authentication
34
+ run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
35
+ - run: npm ci
36
+ - run: npm publish --tag ${GITHUB_REF##*/}
37
+ env:
38
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
@@ -0,0 +1,38 @@
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 Publish Package
5
+
6
+ on:
7
+ push:
8
+ branches:
9
+ - main
10
+ tags:
11
+ - 'v*.*.*'
12
+
13
+ jobs:
14
+ build:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v3.3.0
18
+ - uses: actions/setup-node@v3.6.0
19
+ with:
20
+ node-version: 16
21
+ - run: npm ci
22
+ - run: npm test
23
+
24
+ publish-npm:
25
+ needs: build
26
+ runs-on: ubuntu-latest
27
+ steps:
28
+ - uses: actions/checkout@v3.3.0
29
+ - uses: actions/setup-node@v3.6.0
30
+ with:
31
+ node-version: 16
32
+ registry-url: https://registry.npmjs.org/
33
+ - name: Set up NPM authentication
34
+ run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
35
+ - run: npm ci
36
+ - run: npm publish
37
+ env:
38
+ 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