Skip to content

Latest commit

 

History

History
171 lines (127 loc) · 6.57 KB

File metadata and controls

171 lines (127 loc) · 6.57 KB

pwix:forms

ChangeLog

1.9.1

Release date: 2026- 6-30

- Fix the IMessager ordering to have message in the same order they have been emitted
- Log (and comment out the log line) situations where we do not find the target field from the input handler
- Better manage the fields addressed as an object
- Have an optional 'opts' from checker.clearForm() to IMessager.iMessagerClear()
- Fix stylesheet to better handle Firefox
- Fix iSpecValueFrom() when getting value from an object item

1.9.0

Release date: 2026- 5-31

- fieldSpecFromEvent() gets a guard against undefined node
- Define (and honor) new 'fieldValidityEvent' configuration parameter and new 'forms-field-validity' event
- Fix the search of a topmost node in the case where a template doesn't have one
- Improve debug code
- Define missing FieldStatus.C.TRANSPARENT

1.8.0

Release date: 2026- 5- 2

- Introduce new 'TRANSPARENT_IF_EMPTY' show status to be used on valid empty fields
- Introduce new 'withTransparentIndicatorWhenOptionalEmptyValid' configuration option

1.7.0

Release date: 2026- 4-23

- Re-install missing Checker.messagerPush()
- Define new Checker.topmostChecker() method
- Define new Checker.registerHook() method

1.6.0

Release date: 2026- 4- 2

- configure() now warns for unmanaged keys
- Use pwix:logger universal logger, thus bumping minor candidate version number
- Use assert ESM module from node instead of CJS version
- Review async functions
- Define new onUpdateRegisterFn() to be called on each field update at Checker level
- Remove IInstanciationArgs and IEnumerable interfaces, consolidating them in Panel class
- Checker.getForm() and Checker.setForm() are moved to Panel class
- Restructure instanciation/initialization process, defining a new configurable 'forms-checker-initialized' initialization event
- Define a configurable guard against checker duplicate names
- Remove the Panel class
- Deprecate validityEvent initialization argument, replacing it with a configuration argument
- Define new configurable status and update events
- Rename 'parent' initialization argument by 'parentChecker'
- IStatusable and ICheckable interfaces are merged into ICheckable
- Better manage arrayed items thus simplifying the provided fields needed structure in that case
- FormField and Checker can now have a 'form_trace' (resp. 'trace') attribute

1.5.0

Release date: 2026- 2-10

- Add (commented) debug code
- Get runtime value of a field from a ContentEditable DIV, thus bumping minor candidate version number
- Doesn't mutate provided FieldSet specification
- Fix Message.epoch() method

1.4.1

Release date: 2025- 7- 8

- Update to pwix:ui-utils v1.4

1.4.0

Release date: 2024-11-19

- Introduce Forms.FieldType.C.TRANSPARENT so that NONE and TRANSPARENT are both possible and different semantics, thus bumping minor candidate version number
- Extend crossCheckRegisterFn instanciation parameter to also accept an array of functions
- Check functions now receive the Checker instance as an option member
- Define new Checker.panel() and Panel.objectData() methods
- Fix the crossChecks behaviours
- Fix the Panel initialization
- Define new Panel.byName()
- Actually make the Field.Set optional when instanciating a Panel
- No more cache the computed nodes to handle dynamic UIs
- Minor spelling fixes
- Remove useless aldeed:simple-schema dependency
- Use margin instead of padding to keep the FormsStatusIndicator svg centered inside the button
- Improve comments
- Improve radio button management
- Fix Checker.messagerClearMine() to bubble up in the hierarchy

1.3.0

Release date: 2024-10- 4

- Set INFO messages to have bs-primary color
- Define new Checker.messagerClearMine() method, thus bumping minor candidate version number
- Refactor all classes and interfaces to client side only
- Remove meteor/check dependency
- Introduce new Forms.C.ShowStatus.TRANSPARENT check status display constant
- package.js refactoring
- Fix ReactiveVar assertion when FormsCheckStatusIndicator is used outside of the iField interface
- Rename FormsCheckStatusIndicator, FormsFieldTypeIndicator components to FormsStatusIndicator, FormsTypeIndicator
- CheckStatus definition (as None, Invalid, Uncomplete, Valid) is renamed to FieldStatus
- CheckStatus configuration parameter (as None, Bootstrap, Indicator, Transparent) is renamed to ShowStatus
- 'checkStatusShow' Checker parameter is renamed to 'fieldStatusShow'
- 'displayFieldTypeIndicator' Checker parameter is renamed to 'fieldTypeShow'
- 'checkStatusOverridable' configuration parameter is renamed to 'showStatusOverridable'
- Introduce new 'showTypeOverridable' configuration parameter
- Fix the computing of whether display the indicators
- Define new statusByFields() checker method
- Fix configuration overrides
- Fix null data context in FormsStatusIndicator component
- Extend the FormsStatusIndicator component to be able to act as a button
- Define 'crossCheckRegisterFn' parameter to Checker instanciation

1.2.0

Release date: 2024- 9-20

- Accept aldeed:simple-schema v2.0.0, thus bumping minor candidate version number
- Define FieldType.C.NONE
- Define new Checker.name() method

1.1.0

Release date: 2024- 9-13

- Improve README
- Let the Checker be named to make the debug easyer, thus bumping the minor candidate version number
- Let the Checker be disabled
- Change the optional icon
- Fix Checker/enabled() getter
- Stop the hierarchy up propagation when a checker is disabled
- Make sure children are also checked
- Checker.intMessagerPush() now defaults to be self-emitted
- Fix IFieldRun._checkConsolidate() level usage
- Honors checkStatusShow to modify the DOM context of each element field
- Be tolerant when the HTML INPUT event emitter is a descendant of the JS-addressed node
- Introduce iMessagerFirst() method
- Remove (unused) iSpecValueTo() method
- Fix the messages level comparison
- Fix the messages ordering to get the highest severity first
- Define new Checker.clearPanel() method

1.0.2

Release date: 2024- 8-11

- Define itemFrom() itemTo() definition functions

1.0.1

Release date: 2024- 7-17

- Improve display of check status indicator

1.0.0

Release date: 2024- 7-10

- Initial release

P. Wieser

  • Last updated on 2026, Jun. 30th