@hexagonal-devops/sncf-starship
v4.3.1-r5-p5
Published
A package fixing incompatibilities between SNCF's bootstrap and Faveod designer
Maintainers
Readme
SNCF Bootstrap Starship
A package fixing incompatibilities between SNCF's bootstrap and Faveod designer by Hexagonal Consulting
IMPORTANT NOTE
THIS PACKAGE FOLLOW VERSIONS OF SNCF BOOTSTRAP METIER FOR WHICH IT IS DEVELOPPED SO IT DON'T FOLLOW VERSION NAMING NOMENCALTURE. REMEMBER TO READ THE RIGHT VERSION OF THE USED PACKAGE VERSION.
Installation guidelines
Open
/js_frameworks/indexof your project designer addressUpdate the JS framework which calls
bootstra_sncf_metiersources and insert before all sources :
/javascripts/sncf_starship/dist/starship_initializations.jsNotes :
- you can override this calendar initialization by creating Starship JS group from
/js_functions/indexfrom your designer and create theoverrideCalendarInitfunction like any function which contain this package (see: "Overridable javascript" section)- If your project already use a source like
/javascripts/datepicker_sncf.js, we recommend to removing it or passing that function intoStarship.overrideCalendarInitfunction.
- Create
sncf-startshipdependency with the following instructionsPackage name: Sncf Starship SID: sncf_starship Version: _MAJOR.MINOR.PATCH according to the bootstrap SNCF dependency_ Package ID: @hexagonal-devops/sncf-starship Licence: MIT Files to load: /javascripts/sncf_starship/dist/node_modules/dragula/dist/dragula.min.js /javascripts/sncf_starship/dist/node_modules/dragula/dist/dragula.min.css /javascripts/sncf_starship/dist/starship.min.css /javascripts/sncf_starship/dist/starship.min.js Javascripts: Select the javascript sheet used by your project - Open
/javascript_dependencies/js_dependenciesof your generated app - Select the same version as the Bootstrap SNCF Metier version or newer version patch to install it
- Activate dependency from the activate column from dependencies list
Overridable Javascript
- Sources of this package contain a
/srcfolder where each function can be inspected to allow an easy override. - To override a function, create a Javascript group called
Starshipfrom your Faveod Designer and under this group, create a function with the same name as the source.
Troubleshooting
- Try to regenerate the layout which use the new SNCF Starship dependency
- Try to regenerate maveoc which use the layout which use SNCF Starship
- Check
/system_settings/public_filesaddress of your project and under the/javascriptdirectory, you should see thesncf_starshipfolder - Be sure to remove all folder nammed
sncf_starshipunder the/javascriptsdirectory to allow Faveod creating the symbolic link to sources under/packagesfolder
Changelog
v4.3.1-r5-p5
Updates coming from a migration from Rails 5 to 6. Existing projects doesn't need this update to use this package.
Package concern:
- Style of Tabbed Container UI
Faveod reference concern:
- Tabbed Container UI Starship :
/field_formatters/edit/74 - Checkbox Starship :
/field_formatters/edit/75
Migration
- To use theses new components (Tabbed Container UI or Checkbox), you must create theses components into your Faveod designer like the Starship reference.
v4.3.1-r5-p4
This patch includes forgotten sources from previous versions to s6p_template_top_menu
Package concern:
- Adding s6p_top_menu_bootstrap_fix.css and s6p_top_menu_mobile.css files
Faveod reference concern:
- Fixing Bootstrap sources linking (restore the linking from < URL >/javascript_dependencies/js_dependencies and it symlink instead of copy / paste sources)
- Fixing translations icons paths (from /layouts/edit/81)
- Fixing brand icons paths (from /layouts/edit/78 and /layouts/edit/80)
Migration:
- See translation icons fixes and brand icons fixes of "Faveod reference concern" section
v4.3.1-r5-p3
Package concern:
- Readme updates
- Fix
starship_initializations.jsES6 compilation and minify it - Serve content of
starship_initializations.jsto src/ folder - Add
setDateOnYearChangeandsetDateOnMonthChangefunctions for Datepicker 2 activable by adding optionsset_date_on_year_changeandset_date_on_month_changeto it component (cf Starship reference at/field_formatters/edit/64- fromeditview) - Fix time section integration of flatpickr for Internet Explorer 11
- Style
Chosen 2component (multi and single) and fix its overflowing - Style form in an error state
- Style modal
- Adapt all external Javascript files to allow triggering from modal
Faveod reference concern:
- Remove
s6p_links_for_list_elementhelper from the Starship reference which is exactly the same aslinks_for_list_elementwith update of thelistview which were calling it. - Add SNCF's SCSS variables - see
/style_variables/index? - Fix viewport meta from
<head>andcontent_tagof<main>aroundyieldkey froms6p template top menu
Migration
- Adapt (should duplicate) your
Layout.ajaxSubViewassigned atjQuery 1.11framework (Starship ref url: /js_functions/edit/454) - Assign (should duplicate)
Layout.loadAjaxSubViewBsinitialy assigned atBootstrap 3.3.5to your JS framework which use this package - (this function has been updated with the Faveod Reference) - (Starship ref url: /js_functions/edit/471) - No solution found to trigger overflowChosen for
$([data-window]loaded in Ajax: createStarship.initListener_chosenReadywhich callsStarship.overflowChosen();withon chosen:ready for [data-library=chosen2]event option from your Designer. (Starship ref url: /js_functions/edit/485)
v4.3.1-r5-p2
v4.3.1-r5-p1 [DEPRECATED]
- Fix paths, fix sources calling order, fix installation guidelines
- Separate overrideCalendarInit func to it own file called before SNCF's bootstrap sources
- Add
starship_initialization.js
v4.3.1-r5 [DEPRECATED]
- Fix - custom_columns: allows ordering columns by drag and drop from Firefox
- Fix - DatalistHTML5 component: Allow searching without accentuation
- Fixing a Microsft's browsers bug
unreconized regular expressionby removing theonclickattribute of$("nav.mastnav .mastnav-top a span.font-weight-medium")froms6p_template_left_menutemplate - It allows setting a manual date from
DatePicker 2component
- Adds the source
/javascripts/sncf_starship/dist/starship_initializations.jsjust before Bootstrap SNCF Metier sources.- Update of
Datepicker 2component from the Faveod Designer :
- Adds
manual_inputoption ofBooleantype and use of this option from theEditview
Fix - time from a DatePicker by localization
Deprecated: this option will be deleted in next major version:
- options from DatePicker 2 :
change_year,change_month
