Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(*): use peer dependencies and simplify exports #182

Merged
merged 94 commits into from
Jan 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
f279785
refactor(pagination): remove part info
Sakchai-Refinitiv Nov 15, 2021
d3997ce
feat(pagination): support max unknown
Sakchai-Refinitiv Nov 15, 2021
bbcec40
refactor(pagination): remove unused function `pageInfo`
Sakchai-Refinitiv Nov 15, 2021
050a042
refactor(pagination): handle input page selection
Sakchai-Refinitiv Nov 15, 2021
9b10032
refactor(pagination): add state for check input is editing
Sakchai-Refinitiv Nov 16, 2021
f0858aa
refactor(pagination): request update element on blur
Sakchai-Refinitiv Nov 16, 2021
a512bf5
test(pagination): update transform text input selected test case
Sakchai-Refinitiv Nov 16, 2021
9793abf
refactor(pagination): use state decorator to auto update the input
Sakchai-Refinitiv Nov 16, 2021
7d6e056
refactor(pagination): deprecate page, totalItems, page-changed (#78)
Theeraphat-Sorasetsakul Nov 16, 2021
c13a0cb
chore(pagination): add max attribute demo
Sakchai-Refinitiv Nov 16, 2021
36546c7
test: fix test all fail when using setTimeout
Sakchai-Refinitiv Nov 16, 2021
a8c39d6
refactor(pagination): update getter setter and internal value
Sakchai-Refinitiv Nov 18, 2021
a5d0c87
chore(pagination): update demo page
Sakchai-Refinitiv Nov 19, 2021
a869f8e
Merge branch 'refactor/pagination' into feature/pagination-support-ma…
Sakchai-Refinitiv Nov 19, 2021
75f4ee4
refactor(pagination): update internal max and property change events
Sakchai-Refinitiv Nov 19, 2021
715956e
fix(pagination): max limit does not work
Sakchai-Refinitiv Nov 19, 2021
4134186
refactor(pagination): validate value is in supported range
Sakchai-Refinitiv Nov 19, 2021
4deceac
refactor(pagination): add range value validation
Sakchai-Refinitiv Nov 19, 2021
38f960f
refactor(pagination): add deprecation notice on getter
Sakchai-Refinitiv Nov 19, 2021
7b24c7c
docs(pagination): remove type from jsdoc
Sakchai-Refinitiv Nov 19, 2021
309d97e
test(pagination): update to support value, max properties
Nov 21, 2021
e506885
fix(pagination): getter in internal will retrigger incorrect warning …
Sakchai-Refinitiv Nov 22, 2021
2be22c5
refactor(pagination): reset input behavior for end users
Sakchai-Refinitiv Nov 25, 2021
988e007
refactor(pagination): reset input behavior for developers
Sakchai-Refinitiv Nov 25, 2021
27ea922
test(pagination): refactor unit test
Sakchai-Refinitiv Nov 25, 2021
b2e7856
refactor(pagination): refactor innternal value and warning message
Sakchai-Refinitiv Nov 25, 2021
487aa46
refactor(pagination): remove unnecessary blur input
Sakchai-Refinitiv Nov 25, 2021
32b28a4
test(pagination): update test case to support value and max approach
Nov 26, 2021
d1c07d6
refactor(pagination): use getter for toggle button state
Sakchai-Refinitiv Nov 26, 2021
a423d6f
test(pagination): refactor unit-test
Sakchai-Refinitiv Nov 30, 2021
66806c8
chore(pagination): remove demo for testing
Sakchai-Refinitiv Nov 30, 2021
675f4d6
fix(pagination): tab on the input to set a value
Sakchai-Refinitiv Nov 30, 2021
6603949
fix(pagination): the input does not get disable state from the root
Sakchai-Refinitiv Nov 30, 2021
c2ce5a7
test(pagination): add test case interaction when page is over
Nov 30, 2021
33fd701
test(pagination): fix typo
Nov 30, 2021
e5e21bd
Merge branch 'develop' into feature/pagination-support-max-unknown
Theeraphat-Sorasetsakul Nov 30, 2021
084ef65
test(pagination): remove unexpected attribute in snapshot
Nov 30, 2021
e07da15
refactor(pagination): cast type for text input
Sakchai-Refinitiv Dec 3, 2021
e5a4f8a
refactor(pagination): remove unused interface
Sakchai-Refinitiv Dec 3, 2021
e03da39
chore(pagination): fix indent js doc incorrect
Sakchai-Refinitiv Dec 3, 2021
be8418e
Merge branch 'develop' into feature/pagination-support-max-unknown
Sakchai-Refinitiv Dec 3, 2021
235b46b
fix(pagination): remove warning when set correct type value
Dec 14, 2021
aad41b7
Merge commit 'a2576cc8a1f0229bb5988af0c9d0bbf8ce7f765c' into feature/…
Dec 14, 2021
3c32ee9
fix(pagiantion): convert prop toString in setter
Dec 14, 2021
f6ff2e1
fix(pagination): add missing feature blur to set page from the input
Sakchai-Refinitiv Dec 14, 2021
e63fdd4
refactor(pagination): getter setter of max and page should be string
Sakchai-Refinitiv Dec 15, 2021
fa92d9b
Merge branch 'develop' into feature/pagination-support-max-unknown
Sakchai-Refinitiv Dec 15, 2021
e425f4c
chore(release): publish [skip ci]
refinitiv-ui-dev Dec 15, 2021
258069f
fix(halo-theme): fix backward compat with current import native-eleme…
dtanp-rft Dec 17, 2021
4648b8d
Merge pull request #132 from Refinitiv/fix/keep-backward-compat-nativ…
dtanp-rft Dec 20, 2021
ac279a9
fix(themes): ignore hover styles on mobile device (#129)
Sarin-Udompanish Dec 20, 2021
6b9111f
Merge branch 'develop' into feature/pagination-support-max-unknown
dtanp-rft Dec 21, 2021
d7df342
Merge pull request #77 from Refinitiv/feature/pagination-support-max-…
dtanp-rft Dec 21, 2021
d0d4d2b
Merge pull request #133 from Refinitiv/develop
dtanp-rft Dec 21, 2021
ab88534
chore(release): publish [skip ci]
refinitiv-ui-dev Dec 21, 2021
dd8ae07
Merge pull request #134 from Refinitiv/main
dtanp-rft Dec 21, 2021
aeddfe1
chore: add incremental to TypeScript compiler option for faster subse…
wsuwt Dec 23, 2021
301eb8d
ci: create `GitHub release` and curated CHANGELOG on release (#137)
wsuwt Dec 23, 2021
8d952c6
chore(polyfills): remove exports and entrypoints (#141)
Theeraphat-Sorasetsakul Dec 24, 2021
6698ea4
ci: use multiple stage pipeline for the test workflow (#140)
Sakchai-Refinitiv Dec 24, 2021
975f999
fix(pagination): handle case when user input number with string (#142)
Theeraphat-Sorasetsakul Jan 4, 2022
79984ad
fix: release script should not be publish to NPM (#144)
wsuwt Jan 6, 2022
d3a68ac
chore: add development mode to dev-server so that developers can see …
wsuwt Jan 10, 2022
562f4b9
chore: fix broken status badge (#154)
dtanp-rft Jan 11, 2022
5267c42
Chore/add framework integration samples (#153)
Sarin-Udompanish Jan 11, 2022
ee61255
fix(checkbox): `Enter` key should not check or uncheck checkbox
phetw Jan 11, 2022
145f7bf
fix(radio-button): `Enter` key should not check or uncheck radio-button
phetw Jan 11, 2022
78dbc5c
test(checkbox): update `Enter` keypress test
phetw Jan 11, 2022
0d92a36
test(radio-button): update `Enter` keypress test
phetw Jan 11, 2022
b6fbe8e
chore(deps): bump postcss from 7.0.39 to 8.2.13 (#155)
dependabot[bot] Jan 11, 2022
f05b0ac
Merge branch 'develop' into Enter-should-not-check/uncheck-radio-and-…
wsuwt Jan 11, 2022
358ca28
feat: upgrade `lit` to 2.1.1 (#156)
wsuwt Jan 11, 2022
9c429e1
Merge branch 'develop' into Enter-should-not-check/uncheck-radio-and-…
wsuwt Jan 11, 2022
0d9d03a
Merge pull request #157 from Refinitiv/Enter-should-not-check/uncheck…
wsuwt Jan 11, 2022
6389d00
fix(radio-button): add IE11 arrow keys navigation support (#158)
wsuwt Jan 12, 2022
d4f80a8
chore: revert web-server development mode (#162)
wsuwt Jan 12, 2022
40c0afe
Merge pull request #163 from Refinitiv/develop
wsuwt Jan 12, 2022
8dc11b6
chore(release): publish [skip ci]
refinitiv-ui-dev Jan 12, 2022
3a03599
Merge pull request #164 from Refinitiv/main
wsuwt Jan 12, 2022
0d6db3b
feat(tree): improve screen reader support (#102)
wsuwt Jan 12, 2022
51f4ff2
fix(tree-select): remove unnecessary x-scrollbar on default styles (#…
dtanp-rft Jan 13, 2022
1b339a8
fix(checkbox): wrong cursor style when hover the end of checkbox labe…
dtanp-rft Jan 14, 2022
c151d49
Include ef documentation into monorepo (#146)
dtanp-rft Jan 14, 2022
a5221e5
docs: resize home page images appropriately (#169)
wsuwt Jan 14, 2022
fba394c
chore(release): publish [skip ci] (#171)
wsuwt Jan 14, 2022
158f031
feat(collapse): add accessibility support (#161)
Sakchai-Refinitiv Jan 25, 2022
9a0ad70
Revert "feat(collapse): add accessibility support (#161)" (#179)
TremayneChrist Jan 27, 2022
3309ab2
Merge branch 'develop' into prerelease
TremayneChrist Jan 27, 2022
0430568
chore(*): update package lock
TremayneChrist Jan 27, 2022
6314776
Merge branch 'develop' of github.com:Refinitiv/refinitiv-ui into upda…
TremayneChrist Jan 27, 2022
9c8e69f
refactor(*): move peers into peerDependencies (#178)
TremayneChrist Jan 27, 2022
a652b7e
chore(*): use node 16.x in prerelease script
TremayneChrist Jan 27, 2022
e6c7d49
chore(*): test on prerelease branch
TremayneChrist Jan 27, 2022
1123b0a
test(core): replace elf.js with index.js
goremikins Jan 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ lib/
!**/*.html
!test/*.js
**/*.d.ts
samples/angular/*
3 changes: 2 additions & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ runs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 15.x
node-version: 16.x

- name: Setup caching dependencies
uses: actions/cache@v2
id: cache-npm
with:
path: |
node_modules
*/node_modules
*/*/node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 15.x
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
cache: 'npm'

Expand All @@ -30,7 +30,7 @@ jobs:
run: npm ci --ignore-scripts --audit=false --fund=false

- name: Production build
run: lerna run build:prod --include-dependencies --since
run: npm run build:prod --workspaces

# Increment a prerelease version for change packages according to conventional commits
# Add --preid to change prerelease identifier, default to alpha
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: npm ci --ignore-scripts --audit=false --fund=false

- name: Production build
run: lerna run build:prod --include-dependencies --since
run: npm run build:prod --workspaces

- name: Bump version and create GitHub release
run: lerna version --create-release github --conventional-commits --yes
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Test
on:
pull_request:
branches: [develop]
branches: [develop,prerelease]
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -17,13 +17,16 @@ jobs:
uses: ./.github/actions/setup
id: setup

- name: Print versions
run: npm version

- name: Install Dependencies
if: steps.setup.outputs.cache-dependencies-hit != 'true'
run: npm ci --ignore-scripts --audit=false --fund=false

- name: Build
if: steps.setup.outputs.cache-build-hit != 'true'
run: lerna run build --include-dependencies --since origin/develop...HEAD
run: npm run build --workspaces

lint:
needs: build
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ web_modules/

# Output of 'npm pack'
*.tgz
# Allow pandora-book offline package
!documents/tools/*.tgz

# Yarn Integrity file
.yarn-integrity
Expand Down Expand Up @@ -138,3 +140,6 @@ custom-elements.json
## editors
/.idea
/.vscode

#Sample App
samples/angular/.angular/*
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Element Framework (EF) V5

[![Linting](https://github.com/Refinitiv/refinitiv-ui/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/Refinitiv/refinitiv-ui/actions/workflows/lint.yml?query=branch%3Amain+)
[![Testing](https://github.com/Refinitiv/refinitiv-ui/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/Refinitiv/refinitiv-ui/actions/workflows/test.yml?query=branch%3Amain+)
[![Testing](https://github.com/Refinitiv/refinitiv-ui/actions/workflows/test.yml/badge.svg)](https://github.com/Refinitiv/refinitiv-ui/actions/workflows/test.yml)
[![Release](https://github.com/Refinitiv/refinitiv-ui/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/Refinitiv/refinitiv-ui/actions/workflows/release.yml?query=branch%3Amain+)

Element Framework is Refinitiv design system components that provides components and tooling with Refinitiv's design system to help product teams work faster and more efficiently.
Expand Down
27 changes: 27 additions & 0 deletions documents/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## editors
/.idea
/.vscode

## system files
.DS_Store
._.DS_Store
.cache
.parcel-cache

## npm
node_modules/
npm-debug.log
*.lock
*.log

## testing
/coverage/
test/reports/

## temp folders
/.tmp/

## build
_site/
dist/
build/
8 changes: 8 additions & 0 deletions documents/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 5.0.1 (2022-01-14)

**Note:** Version bump only for package @refinitiv-ui/docs
13 changes: 13 additions & 0 deletions documents/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Element Framework Documentation

This is a repository of Element Framework documentation source code. For the documentation, visit this [link](https://ui.refinitiv.com).

## Development

```sh
npm install

npm run build

npm start
```
39 changes: 39 additions & 0 deletions documents/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "@refinitiv-ui/docs",
"version": "5.0.1",
"private": true,
"description": "Element Framework Documentation",
"engines": {
"node": ">=16.11.0",
"npm": ">=8.0.0"
},
"scripts": {
"start": "concurrently \"pandora build dist --watch\" \"serve dist -s\"",
"copy:resources": "cp -r resources dist/resources && cp src/theme-loader.js dist/theme-loader.js",
"build:api": "lerna run --scope @refinitiv-ui/elements api-analyzer --stream && node ./scripts/element.injector.js",
"build": "rm -rf build && npm run build:api && pandora build dist --clean && npm run copy:resources",
"build:prod": "npm run build"
},
"repository": {
"type": "git",
"url": "[email protected]:Refinitiv/refinitiv-ui.git",
"directory": "documents"
},
"keywords": [
"Element Framework",
"EF"
],
"author": "Refinitiv",
"license": "Apache-2.0",
"devDependencies": {
"chalk": "^4.1.2",
"concurrently": "^6.4.0",
"pandora-book": "file:tools/pandora-book-3.0.0-54.tgz",
"serve": "^13.0.2"
},
"dependencies": {
"@refinitiv-ui/elements": "^5.11.0",
"fast-glob": "^3.2.7",
"fs-extra": "^10.0.0"
}
}
Binary file added documents/resources/images/Illustration29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/resources/images/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions documents/resources/images/codepen-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/resources/images/core.changes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/resources/images/edge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/resources/images/electron.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/resources/images/firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/resources/images/halo-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/resources/images/home.components.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/resources/images/home.performance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/resources/images/home.theming.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/resources/images/ie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions documents/resources/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions documents/resources/images/moon-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/resources/images/refinitiv-bg.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/resources/images/safari.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions documents/resources/images/sun-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 73 additions & 0 deletions documents/resources/styles/api.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
pandora-page {
overflow: visible;
}
#elf-docs-api {
margin-bottom: 60px;
}
#elf-docs-api .elf-docs-api-break {
height: 0;
border-top: 2px dashed #dedee1;
margin: 60px -50vw;
}
#elf-docs-api h3 {
color: #ff5000;
}
#elf-docs-api .api-item {
padding: 10px 0;
position: relative;
border-top: 1px solid #ededef;
}
#elf-docs-api .api-item.no-border {
border: none;
}
#elf-docs-api .name {
font-family: 'Source Code Pro';
margin-bottom: 6px;
font-weight: bold;
}
#elf-docs-api .desc {
color: #76768a;
max-width: 80%;
}
#elf-docs-api .type {
float: right;
font-family: 'Source Code Pro';
color: #535de9;
font-size: 9pt;
margin-top: 6px;
}
#elf-docs-api .value {
font-family: 'Source Code Pro';
color: #ff5000;
margin-top: 12px;
}
#elf-docs-api .value::before {
font-family: 'knowledge';
content: 'Default: ';
color: #858588;
}
#elf-docs-api .params {
margin-top: 15px;
}
#elf-docs-api .params::before {
font-size: 10pt;
color: #858588;
content: 'Parameters:';
display: block;
}
#elf-docs-api .params .param {
margin: 5px 7px;
line-height: 1;
}
#elf-docs-api .params .name {
display: inline;
font-size: 9pt;
}
#elf-docs-api .params .type {
float: none;
display: inline;
font-size: 9pt;
}
#elf-docs-api .params .desc {
font-size: 11pt;
}
7 changes: 7 additions & 0 deletions documents/resources/styles/demo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
html {
font-family: 'Source sans pro', Arial, 'Helvetica Neue', Helvetica, sans-serif;
}
body {
min-height: auto !important;
padding: 0 !important;
}
Loading