UNPKG

@rws-framework/client

Version:

This package provides the core client-side framework for Realtime Web Suit (RWS), enabling modular, asynchronous web components, state management, and integration with backend services. It is located in `.dev/client`.

361 lines (359 loc) 364 kB
the following statistics were collected in ts check on fast foundation +-------------------------------------+-------------------+ | statistic name | value | +-------------------------------------+-------------------+ | scanning_runtime | 00:00:00 + 37 ms | | scanned_files | 207 | | skipped_files | 246 | | parsing_hits | 361 | | extracted_file_results | 207 | | file_results_creation_runtime | 00:00:00 + 499 ms | | number-of-methods-metric-runtime | 00:00:00 + 4 ms | | source-lines-of-code-metric-runtime | 00:00:00 + 10 ms | | t-f-i-d-f-metric-runtime | 00:00:00 + 289 ms | | fan-in-out-metric-runtime | 00:00:00 + 1 ms | | louvain-modularity-metric-runtime | 00:00:00 + 77 ms | | total_runtime | 00:00:00 + 921 ms | +-------------------------------------+-------------------+ the following overall metrics were collected in ts check on fast foundation +----------------------------------------------+---------------------------------------------------+ | metric name | value | +----------------------------------------------+---------------------------------------------------+ | avg-number-of-methods-in-file | 0.03 | | avg-sloc-in-file | 23.88 | | total-sloc-in-files | 4943 | | avg-fan-in-dependency-graph | 1.13 | | avg-fan-out-dependency-graph | 1.13 | | max-fan-in-dependency-graph | 108 | | max-fan-in-name-dependency-graph | ../foundation-element/foundation-element.js | | max-fan-out-dependency-graph | 8 | | max-fan-out-name-dependency-graph | ./fast-foundation/dist/dts/combobox/combobox.d.ts | | louvain-communities-dependency-graph | 136 | | louvain-modularity-dependency-graph | 0.43 | | louvain-biggest-communities-dependency-graph | 0.09, 0.08, 0.07, 0.05, 0.04 | +----------------------------------------------+---------------------------------------------------+ the following local metrics were collected in ts check on fast foundation +------------------------------------------------------------------------------+---------------------------------------------------------------+ | result | local metrics | +------------------------------------------------------------------------------+---------------------------------------------------------------+ | ./fast-foundation/node_modules/tslib/tslib.d.ts | number-of-methods-in-file: 3 | | | sloc-in-file: 23 | | | tag_declare: 0.4424789811506982 | | | tag_object: 0.26977889821531886 | | | tag_thisarg: 0.2517276721345059 | | | tag_software: 0.2517276721345059 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | | | file_result_dependency_graph_louvain-modularity-in-file: 56 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/fast-foundation.d.ts | number-of-methods-in-file: 2 | | | sloc-in-file: 2153 | | | tag_element: 0.2878122041908985 | | | tag_key: 0.26782916995522127 | | | tag_html: 0.22207880014444875 | | | tag_attribute: 0.20933009038228476 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 2 | | | file_result_dependency_graph_louvain-modularity-in-file: 3 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/index-rollup.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 2 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | | | file_result_dependency_graph_louvain-modularity-in-file: 57 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/interfaces.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 4 | | | tag_prototype: 0.8779797310381272 | | | tag_class: 0.3036807875870168 | | | tag_type: 0.29029140414914345 | | | tag_declare: 0.2294786957734105 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | | | file_result_dependency_graph_louvain-modularity-in-file: 58 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/index.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 53 | | | tag_reflectattributes: 0.3414220792953941 | | | tag_designtokensubscriber: 0.3414220792953941 | | | tag_designtokenchangerecord: 0.3414220792953941 | | | tag_deriveddesigntokenvalue: 0.3414220792953941 | | | tag_cssdesigntoken: 0.3414220792953941 | | | tag_staticdesigntokenvalue: 0.3260348070055777 | | | tag_designtokenvalue: 0.3260348070055777 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | | | file_result_dependency_graph_louvain-modularity-in-file: 59 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/breadcrumb/breadcrumb.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 8 | | | tag_href: 0.37051334609130715 | | | tag_breadcrumb: 0.37051334609130715 | | | tag_node: 0.2701341095240604 | | | tag_we: 0.22943066655490224 | | | tag_anchor: 0.21079699097408908 | | | tag_child: 0.20127201368476494 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 1 | | | file_result_dependency_graph_louvain-modularity-in-file: 0 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/breadcrumb/index.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 2 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | | | file_result_dependency_graph_louvain-modularity-in-file: 60 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/breadcrumb/breadcrumb.template.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 4 | | | tag_breadcrumb: 0.686173228197806 | | | tag_breadcrumbtemplate: 0.3801538139154691 | | | tag_type: 0.35637099571483305 | | | tag_foundationelementtemplate: 0.3381747759638042 | | | tag_viewtemplate: 0.327986268719276 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 3 | | | file_result_dependency_graph_louvain-modularity-in-file: 10 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/accordion-item/accordion-item.template.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 4 | | | tag_accordionitem: 0.7068469502885488 | | | tag_accordionitemoptions: 0.4934711475084842 | | | tag_accordionitemtemplate: 0.26107164873653693 | | | tag_type: 0.24473873471078939 | | | tag_foundationelementtemplate: 0.2322424321162039 | | | tag_viewtemplate: 0.22524544750858777 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 3 | | | file_result_dependency_graph_louvain-modularity-in-file: 11 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/accordion-item/accordion-item.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 17 | | | tag_icon: 0.5035925333450687 | | | tag_heading: 0.3776944000088015 | | | tag_item: 0.28993946065279813 | | | tag_accordion: 0.2840558394168625 | | | tag_button: 0.28402407011547753 | | | tag_content: 0.2093281999884031 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 3 | | | file_result_dependency_graph_louvain-modularity-in-file: 1 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/accordion-item/index.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 2 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | | | file_result_dependency_graph_louvain-modularity-in-file: 61 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/button/button.form-associated.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 11 | | | tag_formassociated: 0.4276526380416968 | | | tag_class: 0.4249188960620324 | | | tag_extends: 0.37840649647272256 | | | tag_formassociatedbutton: 0.3071236256349124 | | | tag_foundationelement: 0.3034137501827986 | | | tag_button: 0.24437443425006744 | | | tag_declare: 0.24081989558654274 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 2 | | | file_result_dependency_graph_louvain-modularity-in-file: 0 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/button/button.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 37 | | | tag_button: 0.6002933859600914 | | | tag_https: 0.26619905218825385 | | | tag_html: 0.2526036326157123 | | | tag_content: 0.23422310756390546 | | | tag_attribute: 0.22487468427200338 | | | tag_more: 0.212888583985704 | | | tag_element: 0.20105946864192745 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 3 | | | file_result_dependency_graph_louvain-modularity-in-file: 4 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/button/index.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 2 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | | | file_result_dependency_graph_louvain-modularity-in-file: 62 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/button/button.template.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 4 | | | tag_button: 0.6398645017519717 | | | tag_buttonoptions: 0.5361103785841653 | | | tag_buttontemplate: 0.28362999771801384 | | | tag_type: 0.2658858099049349 | | | tag_foundationelementtemplate: 0.2523097425933798 | | | tag_viewtemplate: 0.24470817138526335 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 3 | | | file_result_dependency_graph_louvain-modularity-in-file: 13 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/progress-ring/index.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 1 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | | | file_result_dependency_graph_louvain-modularity-in-file: 63 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/progress-ring/progress-ring.template.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 4 | | | tag_progressringoptions: 0.5835328585282891 | | | tag_baseprogress: 0.5572340936600064 | | | tag_progressringtemplate: 0.3087189316682502 | | | tag_type: 0.2894051540387742 | | | tag_foundationelementtemplate: 0.2746281945126297 | | | tag_viewtemplate: 0.26635421446379515 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 3 | | | file_result_dependency_graph_louvain-modularity-in-file: 14 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/slider/slider.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 65 | | | tag_slider: 0.4216080518377295 | | | tag_thumb: 0.3533785335601511 | | | tag_orientation: 0.24436510952170937 | | | tag_slidermode: 0.2208615834750944 | | | tag_step: 0.2087335403239876 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 4 | | | file_result_dependency_graph_louvain-modularity-in-file: 3 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/slider/slider-utilities.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 2 | | | tag_direction: 0.5476998368959041 | | | tag_pixelpos: 0.2731485992286199 | | | tag_pixel: 0.2731485992286199 | | | tag_percent: 0.2731485992286199 | | | tag_minposition: 0.2731485992286199 | | | tag_maxposition: 0.2731485992286199 | | | tag_converts: 0.2731485992286199 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 1 | | | file_result_dependency_graph_louvain-modularity-in-file: 3 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/slider/slider.form-associated.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 11 | | | tag_formassociated: 0.4234828483627763 | | | tag_class: 0.4207757614954101 | | | tag_extends: 0.3747168769940405 | | | tag_formassociatedslider: 0.3041290435596342 | | | tag_foundationelement: 0.30045534092394716 | | | tag_slider: 0.27922343952666007 | | | tag_declare: 0.2384718022374785 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 2 | | | file_result_dependency_graph_louvain-modularity-in-file: 0 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/slider/slider.template.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 4 | | | tag_slider: 0.6928066812444905 | | | tag_slideroptions: 0.503068160981983 | | | tag_slidertemplate: 0.2661489630701577 | | | tag_type: 0.2494984069760582 | | | tag_foundationelementtemplate: 0.23675907662802725 | | | tag_viewtemplate: 0.22962601485380835 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 3 | | | file_result_dependency_graph_louvain-modularity-in-file: 15 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/slider/index.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 2 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | | | file_result_dependency_graph_louvain-modularity-in-file: 64 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/utilities/apply-mixins.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 1 | | | tag_sourced: 0.3822372011454939 | | | tag_mixins: 0.3822372011454939 | | | tag_documentation: 0.3822372011454939 | | | tag_derivedctor: 0.3822372011454939 | | | tag_applymixins: 0.3822372011454939 | | | tag_typescript: 0.3612476329439529 | | | tag_apply: 0.30208136326680435 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | | | file_result_dependency_graph_louvain-modularity-in-file: 65 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/utilities/intersection-service.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 9 | | | tag_target: 0.3566081358840429 | | | tag_intersection: 0.2987840741462082 | | | tag_request: 0.2743161780355721 | | | tag_callback: 0.24984828192493597 | | | tag_position: 0.22765783560171604 | | | tag_element: 0.20304913361531032 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | | | file_result_dependency_graph_louvain-modularity-in-file: 66 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/utilities/root-active-element.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 1 | | | tag_element: 0.757995563513481 | | | tag_getrootactiveelement: 0.6357637340020036 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | | | file_result_dependency_graph_louvain-modularity-in-file: 67 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/utilities/index.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 8 | | | tag_composedcontains: 1.0 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | | | file_result_dependency_graph_louvain-modularity-in-file: 68 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/utilities/composed-contains.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 1 | | | tag_test: 0.6099774152797907 | | | tag_reference: 0.3745953861644727 | | | tag_element: 0.28939686879671445 | | | tag_descendent: 0.2703518368735492 | | | tag_dom: 0.2586780308225485 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | | | file_result_dependency_graph_louvain-modularity-in-file: 69 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/utilities/resize-observer.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 25 | | | tag_contentrect: 0.5445981928315049 | | | tag_target: 0.380115833821389 | | | tag_resizeobserverclassdefinition: 0.326758915698903 | | | tag_resizeobservercallback: 0.326758915698903 | | | tag_resizeobserverentry: 0.21783927713260196 | | | tag_constructibleresizeobserver: 0.21783927713260196 | | | tag_element: 0.21643418353189622 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | | | file_result_dependency_graph_louvain-modularity-in-file: 70 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/utilities/property-stylesheet-behavior.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 10 | | | tag_styles: 0.47507551680609555 | | | tag_behavior: 0.4589653583139464 | | | tag_property: 0.26612133766755686 | | | tag_fastelement: 0.25429148815123853 | | | tag_source: 0.2300773058720044 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 1 | | | file_result_dependency_graph_louvain-modularity-in-file: 2 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/utilities/direction.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 2 | | | tag_direction: 0.5051777166416459 | | | tag_rootnode: 0.46768744463932416 | | | tag_htmlelement: 0.25362342514753206 | | | tag_getdirection: 0.23384372231966208 | | | tag_controller: 0.23384372231966208 | | | tag_localization: 0.22100279855969948 | | | tag_begin: 0.22100279855969948 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 1 | | | file_result_dependency_graph_louvain-modularity-in-file: 3 | | ---------------------------------------------------------------------------- | ------------------------------------------------------------- | | ./fast-foundation/dist/dts/utilities/composed-parent.d.ts | number-of-methods-in-file: 0 | | | sloc-in-file: 1 | | | tag_parent: 0.49810568000559846 | | | tag_node: 0.4816486722935669 | | | tag_element: 0.39178236503889496 | | | fan-in-dependency-graph: 0 | | | fan-out-dependency-graph: 0 | |