skawa_components 1.2.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 80

skawa_components #

Pub Package

"Non-Material" Components #

These components are following the Material Design principles, but not part of the material components.

The goal is to share a couple of components which are used internally but not material.

Currently Available components:

  • <skawa-infobar>
  • <skawa-master-detail>
  • <skawa-ckeditor>
  • <skawa-markdown-editor>
  • <skawa-nav-item>
  • <skawa-sidebar-item>

Currently Available pipes:

  • hexColorize

Getting started #

See examples

Need a component? #

Let us know what you'd like to use, open an issue!

Looking for maintainers #

If you have a component you'd like to be part of this collection, let us know, we can chat!

Licensing #

Skawa Components reuses and builds on top of certain parts of angular_components package. (Namely, base SCSS files) angular_components license

Skawa Components is released under MIT license.

1.2.1 #

  • added support for Dart 2.5
  • CodeMirrorComponent, DiffComponent and SkawaListWrapperComponent added

1.1.0 #

  • Pub constraints updated

1.0.0+4 #

  • Pub constraints updated

1.0.0+3 #

  • Fixed SkawaMarkdownEditorComponent

1.0.0+2 #

  • Fixed EditorRenderSource

1.0.0+1 #

  • Fixed missing pub constraints

1.0.0 #

  • Release to pub

1.0.0-beta #

  • Splitted the original package, removed the material components from this package
  • SkawaRandomColorizePipe renamed to SkawaHexColorizePipe
  • SkawaAppbarComponent, SkawaDrawerComponent, SkawaSidebarComponent became deprecated

1.0.0-alpha+7 #

  • SkawaRawMarkdownRendererComponent added

1.0.0-alpha+6 #

  • SkawaMarkdownEditorComponent disable ex improved

1.0.0-alpha+5 #

  • SkawaMarkdownEditorComponent can be disabled

1.0.0-alpha+4 #

  • Added a new output stream to SkawaMarkdownEditorComponent which emits on displayMode change
  • SkawaMarkdownRendererComponent added
  • SkawaDataTableComponent non-highlightable mode fixed

1.0.0-alpha+3 #

  • SkawaInfobarComponent button open the url in a new tab
  • SkawaDataTableComponent can be non highlightable

1.0.0-alpha+2 #

  • SkawaMarkdownEditorComponent now updates EditorRenderTarget with the proper classes

1.0.0-alpha+1 #

  • fix minor issue in toggleAttribute method
  • snackbar_test refactored
  • added flaky-on-travis tags to tests which is never fails on localhost but sometimes fails on travis
  • moved PromptComponent to lib folder due to Angular4 migration

1.0.0-alpha #

  • Upgrade to Angular4

0.0.16 #

  • Added new component

0.0.15 #

  • Added new component <skawa-markdown-editor> and corresponding Directives.
  • Ckeditor description corrected
  • analysis_options became stricter
  • travis script now running dartfmt, if the code is not formated properly then exit

0.0.14 #

  • Added tests to snackbar
  • Changed angular2 version from ^3.1.0 to 3.1.0

0.0.13 #

  • Added SkawaRandomColorizePipe

0.0.12 #

  • Added sort logic to SkawaDataTableComponent

0.0.11 #

  • Modified snackbar to use material popup.
  • Snackbar should now be in the bottom left corner of the screen always.
  • Changed angular_components version from "^0.5.1" to "^0.5.3+1"

0.0.10 #

  • DataTable highlight event won't be triggered when selector checkbox is clicked

0.0.9 #

  • Changed to DataTable
    • introduction of the concept of primaryAction. Columns with accessors can subscript to (trigger) action.
    • rows can be (highlight)-ed without making a change in selection

0.0.8+1 #

  • Fixed a strong-mode error about missing trigger on Snackbar
  • Changed DataTableAccessor return value from dynamic to String

0.0.8 #

  • Add SnackbarComponent

0.0.7 #

  • Add some new functionality to <skawa-data-table>:
    • change event is emitted when selection changes
    • setting multiSelection toggles whether only a single or multiple elements can be selected

0.0.6+1 #

  • fixed an issue where dart2js would warn about ?? in for loop

0.0.6 #

  • Added support for column renderer for <data-table>

0.0.5 #

  • Added new component <skawa-grid>

0.0.4 #

  • CKEditor accepts initial value as content input property

0.0.3+1 #

  • Fixed transformer usage

0.0.3 #

  • Added new component <skawa-ckeditor>

0.0.2 #

  • Added tests with travis integration
  • Minor changes to components and their styling

example/README.md

Getting started #

See examples

Use this package as a library

1. Depend on it

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


dependencies:
  skawa_components: ^1.2.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:skawa_components/skawa_components.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
69
Health:
Code health derived from static analysis. [more]
93
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
80
Learn more about scoring.

We analyzed this package on Jan 27, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.4

Health suggestions

Fix lib/code_mirror/code_mirror_mode_with_link.dart. (-3.93 points)

Analysis of lib/code_mirror/code_mirror_mode_with_link.dart reported 8 hints, including:

line 47 col 52: Avoid const keyword.

line 55 col 7: Avoid const keyword.

line 56 col 46: Avoid const keyword.

line 62 col 24: Avoid const keyword.

line 63 col 45: Avoid const keyword.

Fix lib/code_mirror/base_loader.dart. (-1 points)

Analysis of lib/code_mirror/base_loader.dart reported 2 hints:

line 8 col 61: Use = to separate a named parameter from its default value.

line 29 col 61: Use = to separate a named parameter from its default value.

Fix lib/ckeditor/ckeditor.dart. (-0.50 points)

Analysis of lib/ckeditor/ckeditor.dart reported 1 hint:

line 30 col 29: Unnecessary new keyword.

Fix additional 16 files with analysis or formatting issues. (-1.50 points)

Additional issues in the following files:

  • lib/code_mirror/code_mirror_config.dart (1 hint)
  • lib/pipes/hex_colorize_pipe.dart (1 hint)
  • lib/skawa_components.dart (1 hint)
  • lib/code_mirror/code_mirror.dart (Run dartfmt to format lib/code_mirror/code_mirror.dart.)
  • lib/code_mirror/code_mirror_mode.dart (Run dartfmt to format lib/code_mirror/code_mirror_mode.dart.)
  • lib/code_mirror/code_mirror_script_loader.dart (Run dartfmt to format lib/code_mirror/code_mirror_script_loader.dart.)
  • lib/directives/language_direction_directive.dart (Run dartfmt to format lib/directives/language_direction_directive.dart.)
  • lib/list_wrapper/list_wrapper.dart (Run dartfmt to format lib/list_wrapper/list_wrapper.dart.)
  • lib/list_wrapper/skawa_for_directive.dart (Run dartfmt to format lib/list_wrapper/skawa_for_directive.dart.)
  • lib/markdown_editor/editor_render_source.dart (Run dartfmt to format lib/markdown_editor/editor_render_source.dart.)
  • lib/markdown_editor/editor_render_target.dart (Run dartfmt to format lib/markdown_editor/editor_render_target.dart.)
  • lib/markdown_editor/markdown_editor.dart (Run dartfmt to format lib/markdown_editor/markdown_editor.dart.)
  • lib/markdown_renderer/markdown_renderer.dart (Run dartfmt to format lib/markdown_renderer/markdown_renderer.dart.)
  • lib/markdown_renderer/raw_markdown_renderer.dart (Run dartfmt to format lib/markdown_renderer/raw_markdown_renderer.dart.)
  • lib/nav_item/nav_item.dart (Run dartfmt to format lib/nav_item/nav_item.dart.)
  • lib/prompt/prompt.dart (Run dartfmt to format lib/prompt/prompt.dart.)

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (intl).

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.5.0 <3.0.0
angular ^6.0.0-alpha 6.0.0-alpha+1
angular_components ^0.14.0-alpha 0.14.0-alpha+1
diff_match_patch ^0.3.0 0.3.0
intl ^0.15.7 0.15.8 0.16.1
js ^0.6.1+1 0.6.1+1
markdown ^2.0.3 2.1.3
sass_builder ^2.1.2 2.1.3
Transitive dependencies
analyzer 0.37.1+1 0.39.4
angular_ast 0.5.11
angular_compiler 0.4.5
angular_forms 2.1.4
args 1.5.2
async 2.4.0
build 1.2.2
built_collection 4.3.2
built_value 7.0.8
charcode 1.1.2
checked_yaml 1.0.2
cli_repl 0.2.0+1
code_builder 3.2.1
collection 1.14.12
convert 2.1.1
crypto 2.1.4
csslib 0.16.1
dart_internal 0.1.8
dart_style 1.2.10 1.3.3
fixnum 0.10.11
front_end 0.1.21+1 0.1.29
glob 1.2.0
html 0.14.0+3
http 0.12.0+4
http_parser 3.1.3
json_annotation 3.0.1
kernel 0.3.21+1 0.3.29
logging 0.11.4
matcher 0.12.6
meta 1.1.8
node_interop 1.0.3
node_io 1.0.1+2
observable 0.22.2
package_config 1.1.0 2.0.0
package_resolver 1.0.10
path 1.6.4
pedantic 1.9.0
protobuf 0.13.16+1 1.0.1
pub_semver 1.4.2
pubspec_parse 0.1.5
quiver 2.1.2+1
sass 1.25.0
source_gen 0.9.4+6 0.9.4+7
source_maps 0.10.8
source_span 1.6.0
stack_trace 1.9.3
stream_transform 1.1.0
string_scanner 1.0.5
term_glyph 1.1.0
tuple 1.0.3
typed_data 1.1.6
watcher 0.9.7+13
yaml 2.2.0
Dev dependencies
angular_test ^2.3.0
build_config ^0.4.1+1 0.4.1+1
build_runner ^1.7.0
build_test ^0.10.7
build_web_compilers ^2.0.0
html_unescape ^1.0.1+2
mockito ^4.0.0
pageloader ^3.2.0
test ^1.6.2