@sumaris-net/ngx-components 21.3.6-rc1 → 21.4.1
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/doc/changelog.md +32 -0
- package/fesm2022/sumaris-net.ngx-components.mjs +1625 -620
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/i18n/en-US.json +2 -2
- package/src/assets/i18n/en.json +10 -10
- package/src/assets/i18n/fr.json +10 -10
- package/src/assets/manifest.json +1 -1
- package/types/sumaris-net.ngx-components.d.ts +1265 -851
package/doc/changelog.md
CHANGED
|
@@ -2455,3 +2455,35 @@ The library now uses the Ionic **standalone** build (`@ionic/angular/standalone`
|
|
|
2455
2455
|
|
|
2456
2456
|
## 21.3.6
|
|
2457
2457
|
- fix(theme): remove unnecessary !important from disabled row hover style
|
|
2458
|
+
|
|
2459
|
+
## 21.4.0
|
|
2460
|
+
- feat(input-field): new token `APP_INPUT_FIELD`, to drive any form field programmatically (e.g. barcode scanner, voice dictation)
|
|
2461
|
+
* `IAppInputField` (extends `InputElement`): `focus()`, `writeValue()`, `clearValue()`, `value`, `hasFocus`, `controlName`
|
|
2462
|
+
* `IAppTextInputField.typeText(text)`: type a text as a user would do (at the caret position, through the input mask). Can be called char by char (`'A'` then `'B'` gives `AB`); restarts when the value is already complete
|
|
2463
|
+
* Provided by `AppFormField`, `MatAutocompleteField` (also in mobile mode, with the `<ion-searchbar>`), `MatBooleanField`, `MatDate`, `MatDateShort`, `MatDateTime`, `MatDuration`, `MatLatLongField` (all with `typeText()`), and `MatChipsField`, `MatSwipeField`
|
|
2464
|
+
* Boolean: `1`/`0`, or the first letter of the translated yes/no labels (e.g. `Y`/`N`, `O`/`N` in French), case insensitive - also with a key press, when `MatBooleanField` is focused
|
|
2465
|
+
* Enum (`AppFormField`): the item is found by its key or translated label, or by their first letters (e.g. `g` for `Gamma`)
|
|
2466
|
+
* New functions: `isAppInputField()`, `isAppTextInputField()`, `typeTextIntoInput()`, `hasFocusWithin()`, `getFormControlName()`, `parseLatLongText()`, `parseBooleanText()`
|
|
2467
|
+
* New testing page `/testing/shared/input-field` (developer pages), to drive each field through the token
|
|
2468
|
+
- enh(latlong): focus the next part when all digits are typed (e.g. `01`). Behavior change: typing `0` degrees now requires `00`
|
|
2469
|
+
- fix(form-field): `AppFormField.focus()` failed (or did nothing) on some field types
|
|
2470
|
+
- fix(duration): `MatDuration.focus()` did nothing
|
|
2471
|
+
- fix(boolean): `MatBooleanField.focus()` did not give the DOM focus
|
|
2472
|
+
- fix(autocomplete): unhandled promise rejection, when destroyed while opening the panel (mobile mode)
|
|
2473
|
+
- refactor(numpad): unused numpad components are now standalone; `SharedMatNumpadModule` is deprecated
|
|
2474
|
+
- fix(dates): `fromDateISOString()` with `requiredTime` rejected an ISO date time without milliseconds (e.g. `2026-05-22T10:30:00+02:00`) - fix lost in a previous backport
|
|
2475
|
+
- fix(config): wrong i18n label for the option `sumaris.auth.reset.enable`
|
|
2476
|
+
- test: fix the failing unit tests (services, storage explorer, badge)
|
|
2477
|
+
- enh(badge): warn the developer (dev mode) when `appBadge` is placed on an `<ion-icon>` (not rendered: shadow DOM without slot). The badge testing page shows how to use a wrapper element
|
|
2478
|
+
- feat(table): new token `APP_TABLE_OPTIONS` (`AppTableOptions`), to configure the tables: `addButtonPosition` (`'left'` | `'right'`, default: `'right'`) and `noResultColor` (default: `primary100`). New inputs `addButtonPosition` and `noResultColor` on `AppTable`
|
|
2479
|
+
- enh(account): API tokens tab
|
|
2480
|
+
* Renamed to "API tokens", with a clearer description
|
|
2481
|
+
* Display the token count in the tab (badge)
|
|
2482
|
+
* Mobile: a single add (fab) button, shown only on the tokens tab (`UserTokenTable`: new inputs `showToolbar` and `showFabButton`)
|
|
2483
|
+
* Token table: configurable add button position, and "no result" label color (see `APP_TABLE_OPTIONS`)
|
|
2484
|
+
* New token modal: tertiary "Generate" button, accent scopes, smaller token text area (5 rows)
|
|
2485
|
+
- fix(platform): `copyToClipboard()` now uses the Capacitor clipboard plugin on any native platform (iOS was not supported), with a fallback to the web clipboard
|
|
2486
|
+
- enh(upload-file): tertiary "Browse" button
|
|
2487
|
+
|
|
2488
|
+
## 21.4.1
|
|
2489
|
+
- feat(shared): introduce `FileAttachmentComponent` for reusable file attachment badges
|