* feat(input-file): create input-file component
* chore: improvements after review
* chore: update after review
* chore: update translations
* chore: - fixed demo with form submit, submit was not prevented
- fixed checking allowed file extensions
- fixed clicking on select file button in drag and drop area
* chore: since the input-file does not upload files itself but enables user to select files, I replaced "upload" and "upload" with "select" and "selected" where applicable
* chore: - removed unused properties allowedFileTypes and allowedFileExtensions from lion-input-file
- cleaned up docs
* chore: - changed type Array.<type> to Array<type>
- removed redundant type definition
* fix: - FocusMixin: moved registering events for from connectedCallback to firstUpdated since _focusableNode is sometimes not available yet
- SlotMixin: changed updated to update in since slots were rendered too late (related to previous fix in FocusMixin.js)
* fix: renamed lion-uploaded-file-list.js to lion-selected-file-list.js
* fix: fixed test for lion-selected-file-list
* fix: fixed typ
* wip
* fix: - fixed issue with multiple file selection where element would not select valid files after invalid ones
- added getMessage method to FileValidation that returns empty string to prevent message being shown that error message must be configured
- fixed tests
* chore: replaced `uploadOnFormSubmit` with `uploadOnSelect` and flipped the default value to false. When `uploadOnSelect` is set to true, the file will be uploaded as soon as it is selected.
* fix: - replaced `uploadOnFormSubmit` with `uploadOnSelect` and flipped the default value to false. When `uploadOnSelect` is set to true, the file will be uploaded as soon as it is selected.
- fixed issue where a valid file was not selected and added to the file list if it was preceded by an invalid file
* chore: removed redundant README.md
* fix: fixed failing test
* chore: added missing type annotation
* chore: annotated event param as optional
---------
Co-authored-by: Danny Moerkerke <danny.moerkerke@ing.com>
Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com>
93 lines
3.1 KiB
JSON
93 lines
3.1 KiB
JSON
{
|
|
"name": "@lion/ui",
|
|
"version": "0.2.2",
|
|
"description": "A package of extendable web components",
|
|
"license": "MIT",
|
|
"author": "ing-bank",
|
|
"homepage": "https://github.com/ing-bank/lion/",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/ing-bank/lion.git",
|
|
"directory": "packages/ui"
|
|
},
|
|
"type": "module",
|
|
"exports": {
|
|
"./*": {
|
|
"types": "./dist-types/exports/*",
|
|
"default": "./exports/*"
|
|
},
|
|
"./calendar-translations/*": "./components/calendar/translations/*",
|
|
"./combobox-translations/*": "./components/combobox/translations/*",
|
|
"./pagination-translations/*": "./components/pagination/translations/*",
|
|
"./progress-indicator-translations/*": "./components/progress-indicator/translations/*",
|
|
"./input-datepicker-translations/*": "./components/input-datepicker/translations/*",
|
|
"./input-file-translations/*": "./components/input-file/translations/*",
|
|
"./input-iban-translations/*": "./components/input-iban/translations/*",
|
|
"./input-tel-translations/*": "./components/input-tel/translations/*",
|
|
"./overlays-translations/*": "./components/overlays/translations/*",
|
|
"./validate-messages-translations/*": "./components/validate-messages/translations/*",
|
|
"./docs/*": "./docs/*"
|
|
},
|
|
"files": [
|
|
"components",
|
|
"custom-elements.json",
|
|
"dist-types",
|
|
"docs",
|
|
"exports"
|
|
],
|
|
"scripts": {
|
|
"custom-elements-manifest": "custom-elements-manifest analyze --litelement --exclude \"docs/**/*\" \"test-helpers/**/*\"",
|
|
"debug": "cd ../../ && npm run debug",
|
|
"debug:firefox": "cd ../../ && npm run debug:firefox",
|
|
"debug:webkit": "cd ../../ && npm run debug:webkit",
|
|
"publish-docs": "node ../../packages-node/publish-docs/src/cli.js --github-url https://github.com/ing-bank/lion/ --git-root-dir ../../",
|
|
"prepublishOnly": "npm run types && node ./scripts/copy-doc-assets.js && npm run publish-docs && npm run custom-elements-manifest",
|
|
"test": "cd ../../ && npm run test:browser",
|
|
"types": "wireit",
|
|
"types-check-only": "tsc --project tsconfig-check-only.json",
|
|
"types-correct-after-build": "node ./scripts/types-correct-after-build.js"
|
|
},
|
|
"sideEffects": [
|
|
"exports/define/**/*.js",
|
|
"exports/define-helpers/**/*.js",
|
|
"exports/icon.js",
|
|
"exports/localize.js",
|
|
"exports/overlays.js"
|
|
],
|
|
"dependencies": {
|
|
"@bundled-es-modules/message-format": "^6.0.4",
|
|
"@open-wc/dedupe-mixin": "^1.3.1",
|
|
"@open-wc/scoped-elements": "^2.1.4",
|
|
"@popperjs/core": "^2.11.6",
|
|
"autosize": "4.0.2",
|
|
"awesome-phonenumber": "^4.0.0",
|
|
"ibantools": "^2.2.0",
|
|
"lit": "^2.4.0",
|
|
"singleton-manager": "^1.6.1"
|
|
},
|
|
"keywords": [
|
|
"design-system",
|
|
"lion",
|
|
"web-components"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"customElements": "custom-elements.json",
|
|
"wireit": {
|
|
"types": {
|
|
"command": "tsc --build --pretty && npm run types-correct-after-build",
|
|
"dependencies": [
|
|
"../singleton-manager:types"
|
|
],
|
|
"files": [
|
|
"exports/**/*.js",
|
|
"components/**/*",
|
|
"tsconfig.json"
|
|
],
|
|
"output": [
|
|
"dist-types/**"
|
|
]
|
|
}
|
|
}
|
|
}
|