lightning 2.1.3

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 37

Lightning Dart

Stories in Ready Build Status pub package

Lightning Dart is a library for developing web applications based on the css framework http://www.lightningDesignSystem.com. SLDS provides scss/css, icons and fonts, but no functionality.

Lightning Dart provides the most complete component functionality for slds. Written in Dart it compiles into Javascript ("Dart - the better Javascript"), so the delivery is a "one page apps". You can add business functionality by writing the code in Dart - or in Javascript directly - or any language which can call Javascript.

The Framework is not dependent on salesforce.com functionality and can be used independently.

The Salesforce Lightning Design css framework is similar to Bootstrap but uses more recent css technology and concentrates on building Web Applications, not Web Sites.

Lightning Dart is mainly used to generate the user interface manually or from meta data. In addition to that you can create a traditional html layout and then add the component functionality via Dart.

Check out the demo

Usage

A simple usage example:

import "package:lightning/lightning.dart";

main() async {
  await LightningDart.init(); // client env
  // example: http://lightningdart.com/exampleForm.html
  LightningDart.createPageSimple()
    ..add(...content...);
}

For more details, see documentation

Structure

Lightning Dart is split up into three parts

  • View - library lightning_dart with entry point LightningDart - can be used independently and provides individual component level functionality
  • Model - library lightning_model uses Protocol Buffers for efficient language independent serialization
  • Controller - library lightning_ctrl with entry point LightningCtrl (instantiates view, ...) provides component group functionality

Status, features and bugs

The Component Demo http://lightningdart.com provides the implementation status per component. The version number reflects the SLAD version.

Please file feature requests and bugs at the issue tracker or send an email to lightning@accorto.com.

Colaboration

We welcome help and contributions. The current status of the underlying design system (css) is in flux and can change quickly. So it is best to contact us first (lightning@accorto.com) to coordinate efforts. We require the usual contributor license agreement.

Analytics

Changelog

Version numbers are based on the Salesforce Lightning Design System (SLDS) css Framework version numbers. Intermediate Patches, Functionality improvements via +x prefix.

next

2.1.3 (2016-10-03)

  • SLDS 2.1.3
  • Google Analysis option

2.0.2 (2016-06-29)

  • SLDS v2.0.2 #48
  • Time Series #49
  • Table Layout enhancements #47
  • CSV import #46
  • Workspace Query Enhancements #45

1.0.0 (2016-03-08)

  • SLDS v1.0.0 #44
  • FK Hierarchy Lookup #21
  • Data Graph #40
  • Card Panel #38
  • IE type restrictions #36
  • svg compatibility edge/ie #35
  • color editor #34
  • timezone editor #17
  • AppsAction disabled support
  • icon title, description, link
  • lookup enhancements
  • apps header

0.12.1 (2015-12-21)

  • upgrade to SLDS 0.12.1 #33
  • (Sales) Path #29
  • Default Editor based on Platform #31
  • Messages-Settings-Environment Tab #30
  • lookup enhancements
  • stateful button improvements

0.12.0

  • nested modals #29
  • lookup completed/stabilized
  • Upgrade to SLDS 0.12.0 #25
  • (remote) logging enhancements #27
  • FK editor and dialog with parent values (e.g. contact of account) #20
  • File editor (upload) #19
  • layout fixes

0.10.1

  • lookups, fk search dialog
  • object/record home improvements
  • SLDS v0.10.1

0.9.2

  • improved components and controller
  • form controller logic, validation, error display
  • form in modal
  • SLDS v0.9.2

0.9.1

  • improved components
  • signup form example
  • workspace example
  • SLDS v0.9.1

0.8.1

  • Fixed links, descriptions
  • Improved demo
  • SLDS v0.8.1

0.8.0

  • Initial version based on SLDS v0.8.0

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  lightning: "^2.1.3"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:lightning/lightning.dart';
        
Version Uploaded Documentation Archive
2.1.3 Oct 16, 2016 failed Download lightning 2.1.3 archive
2.0.2 Jun 30, 2016 failed Download lightning 2.0.2 archive
1.0.0 Mar 9, 2016 failed Download lightning 1.0.0 archive
0.12.1 Dec 22, 2015 Go to the documentation of lightning 0.12.1 Download lightning 0.12.1 archive
0.12.0 Dec 2, 2015 Go to the documentation of lightning 0.12.0 Download lightning 0.12.0 archive
0.10.1+0 Oct 23, 2015 Go to the documentation of lightning 0.10.1+0 Download lightning 0.10.1+0 archive
0.9.2+0 Oct 8, 2015 Go to the documentation of lightning 0.9.2+0 Download lightning 0.9.2+0 archive
0.9.1+0 Sep 15, 2015 Go to the documentation of lightning 0.9.1+0 Download lightning 0.9.1+0 archive
0.8.1 Aug 26, 2015 Go to the documentation of lightning 0.8.1 Download lightning 0.8.1 archive
0.8.0 Aug 26, 2015 Go to the documentation of lightning 0.8.0 Download lightning 0.8.0 archive

Analysis

We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status tool failures using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
99 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
37 / 100
Overall score:
Weighted score of the above. [more]
37
Learn more about scoring.

Platforms

Detected platforms: unsure

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Suggestions

  • Fix dependencies in pubspec.yaml.

    Running pub upgrade failed with the following output:

    ERR: The current Dart SDK version is 2.0.0-dev.49.0.
     
     Because lightning requires SDK version 1.19.1, version solving failed.
    
  • Fix platform conflicts.

    Error(s) prevent platform classification:

    Fix dependencies in pubspec.yaml.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 192 hints.

    Run dartfmt to format lib/demo/demo_data.dart.

    Run dartfmt to format lib/demo/ui_util_demo.dart.

    Similar analysis of the following files failed:

    • lib/intl/ldart_messages_all.dart (hint)
    • lib/intl/ldart_messages_de.dart (hint)
    • lib/intl/ldart_messages_es.dart (hint)
    • lib/intl/ldart_messages_fr.dart (hint)
    • lib/lightning.dart (hint)
    • lib/lightning_ctrl.dart (hint)
    • lib/lightning_model.dart (hint)
    • lib/protoc/check_pb.dart (hint)
    • lib/protoc/data_pb.dart (hint)
    • lib/protoc/display_pb.dart (hint)
    • lib/protoc/rr_data_pb.dart (hint)
    • lib/protoc/rr_display_pb.dart (hint)
    • lib/protoc/rr_login_pb.dart (hint)
    • lib/protoc/rr_pb.dart (hint)
    • lib/protoc/structure_pb.dart (hint)
    • lib/src/apps/apps_ctrl.dart (hint)
    • lib/src/apps/apps_header.dart (hint)
    • lib/src/apps/apps_logout.dart (hint)
    • lib/src/apps/apps_main.dart (hint)
    • lib/src/apps/apps_menu.dart (hint)
    • lib/src/apps/apps_new_window.dart (hint)
    • lib/src/apps/apps_page.dart (hint)
    • lib/src/apps/apps_settings.dart (hint)
    • lib/src/apps/apps_settings_cache.dart (hint)
    • lib/src/apps/apps_settings_env.dart (hint)
    • lib/src/apps/apps_settings_tab.dart (hint)
    • lib/src/ctrl/datasource.dart (hint)
    • lib/src/ctrl/fk_ctrl.dart (hint)
    • lib/src/ctrl/fk_dialog.dart (hint)
    • lib/src/ctrl/fk_multi.dart (hint)
    • lib/src/ctrl/fk_multi_dialog.dart (hint)
    • lib/src/ctrl/fk_service.dart (hint)
    • lib/src/ctrl/fk_service_request.dart (hint)
    • lib/src/ctrl/form_ctrl.dart (hint)
    • lib/src/ctrl/object_ctrl.dart (hint)
    • lib/src/ctrl/object_edit.dart (hint)
    • lib/src/ctrl/object_export.dart (hint)
    • lib/src/ctrl/object_import.dart (hint)
    • lib/src/ctrl/object_import_line.dart (hint)
    • lib/src/ctrl/record_ctrl.dart (hint)
    • lib/src/ctrl/record_ctrl_details.dart (hint)
    • lib/src/ctrl/record_ctrl_related.dart (hint)
    • lib/src/ctrl/record_ctrl_related_item.dart (hint)
    • lib/src/ctrl/record_info.dart (hint)
    • lib/src/ctrl/remote_logger.dart (hint)
    • lib/src/ctrl/route.dart (hint)
    • lib/src/ctrl/router.dart (hint)
    • lib/src/ctrl/router_path.dart (hint)
    • lib/src/ctrl/service.dart (hint)
    • lib/src/ctrl/service_analytics.dart (hint)
    • lib/src/ctrl/service_tracker.dart (hint)
    • lib/src/ctrl/table_ctrl.dart (hint)
    • lib/src/ctrl/table_layout.dart (hint)
    • lib/src/ctrl/timezone.dart (hint)
    • lib/src/ctrl/ui_service.dart (hint)
    • lib/src/graph/engine_base.dart (hint)
    • lib/src/graph/engine_charted.dart (hint)
    • lib/src/graph/engine_charted_container.dart (hint)
    • lib/src/graph/engine_charted_theme.dart (hint)
    • lib/src/graph/engine_charted_time_series.dart (hint)
    • lib/src/graph/graph_calc.dart (hint)
    • lib/src/graph/graph_engine_panel.dart (hint)
    • lib/src/graph/graph_panel.dart (hint)
    • lib/src/graph/time_series.dart (hint)
    • lib/src/model/client_env.dart (hint)
    • lib/src/model/data_column.dart (hint)
    • lib/src/model/data_context.dart (hint)
    • lib/src/model/data_record.dart (hint)
    • lib/src/model/data_type_util.dart (hint)
    • lib/src/model/data_util.dart (hint)
    • lib/src/model/duration_util.dart (hint)
    • lib/src/model/editor_i.dart (hint)
    • lib/src/model/file_csv.dart (hint)
    • lib/src/model/fk_record.dart (hint)
    • lib/src/model/key_value_map.dart (hint)
    • lib/src/model/preference.dart (hint)
    • lib/src/model/preference_idb.dart (hint)
    • lib/src/model/preference_local.dart (hint)
    • lib/src/model/preference_sql.dart (hint)
    • lib/src/model/preference_storage.dart (hint)
    • lib/src/model/record_sort.dart (hint)
    • lib/src/model/setting_item.dart (hint)
    • lib/src/model/settings.dart (hint)
    • lib/src/model/stat_by.dart (hint)
    • lib/src/model/stat_calc.dart (hint)
    • lib/src/model/stat_match.dart (hint)
    • lib/src/model/stat_point.dart (hint)
    • lib/src/model/string_tokenizer.dart (hint)
    • lib/src/model/tz.dart (hint)
    • lib/src/model/ui_util.dart (hint)
    • lib/src/view/components/l_badge.dart (hint)
    • lib/src/view/components/l_breadcrumb.dart (hint)
    • lib/src/view/components/l_button.dart (hint)
    • lib/src/view/components/l_button_group.dart (hint)
    • lib/src/view/components/l_card.dart (hint)
    • lib/src/view/components/l_card_compact.dart (hint)
    • lib/src/view/components/l_card_compact_entry.dart (hint)
    • lib/src/view/components/l_component.dart (hint)
    • lib/src/view/components/l_dropdown.dart (hint)
    • lib/src/view/components/l_dropdown_element.dart (hint)
    • lib/src/view/components/l_dropdown_item.dart (hint)
    • lib/src/view/components/l_icon.dart (hint)
    • lib/src/view/components/l_image.dart (hint)
    • lib/src/view/components/l_lookup.dart (hint)
    • lib/src/view/components/l_lookup_item.dart (hint)
    • lib/src/view/components/l_lookup_select.dart (hint)
    • lib/src/view/components/l_lookup_timezone.dart (hint)
    • lib/src/view/components/l_modal.dart (hint)
    • lib/src/view/components/l_navigation.dart (hint)
    • lib/src/view/components/l_notification.dart (hint)
    • lib/src/view/components/l_page.dart (hint)
    • lib/src/view/components/l_page_header.dart (hint)
    • lib/src/view/components/l_page_home.dart (hint)
    • lib/src/view/components/l_panel.dart (hint)
    • lib/src/view/components/l_path.dart (hint)
    • lib/src/view/components/l_picklist.dart (hint)
    • lib/src/view/components/l_picklist_multi.dart (hint)
    • lib/src/view/components/l_pill.dart (hint)
    • lib/src/view/components/l_popbase.dart (hint)
    • lib/src/view/components/l_popover.dart (hint)
    • lib/src/view/components/l_process.dart (hint)
    • lib/src/view/components/l_spinner.dart (hint)
    • lib/src/view/components/l_tab.dart (hint)
    • lib/src/view/components/l_tile.dart (hint)
    • lib/src/view/components/l_tile_generic.dart (hint)
    • lib/src/view/components/l_tooltip.dart (hint)
    • lib/src/view/components/l_wizard.dart (hint)
    • lib/src/view/components/list_item.dart (hint)
    • lib/src/view/cpanel/card_panel.dart (hint)
    • lib/src/view/cpanel/card_panel_column.dart (hint)
    • lib/src/view/editors/editor_util.dart (hint)
    • lib/src/view/editors/l_checkbox.dart (hint)
    • lib/src/view/editors/l_datepicker.dart (hint)
    • lib/src/view/editors/l_datepicker_dropdown.dart (hint)
    • lib/src/view/editors/l_editor.dart (hint)
    • lib/src/view/editors/l_input.dart (hint)
    • lib/src/view/editors/l_input_color.dart (hint)
    • lib/src/view/editors/l_input_date.dart (hint)
    • lib/src/view/editors/l_input_duration.dart (hint)
    • lib/src/view/editors/l_input_file.dart (hint)
    • lib/src/view/editors/l_input_image.dart (hint)
    • lib/src/view/editors/l_input_number.dart (hint)
    • lib/src/view/editors/l_input_range.dart (hint)
    • lib/src/view/editors/l_input_search.dart (hint)
    • lib/src/view/editors/l_radio_group.dart (hint)
    • lib/src/view/editors/l_select.dart (hint)
    • lib/src/view/editors/l_select_i.dart (hint)
    • lib/src/view/editors/l_textarea.dart (hint)
    • lib/src/view/editors/select_data_list.dart (hint)
    • lib/src/view/editors/select_option.dart (hint)
    • lib/src/view/form/form_i.dart (hint)
    • lib/src/view/form/form_section.dart (hint)
    • lib/src/view/form/l_form.dart (hint)
    • lib/src/view/form/l_form_compound.dart (hint)
    • lib/src/view/form/l_form_element.dart (hint)
    • lib/src/view/form/l_form_field_set.dart (hint)
    • lib/src/view/home/apps_action.dart (hint)
    • lib/src/view/home/l_object_home.dart (hint)
    • lib/src/view/home/l_object_home_filter.dart (hint)
    • lib/src/view/home/l_object_home_filter_item.dart (hint)
    • lib/src/view/home/l_object_home_filter_lookup.dart (hint)
    • lib/src/view/home/l_object_home_filter_panel.dart (hint)
    • lib/src/view/home/l_record_home.dart (hint)
    • lib/src/view/home/l_related_list.dart (hint)
    • lib/src/view/home/new_window.dart (hint)
    • lib/src/view/home/page_simple.dart (hint)
    • lib/src/view/table/l_table.dart (hint)
    • lib/src/view/table/l_table_action_cell.dart (hint)
    • lib/src/view/table/l_table_cell.dart (hint)
    • lib/src/view/table/l_table_header_cell.dart (hint)
    • lib/src/view/table/l_table_header_row.dart (hint)
    • lib/src/view/table/l_table_pager.dart (hint)
    • lib/src/view/table/l_table_row.dart (hint)
    • lib/src/view/table/l_table_sum_cell.dart (hint)
    • lib/src/view/table/l_table_sum_row.dart (hint)
    • lib/src/view/table/table_statistics.dart (hint)
    • lib/src/view/utility/html0.dart (hint)
    • lib/src/view/utility/l_dlist.dart (hint)
    • lib/src/view/utility/l_grid.dart (hint)
    • lib/src/view/utility/l_list.dart (hint)
    • lib/src/view/utility/l_media.dart (hint)
    • lib/src/view/utility/l_motion.dart (hint)
    • lib/src/view/utility/l_scrollable.dart (hint)
    • lib/src/view/utility/l_text.dart (hint)
    • lib/src/view/utility/l_theme.dart (hint)
    • lib/src/view/utility/l_util.dart (hint)
    • lib/src/view/utility/l_utilities.dart (hint)
    • lib/src/view/utility/l_visibility.dart (hint)
    • lib/src/view/utility/option_util.dart (hint)
    • lib/src/view/utility/svg_util.dart (hint)
  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use lightning.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

  • Enable strong mode analysis.

    Strong mode helps you to detect bugs and potential issues earlier.Start your analysis_options.yaml file with the following:

    analyzer:
      strong-mode: true
    

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK 1.19.1