diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json
index 6d78352d..8c64eac1 100644
--- a/.config/dotnet-tools.json
+++ b/.config/dotnet-tools.json
@@ -4,9 +4,8 @@
"tools": {
"sign": {
"version": "0.9.1-beta.26330.1",
- "commands": [
- "sign"
- ]
+ "commands": ["sign"],
+ "rollForward": false
}
}
}
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000..468784dc
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,341 @@
+# Repo-wide coding conventions — https://editorconfig.org
+# .NET style rules are enforced at build time via EnforceCodeStyleInBuild
+# (see Directory.Build.props). Whitespace formatting is gated in CI via
+# dotnet format whitespace . --folder --exclude templates node_modules --verify-no-changes
+# NOTE: only use `dotnet format whitespace --folder` in this repo — the full
+# `dotnet format` (style/analyzers verbs) corrupts files on multi-targeted
+# projects by inserting "Unmerged change from project" conflict markers
+# (https://github.com/dotnet/format/issues/1634).
+#
+# Structure: Visual Studio's generated .editorconfig as the base, with
+# repo-specific deltas marked "REPO:" and a commented "future candidates"
+# section (aspnetcore-inspired) at the bottom. Keep exactly one severity line
+# per rule id — the last assignment silently wins. Careful: some options
+# silently ignore a `:severity` suffix; use dotnet_diagnostic lines instead.
+root = true
+
+[*]
+indent_style = space
+insert_final_newline = true
+trim_trailing_whitespace = true
+max_line_length = 120
+
+[*.{json,yml,yaml}]
+indent_size = 2
+
+[*.{xml,config,*proj,props,targets,nuspec,resx,slnx,runsettings}]
+indent_size = 2
+
+# C# files
+[*.{cs,razor}]
+indent_size = 4
+tab_width = 4
+
+[*.cs]
+
+#### Core EditorConfig Options ####
+
+# REPO: end_of_line intentionally NOT set (VS default: crlf) — no .gitattributes
+# yet, enforcing it would churn line endings; revisit together with a .gitattributes.
+# REPO: insert_final_newline = true inherited from [*] (VS default: false).
+
+#### .NET Code Actions ####
+
+# Type members
+dotnet_hide_advanced_members = false
+dotnet_member_insertion_location = with_other_members_of_the_same_kind
+dotnet_property_generation_behavior = prefer_throwing_properties
+
+# Symbol search
+dotnet_search_reference_assemblies = true
+
+#### .NET Coding Conventions ####
+
+# Organize usings (remove both for no-sort run https://github.com/dotnet/format/issues/772)
+dotnet_separate_import_directive_groups = false
+dotnet_sort_system_directives_first = true
+file_header_template = unset
+
+# this. and Me. preferences
+dotnet_style_qualification_for_event = false
+dotnet_style_qualification_for_field = false
+dotnet_style_qualification_for_method = false
+dotnet_style_qualification_for_property = false
+
+# Language keywords vs BCL types preferences
+dotnet_style_predefined_type_for_locals_parameters_members = true
+dotnet_style_predefined_type_for_member_access = true
+
+# Parentheses preferences
+dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity
+dotnet_style_parentheses_in_other_binary_operators = always_for_clarity
+dotnet_style_parentheses_in_other_operators = never_if_unnecessary
+dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity
+
+# Modifier preferences
+dotnet_style_require_accessibility_modifiers = for_non_interface_members
+
+# Expression-level preferences
+dotnet_prefer_system_hash_code = true
+dotnet_style_coalesce_expression = true
+dotnet_style_collection_initializer = true
+dotnet_style_explicit_tuple_names = true
+dotnet_style_namespace_match_folder = true
+dotnet_style_null_propagation = true
+dotnet_style_object_initializer = true
+dotnet_style_operator_placement_when_wrapping = beginning_of_line
+dotnet_style_prefer_auto_properties = true
+dotnet_style_prefer_collection_expression = when_types_loosely_match
+dotnet_style_prefer_compound_assignment = true
+dotnet_style_prefer_conditional_expression_over_assignment = true
+dotnet_style_prefer_conditional_expression_over_return = true
+dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
+dotnet_style_prefer_inferred_anonymous_type_member_names = true
+dotnet_style_prefer_inferred_tuple_names = true
+dotnet_style_prefer_is_null_check_over_reference_equality_method = true
+dotnet_style_prefer_non_hidden_explicit_cast_in_source = true
+dotnet_style_prefer_simplified_boolean_expressions = true
+dotnet_style_prefer_simplified_interpolation = true
+
+# Field preferences
+dotnet_style_readonly_field = true
+
+# Parameter preferences
+dotnet_code_quality_unused_parameters = all
+
+# Suppression preferences
+dotnet_remove_unnecessary_suppression_exclusions = none
+
+# New line preferences
+# REPO: VS default allows multiple blank lines; we disallow (IDE2000, gated below).
+dotnet_style_allow_multiple_blank_lines_experimental = false
+dotnet_style_allow_statement_immediately_after_block_experimental = true
+
+#### C# Coding Conventions ####
+
+# var preferences
+# REPO: VS default is false; this codebase uses `var` heavily (aspnetcore also true).
+csharp_style_var_elsewhere = true
+csharp_style_var_for_built_in_types = true
+csharp_style_var_when_type_is_apparent = true
+
+# Expression-bodied members
+csharp_style_expression_bodied_accessors = true
+csharp_style_expression_bodied_constructors = false
+csharp_style_expression_bodied_indexers = true
+csharp_style_expression_bodied_lambdas = true
+csharp_style_expression_bodied_local_functions = false
+csharp_style_expression_bodied_methods = false
+csharp_style_expression_bodied_operators = false
+csharp_style_expression_bodied_properties = true
+
+# Pattern matching preferences
+csharp_style_pattern_matching_over_as_with_null_check = true
+csharp_style_pattern_matching_over_is_with_cast_check = true
+csharp_style_prefer_extended_property_pattern = true
+csharp_style_prefer_not_pattern = true
+csharp_style_prefer_pattern_matching = true
+csharp_style_prefer_switch_expression = true
+
+# Null-checking preferences
+csharp_style_conditional_delegate_call = true
+
+# Modifier preferences
+csharp_prefer_static_anonymous_function = true
+csharp_prefer_static_local_function = true
+csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async
+csharp_style_prefer_readonly_struct = true
+csharp_style_prefer_readonly_struct_member = true
+
+# Code-block preferences
+csharp_prefer_braces = true
+csharp_prefer_simple_using_statement = true
+csharp_prefer_system_threading_lock = true
+# REPO: block_scoped matches the codebase majority incl. generated components
+# (aspnetcore uses file_scoped — see future candidates / IDE0161).
+csharp_style_namespace_declarations = block_scoped
+csharp_style_prefer_method_group_conversion = true
+csharp_style_prefer_primary_constructors = true
+csharp_style_prefer_simple_property_accessors = true
+csharp_style_prefer_top_level_statements = true
+
+# Expression-level preferences
+csharp_prefer_simple_default_expression = true
+csharp_style_deconstructed_variable_declaration = true
+csharp_style_implicit_object_creation_when_type_is_apparent = true
+csharp_style_inlined_variable_declaration = true
+csharp_style_prefer_implicitly_typed_lambda_expression = true
+csharp_style_prefer_index_operator = true
+csharp_style_prefer_local_over_anonymous_function = true
+csharp_style_prefer_null_check_over_type_check = true
+csharp_style_prefer_range_operator = true
+csharp_style_prefer_tuple_swap = true
+csharp_style_prefer_unbound_generic_type_in_nameof = true
+csharp_style_prefer_utf8_string_literals = true
+csharp_style_throw_expression = true
+csharp_style_unused_value_assignment_preference = discard_variable
+csharp_style_unused_value_expression_statement_preference = discard_variable
+
+# 'using' directive preferences
+csharp_using_directive_placement = outside_namespace
+
+# New line preferences
+csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true
+csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true
+csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true
+csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true
+csharp_style_allow_embedded_statements_on_same_line_experimental = true
+
+#### C# Formatting Rules ####
+
+# New line preferences
+csharp_new_line_before_catch = true
+csharp_new_line_before_else = true
+csharp_new_line_before_finally = true
+csharp_new_line_before_members_in_anonymous_types = true
+csharp_new_line_before_members_in_object_initializers = true
+csharp_new_line_before_open_brace = all
+csharp_new_line_between_query_expression_clauses = true
+
+# Indentation preferences
+csharp_indent_block_contents = true
+csharp_indent_braces = false
+csharp_indent_case_contents = true
+csharp_indent_case_contents_when_block = false
+csharp_indent_labels = one_less_than_current
+csharp_indent_switch_labels = true
+
+# Space preferences
+csharp_space_after_cast = false
+csharp_space_after_colon_in_inheritance_clause = true
+csharp_space_after_comma = true
+csharp_space_after_dot = false
+csharp_space_after_keywords_in_control_flow_statements = true
+csharp_space_after_semicolon_in_for_statement = true
+csharp_space_around_binary_operators = before_and_after
+csharp_space_around_declaration_statements = false
+csharp_space_before_colon_in_inheritance_clause = true
+csharp_space_before_comma = false
+csharp_space_before_dot = false
+csharp_space_before_open_square_brackets = false
+csharp_space_before_semicolon_in_for_statement = false
+csharp_space_between_empty_square_brackets = false
+csharp_space_between_method_call_empty_parameter_list_parentheses = false
+csharp_space_between_method_call_name_and_opening_parenthesis = false
+csharp_space_between_method_call_parameter_list_parentheses = false
+csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
+csharp_space_between_method_declaration_name_and_open_parenthesis = false
+csharp_space_between_method_declaration_parameter_list_parentheses = false
+csharp_space_between_parentheses = false
+csharp_space_between_square_brackets = false
+
+# Wrapping preferences
+csharp_preserve_single_line_blocks = true
+# REPO: VS default is true; false splits `int a; int b;` style one-liners
+# (matches aspnetcore and the tested one-time-format baseline).
+csharp_preserve_single_line_statements = false
+
+#### Naming styles ####
+
+# Naming rules
+
+dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
+dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
+dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
+
+dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
+dotnet_naming_rule.types_should_be_pascal_case.symbols = types
+dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
+
+dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
+dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
+dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
+
+# Symbol specifications
+
+dotnet_naming_symbols.interface.applicable_kinds = interface
+dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.interface.required_modifiers =
+
+dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
+dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.types.required_modifiers =
+
+dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
+dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.non_field_members.required_modifiers =
+
+# Naming styles
+
+dotnet_naming_style.pascal_case.required_prefix =
+dotnet_naming_style.pascal_case.required_suffix =
+dotnet_naming_style.pascal_case.word_separator =
+dotnet_naming_style.pascal_case.capitalization = pascal_case
+
+dotnet_naming_style.begins_with_i.required_prefix = I
+dotnet_naming_style.begins_with_i.required_suffix =
+dotnet_naming_style.begins_with_i.word_separator =
+dotnet_naming_style.begins_with_i.capitalization = pascal_case
+
+#### Enforced severities (the repo gates) ####
+
+# IDE0055: All formatting rules — build warning + fixed by the whitespace gate.
+# (aspnetcore keeps this at `suggestion` and relies purely on their CI format
+# check; we use `warning` so violations are visible in the IDE/build.)
+dotnet_diagnostic.IDE0055.severity = warning
+
+# IDE2000: Disallow multiple blank lines (option set above).
+# Reported as a build warning (EnforceCodeStyleInBuild), but NOT auto-fixed by
+# `dotnet format whitespace` — only `dotnet format style` (unusable here, see
+# header note) or CSharpier can fix it automatically.
+dotnet_diagnostic.IDE2000.severity = warning
+
+# IDE0005: Remove unnecessary usings. Only reported during build when the
+# project generates an XML docs file; always applied in the IDE.
+dotnet_diagnostic.IDE0005.severity = warning
+
+#### Future candidates (aspnetcore-inspired) — enable after the one-time format
+#### and a cleanup pass. Most below have NO auto-fix via our safe format
+#### command, so enabling them creates manual work; the ones marked [fixer]
+#### at least have an IDE code fix. Test-project relaxations can mirror
+#### aspnetcore (suggestion severity under a [tests/**.cs] section) when enabled.
+
+## Hygiene / dead code
+# dotnet_diagnostic.IDE0011.severity = warning # braces around blocks [fixer]
+# dotnet_diagnostic.IDE0035.severity = warning # remove unreachable code [fixer]
+# dotnet_diagnostic.IDE0036.severity = warning # modifier order [fixer]
+# dotnet_diagnostic.IDE0044.severity = warning # make field readonly [fixer]
+# dotnet_diagnostic.IDE0051.severity = warning # unused private members
+# dotnet_diagnostic.IDE0059.severity = warning # unnecessary value assignment
+# dotnet_diagnostic.IDE0060.severity = warning # unused parameter
+# dotnet_diagnostic.IDE0161.severity = warning # file-scoped namespace [fixer] — conflicts with block_scoped choice above
+
+## Correctness (aspnetcore has these at warning; mostly no fixer)
+# dotnet_diagnostic.CA2011.severity = warning # avoid infinite recursion
+# dotnet_diagnostic.CA2013.severity = warning # no ReferenceEquals on value types
+# dotnet_diagnostic.CA2016.severity = warning # forward CancellationToken
+# dotnet_diagnostic.CA2200.severity = warning # rethrow preserving stack
+# dotnet_diagnostic.CA2201.severity = warning # no reserved exception types
+# dotnet_diagnostic.CA2208.severity = warning # instantiate ArgumentException correctly
+# dotnet_diagnostic.CA2245.severity = warning # do not assign property to itself
+
+## Performance (aspnetcore CA18xx set; some have fixers, review per-rule)
+# dotnet_diagnostic.CA1822.severity = warning # make member static (scope with dotnet_code_quality.CA1822.api_surface = private, internal)
+# dotnet_diagnostic.CA1825.severity = warning # avoid zero-length array allocs [fixer]
+# dotnet_diagnostic.CA1827.severity = warning # Any() over Count() [fixer]
+# dotnet_diagnostic.CA1829.severity = warning # Length/Count over Count() [fixer]
+# dotnet_diagnostic.CA1854.severity = warning # TryGetValue over ContainsKey+indexer [fixer]
+
+## Line endings / encoding — pair with a .gitattributes first
+# end_of_line = crlf
+# charset = utf-8
+
+#### Generated code — keep LAST so it overrides all sections above ####
+
+# Generated TS interop sources (ingested; tab-indented) — leave untouched so
+# editors don't churn them on save. Also excluded from Prettier (.prettierignore).
+[src/src/ig/**]
+indent_style = unset
+indent_size = unset
+insert_final_newline = unset
+trim_trailing_whitespace = unset
diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
new file mode 100644
index 00000000..00aafca0
--- /dev/null
+++ b/.git-blame-ignore-revs
@@ -0,0 +1,14 @@
+# Commits listed here are skipped by `git blame` (and GitHub's blame view
+# picks this file up automatically at the repo root).
+#
+# Local setup (one-time, per clone):
+# git config blame.ignoreRevsFile .git-blame-ignore-revs
+#
+# Only full 40-character SHAs are valid; a bad entry makes `git blame` error
+# out. Append the SHA in a follow-up commit (the hash is only known after the
+# formatting commit is created).
+
+# One-time repo-wide formatting commit (dotnet format whitespace + prettier)
+152588b1db59b64bd5249043e870a6db87ed5295
+9a14240ce192dcbed48445ab6251ae33c9f53cbb
+98dd4eae72d03f6cecb8b22ae1ea7583362c69ee
diff --git a/.githooks/pre-commit b/.githooks/pre-commit
new file mode 100755
index 00000000..a9edecd1
--- /dev/null
+++ b/.githooks/pre-commit
@@ -0,0 +1,4 @@
+#!/bin/sh
+# Format staged files with Prettier (and run any other lint-staged tasks).
+# Configuration lives in package.json under "lint-staged".
+exec npx --no-install lint-staged
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
index ce0d54f2..33053282 100644
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- - name: Ask a Question
- url: https://github.com/IgniteUI/igniteui-blazor/discussions/new
- about: Start a Discussion.
- - name: Read the Docs
- url: https://www.infragistics.com/products/ignite-ui-blazor/blazor/components/general-getting-started
- about: Be sure you've read the docs!
+ - name: Ask a Question
+ url: https://github.com/IgniteUI/igniteui-blazor/discussions/new
+ about: Start a Discussion.
+ - name: Read the Docs
+ url: https://www.infragistics.com/products/ignite-ui-blazor/blazor/components/general-getting-started
+ about: Be sure you've read the docs!
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 0caf1ba4..49cab9a4 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -2,14 +2,14 @@ version: 2
updates:
- package-ecosystem: "github-actions"
- directory: "/" # scans .github/workflows/ automatically
+ directory: "/" # scans .github/workflows/ automatically
schedule:
interval: "weekly"
day: "monday"
cooldown:
- default-days: 14 # only propose versions released ≥14 days ago
+ default-days: 14 # only propose versions released ≥14 days ago
groups:
github-actions:
- applies-to: version-updates # security updates bypass grouping — each gets its own fast-track PR
+ applies-to: version-updates # security updates bypass grouping — each gets its own fast-track PR
patterns:
- - "*" # batch all version updates into a single PR
+ - "*" # batch all version updates into a single PR
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ac0be6bb..9fa92bfa 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,6 +28,13 @@ jobs:
9.0.x
10.0.x
+ # Folder mode formats files directly without loading MSBuild projects —
+ # full `dotnet format` corrupts sources on multi-targeted projects
+ # (inserts "Unmerged change from project" conflict markers per TFM;
+ # dotnet/format#1634, see FORMATTING.md).
+ - name: Verify .NET code formatting
+ run: dotnet format whitespace . --folder --exclude templates node_modules --verify-no-changes
+
- name: Setup Node.js
uses: actions/setup-node@v6.4.0
with:
@@ -37,6 +44,9 @@ jobs:
- name: Install npm dependencies
run: npm ci
+ - name: Verify JS/TS formatting
+ run: npm run format:check
+
- name: Build TypeScript/Webpack assets
run: npm run build
diff --git a/.github/workflows/igniteui-blazor-lite-release.yml b/.github/workflows/igniteui-blazor-lite-release.yml
index c2bb7326..0e1df8a7 100644
--- a/.github/workflows/igniteui-blazor-lite-release.yml
+++ b/.github/workflows/igniteui-blazor-lite-release.yml
@@ -16,23 +16,23 @@ jobs:
runs-on: windows-latest
environment: nuget-org-publish
permissions:
- id-token: write # enable Azure OIDC token issuance for this job
+ id-token: write # enable Azure OIDC token issuance for this job
contents: read
-
+
steps:
- name: Checkout repository
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+ uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup .NET SDK
- uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
+ uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
with:
dotnet-version: 10.0.x
- - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: '24'
- registry-url: 'https://registry.npmjs.org'
- package-manager-cache: false # never use caching in release builds
+ node-version: "24"
+ registry-url: "https://registry.npmjs.org"
+ package-manager-cache: false # never use caching in release builds
- name: Install npm dependencies
run: npm ci
@@ -53,7 +53,7 @@ jobs:
run: dotnet build ./src/IgniteUI.Blazor.Lite.csproj --no-restore --configuration Release /p:Version=${{ env.VERSION }} /p:TreatWarningsAsErrors=false
- name: Authenticate to Azure
- uses: azure/login@532459ea530d8321f2fb9bb10d1e0bcf23869a43 # v3.0.0
+ uses: azure/login@532459ea530d8321f2fb9bb10d1e0bcf23869a43 # v3.0.0
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
@@ -103,7 +103,7 @@ jobs:
run: dotnet nuget verify "${{ github.workspace }}/nupkg/IgniteUI.Blazor.Lite.${{ env.VERSION }}.nupkg" -v q
- name: NuGet login (OIDC Trusted Publishing)
- uses: NuGet/login@8d196754b4036150537f80ac539e15c2f1028841 # v1
+ uses: NuGet/login@8d196754b4036150537f80ac539e15c2f1028841 # v1
id: nuget-login
with:
user: ${{ secrets.INFRAGISTICS_NUGET_ORG_USER }}
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index a0fd4cff..ac4a14c1 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -2,7 +2,7 @@ name: Mark stale or close issues and pull requests
on:
schedule:
- - cron: "0 0 * * *"
+ - cron: "0 0 * * *"
jobs:
stale:
@@ -13,14 +13,14 @@ jobs:
pull-requests: write
steps:
- - uses: actions/stale@v10.3.0
- with:
- days-before-issue-stale: 60
- days-before-issue-close: 14
- days-before-pr-close: -1
- repo-token: ${{ secrets.GITHUB_TOKEN }}
- stale-issue-message: 'There has been no recent activity and this issue has been marked inactive.'
- stale-pr-message: 'There has been no recent activity and this PR has been marked inactive.'
- stale-issue-label: 'status: inactive'
- stale-pr-label: 'status: inactive'
- close-issue-message: 'This issue was closed because it has been inactive for 14 days since being marked as stale.'
+ - uses: actions/stale@v10.3.0
+ with:
+ days-before-issue-stale: 60
+ days-before-issue-close: 14
+ days-before-pr-close: -1
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ stale-issue-message: "There has been no recent activity and this issue has been marked inactive."
+ stale-pr-message: "There has been no recent activity and this PR has been marked inactive."
+ stale-issue-label: "status: inactive"
+ stale-pr-label: "status: inactive"
+ close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 00000000..a36999a2
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,15 @@
+# Only tracked files need entries — Prettier 3 also respects .gitignore by
+# default (--ignore-path defaults to ['.gitignore', '.prettierignore']), so
+# build output, node_modules, obj/bin etc. are already excluded.
+
+# Generated (committed) TS interop sources — see FORMATTING.md
+src/src/ig/
+
+# Project templates contain placeholder tokens — leave untouched
+templates/
+
+# Lockfile
+package-lock.json
+
+# Markdown left unformatted for now (tables/changelog churn) — remove to enable
+*.md
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 00000000..49f43edb
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,11 @@
+{
+ "singleQuote": true,
+ "overrides": [
+ {
+ "files": ["*.yml", "*.yaml"],
+ "options": {
+ "singleQuote": false
+ }
+ }
+ ]
+}
diff --git a/Directory.Build.props b/Directory.Build.props
index 0871a39c..e4adda19 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -5,5 +5,8 @@
true
enable
enable
+
+ true
diff --git a/package-lock.json b/package-lock.json
index 4173129e..d93872cf 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -24,7 +24,9 @@
"gulp-flatten": "^0.4.0",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^5.5.0",
+ "lint-staged": "^17.0.8",
"ncp": "^2.0.0",
+ "prettier": "^3.9.5",
"rimraf": "^2.6.1",
"source-map-loader": "^0.2.1",
"style-loader": "^0.22.1",
@@ -1174,6 +1176,22 @@
"node": ">=0.10.0"
}
},
+ "node_modules/ansi-escapes": {
+ "version": "7.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.3.0.tgz",
+ "integrity": "sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "environment": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/ansi-html-community": {
"version": "0.0.8",
"resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz",
@@ -1809,6 +1827,85 @@
"node": ">=0.10.0"
}
},
+ "node_modules/cli-cursor": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz",
+ "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "restore-cursor": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cli-truncate": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-5.2.0.tgz",
+ "integrity": "sha512-xRwvIOMGrfOAnM1JYtqQImuaNtDEv9v6oIYAs4LIHwTiKee8uwvIi363igssOC0O5U04i4AlENs79LQLu9tEMw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "slice-ansi": "^8.0.0",
+ "string-width": "^8.2.0"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cli-truncate/node_modules/ansi-regex": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/cli-truncate/node_modules/string-width": {
+ "version": "8.2.2",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.2.2.tgz",
+ "integrity": "sha512-GaPUh5gfdrYzqeVNZvUfT23vYYxXzKYidUcnMtJg/3rxRV63EFZy3k6xfKlmfeJD0176lnUV/Usr3XcwSvFzpg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "get-east-asian-width": "^1.5.0",
+ "strip-ansi": "^7.1.2"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cli-truncate/node_modules/strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^6.2.2"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
"node_modules/cliui": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
@@ -2524,6 +2621,19 @@
"node": ">=4"
}
},
+ "node_modules/environment": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz",
+ "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/es-define-property": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
@@ -2938,6 +3048,13 @@
"through": "^2.3.8"
}
},
+ "node_modules/eventemitter3": {
+ "version": "5.0.4",
+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz",
+ "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/events": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",
@@ -3331,6 +3448,19 @@
"node": "6.* || 8.* || >= 10.*"
}
},
+ "node_modules/get-east-asian-width": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.6.0.tgz",
+ "integrity": "sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/get-intrinsic": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
@@ -4592,6 +4722,138 @@
"node": ">=0.10.0"
}
},
+ "node_modules/lint-staged": {
+ "version": "17.0.8",
+ "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-17.0.8.tgz",
+ "integrity": "sha512-B2P/d+jVW0UXOQ0MVMLrB/9ydA1P+zz6jYfdrbbEd9ur3S2rcbduFWKiUCC02Sm5hbC8nrm7y24WuYMG54HfxA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "listr2": "^10.2.1",
+ "picomatch": "^4.0.4",
+ "string-argv": "^0.3.2",
+ "tinyexec": "^1.2.4"
+ },
+ "bin": {
+ "lint-staged": "bin/lint-staged.js"
+ },
+ "engines": {
+ "node": ">=22.22.1"
+ },
+ "funding": {
+ "url": "https://opencollective.com/lint-staged"
+ },
+ "optionalDependencies": {
+ "yaml": "^2.9.0"
+ }
+ },
+ "node_modules/lint-staged/node_modules/picomatch": {
+ "version": "4.0.5",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz",
+ "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/listr2": {
+ "version": "10.2.2",
+ "resolved": "https://registry.npmjs.org/listr2/-/listr2-10.2.2.tgz",
+ "integrity": "sha512-JtNtbZj8q5BnDMR7trpwvwk3RIrANtIVzEUm8w7amp6xelLgyuq+4WZoTH913XaQAoH/cNdYhaNzBPA2U3xbDw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cli-truncate": "^5.2.0",
+ "eventemitter3": "^5.0.4",
+ "log-update": "^6.1.0",
+ "rfdc": "^1.4.1",
+ "wrap-ansi": "^10.0.0"
+ },
+ "engines": {
+ "node": ">=22.13.0"
+ }
+ },
+ "node_modules/listr2/node_modules/ansi-regex": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/listr2/node_modules/ansi-styles": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/listr2/node_modules/string-width": {
+ "version": "8.2.2",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.2.2.tgz",
+ "integrity": "sha512-GaPUh5gfdrYzqeVNZvUfT23vYYxXzKYidUcnMtJg/3rxRV63EFZy3k6xfKlmfeJD0176lnUV/Usr3XcwSvFzpg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "get-east-asian-width": "^1.5.0",
+ "strip-ansi": "^7.1.2"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/listr2/node_modules/strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^6.2.2"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/listr2/node_modules/wrap-ansi": {
+ "version": "10.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-10.0.0.tgz",
+ "integrity": "sha512-SGcvg80f0wUy2/fXES19feHMz8E0JoXv2uNgHOu4Dgi2OrCy1lqwFYEJz1BLbDI0exjPMe/ZdzZ/YpGECBG/aQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^6.2.3",
+ "string-width": "^8.2.0",
+ "strip-ansi": "^7.1.2"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
"node_modules/lit": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/lit/-/lit-3.3.2.tgz",
@@ -4671,6 +4933,144 @@
"integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",
"dev": true
},
+ "node_modules/log-update": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/log-update/-/log-update-6.1.0.tgz",
+ "integrity": "sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-escapes": "^7.0.0",
+ "cli-cursor": "^5.0.0",
+ "slice-ansi": "^7.1.0",
+ "strip-ansi": "^7.1.0",
+ "wrap-ansi": "^9.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/log-update/node_modules/ansi-regex": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/log-update/node_modules/ansi-styles": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/log-update/node_modules/emoji-regex": {
+ "version": "10.6.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",
+ "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/log-update/node_modules/is-fullwidth-code-point": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.1.0.tgz",
+ "integrity": "sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "get-east-asian-width": "^1.3.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/log-update/node_modules/slice-ansi": {
+ "version": "7.1.2",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.2.tgz",
+ "integrity": "sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^6.2.1",
+ "is-fullwidth-code-point": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"
+ }
+ },
+ "node_modules/log-update/node_modules/string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/log-update/node_modules/strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^6.2.2"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/log-update/node_modules/wrap-ansi": {
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",
+ "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^6.2.1",
+ "string-width": "^7.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
"node_modules/lower-case": {
"version": "1.1.4",
"dev": true,
@@ -5268,6 +5668,19 @@
"url": "https://opencollective.com/express"
}
},
+ "node_modules/mimic-function": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz",
+ "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/minimatch": {
"version": "3.1.5",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",
@@ -5503,6 +5916,22 @@
"wrappy": "1"
}
},
+ "node_modules/onetime": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz",
+ "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mimic-function": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/open": {
"version": "11.0.0",
"resolved": "https://registry.npmjs.org/open/-/open-11.0.0.tgz",
@@ -6022,6 +6451,22 @@
"node": ">= 0.8.0"
}
},
+ "node_modules/prettier": {
+ "version": "3.9.5",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.5.tgz",
+ "integrity": "sha512-/FVl766LpUfB5vXgCYOYa0MeV/441Ia99AeICQIQFTY/Nw0roZwULcXpku5i1/m5kt/baz+s4Zogspd839HSMg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "prettier": "bin/prettier.cjs"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/prettier/prettier?sponsor=1"
+ }
+ },
"node_modules/pretty-error": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz",
@@ -6317,6 +6762,23 @@
"node": ">= 10.13.0"
}
},
+ "node_modules/restore-cursor": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz",
+ "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "onetime": "^7.0.0",
+ "signal-exit": "^4.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/reusify": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
@@ -6327,6 +6789,13 @@
"node": ">=0.10.0"
}
},
+ "node_modules/rfdc": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz",
+ "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/rimraf": {
"version": "2.7.1",
"dev": true,
@@ -6782,6 +7251,65 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/signal-exit": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/slice-ansi": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-8.0.0.tgz",
+ "integrity": "sha512-stxByr12oeeOyY2BlviTNQlYV5xOj47GirPr4yA1hE9JCtxfQN0+tVbkxwCtYDQWhEKWFHsEK48ORg5jrouCAg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^6.2.3",
+ "is-fullwidth-code-point": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"
+ }
+ },
+ "node_modules/slice-ansi/node_modules/ansi-styles": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.1.0.tgz",
+ "integrity": "sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "get-east-asian-width": "^1.3.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/source-map": {
"version": "0.5.7",
"dev": true,
@@ -6906,6 +7434,16 @@
"safe-buffer": "~5.1.0"
}
},
+ "node_modules/string-argv": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz",
+ "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.6.19"
+ }
+ },
"node_modules/string-width": {
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
@@ -7106,6 +7644,16 @@
"integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==",
"dev": true
},
+ "node_modules/tinyexec": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.2.4.tgz",
+ "integrity": "sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/tinyglobby": {
"version": "0.2.16",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz",
@@ -8389,6 +8937,23 @@
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
"dev": true
},
+ "node_modules/yaml": {
+ "version": "2.9.0",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz",
+ "integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==",
+ "dev": true,
+ "license": "ISC",
+ "optional": true,
+ "bin": {
+ "yaml": "bin.mjs"
+ },
+ "engines": {
+ "node": ">= 14.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/eemeli"
+ }
+ },
"node_modules/yargs": {
"version": "17.7.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
@@ -9425,6 +9990,15 @@
"ansi-wrap": "0.1.0"
}
},
+ "ansi-escapes": {
+ "version": "7.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.3.0.tgz",
+ "integrity": "sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg==",
+ "dev": true,
+ "requires": {
+ "environment": "^1.0.0"
+ }
+ },
"ansi-html-community": {
"version": "0.0.8",
"resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz",
@@ -9836,6 +10410,52 @@
}
}
},
+ "cli-cursor": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz",
+ "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==",
+ "dev": true,
+ "requires": {
+ "restore-cursor": "^5.0.0"
+ }
+ },
+ "cli-truncate": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-5.2.0.tgz",
+ "integrity": "sha512-xRwvIOMGrfOAnM1JYtqQImuaNtDEv9v6oIYAs4LIHwTiKee8uwvIi363igssOC0O5U04i4AlENs79LQLu9tEMw==",
+ "dev": true,
+ "requires": {
+ "slice-ansi": "^8.0.0",
+ "string-width": "^8.2.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
+ "dev": true
+ },
+ "string-width": {
+ "version": "8.2.2",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.2.2.tgz",
+ "integrity": "sha512-GaPUh5gfdrYzqeVNZvUfT23vYYxXzKYidUcnMtJg/3rxRV63EFZy3k6xfKlmfeJD0176lnUV/Usr3XcwSvFzpg==",
+ "dev": true,
+ "requires": {
+ "get-east-asian-width": "^1.5.0",
+ "strip-ansi": "^7.1.2"
+ }
+ },
+ "strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^6.2.2"
+ }
+ }
+ }
+ },
"cliui": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
@@ -10355,6 +10975,12 @@
"integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==",
"dev": true
},
+ "environment": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz",
+ "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==",
+ "dev": true
+ },
"es-define-property": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
@@ -10643,6 +11269,12 @@
"through": "^2.3.8"
}
},
+ "eventemitter3": {
+ "version": "5.0.4",
+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz",
+ "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==",
+ "dev": true
+ },
"events": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",
@@ -10943,6 +11575,12 @@
"version": "2.0.5",
"dev": true
},
+ "get-east-asian-width": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.6.0.tgz",
+ "integrity": "sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==",
+ "dev": true
+ },
"get-intrinsic": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
@@ -11821,6 +12459,84 @@
}
}
},
+ "lint-staged": {
+ "version": "17.0.8",
+ "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-17.0.8.tgz",
+ "integrity": "sha512-B2P/d+jVW0UXOQ0MVMLrB/9ydA1P+zz6jYfdrbbEd9ur3S2rcbduFWKiUCC02Sm5hbC8nrm7y24WuYMG54HfxA==",
+ "dev": true,
+ "requires": {
+ "listr2": "^10.2.1",
+ "picomatch": "^4.0.4",
+ "string-argv": "^0.3.2",
+ "tinyexec": "^1.2.4",
+ "yaml": "^2.9.0"
+ },
+ "dependencies": {
+ "picomatch": {
+ "version": "4.0.5",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz",
+ "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==",
+ "dev": true
+ }
+ }
+ },
+ "listr2": {
+ "version": "10.2.2",
+ "resolved": "https://registry.npmjs.org/listr2/-/listr2-10.2.2.tgz",
+ "integrity": "sha512-JtNtbZj8q5BnDMR7trpwvwk3RIrANtIVzEUm8w7amp6xelLgyuq+4WZoTH913XaQAoH/cNdYhaNzBPA2U3xbDw==",
+ "dev": true,
+ "requires": {
+ "cli-truncate": "^5.2.0",
+ "eventemitter3": "^5.0.4",
+ "log-update": "^6.1.0",
+ "rfdc": "^1.4.1",
+ "wrap-ansi": "^10.0.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
+ "dev": true
+ },
+ "string-width": {
+ "version": "8.2.2",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.2.2.tgz",
+ "integrity": "sha512-GaPUh5gfdrYzqeVNZvUfT23vYYxXzKYidUcnMtJg/3rxRV63EFZy3k6xfKlmfeJD0176lnUV/Usr3XcwSvFzpg==",
+ "dev": true,
+ "requires": {
+ "get-east-asian-width": "^1.5.0",
+ "strip-ansi": "^7.1.2"
+ }
+ },
+ "strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^6.2.2"
+ }
+ },
+ "wrap-ansi": {
+ "version": "10.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-10.0.0.tgz",
+ "integrity": "sha512-SGcvg80f0wUy2/fXES19feHMz8E0JoXv2uNgHOu4Dgi2OrCy1lqwFYEJz1BLbDI0exjPMe/ZdzZ/YpGECBG/aQ==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^6.2.3",
+ "string-width": "^8.2.0",
+ "strip-ansi": "^7.1.2"
+ }
+ }
+ }
+ },
"lit": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/lit/-/lit-3.3.2.tgz",
@@ -11881,6 +12597,89 @@
"integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",
"dev": true
},
+ "log-update": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/log-update/-/log-update-6.1.0.tgz",
+ "integrity": "sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==",
+ "dev": true,
+ "requires": {
+ "ansi-escapes": "^7.0.0",
+ "cli-cursor": "^5.0.0",
+ "slice-ansi": "^7.1.0",
+ "strip-ansi": "^7.1.0",
+ "wrap-ansi": "^9.0.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
+ "dev": true
+ },
+ "emoji-regex": {
+ "version": "10.6.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",
+ "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.1.0.tgz",
+ "integrity": "sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==",
+ "dev": true,
+ "requires": {
+ "get-east-asian-width": "^1.3.1"
+ }
+ },
+ "slice-ansi": {
+ "version": "7.1.2",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.2.tgz",
+ "integrity": "sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^6.2.1",
+ "is-fullwidth-code-point": "^5.0.0"
+ }
+ },
+ "string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ }
+ },
+ "strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^6.2.2"
+ }
+ },
+ "wrap-ansi": {
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",
+ "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^6.2.1",
+ "string-width": "^7.0.0",
+ "strip-ansi": "^7.1.0"
+ }
+ }
+ }
+ },
"lower-case": {
"version": "1.1.4",
"dev": true
@@ -12217,6 +13016,12 @@
"mime-db": "^1.54.0"
}
},
+ "mimic-function": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz",
+ "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==",
+ "dev": true
+ },
"minimatch": {
"version": "3.1.5",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",
@@ -12381,6 +13186,15 @@
"wrappy": "1"
}
},
+ "onetime": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz",
+ "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==",
+ "dev": true,
+ "requires": {
+ "mimic-function": "^5.0.0"
+ }
+ },
"open": {
"version": "11.0.0",
"resolved": "https://registry.npmjs.org/open/-/open-11.0.0.tgz",
@@ -12736,6 +13550,12 @@
"integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
"dev": true
},
+ "prettier": {
+ "version": "3.9.5",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.5.tgz",
+ "integrity": "sha512-/FVl766LpUfB5vXgCYOYa0MeV/441Ia99AeICQIQFTY/Nw0roZwULcXpku5i1/m5kt/baz+s4Zogspd839HSMg==",
+ "dev": true
+ },
"pretty-error": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz",
@@ -12955,12 +13775,28 @@
"value-or-function": "^4.0.0"
}
},
+ "restore-cursor": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz",
+ "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==",
+ "dev": true,
+ "requires": {
+ "onetime": "^7.0.0",
+ "signal-exit": "^4.1.0"
+ }
+ },
"reusify": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
"integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",
"dev": true
},
+ "rfdc": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz",
+ "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==",
+ "dev": true
+ },
"rimraf": {
"version": "2.7.1",
"dev": true,
@@ -13283,6 +14119,39 @@
"side-channel-map": "^1.0.1"
}
},
+ "signal-exit": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
+ "dev": true
+ },
+ "slice-ansi": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-8.0.0.tgz",
+ "integrity": "sha512-stxByr12oeeOyY2BlviTNQlYV5xOj47GirPr4yA1hE9JCtxfQN0+tVbkxwCtYDQWhEKWFHsEK48ORg5jrouCAg==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^6.2.3",
+ "is-fullwidth-code-point": "^5.1.0"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.1.0.tgz",
+ "integrity": "sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==",
+ "dev": true,
+ "requires": {
+ "get-east-asian-width": "^1.3.1"
+ }
+ }
+ }
+ },
"source-map": {
"version": "0.5.7",
"dev": true
@@ -13381,6 +14250,12 @@
"safe-buffer": "~5.1.0"
}
},
+ "string-argv": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz",
+ "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==",
+ "dev": true
+ },
"string-width": {
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
@@ -13524,6 +14399,12 @@
"integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==",
"dev": true
},
+ "tinyexec": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.2.4.tgz",
+ "integrity": "sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==",
+ "dev": true
+ },
"tinyglobby": {
"version": "0.2.16",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz",
@@ -14389,6 +15270,13 @@
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
"dev": true
},
+ "yaml": {
+ "version": "2.9.0",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz",
+ "integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==",
+ "dev": true,
+ "optional": true
+ },
"yargs": {
"version": "17.7.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
diff --git a/package.json b/package.json
index 8ccb729d..481bd762 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,13 @@
"build": "cross-env NODE_ENV=production node node_modules/webpack/bin/webpack.js --mode production --config ./webpack.config.js --color --bail",
"build:dev": "cross-env NODE_ENV=development node node_modules/webpack/bin/webpack.js --mode development --config ./webpack.config.js --color --bail",
"copythemes": "ncp node_modules/igniteui-webcomponents/themes ./src/wwwroot/themes",
- "ingest": "gulp"
+ "ingest": "gulp",
+ "format": "prettier --write .",
+ "format:check": "prettier --check .",
+ "prepare": "git config core.hooksPath .githooks"
+ },
+ "lint-staged": {
+ "*.{js,ts,json,yml,yaml,css}": "prettier --write"
},
"author": "",
"license": "ISC",
@@ -23,7 +29,9 @@
"gulp-flatten": "^0.4.0",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^5.5.0",
+ "lint-staged": "^17.0.8",
"ncp": "^2.0.0",
+ "prettier": "^3.9.5",
"rimraf": "^2.6.1",
"source-map-loader": "^0.2.1",
"style-loader": "^0.22.1",
diff --git a/src/components/Blazor/AbsolutePosition.cs b/src/components/Blazor/AbsolutePosition.cs
index c8dca940..1ccd3373 100644
--- a/src/components/Blazor/AbsolutePosition.cs
+++ b/src/components/Blazor/AbsolutePosition.cs
@@ -1,9 +1,10 @@
namespace IgniteUI.Blazor.Controls
{
-public enum AbsolutePosition {
- Bottom,
- Middle,
- Top
+ public enum AbsolutePosition
+ {
+ Bottom,
+ Middle,
+ Top
-}
+ }
}
diff --git a/src/components/Blazor/Accordion.cs b/src/components/Blazor/Accordion.cs
index 6fcf331a..f168d47a 100644
--- a/src/components/Blazor/Accordion.cs
+++ b/src/components/Blazor/Accordion.cs
@@ -1,394 +1,416 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- ///
-/// The Accordion is a container-based component that can house multiple expansion panels
-/// and offers keyboard navigation.
-///
-public partial class IgbAccordion: BaseRendererControl {
- public override string Type { get { return "WebAccordion"; } }
-
- protected override void EnsureModulesLoaded()
- {
- if (!IgbAccordionModule.IsLoadRequested(IgBlazor))
- {
- IgbAccordionModule.Register(IgBlazor);
- }
- }
-
- protected override string ResolveDisplay()
+ ///
+ /// The Accordion is a container-based component that can house multiple expansion panels
+ /// and offers keyboard navigation.
+ ///
+ public partial class IgbAccordion : BaseRendererControl
+ {
+ public override string Type { get { return "WebAccordion"; } }
+
+ protected override void EnsureModulesLoaded()
+ {
+ if (!IgbAccordionModule.IsLoadRequested(IgBlazor))
+ {
+ IgbAccordionModule.Register(IgBlazor);
+ }
+ }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override bool UseDirectRender
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override string DirectRenderElementName
+ {
+ get
+ {
+ return "igc-accordion";
+ }
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Immediate; }
+ }
+
+ public IgbAccordion() : base()
+ {
+ OnCreatedIgbAccordion();
+
+ }
+
+ partial void OnCreatedIgbAccordion();
+
+ private bool _singleExpand = false;
+
+ partial void OnSingleExpandChanging(ref bool newValue);
+ ///
+ /// Allows only one panel to be expanded at a time.
+ ///
+ [Parameter]
+ public bool SingleExpand
+ {
+ get { return this._singleExpand; }
+ set
+ {
+ if (this._singleExpand != value || !IsPropDirty("SingleExpand"))
+ {
+ MarkPropDirty("SingleExpand");
+ }
+ this._singleExpand = value;
+
+ }
+ }
+
+ partial void FindByNameAccordion(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameAccordion(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ ///
+ /// Hides all of the child expansion panels' contents.
+ ///
+ public async Task HideAllAsync()
+ {
+ await InvokeMethod("hideAll", new object[] { }, new string[] { });
+ }
+ public void HideAll()
+ {
+ InvokeMethodSync("hideAll", new object[] { }, new string[] { });
+ }
+ ///
+ /// Shows all of the child expansion panels' contents.
+ ///
+ public async Task ShowAllAsync()
+ {
+ await InvokeMethod("showAll", new object[] { }, new string[] { });
+ }
+ public void ShowAll()
+ {
+ InvokeMethodSync("showAll", new object[] { }, new string[] { });
+ }
+
+ private string _openingRef = null;
+ private string _openingScript = null;
+ [Parameter]
+ public string OpeningScript
+ {
+
+ set
+ {
+ if (value != this._openingScript)
+ {
+ this._openingScript = value;
+ this.OnRefChanged("Opening", null, value, true, false, (string refName, object oldValue, object newValue) =>
+ {
+ this._openingRef = refName;
+ this.MarkPropDirty("OpeningRef");
+ });
+ }
+ }
+ get
+ {
+ return this._openingScript;
+ }
+ }
+
+ partial void OnHandlingOpening(IgbExpansionPanelComponentEventArgs args);
+ private EventCallback? _opening = null;
+ [Parameter]
+ public EventCallback Opening
+ {
+ get
+ {
+ return this._opening != null ? this._opening.Value : EventCallback.Empty;
+ }
+ set
+ {
+ if (!value.Equals(EventCallback.Empty))
+ {
+ if (!CompareEventCallbacks(value, _opening, ref eventCallbacksCache))
+ {
+ _opening = value;
+ this.SetHandler(this.Name, "Opening", value, (args) =>
{
- return "inline-block";
- }
+ OnHandlingOpening(args);
- protected override bool SupportsVisualChildren
+ });
+ this.OnRefChanged("Opening", null, "event:::Opening", true, false, (refName, oldValue, newValue) =>
{
- get
- {
- return true;
- }
- }
+ this._openingRef = refName;
+ this.MarkPropDirty("OpeningRef");
+ });
+ }
+ }
+ else
+ {
+ _opening = null;
+ this.SetHandler(this.Name, "Opening", null);
+ this.OnRefChanged("Opening", null, null, true, false, (refName, oldValue, newValue) =>
+ {
+ this._openingRef = null;
+ this.MarkPropDirty("OpeningRef");
+ });
+ }
+ }
+ }
+
+ private string _openedRef = null;
+ private string _openedScript = null;
+ [Parameter]
+ public string OpenedScript
+ {
- protected override bool UseDirectRender
+ set
+ {
+ if (value != this._openedScript)
+ {
+ this._openedScript = value;
+ this.OnRefChanged("Opened", null, value, true, false, (string refName, object oldValue, object newValue) =>
+ {
+ this._openedRef = refName;
+ this.MarkPropDirty("OpenedRef");
+ });
+ }
+ }
+ get
+ {
+ return this._openedScript;
+ }
+ }
+
+ partial void OnHandlingOpened(IgbExpansionPanelComponentEventArgs args);
+ private EventCallback? _opened = null;
+ [Parameter]
+ public EventCallback Opened
+ {
+ get
+ {
+ return this._opened != null ? this._opened.Value : EventCallback.Empty;
+ }
+ set
+ {
+ if (!value.Equals(EventCallback.Empty))
+ {
+ if (!CompareEventCallbacks(value, _opened, ref eventCallbacksCache))
+ {
+ _opened = value;
+ this.SetHandler(this.Name, "Opened", value, (args) =>
{
- get
- {
- return true;
- }
- }
+ OnHandlingOpened(args);
- protected override string DirectRenderElementName
+ });
+ this.OnRefChanged("Opened", null, "event:::Opened", true, false, (refName, oldValue, newValue) =>
{
- get
- {
- return "igc-accordion";
- }
- }
-
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Immediate; }
- }
-
- public IgbAccordion(): base() {
- OnCreatedIgbAccordion();
-
-
- }
-
- partial void OnCreatedIgbAccordion();
-
- private bool _singleExpand = false;
-
- partial void OnSingleExpandChanging(ref bool newValue);
- ///
- /// Allows only one panel to be expanded at a time.
- ///
- [Parameter]
- public bool SingleExpand
- {
- get { return this._singleExpand; }
- set {
- if (this._singleExpand != value || !IsPropDirty("SingleExpand")) {
- MarkPropDirty("SingleExpand");
- }
- this._singleExpand = value;
-
- }
- }
-
- partial void FindByNameAccordion(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameAccordion(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- ///
- /// Hides all of the child expansion panels' contents.
- ///
- public async Task HideAllAsync()
- {
- await InvokeMethod("hideAll", new object[] { }, new string[] { });
- }
- public void HideAll()
- {
- InvokeMethodSync("hideAll", new object[] { }, new string[] { });
- }
- ///
- /// Shows all of the child expansion panels' contents.
- ///
- public async Task ShowAllAsync()
- {
- await InvokeMethod("showAll", new object[] { }, new string[] { });
- }
- public void ShowAll()
- {
- InvokeMethodSync("showAll", new object[] { }, new string[] { });
- }
-
- private string _openingRef = null;
- private string _openingScript = null;
- [Parameter]
- public string OpeningScript {
-
- set
- {
- if (value != this._openingScript)
- {
- this._openingScript = value;
- this.OnRefChanged("Opening", null, value, true, false, (string refName, object oldValue, object newValue) => {
- this._openingRef = refName;
- this.MarkPropDirty("OpeningRef");
- });
- }
- }
- get
- {
- return this._openingScript;
- }
- }
-
- partial void OnHandlingOpening(IgbExpansionPanelComponentEventArgs args);
- private EventCallback? _opening = null;
- [Parameter]
- public EventCallback Opening
- {
- get
- {
- return this._opening != null ? this._opening.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _opening, ref eventCallbacksCache))
- {
- _opening = value;
- this.SetHandler(this.Name, "Opening", value, (args) => {
- OnHandlingOpening(args);
-
- });
- this.OnRefChanged("Opening", null, "event:::Opening", true, false, (refName, oldValue, newValue) => {
- this._openingRef = refName;
- this.MarkPropDirty("OpeningRef");
- });
- }
- }
- else
- {
- _opening = null;
- this.SetHandler(this.Name, "Opening", null);
- this.OnRefChanged("Opening", null, null, true, false, (refName, oldValue, newValue) => {
- this._openingRef = null;
- this.MarkPropDirty("OpeningRef");
- });
- }
- }
- }
-
- private string _openedRef = null;
- private string _openedScript = null;
- [Parameter]
- public string OpenedScript {
-
- set
- {
- if (value != this._openedScript)
- {
- this._openedScript = value;
- this.OnRefChanged("Opened", null, value, true, false, (string refName, object oldValue, object newValue) => {
- this._openedRef = refName;
- this.MarkPropDirty("OpenedRef");
- });
- }
- }
- get
- {
- return this._openedScript;
- }
- }
-
- partial void OnHandlingOpened(IgbExpansionPanelComponentEventArgs args);
- private EventCallback? _opened = null;
- [Parameter]
- public EventCallback Opened
- {
- get
- {
- return this._opened != null ? this._opened.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _opened, ref eventCallbacksCache))
- {
- _opened = value;
- this.SetHandler(this.Name, "Opened", value, (args) => {
- OnHandlingOpened(args);
-
- });
- this.OnRefChanged("Opened", null, "event:::Opened", true, false, (refName, oldValue, newValue) => {
- this._openedRef = refName;
- this.MarkPropDirty("OpenedRef");
- });
- }
- }
- else
- {
- _opened = null;
- this.SetHandler(this.Name, "Opened", null);
- this.OnRefChanged("Opened", null, null, true, false, (refName, oldValue, newValue) => {
- this._openedRef = null;
- this.MarkPropDirty("OpenedRef");
- });
- }
- }
- }
-
- private string _closingRef = null;
- private string _closingScript = null;
- [Parameter]
- public string ClosingScript {
-
- set
- {
- if (value != this._closingScript)
- {
- this._closingScript = value;
- this.OnRefChanged("Closing", null, value, true, false, (string refName, object oldValue, object newValue) => {
- this._closingRef = refName;
- this.MarkPropDirty("ClosingRef");
- });
- }
- }
- get
- {
- return this._closingScript;
- }
- }
-
- partial void OnHandlingClosing(IgbExpansionPanelComponentEventArgs args);
- private EventCallback? _closing = null;
- [Parameter]
- public EventCallback Closing
- {
- get
- {
- return this._closing != null ? this._closing.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _closing, ref eventCallbacksCache))
- {
- _closing = value;
- this.SetHandler(this.Name, "Closing", value, (args) => {
- OnHandlingClosing(args);
-
- });
- this.OnRefChanged("Closing", null, "event:::Closing", true, false, (refName, oldValue, newValue) => {
- this._closingRef = refName;
- this.MarkPropDirty("ClosingRef");
- });
- }
- }
- else
- {
- _closing = null;
- this.SetHandler(this.Name, "Closing", null);
- this.OnRefChanged("Closing", null, null, true, false, (refName, oldValue, newValue) => {
- this._closingRef = null;
- this.MarkPropDirty("ClosingRef");
- });
- }
- }
- }
-
- private string _closedRef = null;
- private string _closedScript = null;
- [Parameter]
- public string ClosedScript {
-
- set
- {
- if (value != this._closedScript)
- {
- this._closedScript = value;
- this.OnRefChanged("Closed", null, value, true, false, (string refName, object oldValue, object newValue) => {
- this._closedRef = refName;
- this.MarkPropDirty("ClosedRef");
- });
- }
- }
- get
- {
- return this._closedScript;
- }
- }
-
- partial void OnHandlingClosed(IgbExpansionPanelComponentEventArgs args);
- private EventCallback? _closed = null;
- [Parameter]
- public EventCallback Closed
- {
- get
- {
- return this._closed != null ? this._closed.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _closed, ref eventCallbacksCache))
- {
- _closed = value;
- this.SetHandler(this.Name, "Closed", value, (args) => {
- OnHandlingClosed(args);
-
- });
- this.OnRefChanged("Closed", null, "event:::Closed", true, false, (refName, oldValue, newValue) => {
- this._closedRef = refName;
- this.MarkPropDirty("ClosedRef");
- });
- }
- }
- else
- {
- _closed = null;
- this.SetHandler(this.Name, "Closed", null);
- this.OnRefChanged("Closed", null, null, true, false, (refName, oldValue, newValue) => {
- this._closedRef = null;
- this.MarkPropDirty("ClosedRef");
- });
- }
- }
- }
-
- partial void SerializeCoreIgbAccordion(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbAccordion(ser);
-
- if (IsPropDirty("SingleExpand")) { ser.AddBooleanProp("singleExpand", this._singleExpand); }
- if (IsPropDirty("OpeningRef")) { ser.AddStringProp("openingRef", this._openingRef); }
- if (IsPropDirty("OpenedRef")) { ser.AddStringProp("openedRef", this._openedRef); }
- if (IsPropDirty("ClosingRef")) { ser.AddStringProp("closingRef", this._closingRef); }
- if (IsPropDirty("ClosedRef")) { ser.AddStringProp("closedRef", this._closedRef); }
-
- }
-
-}
+ this._openedRef = refName;
+ this.MarkPropDirty("OpenedRef");
+ });
+ }
+ }
+ else
+ {
+ _opened = null;
+ this.SetHandler(this.Name, "Opened", null);
+ this.OnRefChanged("Opened", null, null, true, false, (refName, oldValue, newValue) =>
+ {
+ this._openedRef = null;
+ this.MarkPropDirty("OpenedRef");
+ });
+ }
+ }
+ }
+
+ private string _closingRef = null;
+ private string _closingScript = null;
+ [Parameter]
+ public string ClosingScript
+ {
+
+ set
+ {
+ if (value != this._closingScript)
+ {
+ this._closingScript = value;
+ this.OnRefChanged("Closing", null, value, true, false, (string refName, object oldValue, object newValue) =>
+ {
+ this._closingRef = refName;
+ this.MarkPropDirty("ClosingRef");
+ });
+ }
+ }
+ get
+ {
+ return this._closingScript;
+ }
+ }
+
+ partial void OnHandlingClosing(IgbExpansionPanelComponentEventArgs args);
+ private EventCallback? _closing = null;
+ [Parameter]
+ public EventCallback Closing
+ {
+ get
+ {
+ return this._closing != null ? this._closing.Value : EventCallback.Empty;
+ }
+ set
+ {
+ if (!value.Equals(EventCallback.Empty))
+ {
+ if (!CompareEventCallbacks(value, _closing, ref eventCallbacksCache))
+ {
+ _closing = value;
+ this.SetHandler(this.Name, "Closing", value, (args) =>
+ {
+ OnHandlingClosing(args);
+
+ });
+ this.OnRefChanged("Closing", null, "event:::Closing", true, false, (refName, oldValue, newValue) =>
+ {
+ this._closingRef = refName;
+ this.MarkPropDirty("ClosingRef");
+ });
+ }
+ }
+ else
+ {
+ _closing = null;
+ this.SetHandler(this.Name, "Closing", null);
+ this.OnRefChanged("Closing", null, null, true, false, (refName, oldValue, newValue) =>
+ {
+ this._closingRef = null;
+ this.MarkPropDirty("ClosingRef");
+ });
+ }
+ }
+ }
+
+ private string _closedRef = null;
+ private string _closedScript = null;
+ [Parameter]
+ public string ClosedScript
+ {
+
+ set
+ {
+ if (value != this._closedScript)
+ {
+ this._closedScript = value;
+ this.OnRefChanged("Closed", null, value, true, false, (string refName, object oldValue, object newValue) =>
+ {
+ this._closedRef = refName;
+ this.MarkPropDirty("ClosedRef");
+ });
+ }
+ }
+ get
+ {
+ return this._closedScript;
+ }
+ }
+
+ partial void OnHandlingClosed(IgbExpansionPanelComponentEventArgs args);
+ private EventCallback? _closed = null;
+ [Parameter]
+ public EventCallback Closed
+ {
+ get
+ {
+ return this._closed != null ? this._closed.Value : EventCallback.Empty;
+ }
+ set
+ {
+ if (!value.Equals(EventCallback.Empty))
+ {
+ if (!CompareEventCallbacks(value, _closed, ref eventCallbacksCache))
+ {
+ _closed = value;
+ this.SetHandler(this.Name, "Closed", value, (args) =>
+ {
+ OnHandlingClosed(args);
+
+ });
+ this.OnRefChanged("Closed", null, "event:::Closed", true, false, (refName, oldValue, newValue) =>
+ {
+ this._closedRef = refName;
+ this.MarkPropDirty("ClosedRef");
+ });
+ }
+ }
+ else
+ {
+ _closed = null;
+ this.SetHandler(this.Name, "Closed", null);
+ this.OnRefChanged("Closed", null, null, true, false, (refName, oldValue, newValue) =>
+ {
+ this._closedRef = null;
+ this.MarkPropDirty("ClosedRef");
+ });
+ }
+ }
+ }
+
+ partial void SerializeCoreIgbAccordion(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbAccordion(ser);
+
+ if (IsPropDirty("SingleExpand"))
+ { ser.AddBooleanProp("singleExpand", this._singleExpand); }
+ if (IsPropDirty("OpeningRef"))
+ { ser.AddStringProp("openingRef", this._openingRef); }
+ if (IsPropDirty("OpenedRef"))
+ { ser.AddStringProp("openedRef", this._openedRef); }
+ if (IsPropDirty("ClosingRef"))
+ { ser.AddStringProp("closingRef", this._closingRef); }
+ if (IsPropDirty("ClosedRef"))
+ { ser.AddStringProp("closedRef", this._closedRef); }
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/AccordionModule.cs b/src/components/Blazor/AccordionModule.cs
index 69403f3d..d737ba1c 100644
--- a/src/components/Blazor/AccordionModule.cs
+++ b/src/components/Blazor/AccordionModule.cs
@@ -1,23 +1,20 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-using System.Text;
-using System.Collections.Generic;
-
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbAccordionModule {
- public static void Register(IIgniteUIBlazor runtime) {
+ public partial class IgbAccordionModule
+ {
+ public static void Register(IIgniteUIBlazor runtime)
+ {
ModuleLoader.Load(runtime, "WebAccordionModule");
-
}
- public static void MarkIsLoadRequested(IIgniteUIBlazor runtime) {
+ public static void MarkIsLoadRequested(IIgniteUIBlazor runtime)
+ {
ModuleLoader.MarkIsLoadRequested(runtime, "WebAccordionModule");
}
- public static bool IsLoadRequested(IIgniteUIBlazor runtime) {
+ public static bool IsLoadRequested(IIgniteUIBlazor runtime)
+ {
return ModuleLoader.IsLoadRequested(runtime, "WebAccordionModule");
}
}
diff --git a/src/components/Blazor/ActiveStepChangedEventArgs.cs b/src/components/Blazor/ActiveStepChangedEventArgs.cs
index 6b9b31cf..6b8b6eb9 100644
--- a/src/components/Blazor/ActiveStepChangedEventArgs.cs
+++ b/src/components/Blazor/ActiveStepChangedEventArgs.cs
@@ -1,99 +1,97 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbActiveStepChangedEventArgs: BaseRendererElement {
- public override string Type { get { return "WebActiveStepChangedEventArgs"; } }
-
-
- private static bool _marshalByValue = true;
-
- public IgbActiveStepChangedEventArgs(): base() {
- OnCreatedIgbActiveStepChangedEventArgs();
-
-
- }
-
- partial void OnCreatedIgbActiveStepChangedEventArgs();
-
- private IgbActiveStepChangedEventArgsDetail _detail;
-
- partial void OnDetailChanging(ref IgbActiveStepChangedEventArgsDetail newValue);
- [Parameter]
- public IgbActiveStepChangedEventArgsDetail Detail
- {
- get { return this._detail; }
- set {
- OnDetailChanging(ref value);
- MarkPropDirty("Detail");
- if (this._detail != null) {
- this.DetachChild(this._detail);
- }
- if (value != null) {
- this.AttachChild(value);
- }
- this._detail = value;
- }
-
- }
-
- partial void FindByNameActiveStepChangedEventArgs(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameActiveStepChangedEventArgs(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
-
- partial void SerializeCoreIgbActiveStepChangedEventArgs(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbActiveStepChangedEventArgs(ser);
-
- if (IsPropDirty("Detail")) { ser.AddSerializableProp("detail", this._detail); }
-
- }
-
-
- protected internal override void ToEventJson(BaseRendererControl control, Dictionary args)
- {
- base.ToEventJson(control, args);
-
- if (IsPropDirty("Detail")) { args["detail"] = ObjectToParam(this._detail); }
-
-
- }
-
-
- protected internal override void FromEventJson(BaseRendererControl control, Dictionary args) {
- base.FromEventJson(control, args);
- this.SuppressParentNotify = true;
-
- if (args.ContainsKey("detail")) { this.Detail = (IgbActiveStepChangedEventArgsDetail)ConvertReturnValue(args["detail"], "ActiveStepChangedEventArgsDetail", true); }
-
- this.SuppressParentNotify = false;
- }
-
-}
+ public partial class IgbActiveStepChangedEventArgs : BaseRendererElement
+ {
+ public override string Type { get { return "WebActiveStepChangedEventArgs"; } }
+
+ private static bool _marshalByValue = true;
+
+ public IgbActiveStepChangedEventArgs() : base()
+ {
+ OnCreatedIgbActiveStepChangedEventArgs();
+
+ }
+
+ partial void OnCreatedIgbActiveStepChangedEventArgs();
+
+ private IgbActiveStepChangedEventArgsDetail _detail;
+
+ partial void OnDetailChanging(ref IgbActiveStepChangedEventArgsDetail newValue);
+ [Parameter]
+ public IgbActiveStepChangedEventArgsDetail Detail
+ {
+ get { return this._detail; }
+ set
+ {
+ OnDetailChanging(ref value);
+ MarkPropDirty("Detail");
+ if (this._detail != null)
+ {
+ this.DetachChild(this._detail);
+ }
+ if (value != null)
+ {
+ this.AttachChild(value);
+ }
+ this._detail = value;
+ }
+
+ }
+
+ partial void FindByNameActiveStepChangedEventArgs(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameActiveStepChangedEventArgs(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+
+ partial void SerializeCoreIgbActiveStepChangedEventArgs(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbActiveStepChangedEventArgs(ser);
+
+ if (IsPropDirty("Detail"))
+ { ser.AddSerializableProp("detail", this._detail); }
+
+ }
+
+ protected internal override void ToEventJson(BaseRendererControl control, Dictionary args)
+ {
+ base.ToEventJson(control, args);
+
+ if (IsPropDirty("Detail"))
+ { args["detail"] = ObjectToParam(this._detail); }
+
+ }
+
+ protected internal override void FromEventJson(BaseRendererControl control, Dictionary args)
+ {
+ base.FromEventJson(control, args);
+ this.SuppressParentNotify = true;
+
+ if (args.ContainsKey("detail"))
+ { this.Detail = (IgbActiveStepChangedEventArgsDetail)ConvertReturnValue(args["detail"], "ActiveStepChangedEventArgsDetail", true); }
+
+ this.SuppressParentNotify = false;
+ }
+
+ }
}
diff --git a/src/components/Blazor/ActiveStepChangedEventArgsDetail.cs b/src/components/Blazor/ActiveStepChangedEventArgsDetail.cs
index c2e59916..a1db0bd8 100644
--- a/src/components/Blazor/ActiveStepChangedEventArgsDetail.cs
+++ b/src/components/Blazor/ActiveStepChangedEventArgsDetail.cs
@@ -1,94 +1,91 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbActiveStepChangedEventArgsDetail: BaseRendererElement {
- public override string Type { get { return "WebActiveStepChangedEventArgsDetail"; } }
-
-
- private static bool _marshalByValue = true;
-
- public IgbActiveStepChangedEventArgsDetail(): base() {
- OnCreatedIgbActiveStepChangedEventArgsDetail();
-
-
- }
-
- partial void OnCreatedIgbActiveStepChangedEventArgsDetail();
-
- private double _index = 0;
-
- partial void OnIndexChanging(ref double newValue);
- [Parameter]
- public double Index
- {
- get { return this._index; }
- set {
- if (this._index != value || !IsPropDirty("Index")) {
- MarkPropDirty("Index");
- }
- this._index = value;
-
- }
- }
-
- partial void FindByNameActiveStepChangedEventArgsDetail(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameActiveStepChangedEventArgsDetail(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
-
- partial void SerializeCoreIgbActiveStepChangedEventArgsDetail(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbActiveStepChangedEventArgsDetail(ser);
-
- if (IsPropDirty("Index")) { ser.AddNumberProp("index", this._index); }
-
- }
-
-
- protected internal override void ToEventJson(BaseRendererControl control, Dictionary args)
- {
- base.ToEventJson(control, args);
-
- if (IsPropDirty("Index")) { args["index"] = (this._index).ToString(); }
-
-
- }
-
-
- protected internal override void FromEventJson(BaseRendererControl control, Dictionary args) {
- base.FromEventJson(control, args);
- this.SuppressParentNotify = true;
-
- if (args.ContainsKey("index")) { this.Index = ReturnToDouble(args["index"]); }
-
- this.SuppressParentNotify = false;
- }
-
-}
+ public partial class IgbActiveStepChangedEventArgsDetail : BaseRendererElement
+ {
+ public override string Type { get { return "WebActiveStepChangedEventArgsDetail"; } }
+
+ private static bool _marshalByValue = true;
+
+ public IgbActiveStepChangedEventArgsDetail() : base()
+ {
+ OnCreatedIgbActiveStepChangedEventArgsDetail();
+
+ }
+
+ partial void OnCreatedIgbActiveStepChangedEventArgsDetail();
+
+ private double _index = 0;
+
+ partial void OnIndexChanging(ref double newValue);
+ [Parameter]
+ public double Index
+ {
+ get { return this._index; }
+ set
+ {
+ if (this._index != value || !IsPropDirty("Index"))
+ {
+ MarkPropDirty("Index");
+ }
+ this._index = value;
+
+ }
+ }
+
+ partial void FindByNameActiveStepChangedEventArgsDetail(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameActiveStepChangedEventArgsDetail(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+
+ partial void SerializeCoreIgbActiveStepChangedEventArgsDetail(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbActiveStepChangedEventArgsDetail(ser);
+
+ if (IsPropDirty("Index"))
+ { ser.AddNumberProp("index", this._index); }
+
+ }
+
+ protected internal override void ToEventJson(BaseRendererControl control, Dictionary args)
+ {
+ base.ToEventJson(control, args);
+
+ if (IsPropDirty("Index"))
+ { args["index"] = (this._index).ToString(); }
+
+ }
+
+ protected internal override void FromEventJson(BaseRendererControl control, Dictionary args)
+ {
+ base.FromEventJson(control, args);
+ this.SuppressParentNotify = true;
+
+ if (args.ContainsKey("index"))
+ { this.Index = ReturnToDouble(args["index"]); }
+
+ this.SuppressParentNotify = false;
+ }
+
+ }
}
diff --git a/src/components/Blazor/ActiveStepChangingEventArgs.cs b/src/components/Blazor/ActiveStepChangingEventArgs.cs
index f9551850..bfcfd317 100644
--- a/src/components/Blazor/ActiveStepChangingEventArgs.cs
+++ b/src/components/Blazor/ActiveStepChangingEventArgs.cs
@@ -1,99 +1,97 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbActiveStepChangingEventArgs: BaseRendererElement {
- public override string Type { get { return "WebActiveStepChangingEventArgs"; } }
-
-
- private static bool _marshalByValue = true;
-
- public IgbActiveStepChangingEventArgs(): base() {
- OnCreatedIgbActiveStepChangingEventArgs();
-
-
- }
-
- partial void OnCreatedIgbActiveStepChangingEventArgs();
-
- private IgbActiveStepChangingEventArgsDetail _detail;
-
- partial void OnDetailChanging(ref IgbActiveStepChangingEventArgsDetail newValue);
- [Parameter]
- public IgbActiveStepChangingEventArgsDetail Detail
- {
- get { return this._detail; }
- set {
- OnDetailChanging(ref value);
- MarkPropDirty("Detail");
- if (this._detail != null) {
- this.DetachChild(this._detail);
- }
- if (value != null) {
- this.AttachChild(value);
- }
- this._detail = value;
- }
-
- }
-
- partial void FindByNameActiveStepChangingEventArgs(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameActiveStepChangingEventArgs(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
-
- partial void SerializeCoreIgbActiveStepChangingEventArgs(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbActiveStepChangingEventArgs(ser);
-
- if (IsPropDirty("Detail")) { ser.AddSerializableProp("detail", this._detail); }
-
- }
-
-
- protected internal override void ToEventJson(BaseRendererControl control, Dictionary args)
- {
- base.ToEventJson(control, args);
-
- if (IsPropDirty("Detail")) { args["detail"] = ObjectToParam(this._detail); }
-
-
- }
-
-
- protected internal override void FromEventJson(BaseRendererControl control, Dictionary args) {
- base.FromEventJson(control, args);
- this.SuppressParentNotify = true;
-
- if (args.ContainsKey("detail")) { this.Detail = (IgbActiveStepChangingEventArgsDetail)ConvertReturnValue(args["detail"], "ActiveStepChangingEventArgsDetail", true); }
-
- this.SuppressParentNotify = false;
- }
-
-}
+ public partial class IgbActiveStepChangingEventArgs : BaseRendererElement
+ {
+ public override string Type { get { return "WebActiveStepChangingEventArgs"; } }
+
+ private static bool _marshalByValue = true;
+
+ public IgbActiveStepChangingEventArgs() : base()
+ {
+ OnCreatedIgbActiveStepChangingEventArgs();
+
+ }
+
+ partial void OnCreatedIgbActiveStepChangingEventArgs();
+
+ private IgbActiveStepChangingEventArgsDetail _detail;
+
+ partial void OnDetailChanging(ref IgbActiveStepChangingEventArgsDetail newValue);
+ [Parameter]
+ public IgbActiveStepChangingEventArgsDetail Detail
+ {
+ get { return this._detail; }
+ set
+ {
+ OnDetailChanging(ref value);
+ MarkPropDirty("Detail");
+ if (this._detail != null)
+ {
+ this.DetachChild(this._detail);
+ }
+ if (value != null)
+ {
+ this.AttachChild(value);
+ }
+ this._detail = value;
+ }
+
+ }
+
+ partial void FindByNameActiveStepChangingEventArgs(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameActiveStepChangingEventArgs(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+
+ partial void SerializeCoreIgbActiveStepChangingEventArgs(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbActiveStepChangingEventArgs(ser);
+
+ if (IsPropDirty("Detail"))
+ { ser.AddSerializableProp("detail", this._detail); }
+
+ }
+
+ protected internal override void ToEventJson(BaseRendererControl control, Dictionary args)
+ {
+ base.ToEventJson(control, args);
+
+ if (IsPropDirty("Detail"))
+ { args["detail"] = ObjectToParam(this._detail); }
+
+ }
+
+ protected internal override void FromEventJson(BaseRendererControl control, Dictionary args)
+ {
+ base.FromEventJson(control, args);
+ this.SuppressParentNotify = true;
+
+ if (args.ContainsKey("detail"))
+ { this.Detail = (IgbActiveStepChangingEventArgsDetail)ConvertReturnValue(args["detail"], "ActiveStepChangingEventArgsDetail", true); }
+
+ this.SuppressParentNotify = false;
+ }
+
+ }
}
diff --git a/src/components/Blazor/ActiveStepChangingEventArgsDetail.cs b/src/components/Blazor/ActiveStepChangingEventArgsDetail.cs
index 8df19bcf..292bec1f 100644
--- a/src/components/Blazor/ActiveStepChangingEventArgsDetail.cs
+++ b/src/components/Blazor/ActiveStepChangingEventArgsDetail.cs
@@ -1,112 +1,114 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbActiveStepChangingEventArgsDetail: BaseRendererElement {
- public override string Type { get { return "WebActiveStepChangingEventArgsDetail"; } }
-
-
- private static bool _marshalByValue = true;
-
- public IgbActiveStepChangingEventArgsDetail(): base() {
- OnCreatedIgbActiveStepChangingEventArgsDetail();
-
-
- }
-
- partial void OnCreatedIgbActiveStepChangingEventArgsDetail();
-
- private double _oldIndex = 0;
-
- partial void OnOldIndexChanging(ref double newValue);
- [Parameter]
- public double OldIndex
- {
- get { return this._oldIndex; }
- set {
- if (this._oldIndex != value || !IsPropDirty("OldIndex")) {
- MarkPropDirty("OldIndex");
- }
- this._oldIndex = value;
-
- }
- }
- private double _newIndex = 0;
-
- partial void OnNewIndexChanging(ref double newValue);
- [Parameter]
- public double NewIndex
- {
- get { return this._newIndex; }
- set {
- if (this._newIndex != value || !IsPropDirty("NewIndex")) {
- MarkPropDirty("NewIndex");
- }
- this._newIndex = value;
-
- }
- }
-
- partial void FindByNameActiveStepChangingEventArgsDetail(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameActiveStepChangingEventArgsDetail(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
-
- partial void SerializeCoreIgbActiveStepChangingEventArgsDetail(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbActiveStepChangingEventArgsDetail(ser);
-
- if (IsPropDirty("OldIndex")) { ser.AddNumberProp("oldIndex", this._oldIndex); }
- if (IsPropDirty("NewIndex")) { ser.AddNumberProp("newIndex", this._newIndex); }
-
- }
-
-
- protected internal override void ToEventJson(BaseRendererControl control, Dictionary args)
- {
- base.ToEventJson(control, args);
-
- if (IsPropDirty("OldIndex")) { args["oldIndex"] = (this._oldIndex).ToString(); }
- if (IsPropDirty("NewIndex")) { args["newIndex"] = (this._newIndex).ToString(); }
-
-
- }
-
-
- protected internal override void FromEventJson(BaseRendererControl control, Dictionary args) {
- base.FromEventJson(control, args);
- this.SuppressParentNotify = true;
-
- if (args.ContainsKey("oldIndex")) { this.OldIndex = ReturnToDouble(args["oldIndex"]); }
- if (args.ContainsKey("newIndex")) { this.NewIndex = ReturnToDouble(args["newIndex"]); }
-
- this.SuppressParentNotify = false;
- }
-
-}
+ public partial class IgbActiveStepChangingEventArgsDetail : BaseRendererElement
+ {
+ public override string Type { get { return "WebActiveStepChangingEventArgsDetail"; } }
+
+ private static bool _marshalByValue = true;
+
+ public IgbActiveStepChangingEventArgsDetail() : base()
+ {
+ OnCreatedIgbActiveStepChangingEventArgsDetail();
+
+ }
+
+ partial void OnCreatedIgbActiveStepChangingEventArgsDetail();
+
+ private double _oldIndex = 0;
+
+ partial void OnOldIndexChanging(ref double newValue);
+ [Parameter]
+ public double OldIndex
+ {
+ get { return this._oldIndex; }
+ set
+ {
+ if (this._oldIndex != value || !IsPropDirty("OldIndex"))
+ {
+ MarkPropDirty("OldIndex");
+ }
+ this._oldIndex = value;
+
+ }
+ }
+ private double _newIndex = 0;
+
+ partial void OnNewIndexChanging(ref double newValue);
+ [Parameter]
+ public double NewIndex
+ {
+ get { return this._newIndex; }
+ set
+ {
+ if (this._newIndex != value || !IsPropDirty("NewIndex"))
+ {
+ MarkPropDirty("NewIndex");
+ }
+ this._newIndex = value;
+
+ }
+ }
+
+ partial void FindByNameActiveStepChangingEventArgsDetail(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameActiveStepChangingEventArgsDetail(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+
+ partial void SerializeCoreIgbActiveStepChangingEventArgsDetail(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbActiveStepChangingEventArgsDetail(ser);
+
+ if (IsPropDirty("OldIndex"))
+ { ser.AddNumberProp("oldIndex", this._oldIndex); }
+ if (IsPropDirty("NewIndex"))
+ { ser.AddNumberProp("newIndex", this._newIndex); }
+
+ }
+
+ protected internal override void ToEventJson(BaseRendererControl control, Dictionary args)
+ {
+ base.ToEventJson(control, args);
+
+ if (IsPropDirty("OldIndex"))
+ { args["oldIndex"] = (this._oldIndex).ToString(); }
+ if (IsPropDirty("NewIndex"))
+ { args["newIndex"] = (this._newIndex).ToString(); }
+
+ }
+
+ protected internal override void FromEventJson(BaseRendererControl control, Dictionary args)
+ {
+ base.FromEventJson(control, args);
+ this.SuppressParentNotify = true;
+
+ if (args.ContainsKey("oldIndex"))
+ { this.OldIndex = ReturnToDouble(args["oldIndex"]); }
+ if (args.ContainsKey("newIndex"))
+ { this.NewIndex = ReturnToDouble(args["newIndex"]); }
+
+ this.SuppressParentNotify = false;
+ }
+
+ }
}
diff --git a/src/components/Blazor/Avatar.cs b/src/components/Blazor/Avatar.cs
index aa6278e6..16a64f3c 100644
--- a/src/components/Blazor/Avatar.cs
+++ b/src/components/Blazor/Avatar.cs
@@ -1,185 +1,192 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- ///
-/// An avatar component is used as a representation of a user identity
-/// typically in a user profile.
-///
-public partial class IgbAvatar: BaseRendererControl {
- public override string Type { get { return "WebAvatar"; } }
-
- protected override void EnsureModulesLoaded()
- {
- if (!IgbAvatarModule.IsLoadRequested(IgBlazor))
- {
- IgbAvatarModule.Register(IgBlazor);
- }
- }
-
- protected override string ResolveDisplay()
- {
- return "inline-block";
- }
-
- protected override bool SupportsVisualChildren
- {
- get
- {
- return true;
- }
- }
-
- protected override bool UseDirectRender
- {
- get
- {
- return true;
- }
- }
-
- protected override string DirectRenderElementName
- {
- get
- {
- return "igc-avatar";
- }
- }
-
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Immediate; }
- }
-
- public IgbAvatar(): base() {
- OnCreatedIgbAvatar();
-
-
- }
-
- partial void OnCreatedIgbAvatar();
-
- private string _src;
-
- partial void OnSrcChanging(ref string newValue);
- ///
- /// The image source to use.
- ///
- [Parameter]
- public string Src
- {
- get { return this._src; }
- set {
- if (this._src != value || !IsPropDirty("Src")) {
- MarkPropDirty("Src");
- }
- this._src = value;
-
- }
- }
- private string _alt;
-
- partial void OnAltChanging(ref string newValue);
- ///
- /// Alternative text for the image.
- ///
- [Parameter]
- public string Alt
- {
- get { return this._alt; }
- set {
- if (this._alt != value || !IsPropDirty("Alt")) {
- MarkPropDirty("Alt");
- }
- this._alt = value;
-
- }
- }
- private string _initials;
-
- partial void OnInitialsChanging(ref string newValue);
- ///
- /// Initials to use as a fallback when no image is available.
- ///
- [Parameter]
- public string Initials
- {
- get { return this._initials; }
- set {
- if (this._initials != value || !IsPropDirty("Initials")) {
- MarkPropDirty("Initials");
- }
- this._initials = value;
-
- }
- }
- private AvatarShape _shape = AvatarShape.Square;
-
- partial void OnShapeChanging(ref AvatarShape newValue);
- ///
- /// The shape of the avatar.
- ///
- [Parameter]
- public AvatarShape Shape
- {
- get { return this._shape; }
- set {
- if (this._shape != value || !IsPropDirty("Shape")) {
- MarkPropDirty("Shape");
- }
- this._shape = value;
-
- }
- }
-
- partial void FindByNameAvatar(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameAvatar(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
-
- partial void SerializeCoreIgbAvatar(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbAvatar(ser);
-
- if (IsPropDirty("Src")) { ser.AddStringProp("src", this._src); }
- if (IsPropDirty("Alt")) { ser.AddStringProp("alt", this._alt); }
- if (IsPropDirty("Initials")) { ser.AddStringProp("initials", this._initials); }
- if (IsPropDirty("Shape")) { ser.AddEnumProp("shape", this._shape); }
-
- }
-
-}
+ ///
+ /// An avatar component is used as a representation of a user identity
+ /// typically in a user profile.
+ ///
+ public partial class IgbAvatar : BaseRendererControl
+ {
+ public override string Type { get { return "WebAvatar"; } }
+
+ protected override void EnsureModulesLoaded()
+ {
+ if (!IgbAvatarModule.IsLoadRequested(IgBlazor))
+ {
+ IgbAvatarModule.Register(IgBlazor);
+ }
+ }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override bool UseDirectRender
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override string DirectRenderElementName
+ {
+ get
+ {
+ return "igc-avatar";
+ }
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Immediate; }
+ }
+
+ public IgbAvatar() : base()
+ {
+ OnCreatedIgbAvatar();
+
+ }
+
+ partial void OnCreatedIgbAvatar();
+
+ private string _src;
+
+ partial void OnSrcChanging(ref string newValue);
+ ///
+ /// The image source to use.
+ ///
+ [Parameter]
+ public string Src
+ {
+ get { return this._src; }
+ set
+ {
+ if (this._src != value || !IsPropDirty("Src"))
+ {
+ MarkPropDirty("Src");
+ }
+ this._src = value;
+
+ }
+ }
+ private string _alt;
+
+ partial void OnAltChanging(ref string newValue);
+ ///
+ /// Alternative text for the image.
+ ///
+ [Parameter]
+ public string Alt
+ {
+ get { return this._alt; }
+ set
+ {
+ if (this._alt != value || !IsPropDirty("Alt"))
+ {
+ MarkPropDirty("Alt");
+ }
+ this._alt = value;
+
+ }
+ }
+ private string _initials;
+
+ partial void OnInitialsChanging(ref string newValue);
+ ///
+ /// Initials to use as a fallback when no image is available.
+ ///
+ [Parameter]
+ public string Initials
+ {
+ get { return this._initials; }
+ set
+ {
+ if (this._initials != value || !IsPropDirty("Initials"))
+ {
+ MarkPropDirty("Initials");
+ }
+ this._initials = value;
+
+ }
+ }
+ private AvatarShape _shape = AvatarShape.Square;
+
+ partial void OnShapeChanging(ref AvatarShape newValue);
+ ///
+ /// The shape of the avatar.
+ ///
+ [Parameter]
+ public AvatarShape Shape
+ {
+ get { return this._shape; }
+ set
+ {
+ if (this._shape != value || !IsPropDirty("Shape"))
+ {
+ MarkPropDirty("Shape");
+ }
+ this._shape = value;
+
+ }
+ }
+
+ partial void FindByNameAvatar(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameAvatar(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+
+ partial void SerializeCoreIgbAvatar(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbAvatar(ser);
+
+ if (IsPropDirty("Src"))
+ { ser.AddStringProp("src", this._src); }
+ if (IsPropDirty("Alt"))
+ { ser.AddStringProp("alt", this._alt); }
+ if (IsPropDirty("Initials"))
+ { ser.AddStringProp("initials", this._initials); }
+ if (IsPropDirty("Shape"))
+ { ser.AddEnumProp("shape", this._shape); }
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/AvatarModule.cs b/src/components/Blazor/AvatarModule.cs
index 3b3ed4a1..d55b13b0 100644
--- a/src/components/Blazor/AvatarModule.cs
+++ b/src/components/Blazor/AvatarModule.cs
@@ -1,23 +1,20 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-using System.Text;
-using System.Collections.Generic;
-
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbAvatarModule {
- public static void Register(IIgniteUIBlazor runtime) {
+ public partial class IgbAvatarModule
+ {
+ public static void Register(IIgniteUIBlazor runtime)
+ {
ModuleLoader.Load(runtime, "WebAvatarModule");
-
}
- public static void MarkIsLoadRequested(IIgniteUIBlazor runtime) {
+ public static void MarkIsLoadRequested(IIgniteUIBlazor runtime)
+ {
ModuleLoader.MarkIsLoadRequested(runtime, "WebAvatarModule");
}
- public static bool IsLoadRequested(IIgniteUIBlazor runtime) {
+ public static bool IsLoadRequested(IIgniteUIBlazor runtime)
+ {
return ModuleLoader.IsLoadRequested(runtime, "WebAvatarModule");
}
}
diff --git a/src/components/Blazor/AvatarShape.cs b/src/components/Blazor/AvatarShape.cs
index edaf7aab..cdbe3cf7 100644
--- a/src/components/Blazor/AvatarShape.cs
+++ b/src/components/Blazor/AvatarShape.cs
@@ -1,9 +1,10 @@
namespace IgniteUI.Blazor.Controls
{
-public enum AvatarShape {
- Square,
- Circle,
- Rounded
+ public enum AvatarShape
+ {
+ Square,
+ Circle,
+ Rounded
-}
+ }
}
diff --git a/src/components/Blazor/Badge.cs b/src/components/Blazor/Badge.cs
index e04bb2dc..87a2e322 100644
--- a/src/components/Blazor/Badge.cs
+++ b/src/components/Blazor/Badge.cs
@@ -1,186 +1,193 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- ///
-/// The badge is a component indicating a status on a related item or an area
-/// where some active indication is required.
-///
-public partial class IgbBadge: BaseRendererControl {
- public override string Type { get { return "WebBadge"; } }
-
- protected override void EnsureModulesLoaded()
- {
- if (!IgbBadgeModule.IsLoadRequested(IgBlazor))
- {
- IgbBadgeModule.Register(IgBlazor);
- }
- }
-
- protected override string ResolveDisplay()
- {
- return "inline-block";
- }
-
- protected override bool SupportsVisualChildren
- {
- get
- {
- return true;
- }
- }
-
- protected override bool UseDirectRender
- {
- get
- {
- return true;
- }
- }
-
- protected override string DirectRenderElementName
- {
- get
- {
- return "igc-badge";
- }
- }
-
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Immediate; }
- }
-
- public IgbBadge(): base() {
- OnCreatedIgbBadge();
-
-
- }
-
- partial void OnCreatedIgbBadge();
-
- private StyleVariant _variant = StyleVariant.Primary;
-
- partial void OnVariantChanging(ref StyleVariant newValue);
- ///
- /// The type (style variant) of the badge.
- ///
- [Parameter]
- public StyleVariant Variant
- {
- get { return this._variant; }
- set {
- if (this._variant != value || !IsPropDirty("Variant")) {
- MarkPropDirty("Variant");
- }
- this._variant = value;
-
- }
- }
- private bool _outlined = false;
-
- partial void OnOutlinedChanging(ref bool newValue);
- ///
- /// Sets whether to draw an outlined version of the badge.
- ///
- [Parameter]
- public bool Outlined
- {
- get { return this._outlined; }
- set {
- if (this._outlined != value || !IsPropDirty("Outlined")) {
- MarkPropDirty("Outlined");
- }
- this._outlined = value;
-
- }
- }
- private BadgeShape _shape = BadgeShape.Rounded;
-
- partial void OnShapeChanging(ref BadgeShape newValue);
- ///
- /// The shape of the badge.
- ///
- [Parameter]
- public BadgeShape Shape
- {
- get { return this._shape; }
- set {
- if (this._shape != value || !IsPropDirty("Shape")) {
- MarkPropDirty("Shape");
- }
- this._shape = value;
-
- }
- }
- private bool _dot = false;
-
- partial void OnDotChanging(ref bool newValue);
- ///
- /// Sets whether to render a dot type badge.
- /// When enabled, the badge appears as a small dot without any content.
- ///
- [Parameter]
- public bool Dot
- {
- get { return this._dot; }
- set {
- if (this._dot != value || !IsPropDirty("Dot")) {
- MarkPropDirty("Dot");
- }
- this._dot = value;
-
- }
- }
-
- partial void FindByNameBadge(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameBadge(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
-
- partial void SerializeCoreIgbBadge(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbBadge(ser);
-
- if (IsPropDirty("Variant")) { ser.AddEnumProp("variant", this._variant); }
- if (IsPropDirty("Outlined")) { ser.AddBooleanProp("outlined", this._outlined); }
- if (IsPropDirty("Shape")) { ser.AddEnumProp("shape", this._shape); }
- if (IsPropDirty("Dot")) { ser.AddBooleanProp("dot", this._dot); }
-
- }
-
-}
+ ///
+ /// The badge is a component indicating a status on a related item or an area
+ /// where some active indication is required.
+ ///
+ public partial class IgbBadge : BaseRendererControl
+ {
+ public override string Type { get { return "WebBadge"; } }
+
+ protected override void EnsureModulesLoaded()
+ {
+ if (!IgbBadgeModule.IsLoadRequested(IgBlazor))
+ {
+ IgbBadgeModule.Register(IgBlazor);
+ }
+ }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override bool UseDirectRender
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override string DirectRenderElementName
+ {
+ get
+ {
+ return "igc-badge";
+ }
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Immediate; }
+ }
+
+ public IgbBadge() : base()
+ {
+ OnCreatedIgbBadge();
+
+ }
+
+ partial void OnCreatedIgbBadge();
+
+ private StyleVariant _variant = StyleVariant.Primary;
+
+ partial void OnVariantChanging(ref StyleVariant newValue);
+ ///
+ /// The type (style variant) of the badge.
+ ///
+ [Parameter]
+ public StyleVariant Variant
+ {
+ get { return this._variant; }
+ set
+ {
+ if (this._variant != value || !IsPropDirty("Variant"))
+ {
+ MarkPropDirty("Variant");
+ }
+ this._variant = value;
+
+ }
+ }
+ private bool _outlined = false;
+
+ partial void OnOutlinedChanging(ref bool newValue);
+ ///
+ /// Sets whether to draw an outlined version of the badge.
+ ///
+ [Parameter]
+ public bool Outlined
+ {
+ get { return this._outlined; }
+ set
+ {
+ if (this._outlined != value || !IsPropDirty("Outlined"))
+ {
+ MarkPropDirty("Outlined");
+ }
+ this._outlined = value;
+
+ }
+ }
+ private BadgeShape _shape = BadgeShape.Rounded;
+
+ partial void OnShapeChanging(ref BadgeShape newValue);
+ ///
+ /// The shape of the badge.
+ ///
+ [Parameter]
+ public BadgeShape Shape
+ {
+ get { return this._shape; }
+ set
+ {
+ if (this._shape != value || !IsPropDirty("Shape"))
+ {
+ MarkPropDirty("Shape");
+ }
+ this._shape = value;
+
+ }
+ }
+ private bool _dot = false;
+
+ partial void OnDotChanging(ref bool newValue);
+ ///
+ /// Sets whether to render a dot type badge.
+ /// When enabled, the badge appears as a small dot without any content.
+ ///
+ [Parameter]
+ public bool Dot
+ {
+ get { return this._dot; }
+ set
+ {
+ if (this._dot != value || !IsPropDirty("Dot"))
+ {
+ MarkPropDirty("Dot");
+ }
+ this._dot = value;
+
+ }
+ }
+
+ partial void FindByNameBadge(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameBadge(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+
+ partial void SerializeCoreIgbBadge(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbBadge(ser);
+
+ if (IsPropDirty("Variant"))
+ { ser.AddEnumProp("variant", this._variant); }
+ if (IsPropDirty("Outlined"))
+ { ser.AddBooleanProp("outlined", this._outlined); }
+ if (IsPropDirty("Shape"))
+ { ser.AddEnumProp("shape", this._shape); }
+ if (IsPropDirty("Dot"))
+ { ser.AddBooleanProp("dot", this._dot); }
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/BadgeModule.cs b/src/components/Blazor/BadgeModule.cs
index 5f5ce42e..fcb0038c 100644
--- a/src/components/Blazor/BadgeModule.cs
+++ b/src/components/Blazor/BadgeModule.cs
@@ -1,23 +1,20 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-using System.Text;
-using System.Collections.Generic;
-
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbBadgeModule {
- public static void Register(IIgniteUIBlazor runtime) {
+ public partial class IgbBadgeModule
+ {
+ public static void Register(IIgniteUIBlazor runtime)
+ {
ModuleLoader.Load(runtime, "WebBadgeModule");
-
}
- public static void MarkIsLoadRequested(IIgniteUIBlazor runtime) {
+ public static void MarkIsLoadRequested(IIgniteUIBlazor runtime)
+ {
ModuleLoader.MarkIsLoadRequested(runtime, "WebBadgeModule");
}
- public static bool IsLoadRequested(IIgniteUIBlazor runtime) {
+ public static bool IsLoadRequested(IIgniteUIBlazor runtime)
+ {
return ModuleLoader.IsLoadRequested(runtime, "WebBadgeModule");
}
}
diff --git a/src/components/Blazor/BadgeShape.cs b/src/components/Blazor/BadgeShape.cs
index 5446ebe8..a299183c 100644
--- a/src/components/Blazor/BadgeShape.cs
+++ b/src/components/Blazor/BadgeShape.cs
@@ -1,8 +1,9 @@
namespace IgniteUI.Blazor.Controls
{
-public enum BadgeShape {
- Rounded,
- Square
+ public enum BadgeShape
+ {
+ Rounded,
+ Square
-}
+ }
}
diff --git a/src/components/Blazor/Banner.cs b/src/components/Blazor/Banner.cs
index 7f8b18a5..f73999cc 100644
--- a/src/components/Blazor/Banner.cs
+++ b/src/components/Blazor/Banner.cs
@@ -1,295 +1,305 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbBanner: BaseRendererControl {
- public override string Type { get { return "WebBanner"; } }
+ public partial class IgbBanner : BaseRendererControl
+ {
+ public override string Type { get { return "WebBanner"; } }
+
+ protected override void EnsureModulesLoaded()
+ {
+ if (!IgbBannerModule.IsLoadRequested(IgBlazor))
+ {
+ IgbBannerModule.Register(IgBlazor);
+ }
+ }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override bool UseDirectRender
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override string DirectRenderElementName
+ {
+ get
+ {
+ return "igc-banner";
+ }
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Immediate; }
+ }
+
+ public IgbBanner() : base()
+ {
+ OnCreatedIgbBanner();
+
+ }
+
+ partial void OnCreatedIgbBanner();
+
+ private bool _open = false;
+
+ partial void OnOpenChanging(ref bool newValue);
+ ///
+ /// Whether the banner is open.
+ /// Setting this property programmatically will immediately show or hide the
+ /// banner without animation and without emitting close events.
+ /// Prefer the `show()`, `hide()`, and `toggle()` methods for animated
+ /// transitions.
+ ///
+ [Parameter]
+ public bool Open
+ {
+ get { return this._open; }
+ set
+ {
+ if (this._open != value || !IsPropDirty("Open"))
+ {
+ MarkPropDirty("Open");
+ }
+ this._open = value;
+
+ }
+ }
- protected override void EnsureModulesLoaded()
- {
- if (!IgbBannerModule.IsLoadRequested(IgBlazor))
- {
- IgbBannerModule.Register(IgBlazor);
- }
- }
+ partial void FindByNameBanner(string name, ref object item);
+ public override object FindByName(string name)
+ {
- protected override string ResolveDisplay()
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameBanner(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ ///
+ /// Opens the banner with an animated grow-in transition.
+ /// Returns `true` when the banner was successfully opened, or `false` if
+ /// it was already open.
+ ///
+ public async Task ShowAsync()
+ {
+ var iv = await InvokeMethod("show", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ public bool Show()
+ {
+ var iv = InvokeMethodSync("show", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ ///
+ /// Closes the banner with an animated grow-out transition.
+ /// Returns `true` when the banner was successfully closed, or `false` if
+ /// it was already closed.
+ ///
+ public async Task HideAsync()
+ {
+ var iv = await InvokeMethod("hide", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ public bool Hide()
+ {
+ var iv = InvokeMethodSync("hide", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ ///
+ /// Toggles the banner open or closed depending on its current state.
+ /// Equivalent to calling `show()` when closed and `hide()` when open.
+ /// Returns `true` when the transition completed successfully.
+ ///
+ public async Task ToggleAsync()
+ {
+ var iv = await InvokeMethod("toggle", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ public bool Toggle()
+ {
+ var iv = InvokeMethodSync("toggle", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+
+ private string _closingRef = null;
+ private string _closingScript = null;
+ [Parameter]
+ public string ClosingScript
+ {
+
+ set
+ {
+ if (value != this._closingScript)
+ {
+ this._closingScript = value;
+ this.OnRefChanged("Closing", null, value, true, false, (string refName, object oldValue, object newValue) =>
+ {
+ this._closingRef = refName;
+ this.MarkPropDirty("ClosingRef");
+ });
+ }
+ }
+ get
+ {
+ return this._closingScript;
+ }
+ }
+
+ partial void OnHandlingClosing(IgbVoidEventArgs args);
+ private EventCallback? _closing = null;
+ [Parameter]
+ public EventCallback Closing
+ {
+ get
+ {
+ return this._closing != null ? this._closing.Value : EventCallback.Empty;
+ }
+ set
+ {
+ if (!value.Equals(EventCallback.Empty))
+ {
+ if (!CompareEventCallbacks(value, _closing, ref eventCallbacksCache))
+ {
+ _closing = value;
+ this.SetHandler(this.Name, "Closing", value, (args) =>
{
- return "inline-block";
- }
+ OnHandlingClosing(args);
- protected override bool SupportsVisualChildren
+ });
+ this.OnRefChanged("Closing", null, "event:::Closing", true, false, (refName, oldValue, newValue) =>
{
- get
- {
- return true;
- }
- }
+ this._closingRef = refName;
+ this.MarkPropDirty("ClosingRef");
+ });
+ }
+ }
+ else
+ {
+ _closing = null;
+ this.SetHandler(this.Name, "Closing", null);
+ this.OnRefChanged("Closing", null, null, true, false, (refName, oldValue, newValue) =>
+ {
+ this._closingRef = null;
+ this.MarkPropDirty("ClosingRef");
+ });
+ }
+ }
+ }
+
+ private string _closedRef = null;
+ private string _closedScript = null;
+ [Parameter]
+ public string ClosedScript
+ {
+
+ set
+ {
+ if (value != this._closedScript)
+ {
+ this._closedScript = value;
+ this.OnRefChanged("Closed", null, value, true, false, (string refName, object oldValue, object newValue) =>
+ {
+ this._closedRef = refName;
+ this.MarkPropDirty("ClosedRef");
+ });
+ }
+ }
+ get
+ {
+ return this._closedScript;
+ }
+ }
- protected override bool UseDirectRender
+ partial void OnHandlingClosed(IgbVoidEventArgs args);
+ private EventCallback? _closed = null;
+ [Parameter]
+ public EventCallback Closed
+ {
+ get
+ {
+ return this._closed != null ? this._closed.Value : EventCallback.Empty;
+ }
+ set
+ {
+ if (!value.Equals(EventCallback.Empty))
+ {
+ if (!CompareEventCallbacks(value, _closed, ref eventCallbacksCache))
+ {
+ _closed = value;
+ this.SetHandler(this.Name, "Closed", value, (args) =>
{
- get
- {
- return true;
- }
- }
+ OnHandlingClosed(args);
- protected override string DirectRenderElementName
+ });
+ this.OnRefChanged("Closed", null, "event:::Closed", true, false, (refName, oldValue, newValue) =>
{
- get
- {
- return "igc-banner";
- }
- }
+ this._closedRef = refName;
+ this.MarkPropDirty("ClosedRef");
+ });
+ }
+ }
+ else
+ {
+ _closed = null;
+ this.SetHandler(this.Name, "Closed", null);
+ this.OnRefChanged("Closed", null, null, true, false, (refName, oldValue, newValue) =>
+ {
+ this._closedRef = null;
+ this.MarkPropDirty("ClosedRef");
+ });
+ }
+ }
+ }
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Immediate; }
- }
-
- public IgbBanner(): base() {
- OnCreatedIgbBanner();
-
-
- }
-
- partial void OnCreatedIgbBanner();
-
- private bool _open = false;
-
- partial void OnOpenChanging(ref bool newValue);
- ///
- /// Whether the banner is open.
- /// Setting this property programmatically will immediately show or hide the
- /// banner without animation and without emitting close events.
- /// Prefer the `show()`, `hide()`, and `toggle()` methods for animated
- /// transitions.
- ///
- [Parameter]
- public bool Open
- {
- get { return this._open; }
- set {
- if (this._open != value || !IsPropDirty("Open")) {
- MarkPropDirty("Open");
- }
- this._open = value;
-
- }
- }
-
- partial void FindByNameBanner(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameBanner(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- ///
- /// Opens the banner with an animated grow-in transition.
- /// Returns `true` when the banner was successfully opened, or `false` if
- /// it was already open.
- ///
- public async Task ShowAsync()
- {
- var iv = await InvokeMethod("show", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- public bool Show()
- {
- var iv = InvokeMethodSync("show", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- ///
- /// Closes the banner with an animated grow-out transition.
- /// Returns `true` when the banner was successfully closed, or `false` if
- /// it was already closed.
- ///
- public async Task HideAsync()
- {
- var iv = await InvokeMethod("hide", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- public bool Hide()
- {
- var iv = InvokeMethodSync("hide", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- ///
- /// Toggles the banner open or closed depending on its current state.
- /// Equivalent to calling `show()` when closed and `hide()` when open.
- /// Returns `true` when the transition completed successfully.
- ///
- public async Task ToggleAsync()
- {
- var iv = await InvokeMethod("toggle", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- public bool Toggle()
- {
- var iv = InvokeMethodSync("toggle", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
-
- private string _closingRef = null;
- private string _closingScript = null;
- [Parameter]
- public string ClosingScript {
-
- set
- {
- if (value != this._closingScript)
- {
- this._closingScript = value;
- this.OnRefChanged("Closing", null, value, true, false, (string refName, object oldValue, object newValue) => {
- this._closingRef = refName;
- this.MarkPropDirty("ClosingRef");
- });
- }
- }
- get
- {
- return this._closingScript;
- }
- }
-
- partial void OnHandlingClosing(IgbVoidEventArgs args);
- private EventCallback? _closing = null;
- [Parameter]
- public EventCallback Closing
- {
- get
- {
- return this._closing != null ? this._closing.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _closing, ref eventCallbacksCache))
- {
- _closing = value;
- this.SetHandler(this.Name, "Closing", value, (args) => {
- OnHandlingClosing(args);
-
- });
- this.OnRefChanged("Closing", null, "event:::Closing", true, false, (refName, oldValue, newValue) => {
- this._closingRef = refName;
- this.MarkPropDirty("ClosingRef");
- });
- }
- }
- else
- {
- _closing = null;
- this.SetHandler(this.Name, "Closing", null);
- this.OnRefChanged("Closing", null, null, true, false, (refName, oldValue, newValue) => {
- this._closingRef = null;
- this.MarkPropDirty("ClosingRef");
- });
- }
- }
- }
-
- private string _closedRef = null;
- private string _closedScript = null;
- [Parameter]
- public string ClosedScript {
-
- set
- {
- if (value != this._closedScript)
- {
- this._closedScript = value;
- this.OnRefChanged("Closed", null, value, true, false, (string refName, object oldValue, object newValue) => {
- this._closedRef = refName;
- this.MarkPropDirty("ClosedRef");
- });
- }
- }
- get
- {
- return this._closedScript;
- }
- }
-
- partial void OnHandlingClosed(IgbVoidEventArgs args);
- private EventCallback? _closed = null;
- [Parameter]
- public EventCallback Closed
- {
- get
- {
- return this._closed != null ? this._closed.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _closed, ref eventCallbacksCache))
- {
- _closed = value;
- this.SetHandler(this.Name, "Closed", value, (args) => {
- OnHandlingClosed(args);
-
- });
- this.OnRefChanged("Closed", null, "event:::Closed", true, false, (refName, oldValue, newValue) => {
- this._closedRef = refName;
- this.MarkPropDirty("ClosedRef");
- });
- }
- }
- else
- {
- _closed = null;
- this.SetHandler(this.Name, "Closed", null);
- this.OnRefChanged("Closed", null, null, true, false, (refName, oldValue, newValue) => {
- this._closedRef = null;
- this.MarkPropDirty("ClosedRef");
- });
- }
- }
- }
-
- partial void SerializeCoreIgbBanner(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbBanner(ser);
-
- if (IsPropDirty("Open")) { ser.AddBooleanProp("open", this._open); }
- if (IsPropDirty("ClosingRef")) { ser.AddStringProp("closingRef", this._closingRef); }
- if (IsPropDirty("ClosedRef")) { ser.AddStringProp("closedRef", this._closedRef); }
-
- }
-
-}
+ partial void SerializeCoreIgbBanner(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbBanner(ser);
+
+ if (IsPropDirty("Open"))
+ { ser.AddBooleanProp("open", this._open); }
+ if (IsPropDirty("ClosingRef"))
+ { ser.AddStringProp("closingRef", this._closingRef); }
+ if (IsPropDirty("ClosedRef"))
+ { ser.AddStringProp("closedRef", this._closedRef); }
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/BannerModule.cs b/src/components/Blazor/BannerModule.cs
index a18917a9..57040c06 100644
--- a/src/components/Blazor/BannerModule.cs
+++ b/src/components/Blazor/BannerModule.cs
@@ -1,23 +1,20 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-using System.Text;
-using System.Collections.Generic;
-
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbBannerModule {
- public static void Register(IIgniteUIBlazor runtime) {
+ public partial class IgbBannerModule
+ {
+ public static void Register(IIgniteUIBlazor runtime)
+ {
ModuleLoader.Load(runtime, "WebBannerModule");
-
}
- public static void MarkIsLoadRequested(IIgniteUIBlazor runtime) {
+ public static void MarkIsLoadRequested(IIgniteUIBlazor runtime)
+ {
ModuleLoader.MarkIsLoadRequested(runtime, "WebBannerModule");
}
- public static bool IsLoadRequested(IIgniteUIBlazor runtime) {
+ public static bool IsLoadRequested(IIgniteUIBlazor runtime)
+ {
return ModuleLoader.IsLoadRequested(runtime, "WebBannerModule");
}
}
diff --git a/src/components/Blazor/BaseAlertLike.cs b/src/components/Blazor/BaseAlertLike.cs
index 2161d7c3..90ddc3ab 100644
--- a/src/components/Blazor/BaseAlertLike.cs
+++ b/src/components/Blazor/BaseAlertLike.cs
@@ -1,250 +1,260 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbBaseAlertLike: BaseRendererControl {
- public override string Type { get { return "WebBaseAlertLike"; } }
-
- protected override string ResolveDisplay()
- {
- return "inline-block";
- }
-
- protected override bool SupportsVisualChildren
- {
- get
- {
- return true;
- }
- }
-
- protected override bool UseDirectRender
- {
- get
- {
- return true;
- }
- }
-
- protected override string DirectRenderElementName
- {
- get
- {
- return "igc-base-alert-like";
- }
- }
-
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Immediate; }
- }
-
- public IgbBaseAlertLike(): base() {
- OnCreatedIgbBaseAlertLike();
-
-
- }
-
- partial void OnCreatedIgbBaseAlertLike();
-
- private bool _open = false;
-
- partial void OnOpenChanging(ref bool newValue);
- ///
- /// Whether the component is in shown state.
- ///
- [Parameter]
- public bool Open
- {
- get { return this._open; }
- set {
- if (this._open != value || !IsPropDirty("Open")) {
- MarkPropDirty("Open");
- }
- this._open = value;
-
- }
- }
- private double _displayTime = 0;
-
- partial void OnDisplayTimeChanging(ref double newValue);
- ///
- /// Determines the duration in milliseconds in which the component will be visible.
- ///
- [Parameter]
- public double DisplayTime
- {
- get { return this._displayTime; }
- set {
- if (this._displayTime != value || !IsPropDirty("DisplayTime")) {
- MarkPropDirty("DisplayTime");
- }
- this._displayTime = value;
-
- }
- }
- private bool _keepOpen = false;
-
- partial void OnKeepOpenChanging(ref bool newValue);
- ///
- /// Determines whether the component should close after the `displayTime` is over.
- ///
- [Parameter]
- public bool KeepOpen
- {
- get { return this._keepOpen; }
- set {
- if (this._keepOpen != value || !IsPropDirty("KeepOpen")) {
- MarkPropDirty("KeepOpen");
- }
- this._keepOpen = value;
-
- }
- }
- private AbsolutePosition _position = AbsolutePosition.Bottom;
-
- partial void OnPositionChanging(ref AbsolutePosition newValue);
- ///
- /// Sets the position of the component in the viewport.
- /// `bottom` - positions the component at the bottom. This is the default.
- /// `middle` - positions the component at the center.
- /// `top` - positions the component at the top.
- ///
- [Parameter]
- public AbsolutePosition Position
- {
- get { return this._position; }
- set {
- if (this._position != value || !IsPropDirty("Position")) {
- MarkPropDirty("Position");
- }
- this._position = value;
-
- }
- }
- private NotificationPositioning _positioning = NotificationPositioning.Viewport;
-
- partial void OnPositioningChanging(ref NotificationPositioning newValue);
- ///
- /// Sets the positioning strategy of the component.
- /// `viewport` - positions the component relative to the viewport, ignoring any ancestor elements. This is the default behavior.
- /// `container` - positions the component relative to the nearest visible ancestor. In this mode, the component will be constrained within the bounding box of the ancestor and will be positioned according to the `position` attribute.
- ///
- [Parameter]
- public NotificationPositioning Positioning
- {
- get { return this._positioning; }
- set {
- if (this._positioning != value || !IsPropDirty("Positioning")) {
- MarkPropDirty("Positioning");
- }
- this._positioning = value;
-
- }
- }
-
- partial void FindByNameBaseAlertLike(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameBaseAlertLike(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public async Task ConnectedCallbackAsync()
- {
- await InvokeMethod("connectedCallback", new object[] { }, new string[] { });
- }
- public void ConnectedCallback()
- {
- InvokeMethodSync("connectedCallback", new object[] { }, new string[] { });
- }
- ///
- /// Opens the component.
- /// Returns a promise that resolves to `true` if the component was successfully opened, or `false`
- /// if it was already open or could not be shown (e.g., in `container` positioning mode with no visible ancestors).
- ///
- public async Task ShowAsync()
- {
- var iv = await InvokeMethod("show", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- public bool Show()
- {
- var iv = InvokeMethodSync("show", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- ///
- /// Closes the component.
- /// Returns a promise that resolves to `true` if the component was successfully closed, or `false`
- /// if it was already closed.
- ///
- public async Task HideAsync()
- {
- var iv = await InvokeMethod("hide", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- public bool Hide()
- {
- var iv = InvokeMethodSync("hide", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- ///
- /// Toggles the open state of the component.
- /// Returns a promise that resolves to `true` if the operation completed successfully, or `false`
- /// if it was already in the desired state.
- ///
- public async Task ToggleAsync()
- {
- var iv = await InvokeMethod("toggle", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- public bool Toggle()
- {
- var iv = InvokeMethodSync("toggle", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
-
- partial void SerializeCoreIgbBaseAlertLike(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbBaseAlertLike(ser);
-
- if (IsPropDirty("Open")) { ser.AddBooleanProp("open", this._open); }
- if (IsPropDirty("DisplayTime")) { ser.AddNumberProp("displayTime", this._displayTime); }
- if (IsPropDirty("KeepOpen")) { ser.AddBooleanProp("keepOpen", this._keepOpen); }
- if (IsPropDirty("Position")) { ser.AddEnumProp("position", this._position); }
- if (IsPropDirty("Positioning")) { ser.AddEnumProp("positioning", this._positioning); }
-
- }
-
-}
+ public partial class IgbBaseAlertLike : BaseRendererControl
+ {
+ public override string Type { get { return "WebBaseAlertLike"; } }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override bool UseDirectRender
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override string DirectRenderElementName
+ {
+ get
+ {
+ return "igc-base-alert-like";
+ }
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Immediate; }
+ }
+
+ public IgbBaseAlertLike() : base()
+ {
+ OnCreatedIgbBaseAlertLike();
+
+ }
+
+ partial void OnCreatedIgbBaseAlertLike();
+
+ private bool _open = false;
+
+ partial void OnOpenChanging(ref bool newValue);
+ ///
+ /// Whether the component is in shown state.
+ ///
+ [Parameter]
+ public bool Open
+ {
+ get { return this._open; }
+ set
+ {
+ if (this._open != value || !IsPropDirty("Open"))
+ {
+ MarkPropDirty("Open");
+ }
+ this._open = value;
+
+ }
+ }
+ private double _displayTime = 0;
+
+ partial void OnDisplayTimeChanging(ref double newValue);
+ ///
+ /// Determines the duration in milliseconds in which the component will be visible.
+ ///
+ [Parameter]
+ public double DisplayTime
+ {
+ get { return this._displayTime; }
+ set
+ {
+ if (this._displayTime != value || !IsPropDirty("DisplayTime"))
+ {
+ MarkPropDirty("DisplayTime");
+ }
+ this._displayTime = value;
+
+ }
+ }
+ private bool _keepOpen = false;
+
+ partial void OnKeepOpenChanging(ref bool newValue);
+ ///
+ /// Determines whether the component should close after the `displayTime` is over.
+ ///
+ [Parameter]
+ public bool KeepOpen
+ {
+ get { return this._keepOpen; }
+ set
+ {
+ if (this._keepOpen != value || !IsPropDirty("KeepOpen"))
+ {
+ MarkPropDirty("KeepOpen");
+ }
+ this._keepOpen = value;
+
+ }
+ }
+ private AbsolutePosition _position = AbsolutePosition.Bottom;
+
+ partial void OnPositionChanging(ref AbsolutePosition newValue);
+ ///
+ /// Sets the position of the component in the viewport.
+ /// `bottom` - positions the component at the bottom. This is the default.
+ /// `middle` - positions the component at the center.
+ /// `top` - positions the component at the top.
+ ///
+ [Parameter]
+ public AbsolutePosition Position
+ {
+ get { return this._position; }
+ set
+ {
+ if (this._position != value || !IsPropDirty("Position"))
+ {
+ MarkPropDirty("Position");
+ }
+ this._position = value;
+
+ }
+ }
+ private NotificationPositioning _positioning = NotificationPositioning.Viewport;
+
+ partial void OnPositioningChanging(ref NotificationPositioning newValue);
+ ///
+ /// Sets the positioning strategy of the component.
+ /// `viewport` - positions the component relative to the viewport, ignoring any ancestor elements. This is the default behavior.
+ /// `container` - positions the component relative to the nearest visible ancestor. In this mode, the component will be constrained within the bounding box of the ancestor and will be positioned according to the `position` attribute.
+ ///
+ [Parameter]
+ public NotificationPositioning Positioning
+ {
+ get { return this._positioning; }
+ set
+ {
+ if (this._positioning != value || !IsPropDirty("Positioning"))
+ {
+ MarkPropDirty("Positioning");
+ }
+ this._positioning = value;
+
+ }
+ }
+
+ partial void FindByNameBaseAlertLike(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameBaseAlertLike(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public async Task ConnectedCallbackAsync()
+ {
+ await InvokeMethod("connectedCallback", new object[] { }, new string[] { });
+ }
+ public void ConnectedCallback()
+ {
+ InvokeMethodSync("connectedCallback", new object[] { }, new string[] { });
+ }
+ ///
+ /// Opens the component.
+ /// Returns a promise that resolves to `true` if the component was successfully opened, or `false`
+ /// if it was already open or could not be shown (e.g., in `container` positioning mode with no visible ancestors).
+ ///
+ public async Task ShowAsync()
+ {
+ var iv = await InvokeMethod("show", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ public bool Show()
+ {
+ var iv = InvokeMethodSync("show", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ ///
+ /// Closes the component.
+ /// Returns a promise that resolves to `true` if the component was successfully closed, or `false`
+ /// if it was already closed.
+ ///
+ public async Task HideAsync()
+ {
+ var iv = await InvokeMethod("hide", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ public bool Hide()
+ {
+ var iv = InvokeMethodSync("hide", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ ///
+ /// Toggles the open state of the component.
+ /// Returns a promise that resolves to `true` if the operation completed successfully, or `false`
+ /// if it was already in the desired state.
+ ///
+ public async Task ToggleAsync()
+ {
+ var iv = await InvokeMethod("toggle", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ public bool Toggle()
+ {
+ var iv = InvokeMethodSync("toggle", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+
+ partial void SerializeCoreIgbBaseAlertLike(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbBaseAlertLike(ser);
+
+ if (IsPropDirty("Open"))
+ { ser.AddBooleanProp("open", this._open); }
+ if (IsPropDirty("DisplayTime"))
+ { ser.AddNumberProp("displayTime", this._displayTime); }
+ if (IsPropDirty("KeepOpen"))
+ { ser.AddBooleanProp("keepOpen", this._keepOpen); }
+ if (IsPropDirty("Position"))
+ { ser.AddEnumProp("position", this._position); }
+ if (IsPropDirty("Positioning"))
+ { ser.AddEnumProp("positioning", this._positioning); }
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/BaseComboBox.cs b/src/components/Blazor/BaseComboBox.cs
index 53488ce5..5d51fb31 100644
--- a/src/components/Blazor/BaseComboBox.cs
+++ b/src/components/Blazor/BaseComboBox.cs
@@ -1,131 +1,129 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbBaseComboBox: BaseRendererControl {
- public override string Type { get { return "WebBaseComboBox"; } }
-
- protected override string ResolveDisplay()
- {
- return "inline-block";
- }
-
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Queued; }
- }
-
- public IgbBaseComboBox(): base() {
- OnCreatedIgbBaseComboBox();
-
-
- }
-
- partial void OnCreatedIgbBaseComboBox();
-
- private bool _open = false;
-
- partial void OnOpenChanging(ref bool newValue);
- ///
- /// Sets the open state of the component.
- ///
- [Parameter]
- public bool Open
- {
- get { return this._open; }
- set {
- if (this._open != value || !IsPropDirty("Open")) {
- MarkPropDirty("Open");
- }
- this._open = value;
-
- }
- }
-
- partial void FindByNameBaseComboBox(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameBaseComboBox(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- ///
- /// Shows the component.
- ///
- public async Task ShowAsync()
- {
- var iv = await InvokeMethod("show", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- public bool Show()
- {
- var iv = InvokeMethodSync("show", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- ///
- /// Hides the component.
- ///
- public async Task HideAsync()
- {
- var iv = await InvokeMethod("hide", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- public bool Hide()
- {
- var iv = InvokeMethodSync("hide", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- ///
- /// Toggles the open state of the component.
- ///
- public async Task ToggleAsync()
- {
- var iv = await InvokeMethod("toggle", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- public bool Toggle()
- {
- var iv = InvokeMethodSync("toggle", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
-
- partial void SerializeCoreIgbBaseComboBox(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbBaseComboBox(ser);
-
- if (IsPropDirty("Open")) { ser.AddBooleanProp("open", this._open); }
-
- }
-
-}
+ public partial class IgbBaseComboBox : BaseRendererControl
+ {
+ public override string Type { get { return "WebBaseComboBox"; } }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Queued; }
+ }
+
+ public IgbBaseComboBox() : base()
+ {
+ OnCreatedIgbBaseComboBox();
+
+ }
+
+ partial void OnCreatedIgbBaseComboBox();
+
+ private bool _open = false;
+
+ partial void OnOpenChanging(ref bool newValue);
+ ///
+ /// Sets the open state of the component.
+ ///
+ [Parameter]
+ public bool Open
+ {
+ get { return this._open; }
+ set
+ {
+ if (this._open != value || !IsPropDirty("Open"))
+ {
+ MarkPropDirty("Open");
+ }
+ this._open = value;
+
+ }
+ }
+
+ partial void FindByNameBaseComboBox(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameBaseComboBox(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ ///
+ /// Shows the component.
+ ///
+ public async Task ShowAsync()
+ {
+ var iv = await InvokeMethod("show", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ public bool Show()
+ {
+ var iv = InvokeMethodSync("show", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ ///
+ /// Hides the component.
+ ///
+ public async Task HideAsync()
+ {
+ var iv = await InvokeMethod("hide", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ public bool Hide()
+ {
+ var iv = InvokeMethodSync("hide", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ ///
+ /// Toggles the open state of the component.
+ ///
+ public async Task ToggleAsync()
+ {
+ var iv = await InvokeMethod("toggle", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ public bool Toggle()
+ {
+ var iv = InvokeMethodSync("toggle", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+
+ partial void SerializeCoreIgbBaseComboBox(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbBaseComboBox(ser);
+
+ if (IsPropDirty("Open"))
+ { ser.AddBooleanProp("open", this._open); }
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/BaseOptionLike.cs b/src/components/Blazor/BaseOptionLike.cs
index dc096f59..5f3ce2ed 100644
--- a/src/components/Blazor/BaseOptionLike.cs
+++ b/src/components/Blazor/BaseOptionLike.cs
@@ -1,174 +1,181 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbBaseOptionLike: BaseRendererControl {
- public override string Type { get { return "WebBaseOptionLike"; } }
-
- protected override string ResolveDisplay()
- {
- return "inline-block";
- }
-
- protected override bool SupportsVisualChildren
- {
- get
- {
- return true;
- }
- }
-
- protected override bool UseDirectRender
- {
- get
- {
- return true;
- }
- }
-
- protected override string DirectRenderElementName
- {
- get
- {
- return "igc-base-option-like";
- }
- }
-
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Immediate; }
- }
-
- public IgbBaseOptionLike(): base() {
- OnCreatedIgbBaseOptionLike();
-
-
- }
-
- partial void OnCreatedIgbBaseOptionLike();
-
- private bool _active = false;
-
- partial void OnActiveChanging(ref bool newValue);
- ///
- /// Whether the item is active.
- ///
- [Parameter]
- public bool Active
- {
- get { return this._active; }
- set {
- if (this._active != value || !IsPropDirty("Active")) {
- MarkPropDirty("Active");
- }
- this._active = value;
-
- }
- }
- private bool _disabled = false;
-
- partial void OnDisabledChanging(ref bool newValue);
- ///
- /// Whether the item is disabled.
- ///
- [Parameter]
- public bool Disabled
- {
- get { return this._disabled; }
- set {
- if (this._disabled != value || !IsPropDirty("Disabled")) {
- MarkPropDirty("Disabled");
- }
- this._disabled = value;
-
- }
- }
- private bool _selected = false;
-
- partial void OnSelectedChanging(ref bool newValue);
- ///
- /// Whether the item is selected.
- ///
- [Parameter]
- public bool Selected
- {
- get { return this._selected; }
- set {
- if (this._selected != value || !IsPropDirty("Selected")) {
- MarkPropDirty("Selected");
- }
- this._selected = value;
-
- }
- }
- private string _value;
-
- partial void OnValueChanging(ref string newValue);
- ///
- /// The current value of the item.
- /// If not specified, the element's text content is used.
- ///
- [Parameter]
- public string Value
- {
- get { return this._value; }
- set {
- if (this._value != value || !IsPropDirty("Value")) {
- MarkPropDirty("Value");
- }
- this._value = value;
-
- }
- }
-
- partial void FindByNameBaseOptionLike(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameBaseOptionLike(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
-
- partial void SerializeCoreIgbBaseOptionLike(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbBaseOptionLike(ser);
-
- if (IsPropDirty("Active")) { ser.AddBooleanProp("active", this._active); }
- if (IsPropDirty("Disabled")) { ser.AddBooleanProp("disabled", this._disabled); }
- if (IsPropDirty("Selected")) { ser.AddBooleanProp("selected", this._selected); }
- if (IsPropDirty("Value")) { ser.AddStringProp("value", this._value); }
-
- }
-
-}
+ public partial class IgbBaseOptionLike : BaseRendererControl
+ {
+ public override string Type { get { return "WebBaseOptionLike"; } }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override bool UseDirectRender
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override string DirectRenderElementName
+ {
+ get
+ {
+ return "igc-base-option-like";
+ }
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Immediate; }
+ }
+
+ public IgbBaseOptionLike() : base()
+ {
+ OnCreatedIgbBaseOptionLike();
+
+ }
+
+ partial void OnCreatedIgbBaseOptionLike();
+
+ private bool _active = false;
+
+ partial void OnActiveChanging(ref bool newValue);
+ ///
+ /// Whether the item is active.
+ ///
+ [Parameter]
+ public bool Active
+ {
+ get { return this._active; }
+ set
+ {
+ if (this._active != value || !IsPropDirty("Active"))
+ {
+ MarkPropDirty("Active");
+ }
+ this._active = value;
+
+ }
+ }
+ private bool _disabled = false;
+
+ partial void OnDisabledChanging(ref bool newValue);
+ ///
+ /// Whether the item is disabled.
+ ///
+ [Parameter]
+ public bool Disabled
+ {
+ get { return this._disabled; }
+ set
+ {
+ if (this._disabled != value || !IsPropDirty("Disabled"))
+ {
+ MarkPropDirty("Disabled");
+ }
+ this._disabled = value;
+
+ }
+ }
+ private bool _selected = false;
+
+ partial void OnSelectedChanging(ref bool newValue);
+ ///
+ /// Whether the item is selected.
+ ///
+ [Parameter]
+ public bool Selected
+ {
+ get { return this._selected; }
+ set
+ {
+ if (this._selected != value || !IsPropDirty("Selected"))
+ {
+ MarkPropDirty("Selected");
+ }
+ this._selected = value;
+
+ }
+ }
+ private string _value;
+
+ partial void OnValueChanging(ref string newValue);
+ ///
+ /// The current value of the item.
+ /// If not specified, the element's text content is used.
+ ///
+ [Parameter]
+ public string Value
+ {
+ get { return this._value; }
+ set
+ {
+ if (this._value != value || !IsPropDirty("Value"))
+ {
+ MarkPropDirty("Value");
+ }
+ this._value = value;
+
+ }
+ }
+
+ partial void FindByNameBaseOptionLike(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameBaseOptionLike(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+
+ partial void SerializeCoreIgbBaseOptionLike(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbBaseOptionLike(ser);
+
+ if (IsPropDirty("Active"))
+ { ser.AddBooleanProp("active", this._active); }
+ if (IsPropDirty("Disabled"))
+ { ser.AddBooleanProp("disabled", this._disabled); }
+ if (IsPropDirty("Selected"))
+ { ser.AddBooleanProp("selected", this._selected); }
+ if (IsPropDirty("Value"))
+ { ser.AddStringProp("value", this._value); }
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/Button.cs b/src/components/Blazor/Button.cs
index b52c556c..42a26433 100644
--- a/src/components/Blazor/Button.cs
+++ b/src/components/Blazor/Button.cs
@@ -1,115 +1,113 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbButton: IgbButtonBase {
- public override string Type { get { return "WebButton"; } }
-
- protected override void EnsureModulesLoaded()
- {
- if (!IgbButtonModule.IsLoadRequested(IgBlazor))
- {
- IgbButtonModule.Register(IgBlazor);
- }
- }
-
- protected override string ResolveDisplay()
- {
- return "inline-block";
- }
-
- protected override bool SupportsVisualChildren
- {
- get
- {
- return true;
- }
- }
-
- protected override bool UseDirectRender
- {
- get
- {
- return true;
- }
- }
-
- protected override string DirectRenderElementName
- {
- get
- {
- return "igc-button";
- }
- }
-
- public IgbButton(): base() {
- OnCreatedIgbButton();
-
-
- }
-
- partial void OnCreatedIgbButton();
-
- private ButtonVariant _variant = ButtonVariant.Contained;
-
- partial void OnVariantChanging(ref ButtonVariant newValue);
- ///
- /// The variant of the button which determines its visual appearance.
- /// - `contained` – filled background; highest visual emphasis (default).
- /// - `outlined` – transparent background with a visible border.
- /// - `flat` – no background or border; lowest visual emphasis.
- /// - `fab` – floating action button shape; typically used for primary actions.
- ///
- [Parameter]
- public ButtonVariant Variant
- {
- get { return this._variant; }
- set {
- if (this._variant != value || !IsPropDirty("Variant")) {
- MarkPropDirty("Variant");
- }
- this._variant = value;
-
- }
- }
-
- partial void FindByNameButton(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameButton(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
-
- partial void SerializeCoreIgbButton(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbButton(ser);
-
- if (IsPropDirty("Variant")) { ser.AddEnumProp("variant", this._variant); }
-
- }
-
-}
+ public partial class IgbButton : IgbButtonBase
+ {
+ public override string Type { get { return "WebButton"; } }
+
+ protected override void EnsureModulesLoaded()
+ {
+ if (!IgbButtonModule.IsLoadRequested(IgBlazor))
+ {
+ IgbButtonModule.Register(IgBlazor);
+ }
+ }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override bool UseDirectRender
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override string DirectRenderElementName
+ {
+ get
+ {
+ return "igc-button";
+ }
+ }
+
+ public IgbButton() : base()
+ {
+ OnCreatedIgbButton();
+
+ }
+
+ partial void OnCreatedIgbButton();
+
+ private ButtonVariant _variant = ButtonVariant.Contained;
+
+ partial void OnVariantChanging(ref ButtonVariant newValue);
+ ///
+ /// The variant of the button which determines its visual appearance.
+ /// - `contained` – filled background; highest visual emphasis (default).
+ /// - `outlined` – transparent background with a visible border.
+ /// - `flat` – no background or border; lowest visual emphasis.
+ /// - `fab` – floating action button shape; typically used for primary actions.
+ ///
+ [Parameter]
+ public ButtonVariant Variant
+ {
+ get { return this._variant; }
+ set
+ {
+ if (this._variant != value || !IsPropDirty("Variant"))
+ {
+ MarkPropDirty("Variant");
+ }
+ this._variant = value;
+
+ }
+ }
+
+ partial void FindByNameButton(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameButton(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+
+ partial void SerializeCoreIgbButton(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbButton(ser);
+
+ if (IsPropDirty("Variant"))
+ { ser.AddEnumProp("variant", this._variant); }
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/ButtonBase.cs b/src/components/Blazor/ButtonBase.cs
index 18725edb..c809da8e 100644
--- a/src/components/Blazor/ButtonBase.cs
+++ b/src/components/Blazor/ButtonBase.cs
@@ -1,426 +1,457 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbButtonBase: BaseRendererControl {
- public override string Type { get { return "WebButtonBase"; } }
+ public partial class IgbButtonBase : BaseRendererControl
+ {
+ public override string Type { get { return "WebButtonBase"; } }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override bool UseDirectRender
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override string DirectRenderElementName
+ {
+ get
+ {
+ return "igc-button-base";
+ }
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Immediate; }
+ }
+
+ public IgbButtonBase() : base()
+ {
+ OnCreatedIgbButtonBase();
+
+ }
+
+ partial void OnCreatedIgbButtonBase();
+
+ private ButtonBaseType _displayType = ButtonBaseType.Button;
+
+ partial void OnDisplayTypeChanging(ref ButtonBaseType newValue);
+ ///
+ /// The type of the button, which determines its behavior and semantics.
+ /// - `'button'` – no default action; useful for custom JavaScript handlers.
+ /// - `'submit'` – submits the associated form when clicked.
+ /// - `'reset'` – resets the associated form fields to their initial values.
+ /// Ignored when the button is rendered as a link (i.e. `href` is set).
+ ///
+ [Parameter]
+ [WCWidgetMemberName("Type")]
+ public ButtonBaseType DisplayType
+ {
+ get { return this._displayType; }
+ set
+ {
+ if (this._displayType != value || !IsPropDirty("DisplayType"))
+ {
+ MarkPropDirty("DisplayType");
+ }
+ this._displayType = value;
+
+ }
+ }
+ private string _href;
+
+ partial void OnHrefChanging(ref string newValue);
+ [Parameter]
+ public string Href
+ {
+ get { return this._href; }
+ set
+ {
+ if (this._href != value || !IsPropDirty("Href"))
+ {
+ MarkPropDirty("Href");
+ }
+ this._href = value;
+
+ }
+ }
+ private string _download;
+
+ partial void OnDownloadChanging(ref string newValue);
+ ///
+ /// Prompts the browser to download the linked resource rather than navigating
+ /// to it. The optional value is used as the suggested file name.
+ /// Only effective when `href` is set.
+ ///
+ [Parameter]
+ public string Download
+ {
+ get { return this._download; }
+ set
+ {
+ if (this._download != value || !IsPropDirty("Download"))
+ {
+ MarkPropDirty("Download");
+ }
+ this._download = value;
+
+ }
+ }
+ private ButtonBaseTarget _target = ButtonBaseTarget._blank;
+
+ partial void OnTargetChanging(ref ButtonBaseTarget newValue);
+ ///
+ /// Where to open the linked document. Only effective when `href` is set.
+ /// - `'_self'` – current browsing context (default browser behavior).
+ /// - `'_blank'` – new tab or window.
+ /// - `'_parent'` – parent browsing context; falls back to `_self` if none.
+ /// - `'_top'` – top-level browsing context; falls back to `_self` if none.
+ ///
+ [Parameter]
+ public ButtonBaseTarget Target
+ {
+ get { return this._target; }
+ set
+ {
+ if (this._target != value || !IsPropDirty("Target"))
+ {
+ MarkPropDirty("Target");
+ }
+ this._target = value;
+
+ }
+ }
+ private string _rel;
+
+ partial void OnRelChanging(ref string newValue);
+ ///
+ /// The relationship between the current document and the linked URL.
+ /// Accepts a space-separated list of link types (e.g. `'noopener noreferrer'`).
+ /// Only effective when `href` is set. When `target="_blank"` is used,
+ /// setting `rel="noopener noreferrer"` is strongly recommended for security.
+ ///
+ [Parameter]
+ public string Rel
+ {
+ get { return this._rel; }
+ set
+ {
+ if (this._rel != value || !IsPropDirty("Rel"))
+ {
+ MarkPropDirty("Rel");
+ }
+ this._rel = value;
+
+ }
+ }
+ private bool _disabled = false;
+
+ partial void OnDisabledChanging(ref bool newValue);
+ ///
+ /// When set, the button will be disabled and non-interactive.
+ ///
+ [Parameter]
+ public bool Disabled
+ {
+ get { return this._disabled; }
+ set
+ {
+ if (this._disabled != value || !IsPropDirty("Disabled"))
+ {
+ MarkPropDirty("Disabled");
+ }
+ this._disabled = value;
+
+ }
+ }
+ private string _command;
+
+ partial void OnCommandChanging(ref string newValue);
+ ///
+ /// The command to invoke on the target element specified by `commandfor`.
+ /// Part of the [Invoker Commands](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API) API.
+ /// Custom commands must start with two dashes (e.g. `'--my-command'`).
+ ///
+ [Parameter]
+ public string Command
+ {
+ get { return this._command; }
+ set
+ {
+ if (this._command != value || !IsPropDirty("Command"))
+ {
+ MarkPropDirty("Command");
+ }
+ this._command = value;
- protected override string ResolveDisplay()
+ }
+ }
+ private string? _commandfor;
+
+ partial void OnCommandforChanging(ref string? newValue);
+ ///
+ /// The ID of the target element for the invoker command.
+ /// Part of the [Invoker Commands API](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API).
+ ///
+ [Parameter]
+ public string? Commandfor
+ {
+ get { return this._commandfor; }
+ set
+ {
+ if (this._commandfor != value || !IsPropDirty("Commandfor"))
+ {
+ MarkPropDirty("Commandfor");
+ }
+ this._commandfor = value;
+
+ }
+ }
+
+ partial void FindByNameButtonBase(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameButtonBase(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ ///
+ /// Sets focus in the button.
+ ///
+
+ [WCWidgetMemberName("Focus")]
+ public async Task FocusComponentAsync(IgbFocusOptions options)
+ {
+ await InvokeMethod("focus", new object[] { ObjectToParam(options) }, new string[] { "Json" });
+ }
+
+ [WCWidgetMemberName("Focus")]
+ public void FocusComponent(IgbFocusOptions options)
+ {
+ InvokeMethodSync("focus", new object[] { ObjectToParam(options) }, new string[] { "Json" });
+ }
+ ///
+ /// Removes focus from the button.
+ ///
+
+ [WCWidgetMemberName("Blur")]
+ public async Task BlurComponentAsync()
+ {
+ await InvokeMethod("blur", new object[] { }, new string[] { });
+ }
+
+ [WCWidgetMemberName("Blur")]
+ public void BlurComponent()
+ {
+ InvokeMethodSync("blur", new object[] { }, new string[] { });
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ ///
+ /// Simulates a mouse click on the button, triggering its click handler and any associated form action.
+ ///
+ public async Task ClickAsync()
+ {
+ await InvokeMethod("click", new object[] { }, new string[] { });
+ }
+ public void Click()
+ {
+ InvokeMethodSync("click", new object[] { }, new string[] { });
+ }
+
+ private string _focusRef = null;
+ private string _focusScript = null;
+ [Parameter]
+ public string FocusScript
+ {
+
+ set
+ {
+ if (value != this._focusScript)
+ {
+ this._focusScript = value;
+ this.OnRefChanged("Focus", null, value, true, false, (string refName, object oldValue, object newValue) =>
+ {
+ this._focusRef = refName;
+ this.MarkPropDirty("FocusRef");
+ });
+ }
+ }
+ get
+ {
+ return this._focusScript;
+ }
+ }
+
+ partial void OnHandlingFocus(IgbVoidEventArgs args);
+ private EventCallback? _focus = null;
+ [Parameter]
+ public EventCallback Focus
+ {
+ get
+ {
+ return this._focus != null ? this._focus.Value : EventCallback.Empty;
+ }
+ set
+ {
+ if (!value.Equals(EventCallback.Empty))
+ {
+ if (!CompareEventCallbacks(value, _focus, ref eventCallbacksCache))
+ {
+ _focus = value;
+ this.SetHandler(this.Name, "Focus", value, (args) =>
{
- return "inline-block";
- }
+ OnHandlingFocus(args);
- protected override bool SupportsVisualChildren
+ });
+ this.OnRefChanged("Focus", null, "nativeEvent:::Focus", true, false, (refName, oldValue, newValue) =>
{
- get
- {
- return true;
- }
- }
+ this._focusRef = refName;
+ this.MarkPropDirty("FocusRef");
+ });
+ }
+ }
+ else
+ {
+ _focus = null;
+ this.SetHandler(this.Name, "Focus", null);
+ this.OnRefChanged("Focus", null, null, true, false, (refName, oldValue, newValue) =>
+ {
+ this._focusRef = null;
+ this.MarkPropDirty("FocusRef");
+ });
+ }
+ }
+ }
+
+ private string _blurRef = null;
+ private string _blurScript = null;
+ [Parameter]
+ public string BlurScript
+ {
- protected override bool UseDirectRender
+ set
+ {
+ if (value != this._blurScript)
+ {
+ this._blurScript = value;
+ this.OnRefChanged("Blur", null, value, true, false, (string refName, object oldValue, object newValue) =>
+ {
+ this._blurRef = refName;
+ this.MarkPropDirty("BlurRef");
+ });
+ }
+ }
+ get
+ {
+ return this._blurScript;
+ }
+ }
+
+ partial void OnHandlingBlur(IgbVoidEventArgs args);
+ private EventCallback? _blur = null;
+ [Parameter]
+ public EventCallback Blur
+ {
+ get
+ {
+ return this._blur != null ? this._blur.Value : EventCallback.Empty;
+ }
+ set
+ {
+ if (!value.Equals(EventCallback.Empty))
+ {
+ if (!CompareEventCallbacks(value, _blur, ref eventCallbacksCache))
+ {
+ _blur = value;
+ this.SetHandler(this.Name, "Blur", value, (args) =>
{
- get
- {
- return true;
- }
- }
+ OnHandlingBlur(args);
- protected override string DirectRenderElementName
+ });
+ this.OnRefChanged("Blur", null, "nativeEvent:::Blur", true, false, (refName, oldValue, newValue) =>
{
- get
- {
- return "igc-button-base";
- }
- }
-
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Immediate; }
- }
-
- public IgbButtonBase(): base() {
- OnCreatedIgbButtonBase();
-
-
- }
-
- partial void OnCreatedIgbButtonBase();
-
- private ButtonBaseType _displayType = ButtonBaseType.Button;
-
- partial void OnDisplayTypeChanging(ref ButtonBaseType newValue);
- ///
- /// The type of the button, which determines its behavior and semantics.
- /// - `'button'` – no default action; useful for custom JavaScript handlers.
- /// - `'submit'` – submits the associated form when clicked.
- /// - `'reset'` – resets the associated form fields to their initial values.
- /// Ignored when the button is rendered as a link (i.e. `href` is set).
- ///
- [Parameter]
- [WCWidgetMemberName("Type")]
- public ButtonBaseType DisplayType
- {
- get { return this._displayType; }
- set {
- if (this._displayType != value || !IsPropDirty("DisplayType")) {
- MarkPropDirty("DisplayType");
- }
- this._displayType = value;
-
- }
- }
- private string _href;
-
- partial void OnHrefChanging(ref string newValue);
- [Parameter]
- public string Href
- {
- get { return this._href; }
- set {
- if (this._href != value || !IsPropDirty("Href")) {
- MarkPropDirty("Href");
- }
- this._href = value;
-
- }
- }
- private string _download;
-
- partial void OnDownloadChanging(ref string newValue);
- ///
- /// Prompts the browser to download the linked resource rather than navigating
- /// to it. The optional value is used as the suggested file name.
- /// Only effective when `href` is set.
- ///
- [Parameter]
- public string Download
- {
- get { return this._download; }
- set {
- if (this._download != value || !IsPropDirty("Download")) {
- MarkPropDirty("Download");
- }
- this._download = value;
-
- }
- }
- private ButtonBaseTarget _target = ButtonBaseTarget._blank;
-
- partial void OnTargetChanging(ref ButtonBaseTarget newValue);
- ///
- /// Where to open the linked document. Only effective when `href` is set.
- /// - `'_self'` – current browsing context (default browser behavior).
- /// - `'_blank'` – new tab or window.
- /// - `'_parent'` – parent browsing context; falls back to `_self` if none.
- /// - `'_top'` – top-level browsing context; falls back to `_self` if none.
- ///
- [Parameter]
- public ButtonBaseTarget Target
- {
- get { return this._target; }
- set {
- if (this._target != value || !IsPropDirty("Target")) {
- MarkPropDirty("Target");
- }
- this._target = value;
-
- }
- }
- private string _rel;
-
- partial void OnRelChanging(ref string newValue);
- ///
- /// The relationship between the current document and the linked URL.
- /// Accepts a space-separated list of link types (e.g. `'noopener noreferrer'`).
- /// Only effective when `href` is set. When `target="_blank"` is used,
- /// setting `rel="noopener noreferrer"` is strongly recommended for security.
- ///
- [Parameter]
- public string Rel
- {
- get { return this._rel; }
- set {
- if (this._rel != value || !IsPropDirty("Rel")) {
- MarkPropDirty("Rel");
- }
- this._rel = value;
-
- }
- }
- private bool _disabled = false;
-
- partial void OnDisabledChanging(ref bool newValue);
- ///
- /// When set, the button will be disabled and non-interactive.
- ///
- [Parameter]
- public bool Disabled
- {
- get { return this._disabled; }
- set {
- if (this._disabled != value || !IsPropDirty("Disabled")) {
- MarkPropDirty("Disabled");
- }
- this._disabled = value;
-
- }
- }
- private string _command;
-
- partial void OnCommandChanging(ref string newValue);
- ///
- /// The command to invoke on the target element specified by `commandfor`.
- /// Part of the [Invoker Commands](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API) API.
- /// Custom commands must start with two dashes (e.g. `'--my-command'`).
- ///
- [Parameter]
- public string Command
- {
- get { return this._command; }
- set {
- if (this._command != value || !IsPropDirty("Command")) {
- MarkPropDirty("Command");
- }
- this._command = value;
-
- }
- }
- private string? _commandfor;
-
- partial void OnCommandforChanging(ref string? newValue);
- ///
- /// The ID of the target element for the invoker command.
- /// Part of the [Invoker Commands API](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API).
- ///
- [Parameter]
- public string? Commandfor
- {
- get { return this._commandfor; }
- set {
- if (this._commandfor != value || !IsPropDirty("Commandfor")) {
- MarkPropDirty("Commandfor");
- }
- this._commandfor = value;
-
- }
- }
-
- partial void FindByNameButtonBase(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameButtonBase(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- ///
- /// Sets focus in the button.
- ///
-
- [WCWidgetMemberName("Focus")]
- public async Task FocusComponentAsync(IgbFocusOptions options)
- {
- await InvokeMethod("focus", new object[] { ObjectToParam(options) }, new string[] { "Json" });
- }
-
- [WCWidgetMemberName("Focus")]
- public void FocusComponent(IgbFocusOptions options)
- {
- InvokeMethodSync("focus", new object[] { ObjectToParam(options) }, new string[] { "Json" });
- }
- ///
- /// Removes focus from the button.
- ///
-
- [WCWidgetMemberName("Blur")]
- public async Task BlurComponentAsync()
- {
- await InvokeMethod("blur", new object[] { }, new string[] { });
- }
-
- [WCWidgetMemberName("Blur")]
- public void BlurComponent()
- {
- InvokeMethodSync("blur", new object[] { }, new string[] { });
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- ///
- /// Simulates a mouse click on the button, triggering its click handler and any associated form action.
- ///
- public async Task ClickAsync()
- {
- await InvokeMethod("click", new object[] { }, new string[] { });
- }
- public void Click()
- {
- InvokeMethodSync("click", new object[] { }, new string[] { });
- }
-
- private string _focusRef = null;
- private string _focusScript = null;
- [Parameter]
- public string FocusScript {
-
- set
- {
- if (value != this._focusScript)
- {
- this._focusScript = value;
- this.OnRefChanged("Focus", null, value, true, false, (string refName, object oldValue, object newValue) => {
- this._focusRef = refName;
- this.MarkPropDirty("FocusRef");
- });
- }
- }
- get
- {
- return this._focusScript;
- }
- }
-
- partial void OnHandlingFocus(IgbVoidEventArgs args);
- private EventCallback? _focus = null;
- [Parameter]
- public EventCallback Focus
- {
- get
- {
- return this._focus != null ? this._focus.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _focus, ref eventCallbacksCache))
- {
- _focus = value;
- this.SetHandler(this.Name, "Focus", value, (args) => {
- OnHandlingFocus(args);
-
- });
- this.OnRefChanged("Focus", null, "nativeEvent:::Focus", true, false, (refName, oldValue, newValue) => {
- this._focusRef = refName;
- this.MarkPropDirty("FocusRef");
- });
- }
- }
- else
- {
- _focus = null;
- this.SetHandler(this.Name, "Focus", null);
- this.OnRefChanged("Focus", null, null, true, false, (refName, oldValue, newValue) => {
- this._focusRef = null;
- this.MarkPropDirty("FocusRef");
- });
- }
- }
- }
-
- private string _blurRef = null;
- private string _blurScript = null;
- [Parameter]
- public string BlurScript {
-
- set
- {
- if (value != this._blurScript)
- {
- this._blurScript = value;
- this.OnRefChanged("Blur", null, value, true, false, (string refName, object oldValue, object newValue) => {
- this._blurRef = refName;
- this.MarkPropDirty("BlurRef");
- });
- }
- }
- get
- {
- return this._blurScript;
- }
- }
-
- partial void OnHandlingBlur(IgbVoidEventArgs args);
- private EventCallback? _blur = null;
- [Parameter]
- public EventCallback Blur
- {
- get
- {
- return this._blur != null ? this._blur.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _blur, ref eventCallbacksCache))
- {
- _blur = value;
- this.SetHandler(this.Name, "Blur", value, (args) => {
- OnHandlingBlur(args);
-
- });
- this.OnRefChanged("Blur", null, "nativeEvent:::Blur", true, false, (refName, oldValue, newValue) => {
- this._blurRef = refName;
- this.MarkPropDirty("BlurRef");
- });
- }
- }
- else
- {
- _blur = null;
- this.SetHandler(this.Name, "Blur", null);
- this.OnRefChanged("Blur", null, null, true, false, (refName, oldValue, newValue) => {
- this._blurRef = null;
- this.MarkPropDirty("BlurRef");
- });
- }
- }
- }
-
- partial void SerializeCoreIgbButtonBase(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbButtonBase(ser);
-
- if (IsPropDirty("DisplayType")) { ser.AddEnumProp("displayType", this._displayType); }
- if (IsPropDirty("Href")) { ser.AddStringProp("href", this._href); }
- if (IsPropDirty("Download")) { ser.AddStringProp("download", this._download); }
- if (IsPropDirty("Target")) { ser.AddEnumProp("target", this._target); }
- if (IsPropDirty("Rel")) { ser.AddStringProp("rel", this._rel); }
- if (IsPropDirty("Disabled")) { ser.AddBooleanProp("disabled", this._disabled); }
- if (IsPropDirty("Command")) { ser.AddStringProp("command", this._command); }
- if (IsPropDirty("Commandfor")) { ser.AddStringProp("commandfor", this._commandfor); }
- if (IsPropDirty("FocusRef")) { ser.AddStringProp("focusRef", this._focusRef); }
- if (IsPropDirty("BlurRef")) { ser.AddStringProp("blurRef", this._blurRef); }
-
- }
-
-}
+ this._blurRef = refName;
+ this.MarkPropDirty("BlurRef");
+ });
+ }
+ }
+ else
+ {
+ _blur = null;
+ this.SetHandler(this.Name, "Blur", null);
+ this.OnRefChanged("Blur", null, null, true, false, (refName, oldValue, newValue) =>
+ {
+ this._blurRef = null;
+ this.MarkPropDirty("BlurRef");
+ });
+ }
+ }
+ }
+
+ partial void SerializeCoreIgbButtonBase(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbButtonBase(ser);
+
+ if (IsPropDirty("DisplayType"))
+ { ser.AddEnumProp("displayType", this._displayType); }
+ if (IsPropDirty("Href"))
+ { ser.AddStringProp("href", this._href); }
+ if (IsPropDirty("Download"))
+ { ser.AddStringProp("download", this._download); }
+ if (IsPropDirty("Target"))
+ { ser.AddEnumProp("target", this._target); }
+ if (IsPropDirty("Rel"))
+ { ser.AddStringProp("rel", this._rel); }
+ if (IsPropDirty("Disabled"))
+ { ser.AddBooleanProp("disabled", this._disabled); }
+ if (IsPropDirty("Command"))
+ { ser.AddStringProp("command", this._command); }
+ if (IsPropDirty("Commandfor"))
+ { ser.AddStringProp("commandfor", this._commandfor); }
+ if (IsPropDirty("FocusRef"))
+ { ser.AddStringProp("focusRef", this._focusRef); }
+ if (IsPropDirty("BlurRef"))
+ { ser.AddStringProp("blurRef", this._blurRef); }
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/ButtonBaseTarget.cs b/src/components/Blazor/ButtonBaseTarget.cs
index a5229b2e..bba827ea 100644
--- a/src/components/Blazor/ButtonBaseTarget.cs
+++ b/src/components/Blazor/ButtonBaseTarget.cs
@@ -1,10 +1,11 @@
namespace IgniteUI.Blazor.Controls
{
-public enum ButtonBaseTarget {
- _blank,
- _parent,
- _self,
- _top
+ public enum ButtonBaseTarget
+ {
+ _blank,
+ _parent,
+ _self,
+ _top
-}
+ }
}
diff --git a/src/components/Blazor/ButtonBaseType.cs b/src/components/Blazor/ButtonBaseType.cs
index 266b1dbe..3b787012 100644
--- a/src/components/Blazor/ButtonBaseType.cs
+++ b/src/components/Blazor/ButtonBaseType.cs
@@ -1,9 +1,10 @@
namespace IgniteUI.Blazor.Controls
{
-public enum ButtonBaseType {
- Button,
- Reset,
- Submit
+ public enum ButtonBaseType
+ {
+ Button,
+ Reset,
+ Submit
-}
+ }
}
diff --git a/src/components/Blazor/ButtonGroup.cs b/src/components/Blazor/ButtonGroup.cs
index c27ae9ae..9476af85 100644
--- a/src/components/Blazor/ButtonGroup.cs
+++ b/src/components/Blazor/ButtonGroup.cs
@@ -1,303 +1,322 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- ///
-/// The `igc-button-group` groups a series of `igc-toggle-button`s together, exposing features such as layout and selection.
-///
-public partial class IgbButtonGroup: BaseRendererControl {
- public override string Type { get { return "WebButtonGroup"; } }
-
- protected override void EnsureModulesLoaded()
- {
- if (!IgbButtonGroupModule.IsLoadRequested(IgBlazor))
- {
- IgbButtonGroupModule.Register(IgBlazor);
- }
- }
-
- protected override string ResolveDisplay()
+ ///
+ /// The `igc-button-group` groups a series of `igc-toggle-button`s together, exposing features such as layout and selection.
+ ///
+ public partial class IgbButtonGroup : BaseRendererControl
+ {
+ public override string Type { get { return "WebButtonGroup"; } }
+
+ protected override void EnsureModulesLoaded()
+ {
+ if (!IgbButtonGroupModule.IsLoadRequested(IgBlazor))
+ {
+ IgbButtonGroupModule.Register(IgBlazor);
+ }
+ }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override bool UseDirectRender
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override string DirectRenderElementName
+ {
+ get
+ {
+ return "igc-button-group";
+ }
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Immediate; }
+ }
+
+ public IgbButtonGroup() : base()
+ {
+ OnCreatedIgbButtonGroup();
+
+ }
+
+ partial void OnCreatedIgbButtonGroup();
+
+ private bool _disabled = false;
+
+ partial void OnDisabledChanging(ref bool newValue);
+ ///
+ /// Disables all buttons inside the group.
+ ///
+ [Parameter]
+ public bool Disabled
+ {
+ get { return this._disabled; }
+ set
+ {
+ if (this._disabled != value || !IsPropDirty("Disabled"))
+ {
+ MarkPropDirty("Disabled");
+ }
+ this._disabled = value;
+
+ }
+ }
+ private ContentOrientation _alignment = ContentOrientation.Horizontal;
+
+ partial void OnAlignmentChanging(ref ContentOrientation newValue);
+ ///
+ /// Sets the orientation of the buttons in the group.
+ ///
+ [Parameter]
+ public ContentOrientation Alignment
+ {
+ get { return this._alignment; }
+ set
+ {
+ if (this._alignment != value || !IsPropDirty("Alignment"))
+ {
+ MarkPropDirty("Alignment");
+ }
+ this._alignment = value;
+
+ }
+ }
+ private ButtonGroupSelection _selection = ButtonGroupSelection.Single;
+
+ partial void OnSelectionChanging(ref ButtonGroupSelection newValue);
+ ///
+ /// Controls the mode of selection for the button group.
+ ///
+ [Parameter]
+ public ButtonGroupSelection Selection
+ {
+ get { return this._selection; }
+ set
+ {
+ if (this._selection != value || !IsPropDirty("Selection"))
+ {
+ MarkPropDirty("Selection");
+ }
+ this._selection = value;
+
+ }
+ }
+ private string[] _selectedItems;
+
+ partial void OnSelectedItemsChanging(ref string[] newValue);
+ [Parameter]
+ public string[] SelectedItems
+ {
+ get { return this._selectedItems; }
+ set
+ {
+ if (this._selectedItems != value || !IsPropDirty("SelectedItems"))
+ {
+ MarkPropDirty("SelectedItems");
+ }
+ this._selectedItems = value;
+
+ }
+ }
+
+ partial void FindByNameButtonGroup(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameButtonGroup(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+
+ private string _selectRef = null;
+ private string _selectScript = null;
+ [Parameter]
+ public string SelectScript
+ {
+
+ set
+ {
+ if (value != this._selectScript)
+ {
+ this._selectScript = value;
+ this.OnRefChanged("Select", null, value, true, false, (string refName, object oldValue, object newValue) =>
+ {
+ this._selectRef = refName;
+ this.MarkPropDirty("SelectRef");
+ });
+ }
+ }
+ get
+ {
+ return this._selectScript;
+ }
+ }
+
+ partial void OnHandlingSelect(IgbComponentValueChangedEventArgs args);
+ private EventCallback? _select = null;
+ [Parameter]
+ public EventCallback Select
+ {
+ get
+ {
+ return this._select != null ? this._select.Value : EventCallback.Empty;
+ }
+ set
+ {
+ if (!value.Equals(EventCallback.Empty))
+ {
+ if (!CompareEventCallbacks(value, _select, ref eventCallbacksCache))
+ {
+ _select = value;
+ this.SetHandler(this.Name, "Select", value, (args) =>
{
- return "inline-block";
- }
+ OnHandlingSelect(args);
- protected override bool SupportsVisualChildren
+ });
+ this.OnRefChanged("Select", null, "event:::Select", true, false, (refName, oldValue, newValue) =>
{
- get
- {
- return true;
- }
- }
+ this._selectRef = refName;
+ this.MarkPropDirty("SelectRef");
+ });
+ }
+ }
+ else
+ {
+ _select = null;
+ this.SetHandler(this.Name, "Select", null);
+ this.OnRefChanged("Select", null, null, true, false, (refName, oldValue, newValue) =>
+ {
+ this._selectRef = null;
+ this.MarkPropDirty("SelectRef");
+ });
+ }
+ }
+ }
+
+ private string _deselectRef = null;
+ private string _deselectScript = null;
+ [Parameter]
+ public string DeselectScript
+ {
- protected override bool UseDirectRender
+ set
+ {
+ if (value != this._deselectScript)
+ {
+ this._deselectScript = value;
+ this.OnRefChanged("Deselect", null, value, true, false, (string refName, object oldValue, object newValue) =>
+ {
+ this._deselectRef = refName;
+ this.MarkPropDirty("DeselectRef");
+ });
+ }
+ }
+ get
+ {
+ return this._deselectScript;
+ }
+ }
+
+ partial void OnHandlingDeselect(IgbComponentValueChangedEventArgs args);
+ private EventCallback? _deselect = null;
+ [Parameter]
+ public EventCallback Deselect
+ {
+ get
+ {
+ return this._deselect != null ? this._deselect.Value : EventCallback.Empty;
+ }
+ set
+ {
+ if (!value.Equals(EventCallback.Empty))
+ {
+ if (!CompareEventCallbacks(value, _deselect, ref eventCallbacksCache))
+ {
+ _deselect = value;
+ this.SetHandler(this.Name, "Deselect", value, (args) =>
{
- get
- {
- return true;
- }
- }
+ OnHandlingDeselect(args);
- protected override string DirectRenderElementName
+ });
+ this.OnRefChanged("Deselect", null, "event:::Deselect", true, false, (refName, oldValue, newValue) =>
{
- get
- {
- return "igc-button-group";
- }
- }
-
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Immediate; }
- }
-
- public IgbButtonGroup(): base() {
- OnCreatedIgbButtonGroup();
-
-
- }
-
- partial void OnCreatedIgbButtonGroup();
-
- private bool _disabled = false;
-
- partial void OnDisabledChanging(ref bool newValue);
- ///
- /// Disables all buttons inside the group.
- ///
- [Parameter]
- public bool Disabled
- {
- get { return this._disabled; }
- set {
- if (this._disabled != value || !IsPropDirty("Disabled")) {
- MarkPropDirty("Disabled");
- }
- this._disabled = value;
-
- }
- }
- private ContentOrientation _alignment = ContentOrientation.Horizontal;
-
- partial void OnAlignmentChanging(ref ContentOrientation newValue);
- ///
- /// Sets the orientation of the buttons in the group.
- ///
- [Parameter]
- public ContentOrientation Alignment
- {
- get { return this._alignment; }
- set {
- if (this._alignment != value || !IsPropDirty("Alignment")) {
- MarkPropDirty("Alignment");
- }
- this._alignment = value;
-
- }
- }
- private ButtonGroupSelection _selection = ButtonGroupSelection.Single;
-
- partial void OnSelectionChanging(ref ButtonGroupSelection newValue);
- ///
- /// Controls the mode of selection for the button group.
- ///
- [Parameter]
- public ButtonGroupSelection Selection
- {
- get { return this._selection; }
- set {
- if (this._selection != value || !IsPropDirty("Selection")) {
- MarkPropDirty("Selection");
- }
- this._selection = value;
-
- }
- }
- private string[] _selectedItems;
-
- partial void OnSelectedItemsChanging(ref string[] newValue);
- [Parameter]
- public string[] SelectedItems
- {
- get { return this._selectedItems; }
- set {
- if (this._selectedItems != value || !IsPropDirty("SelectedItems")) {
- MarkPropDirty("SelectedItems");
- }
- this._selectedItems = value;
-
- }
- }
-
- partial void FindByNameButtonGroup(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameButtonGroup(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
-
- private string _selectRef = null;
- private string _selectScript = null;
- [Parameter]
- public string SelectScript {
-
- set
- {
- if (value != this._selectScript)
- {
- this._selectScript = value;
- this.OnRefChanged("Select", null, value, true, false, (string refName, object oldValue, object newValue) => {
- this._selectRef = refName;
- this.MarkPropDirty("SelectRef");
- });
- }
- }
- get
- {
- return this._selectScript;
- }
- }
-
- partial void OnHandlingSelect(IgbComponentValueChangedEventArgs args);
- private EventCallback? _select = null;
- [Parameter]
- public EventCallback Select
- {
- get
- {
- return this._select != null ? this._select.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _select, ref eventCallbacksCache))
- {
- _select = value;
- this.SetHandler(this.Name, "Select", value, (args) => {
- OnHandlingSelect(args);
-
- });
- this.OnRefChanged("Select", null, "event:::Select", true, false, (refName, oldValue, newValue) => {
- this._selectRef = refName;
- this.MarkPropDirty("SelectRef");
- });
- }
- }
- else
- {
- _select = null;
- this.SetHandler(this.Name, "Select", null);
- this.OnRefChanged("Select", null, null, true, false, (refName, oldValue, newValue) => {
- this._selectRef = null;
- this.MarkPropDirty("SelectRef");
- });
- }
- }
- }
-
- private string _deselectRef = null;
- private string _deselectScript = null;
- [Parameter]
- public string DeselectScript {
-
- set
- {
- if (value != this._deselectScript)
- {
- this._deselectScript = value;
- this.OnRefChanged("Deselect", null, value, true, false, (string refName, object oldValue, object newValue) => {
- this._deselectRef = refName;
- this.MarkPropDirty("DeselectRef");
- });
- }
- }
- get
- {
- return this._deselectScript;
- }
- }
-
- partial void OnHandlingDeselect(IgbComponentValueChangedEventArgs args);
- private EventCallback? _deselect = null;
- [Parameter]
- public EventCallback Deselect
- {
- get
- {
- return this._deselect != null ? this._deselect.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _deselect, ref eventCallbacksCache))
- {
- _deselect = value;
- this.SetHandler(this.Name, "Deselect", value, (args) => {
- OnHandlingDeselect(args);
-
- });
- this.OnRefChanged("Deselect", null, "event:::Deselect", true, false, (refName, oldValue, newValue) => {
- this._deselectRef = refName;
- this.MarkPropDirty("DeselectRef");
- });
- }
- }
- else
- {
- _deselect = null;
- this.SetHandler(this.Name, "Deselect", null);
- this.OnRefChanged("Deselect", null, null, true, false, (refName, oldValue, newValue) => {
- this._deselectRef = null;
- this.MarkPropDirty("DeselectRef");
- });
- }
- }
- }
-
- partial void SerializeCoreIgbButtonGroup(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbButtonGroup(ser);
-
- if (IsPropDirty("Disabled")) { ser.AddBooleanProp("disabled", this._disabled); }
- if (IsPropDirty("Alignment")) { ser.AddEnumProp("alignment", this._alignment); }
- if (IsPropDirty("Selection")) { ser.AddEnumProp("selection", this._selection); }
- if (IsPropDirty("SelectedItems")) { ser.AddArrayProp("selectedItems", this._selectedItems); }
- if (IsPropDirty("SelectRef")) { ser.AddStringProp("selectRef", this._selectRef); }
- if (IsPropDirty("DeselectRef")) { ser.AddStringProp("deselectRef", this._deselectRef); }
-
- }
-
-}
+ this._deselectRef = refName;
+ this.MarkPropDirty("DeselectRef");
+ });
+ }
+ }
+ else
+ {
+ _deselect = null;
+ this.SetHandler(this.Name, "Deselect", null);
+ this.OnRefChanged("Deselect", null, null, true, false, (refName, oldValue, newValue) =>
+ {
+ this._deselectRef = null;
+ this.MarkPropDirty("DeselectRef");
+ });
+ }
+ }
+ }
+
+ partial void SerializeCoreIgbButtonGroup(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbButtonGroup(ser);
+
+ if (IsPropDirty("Disabled"))
+ { ser.AddBooleanProp("disabled", this._disabled); }
+ if (IsPropDirty("Alignment"))
+ { ser.AddEnumProp("alignment", this._alignment); }
+ if (IsPropDirty("Selection"))
+ { ser.AddEnumProp("selection", this._selection); }
+ if (IsPropDirty("SelectedItems"))
+ { ser.AddArrayProp("selectedItems", this._selectedItems); }
+ if (IsPropDirty("SelectRef"))
+ { ser.AddStringProp("selectRef", this._selectRef); }
+ if (IsPropDirty("DeselectRef"))
+ { ser.AddStringProp("deselectRef", this._deselectRef); }
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/ButtonGroupModule.cs b/src/components/Blazor/ButtonGroupModule.cs
index 9b07ee6d..ea6f612a 100644
--- a/src/components/Blazor/ButtonGroupModule.cs
+++ b/src/components/Blazor/ButtonGroupModule.cs
@@ -1,24 +1,22 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-using System.Text;
-using System.Collections.Generic;
-
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbButtonGroupModule {
- public static void Register(IIgniteUIBlazor runtime) {
+ public partial class IgbButtonGroupModule
+ {
+ public static void Register(IIgniteUIBlazor runtime)
+ {
ModuleLoader.Load(runtime, "WebButtonGroupModule");
IgbToggleButtonModule.MarkIsLoadRequested(runtime);
}
- public static void MarkIsLoadRequested(IIgniteUIBlazor runtime) {
+ public static void MarkIsLoadRequested(IIgniteUIBlazor runtime)
+ {
ModuleLoader.MarkIsLoadRequested(runtime, "WebButtonGroupModule");
}
- public static bool IsLoadRequested(IIgniteUIBlazor runtime) {
+ public static bool IsLoadRequested(IIgniteUIBlazor runtime)
+ {
return ModuleLoader.IsLoadRequested(runtime, "WebButtonGroupModule");
}
}
diff --git a/src/components/Blazor/ButtonGroupSelection.cs b/src/components/Blazor/ButtonGroupSelection.cs
index 9cb48105..bedac50b 100644
--- a/src/components/Blazor/ButtonGroupSelection.cs
+++ b/src/components/Blazor/ButtonGroupSelection.cs
@@ -1,10 +1,11 @@
namespace IgniteUI.Blazor.Controls
{
-public enum ButtonGroupSelection {
- Single,
- [WCEnumName("single-required")]
- SingleRequired,
- Multiple
+ public enum ButtonGroupSelection
+ {
+ Single,
+ [WCEnumName("single-required")]
+ SingleRequired,
+ Multiple
-}
+ }
}
diff --git a/src/components/Blazor/ButtonModule.cs b/src/components/Blazor/ButtonModule.cs
index 1856bdae..cc09dce2 100644
--- a/src/components/Blazor/ButtonModule.cs
+++ b/src/components/Blazor/ButtonModule.cs
@@ -1,23 +1,20 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-using System.Text;
-using System.Collections.Generic;
-
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbButtonModule {
- public static void Register(IIgniteUIBlazor runtime) {
+ public partial class IgbButtonModule
+ {
+ public static void Register(IIgniteUIBlazor runtime)
+ {
ModuleLoader.Load(runtime, "WebButtonModule");
-
}
- public static void MarkIsLoadRequested(IIgniteUIBlazor runtime) {
+ public static void MarkIsLoadRequested(IIgniteUIBlazor runtime)
+ {
ModuleLoader.MarkIsLoadRequested(runtime, "WebButtonModule");
}
- public static bool IsLoadRequested(IIgniteUIBlazor runtime) {
+ public static bool IsLoadRequested(IIgniteUIBlazor runtime)
+ {
return ModuleLoader.IsLoadRequested(runtime, "WebButtonModule");
}
}
diff --git a/src/components/Blazor/ButtonVariant.cs b/src/components/Blazor/ButtonVariant.cs
index 4ac070a8..e4d696f1 100644
--- a/src/components/Blazor/ButtonVariant.cs
+++ b/src/components/Blazor/ButtonVariant.cs
@@ -1,10 +1,11 @@
namespace IgniteUI.Blazor.Controls
{
-public enum ButtonVariant {
- Contained,
- Flat,
- Outlined,
- Fab
+ public enum ButtonVariant
+ {
+ Contained,
+ Flat,
+ Outlined,
+ Fab
-}
+ }
}
diff --git a/src/components/Blazor/Calendar.cs b/src/components/Blazor/Calendar.cs
index 0074c7d6..d4d935d7 100644
--- a/src/components/Blazor/Calendar.cs
+++ b/src/components/Blazor/Calendar.cs
@@ -1,466 +1,504 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- ///
-/// Represents a calendar that lets users
-/// to select a date value in a variety of different ways.
-///
-public partial class IgbCalendar: IgbCalendarBase {
- public override string Type { get { return "WebCalendar"; } }
-
- protected override void EnsureModulesLoaded()
+ ///
+ /// Represents a calendar that lets users
+ /// to select a date value in a variety of different ways.
+ ///
+ public partial class IgbCalendar : IgbCalendarBase
+ {
+ public override string Type { get { return "WebCalendar"; } }
+
+ protected override void EnsureModulesLoaded()
+ {
+ if (!IgbCalendarModule.IsLoadRequested(IgBlazor))
+ {
+ IgbCalendarModule.Register(IgBlazor);
+ }
+ }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ public IgbCalendar() : base()
+ {
+ OnCreatedIgbCalendar();
+
+ }
+
+ partial void OnCreatedIgbCalendar();
+
+ private DateTime _value = DateTime.MinValue;
+
+ partial void OnValueChanging(ref DateTime newValue);
+ [Parameter]
+ public DateTime Value
+ {
+ get { return this._value; }
+ set
+ {
+ if (this._value != value || !IsPropDirty("Value"))
+ {
+ MarkPropDirty("Value");
+ }
+ this._value = value;
+
+ }
+ }
+ public async Task GetCurrentValueAsync()
+ {
+ var iv = await InvokeMethod("p:Value", new object[] { }, new string[] { });
+ return ReturnToDate(iv);
+ }
+ public DateTime GetCurrentValue()
+ {
+ var iv = InvokeMethodSync("p:Value", new object[] { }, new string[] { });
+ return ReturnToDate(iv);
+ }
+ private DateTime[] _values;
+
+ partial void OnValuesChanging(ref DateTime[] newValue);
+ [Parameter]
+ public DateTime[] Values
+ {
+ get { return this._values; }
+ set
+ {
+ if (this._values != value || !IsPropDirty("Values"))
+ {
+ MarkPropDirty("Values");
+ }
+ this._values = value;
+
+ }
+ }
+ public async Task GetCurrentValuesAsync()
+ {
+ var iv = await InvokeMethod("p:Values", new object[] { }, new string[] { });
+ return ReturnToDateArray(iv);
+ }
+ public DateTime[] GetCurrentValues()
+ {
+ var iv = InvokeMethodSync("p:Values", new object[] { }, new string[] { });
+ return ReturnToDateArray(iv);
+ }
+ private DateTime _activeDate = DateTime.MinValue;
+
+ partial void OnActiveDateChanging(ref DateTime newValue);
+ ///
+ /// Sets the date which is shown in view and is highlighted. By default it is the current date.
+ ///
+ [Parameter]
+ public DateTime ActiveDate
+ {
+ get { return this._activeDate; }
+ set
+ {
+ if (this._activeDate != value || !IsPropDirty("ActiveDate"))
+ {
+ MarkPropDirty("ActiveDate");
+ }
+ this._activeDate = value;
+
+ }
+ }
+ private bool _hideOutsideDays = false;
+
+ partial void OnHideOutsideDaysChanging(ref bool newValue);
+ ///
+ /// Whether to show the dates that do not belong to the current active month.
+ ///
+ [Parameter]
+ public bool HideOutsideDays
+ {
+ get { return this._hideOutsideDays; }
+ set
+ {
+ if (this._hideOutsideDays != value || !IsPropDirty("HideOutsideDays"))
+ {
+ MarkPropDirty("HideOutsideDays");
+ }
+ this._hideOutsideDays = value;
+
+ }
+ }
+ private bool _hideHeader = false;
+
+ partial void OnHideHeaderChanging(ref bool newValue);
+ ///
+ /// Whether to render the calendar header part.
+ /// When the calendar selection is set to `multiple` the header is always hidden.
+ ///
+ [Parameter]
+ public bool HideHeader
+ {
+ get { return this._hideHeader; }
+ set
+ {
+ if (this._hideHeader != value || !IsPropDirty("HideHeader"))
+ {
+ MarkPropDirty("HideHeader");
+ }
+ this._hideHeader = value;
+
+ }
+ }
+ private CalendarHeaderOrientation _headerOrientation = CalendarHeaderOrientation.Horizontal;
+
+ partial void OnHeaderOrientationChanging(ref CalendarHeaderOrientation newValue);
+ ///
+ /// The orientation of the calendar header.
+ ///
+ [Parameter]
+ public CalendarHeaderOrientation HeaderOrientation
+ {
+ get { return this._headerOrientation; }
+ set
+ {
+ if (this._headerOrientation != value || !IsPropDirty("HeaderOrientation"))
+ {
+ MarkPropDirty("HeaderOrientation");
+ }
+ this._headerOrientation = value;
+
+ }
+ }
+ private ContentOrientation _orientation = ContentOrientation.Horizontal;
+
+ partial void OnOrientationChanging(ref ContentOrientation newValue);
+ ///
+ /// The orientation of the calendar months when more than one month
+ /// is being shown.
+ ///
+ [Parameter]
+ public ContentOrientation Orientation
+ {
+ get { return this._orientation; }
+ set
+ {
+ if (this._orientation != value || !IsPropDirty("Orientation"))
+ {
+ MarkPropDirty("Orientation");
+ }
+ this._orientation = value;
+
+ }
+ }
+ private double _visibleMonths = 0;
+
+ partial void OnVisibleMonthsChanging(ref double newValue);
+ ///
+ /// The number of months displayed in the days view.
+ ///
+ [Parameter]
+ public double VisibleMonths
+ {
+ get { return this._visibleMonths; }
+ set
+ {
+ if (this._visibleMonths != value || !IsPropDirty("VisibleMonths"))
+ {
+ MarkPropDirty("VisibleMonths");
+ }
+ this._visibleMonths = value;
+
+ }
+ }
+ private CalendarActiveView _activeView = CalendarActiveView.Days;
+
+ partial void OnActiveViewChanging(ref CalendarActiveView newValue);
+ ///
+ /// The current active view of the component.
+ ///
+ [Parameter]
+ public CalendarActiveView ActiveView
+ {
+ get { return this._activeView; }
+ set
+ {
+ if (this._activeView != value || !IsPropDirty("ActiveView"))
+ {
+ MarkPropDirty("ActiveView");
+ }
+ this._activeView = value;
+
+ }
+ }
+ private IgbCalendarFormatOptions _formatOptions;
+
+ partial void OnFormatOptionsChanging(ref IgbCalendarFormatOptions newValue);
+ ///
+ /// The options used to format the months and the weekdays in the calendar views.
+ ///
+ [Parameter]
+ public IgbCalendarFormatOptions FormatOptions
+ {
+ get { return this._formatOptions; }
+ set
+ {
+ OnFormatOptionsChanging(ref value);
+ MarkPropDirty("FormatOptions");
+ if (this._formatOptions != null)
+ {
+ this.DetachChild(this._formatOptions);
+ }
+ if (value != null)
+ {
+ this.AttachChild(value);
+ }
+ this._formatOptions = value;
+ }
+
+ }
+
+ partial void FindByNameCalendar(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameCalendar(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+
+ private EventCallback? _valueChanged = null;
+ [Parameter]
+ public EventCallback ValueChanged
+ {
+ get
+ {
+ return this._valueChanged != null ? this._valueChanged.Value : EventCallback.Empty;
+ }
+ set
+ {
+ if (!value.Equals(EventCallback.Empty))
+ {
+ if (!CompareEventCallbacks(value, _valueChanged, ref eventCallbacksCache))
+ {
+ this.EnsureChangeHandled();
+
+ _valueChanged = value;
+ }
+ }
+ else
+ {
+ _valueChanged = null;
+ }
+ }
+ }
+
+ private EventCallback? _valuesChanged = null;
+ [Parameter]
+ public EventCallback ValuesChanged
+ {
+ get
+ {
+ return this._valuesChanged != null ? this._valuesChanged.Value : EventCallback.Empty;
+ }
+ set
+ {
+ if (!value.Equals(EventCallback.Empty))
+ {
+ if (!CompareEventCallbacks(value, _valuesChanged, ref eventCallbacksCache))
+ {
+ this.EnsureChangeHandled();
+
+ _valuesChanged = value;
+ }
+ }
+ else
+ {
+ _valuesChanged = null;
+ }
+ }
+ }
+
+ private string _changeRef = null;
+ private string _changeScript = null;
+ [Parameter]
+ public string ChangeScript
+ {
+
+ set
+ {
+ if (value != this._changeScript)
+ {
+ this._changeScript = value;
+ this.OnRefChanged("Change", null, value, true, false, (string refName, object oldValue, object newValue) =>
+ {
+ this._changeRef = refName;
+ this.MarkPropDirty("ChangeRef");
+ });
+ }
+ }
+ get
+ {
+ return this._changeScript;
+ }
+ }
+
+ partial void OnHandlingChange(IgbComponentDataValueChangedEventArgs args);
+ private EventCallback? _change = null;
+ [Parameter]
+ public EventCallback Change
+ {
+ get
+ {
+ return this._change != null ? this._change.Value : EventCallback.Empty;
+ }
+ set
+ {
+ if (!value.Equals(EventCallback.Empty))
+ {
+ if (!CompareEventCallbacks(value, _change, ref eventCallbacksCache))
+ {
+ _change = value;
+ this.SetHandler(this.Name, "Change", value, (args) =>
+ {
+ OnHandlingChange(args);
+
+ var newValueValue = default(DateTime);
+
+ if (this.Selection == CalendarSelection.Single)
+ {
+ newValueValue = (DateTime)(args.Detail);
+ ;
+ OnEventUpdatingValue(this._value, ref newValueValue);
+ if (UseDirectRender)
+ {
+ //TODO: maybe we should be doing this for everything. Need to make sure we don't infinity bounce though.
+ this.Value = newValueValue;
+ }
+ else
{
- if (!IgbCalendarModule.IsLoadRequested(IgBlazor))
- {
- IgbCalendarModule.Register(IgBlazor);
- }
+ this._value = newValueValue;
}
+ OnPropertyPropagatedOut(Name, "Value");
+ }
- protected override string ResolveDisplay()
- {
- return "inline-block";
- }
+ var newValueValues = default(DateTime[]);
- protected override bool SupportsVisualChildren
- {
- get
+ if (this.Selection != CalendarSelection.Single)
+ {
+ newValueValues = (DateTime[])(DowncastArray(args.Detail));
+ ;
+ OnEventUpdatingValues(this._values, ref newValueValues);
+ if (UseDirectRender)
{
- return true;
+ //TODO: maybe we should be doing this for everything. Need to make sure we don't infinity bounce though.
+ this.Values = newValueValues;
}
- }
-
- public IgbCalendar(): base() {
- OnCreatedIgbCalendar();
-
-
- }
-
- partial void OnCreatedIgbCalendar();
-
- private DateTime _value = DateTime.MinValue;
-
- partial void OnValueChanging(ref DateTime newValue);
- [Parameter]
- public DateTime Value
- {
- get { return this._value; }
- set {
- if (this._value != value || !IsPropDirty("Value")) {
- MarkPropDirty("Value");
- }
- this._value = value;
-
- }
- }
- public async Task GetCurrentValueAsync()
- {
- var iv = await InvokeMethod("p:Value", new object[] { }, new string[] { });
- return ReturnToDate(iv);
- }
- public DateTime GetCurrentValue()
- {
- var iv = InvokeMethodSync("p:Value", new object[] { }, new string[] { });
- return ReturnToDate(iv);
- }
- private DateTime[] _values;
-
- partial void OnValuesChanging(ref DateTime[] newValue);
- [Parameter]
- public DateTime[] Values
- {
- get { return this._values; }
- set {
- if (this._values != value || !IsPropDirty("Values")) {
- MarkPropDirty("Values");
- }
- this._values = value;
-
- }
- }
- public async Task GetCurrentValuesAsync()
- {
- var iv = await InvokeMethod("p:Values", new object[] { }, new string[] { });
- return ReturnToDateArray(iv);
- }
- public DateTime[] GetCurrentValues()
- {
- var iv = InvokeMethodSync("p:Values", new object[] { }, new string[] { });
- return ReturnToDateArray(iv);
- }
- private DateTime _activeDate = DateTime.MinValue;
-
- partial void OnActiveDateChanging(ref DateTime newValue);
- ///
- /// Sets the date which is shown in view and is highlighted. By default it is the current date.
- ///
- [Parameter]
- public DateTime ActiveDate
- {
- get { return this._activeDate; }
- set {
- if (this._activeDate != value || !IsPropDirty("ActiveDate")) {
- MarkPropDirty("ActiveDate");
- }
- this._activeDate = value;
-
- }
- }
- private bool _hideOutsideDays = false;
-
- partial void OnHideOutsideDaysChanging(ref bool newValue);
- ///
- /// Whether to show the dates that do not belong to the current active month.
- ///
- [Parameter]
- public bool HideOutsideDays
- {
- get { return this._hideOutsideDays; }
- set {
- if (this._hideOutsideDays != value || !IsPropDirty("HideOutsideDays")) {
- MarkPropDirty("HideOutsideDays");
- }
- this._hideOutsideDays = value;
-
- }
- }
- private bool _hideHeader = false;
-
- partial void OnHideHeaderChanging(ref bool newValue);
- ///
- /// Whether to render the calendar header part.
- /// When the calendar selection is set to `multiple` the header is always hidden.
- ///
- [Parameter]
- public bool HideHeader
- {
- get { return this._hideHeader; }
- set {
- if (this._hideHeader != value || !IsPropDirty("HideHeader")) {
- MarkPropDirty("HideHeader");
- }
- this._hideHeader = value;
-
- }
- }
- private CalendarHeaderOrientation _headerOrientation = CalendarHeaderOrientation.Horizontal;
-
- partial void OnHeaderOrientationChanging(ref CalendarHeaderOrientation newValue);
- ///
- /// The orientation of the calendar header.
- ///
- [Parameter]
- public CalendarHeaderOrientation HeaderOrientation
- {
- get { return this._headerOrientation; }
- set {
- if (this._headerOrientation != value || !IsPropDirty("HeaderOrientation")) {
- MarkPropDirty("HeaderOrientation");
- }
- this._headerOrientation = value;
-
- }
- }
- private ContentOrientation _orientation = ContentOrientation.Horizontal;
-
- partial void OnOrientationChanging(ref ContentOrientation newValue);
- ///
- /// The orientation of the calendar months when more than one month
- /// is being shown.
- ///
- [Parameter]
- public ContentOrientation Orientation
- {
- get { return this._orientation; }
- set {
- if (this._orientation != value || !IsPropDirty("Orientation")) {
- MarkPropDirty("Orientation");
- }
- this._orientation = value;
-
- }
- }
- private double _visibleMonths = 0;
-
- partial void OnVisibleMonthsChanging(ref double newValue);
- ///
- /// The number of months displayed in the days view.
- ///
- [Parameter]
- public double VisibleMonths
- {
- get { return this._visibleMonths; }
- set {
- if (this._visibleMonths != value || !IsPropDirty("VisibleMonths")) {
- MarkPropDirty("VisibleMonths");
- }
- this._visibleMonths = value;
-
- }
- }
- private CalendarActiveView _activeView = CalendarActiveView.Days;
-
- partial void OnActiveViewChanging(ref CalendarActiveView newValue);
- ///
- /// The current active view of the component.
- ///
- [Parameter]
- public CalendarActiveView ActiveView
- {
- get { return this._activeView; }
- set {
- if (this._activeView != value || !IsPropDirty("ActiveView")) {
- MarkPropDirty("ActiveView");
- }
- this._activeView = value;
-
- }
- }
- private IgbCalendarFormatOptions _formatOptions;
-
- partial void OnFormatOptionsChanging(ref IgbCalendarFormatOptions newValue);
- ///
- /// The options used to format the months and the weekdays in the calendar views.
- ///
- [Parameter]
- public IgbCalendarFormatOptions FormatOptions
- {
- get { return this._formatOptions; }
- set {
- OnFormatOptionsChanging(ref value);
- MarkPropDirty("FormatOptions");
- if (this._formatOptions != null) {
- this.DetachChild(this._formatOptions);
- }
- if (value != null) {
- this.AttachChild(value);
- }
- this._formatOptions = value;
- }
-
- }
-
- partial void FindByNameCalendar(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameCalendar(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
-
- private EventCallback? _valueChanged = null;
- [Parameter]
- public EventCallback ValueChanged
- {
- get
- {
- return this._valueChanged != null ? this._valueChanged.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _valueChanged, ref eventCallbacksCache))
- {
- this.EnsureChangeHandled();
-
- _valueChanged = value;
- }
- }
- else
- {
- _valueChanged = null;
- }
- }
- }
-
- private EventCallback? _valuesChanged = null;
- [Parameter]
- public EventCallback ValuesChanged
- {
- get
- {
- return this._valuesChanged != null ? this._valuesChanged.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _valuesChanged, ref eventCallbacksCache))
- {
- this.EnsureChangeHandled();
-
- _valuesChanged = value;
- }
- }
- else
- {
- _valuesChanged = null;
- }
- }
- }
-
- private string _changeRef = null;
- private string _changeScript = null;
- [Parameter]
- public string ChangeScript {
-
- set
- {
- if (value != this._changeScript)
- {
- this._changeScript = value;
- this.OnRefChanged("Change", null, value, true, false, (string refName, object oldValue, object newValue) => {
- this._changeRef = refName;
- this.MarkPropDirty("ChangeRef");
- });
- }
- }
- get
- {
- return this._changeScript;
- }
- }
-
- partial void OnHandlingChange(IgbComponentDataValueChangedEventArgs args);
- private EventCallback? _change = null;
- [Parameter]
- public EventCallback Change
- {
- get
- {
- return this._change != null ? this._change.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _change, ref eventCallbacksCache))
- {
- _change = value;
- this.SetHandler(this.Name, "Change", value, (args) => {
- OnHandlingChange(args);
-
- var newValueValue = default(DateTime);
-
- if (this.Selection == CalendarSelection.Single)
- {
- newValueValue = (DateTime)(args.Detail);
- ;
- OnEventUpdatingValue(this._value, ref newValueValue);
- if (UseDirectRender) {
- //TODO: maybe we should be doing this for everything. Need to make sure we don't infinity bounce though.
- this.Value = newValueValue;
- } else {
- this._value = newValueValue;
- }
- OnPropertyPropagatedOut(Name, "Value");
- }
-
- var newValueValues = default(DateTime[]);
-
- if (this.Selection != CalendarSelection.Single)
- {
- newValueValues = (DateTime[])(DowncastArray(args.Detail));
- ;
- OnEventUpdatingValues(this._values, ref newValueValues);
- if (UseDirectRender) {
- //TODO: maybe we should be doing this for everything. Need to make sure we don't infinity bounce though.
- this.Values = newValueValues;
- } else {
- this._values = newValueValues;
- }
- OnPropertyPropagatedOut(Name, "Values");
- }
-
- if (!EventCallback.Empty.Equals(ValueChanged))
- {
- var task = ValueChanged.InvokeAsync(newValueValue);
- if (task.Exception != null)
- {
- throw task.Exception;
- }
- }
-
- if (!EventCallback.Empty.Equals(ValuesChanged))
- {
- var task = ValuesChanged.InvokeAsync(newValueValues);
- if (task.Exception != null)
- {
- throw task.Exception;
- }
- }
-
- });
- this.OnRefChanged("Change", null, "event:::Change", true, false, (refName, oldValue, newValue) => {
- this._changeRef = refName;
- this.MarkPropDirty("ChangeRef");
- });
- }
- }
- else
- {
- _change = null;
- this.SetHandler(this.Name, "Change", null);
- this.OnRefChanged("Change", null, null, true, false, (refName, oldValue, newValue) => {
- this._changeRef = null;
- this.MarkPropDirty("ChangeRef");
- });
- }
- }
- }
- internal void EnsureChangeHandled()
- {
- if (EventCallback.Empty.Equals(this.Change))
- {
- this.Change = new EventCallback(null, (Action)((e) => { })); this._change = null;
- }
- }
-
-
- partial void OnEventUpdatingValue(DateTime oldValue, ref DateTime newValue);
-
- partial void OnEventUpdatingValues(DateTime[] oldValue, ref DateTime[] newValue);
-
- partial void SerializeCoreIgbCalendar(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbCalendar(ser);
-
- if (IsPropDirty("Value")) { ser.AddDateTimeProp("value", this._value); }
- if (IsPropDirty("Values")) { ser.AddDateArrayProp("values", this._values); }
- if (IsPropDirty("ActiveDate")) { ser.AddDateTimeProp("activeDate", this._activeDate); }
- if (IsPropDirty("HideOutsideDays")) { ser.AddBooleanProp("hideOutsideDays", this._hideOutsideDays); }
- if (IsPropDirty("HideHeader")) { ser.AddBooleanProp("hideHeader", this._hideHeader); }
- if (IsPropDirty("HeaderOrientation")) { ser.AddEnumProp("headerOrientation", this._headerOrientation); }
- if (IsPropDirty("Orientation")) { ser.AddEnumProp("orientation", this._orientation); }
- if (IsPropDirty("VisibleMonths")) { ser.AddNumberProp("visibleMonths", this._visibleMonths); }
- if (IsPropDirty("ActiveView")) { ser.AddEnumProp("activeView", this._activeView); }
- if (IsPropDirty("FormatOptions")) { ser.AddSerializableProp("formatOptions", this._formatOptions); }
- if (IsPropDirty("ChangeRef")) { ser.AddStringProp("changeRef", this._changeRef); }
-
- }
-
-}
+ else
+ {
+ this._values = newValueValues;
+ }
+ OnPropertyPropagatedOut(Name, "Values");
+ }
+
+ if (!EventCallback.Empty.Equals(ValueChanged))
+ {
+ var task = ValueChanged.InvokeAsync(newValueValue);
+ if (task.Exception != null)
+ {
+ throw task.Exception;
+ }
+ }
+
+ if (!EventCallback.Empty.Equals(ValuesChanged))
+ {
+ var task = ValuesChanged.InvokeAsync(newValueValues);
+ if (task.Exception != null)
+ {
+ throw task.Exception;
+ }
+ }
+
+ });
+ this.OnRefChanged("Change", null, "event:::Change", true, false, (refName, oldValue, newValue) =>
+ {
+ this._changeRef = refName;
+ this.MarkPropDirty("ChangeRef");
+ });
+ }
+ }
+ else
+ {
+ _change = null;
+ this.SetHandler(this.Name, "Change", null);
+ this.OnRefChanged("Change", null, null, true, false, (refName, oldValue, newValue) =>
+ {
+ this._changeRef = null;
+ this.MarkPropDirty("ChangeRef");
+ });
+ }
+ }
+ }
+ internal void EnsureChangeHandled()
+ {
+ if (EventCallback.Empty.Equals(this.Change))
+ {
+ this.Change = new EventCallback(null, (Action)((e) => { }));
+ this._change = null;
+ }
+ }
+
+ partial void OnEventUpdatingValue(DateTime oldValue, ref DateTime newValue);
+
+ partial void OnEventUpdatingValues(DateTime[] oldValue, ref DateTime[] newValue);
+
+ partial void SerializeCoreIgbCalendar(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbCalendar(ser);
+
+ if (IsPropDirty("Value"))
+ { ser.AddDateTimeProp("value", this._value); }
+ if (IsPropDirty("Values"))
+ { ser.AddDateArrayProp("values", this._values); }
+ if (IsPropDirty("ActiveDate"))
+ { ser.AddDateTimeProp("activeDate", this._activeDate); }
+ if (IsPropDirty("HideOutsideDays"))
+ { ser.AddBooleanProp("hideOutsideDays", this._hideOutsideDays); }
+ if (IsPropDirty("HideHeader"))
+ { ser.AddBooleanProp("hideHeader", this._hideHeader); }
+ if (IsPropDirty("HeaderOrientation"))
+ { ser.AddEnumProp("headerOrientation", this._headerOrientation); }
+ if (IsPropDirty("Orientation"))
+ { ser.AddEnumProp("orientation", this._orientation); }
+ if (IsPropDirty("VisibleMonths"))
+ { ser.AddNumberProp("visibleMonths", this._visibleMonths); }
+ if (IsPropDirty("ActiveView"))
+ { ser.AddEnumProp("activeView", this._activeView); }
+ if (IsPropDirty("FormatOptions"))
+ { ser.AddSerializableProp("formatOptions", this._formatOptions); }
+ if (IsPropDirty("ChangeRef"))
+ { ser.AddStringProp("changeRef", this._changeRef); }
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/CalendarActiveView.cs b/src/components/Blazor/CalendarActiveView.cs
index 76397c8c..5846b1ba 100644
--- a/src/components/Blazor/CalendarActiveView.cs
+++ b/src/components/Blazor/CalendarActiveView.cs
@@ -1,9 +1,10 @@
namespace IgniteUI.Blazor.Controls
{
-public enum CalendarActiveView {
- Days,
- Months,
- Years
+ public enum CalendarActiveView
+ {
+ Days,
+ Months,
+ Years
-}
+ }
}
diff --git a/src/components/Blazor/CalendarBase.cs b/src/components/Blazor/CalendarBase.cs
index 6f7b7c94..52fa0628 100644
--- a/src/components/Blazor/CalendarBase.cs
+++ b/src/components/Blazor/CalendarBase.cs
@@ -1,219 +1,236 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbCalendarBase: BaseRendererControl {
- public override string Type { get { return "WebCalendarBase"; } }
-
- protected override void EnsureModulesLoaded()
- {
- if (!IgbCalendarBaseModule.IsLoadRequested(IgBlazor))
- {
- IgbCalendarBaseModule.Register(IgBlazor);
- }
- }
-
- protected override string ResolveDisplay()
- {
- return "inline-block";
- }
-
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Queued; }
- }
-
- public IgbCalendarBase(): base() {
- OnCreatedIgbCalendarBase();
-
-
- }
-
- partial void OnCreatedIgbCalendarBase();
-
- private CalendarSelection _selection = CalendarSelection.Single;
-
- partial void OnSelectionChanging(ref CalendarSelection newValue);
- ///
- /// Sets the type of selection in the component.
- ///
- [Parameter]
- public CalendarSelection Selection
- {
- get { return this._selection; }
- set {
- if (this._selection != value || !IsPropDirty("Selection")) {
- MarkPropDirty("Selection");
- }
- this._selection = value;
-
- }
- }
- private bool _showWeekNumbers = false;
-
- partial void OnShowWeekNumbersChanging(ref bool newValue);
- ///
- /// Whether to show the week numbers.
- ///
- [Parameter]
- public bool ShowWeekNumbers
- {
- get { return this._showWeekNumbers; }
- set {
- if (this._showWeekNumbers != value || !IsPropDirty("ShowWeekNumbers")) {
- MarkPropDirty("ShowWeekNumbers");
- }
- this._showWeekNumbers = value;
-
- }
- }
- private WeekDays _weekStart = WeekDays.Sunday;
-
- partial void OnWeekStartChanging(ref WeekDays newValue);
- ///
- /// Gets/Sets the first day of the week.
- ///
- [Parameter]
- public WeekDays WeekStart
- {
- get { return this._weekStart; }
- set {
- if (this._weekStart != value || !IsPropDirty("WeekStart")) {
- MarkPropDirty("WeekStart");
- }
- this._weekStart = value;
-
- }
- }
- private string _locale;
-
- partial void OnLocaleChanging(ref string newValue);
- ///
- /// Gets/Sets the locale used for formatting and displaying the dates in the component.
- ///
- [Parameter]
- public string Locale
- {
- get { return this._locale; }
- set {
- if (this._locale != value || !IsPropDirty("Locale")) {
- MarkPropDirty("Locale");
- }
- this._locale = value;
-
- }
- }
- private IgbCalendarResourceStrings _resourceStrings;
-
- partial void OnResourceStringsChanging(ref IgbCalendarResourceStrings newValue);
- ///
- /// The resource strings for localization.
- ///
- [Parameter]
- public IgbCalendarResourceStrings ResourceStrings
- {
- get { return this._resourceStrings; }
- set {
- OnResourceStringsChanging(ref value);
- MarkPropDirty("ResourceStrings");
- if (this._resourceStrings != null) {
- this.DetachChild(this._resourceStrings);
- }
- if (value != null) {
- this.AttachChild(value);
- }
- this._resourceStrings = value;
- }
-
- }
- private IgbDateRangeDescriptor[]? _specialDates;
-
- partial void OnSpecialDatesChanging(ref IgbDateRangeDescriptor[]? newValue);
- ///
- /// Gets/Sets the special dates for the component.
- ///
- [Parameter]
- public IgbDateRangeDescriptor[]? SpecialDates
- {
- get { return this._specialDates; }
- set {
- if (this._specialDates != value || !IsPropDirty("SpecialDates")) {
- MarkPropDirty("SpecialDates");
- }
- this._specialDates = value;
-
- }
- }
- private IgbDateRangeDescriptor[]? _disabledDates;
-
- partial void OnDisabledDatesChanging(ref IgbDateRangeDescriptor[]? newValue);
- ///
- /// Gets/Sets the disabled dates for the component.
- ///
- [Parameter]
- public IgbDateRangeDescriptor[]? DisabledDates
- {
- get { return this._disabledDates; }
- set {
- if (this._disabledDates != value || !IsPropDirty("DisabledDates")) {
- MarkPropDirty("DisabledDates");
- }
- this._disabledDates = value;
-
- }
- }
-
- partial void FindByNameCalendarBase(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameCalendarBase(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
-
- partial void SerializeCoreIgbCalendarBase(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbCalendarBase(ser);
-
- if (IsPropDirty("Selection")) { ser.AddEnumProp("selection", this._selection); }
- if (IsPropDirty("ShowWeekNumbers")) { ser.AddBooleanProp("showWeekNumbers", this._showWeekNumbers); }
- if (IsPropDirty("WeekStart")) { ser.AddEnumProp("weekStart", this._weekStart); }
- if (IsPropDirty("Locale")) { ser.AddStringProp("locale", this._locale); }
- if (IsPropDirty("ResourceStrings")) { ser.AddSerializableProp("resourceStrings", this._resourceStrings); }
- if (IsPropDirty("SpecialDates")) { ser.AddSerializableArrayProp("specialDates", this._specialDates); }
- if (IsPropDirty("DisabledDates")) { ser.AddSerializableArrayProp("disabledDates", this._disabledDates); }
-
- }
-
-}
+ public partial class IgbCalendarBase : BaseRendererControl
+ {
+ public override string Type { get { return "WebCalendarBase"; } }
+
+ protected override void EnsureModulesLoaded()
+ {
+ if (!IgbCalendarBaseModule.IsLoadRequested(IgBlazor))
+ {
+ IgbCalendarBaseModule.Register(IgBlazor);
+ }
+ }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Queued; }
+ }
+
+ public IgbCalendarBase() : base()
+ {
+ OnCreatedIgbCalendarBase();
+
+ }
+
+ partial void OnCreatedIgbCalendarBase();
+
+ private CalendarSelection _selection = CalendarSelection.Single;
+
+ partial void OnSelectionChanging(ref CalendarSelection newValue);
+ ///
+ /// Sets the type of selection in the component.
+ ///
+ [Parameter]
+ public CalendarSelection Selection
+ {
+ get { return this._selection; }
+ set
+ {
+ if (this._selection != value || !IsPropDirty("Selection"))
+ {
+ MarkPropDirty("Selection");
+ }
+ this._selection = value;
+
+ }
+ }
+ private bool _showWeekNumbers = false;
+
+ partial void OnShowWeekNumbersChanging(ref bool newValue);
+ ///
+ /// Whether to show the week numbers.
+ ///
+ [Parameter]
+ public bool ShowWeekNumbers
+ {
+ get { return this._showWeekNumbers; }
+ set
+ {
+ if (this._showWeekNumbers != value || !IsPropDirty("ShowWeekNumbers"))
+ {
+ MarkPropDirty("ShowWeekNumbers");
+ }
+ this._showWeekNumbers = value;
+
+ }
+ }
+ private WeekDays _weekStart = WeekDays.Sunday;
+
+ partial void OnWeekStartChanging(ref WeekDays newValue);
+ ///
+ /// Gets/Sets the first day of the week.
+ ///
+ [Parameter]
+ public WeekDays WeekStart
+ {
+ get { return this._weekStart; }
+ set
+ {
+ if (this._weekStart != value || !IsPropDirty("WeekStart"))
+ {
+ MarkPropDirty("WeekStart");
+ }
+ this._weekStart = value;
+
+ }
+ }
+ private string _locale;
+
+ partial void OnLocaleChanging(ref string newValue);
+ ///
+ /// Gets/Sets the locale used for formatting and displaying the dates in the component.
+ ///
+ [Parameter]
+ public string Locale
+ {
+ get { return this._locale; }
+ set
+ {
+ if (this._locale != value || !IsPropDirty("Locale"))
+ {
+ MarkPropDirty("Locale");
+ }
+ this._locale = value;
+
+ }
+ }
+ private IgbCalendarResourceStrings _resourceStrings;
+
+ partial void OnResourceStringsChanging(ref IgbCalendarResourceStrings newValue);
+ ///
+ /// The resource strings for localization.
+ ///
+ [Parameter]
+ public IgbCalendarResourceStrings ResourceStrings
+ {
+ get { return this._resourceStrings; }
+ set
+ {
+ OnResourceStringsChanging(ref value);
+ MarkPropDirty("ResourceStrings");
+ if (this._resourceStrings != null)
+ {
+ this.DetachChild(this._resourceStrings);
+ }
+ if (value != null)
+ {
+ this.AttachChild(value);
+ }
+ this._resourceStrings = value;
+ }
+
+ }
+ private IgbDateRangeDescriptor[]? _specialDates;
+
+ partial void OnSpecialDatesChanging(ref IgbDateRangeDescriptor[]? newValue);
+ ///
+ /// Gets/Sets the special dates for the component.
+ ///
+ [Parameter]
+ public IgbDateRangeDescriptor[]? SpecialDates
+ {
+ get { return this._specialDates; }
+ set
+ {
+ if (this._specialDates != value || !IsPropDirty("SpecialDates"))
+ {
+ MarkPropDirty("SpecialDates");
+ }
+ this._specialDates = value;
+
+ }
+ }
+ private IgbDateRangeDescriptor[]? _disabledDates;
+
+ partial void OnDisabledDatesChanging(ref IgbDateRangeDescriptor[]? newValue);
+ ///
+ /// Gets/Sets the disabled dates for the component.
+ ///
+ [Parameter]
+ public IgbDateRangeDescriptor[]? DisabledDates
+ {
+ get { return this._disabledDates; }
+ set
+ {
+ if (this._disabledDates != value || !IsPropDirty("DisabledDates"))
+ {
+ MarkPropDirty("DisabledDates");
+ }
+ this._disabledDates = value;
+
+ }
+ }
+
+ partial void FindByNameCalendarBase(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameCalendarBase(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+
+ partial void SerializeCoreIgbCalendarBase(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbCalendarBase(ser);
+
+ if (IsPropDirty("Selection"))
+ { ser.AddEnumProp("selection", this._selection); }
+ if (IsPropDirty("ShowWeekNumbers"))
+ { ser.AddBooleanProp("showWeekNumbers", this._showWeekNumbers); }
+ if (IsPropDirty("WeekStart"))
+ { ser.AddEnumProp("weekStart", this._weekStart); }
+ if (IsPropDirty("Locale"))
+ { ser.AddStringProp("locale", this._locale); }
+ if (IsPropDirty("ResourceStrings"))
+ { ser.AddSerializableProp("resourceStrings", this._resourceStrings); }
+ if (IsPropDirty("SpecialDates"))
+ { ser.AddSerializableArrayProp("specialDates", this._specialDates); }
+ if (IsPropDirty("DisabledDates"))
+ { ser.AddSerializableArrayProp("disabledDates", this._disabledDates); }
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/CalendarBaseModule.cs b/src/components/Blazor/CalendarBaseModule.cs
index e2fd005a..5bacf65f 100644
--- a/src/components/Blazor/CalendarBaseModule.cs
+++ b/src/components/Blazor/CalendarBaseModule.cs
@@ -1,23 +1,20 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-using System.Text;
-using System.Collections.Generic;
-
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbCalendarBaseModule {
- public static void Register(IIgniteUIBlazor runtime) {
+ public partial class IgbCalendarBaseModule
+ {
+ public static void Register(IIgniteUIBlazor runtime)
+ {
ModuleLoader.Load(runtime, "WebCalendarBaseModule");
-
}
- public static void MarkIsLoadRequested(IIgniteUIBlazor runtime) {
+ public static void MarkIsLoadRequested(IIgniteUIBlazor runtime)
+ {
ModuleLoader.MarkIsLoadRequested(runtime, "WebCalendarBaseModule");
}
- public static bool IsLoadRequested(IIgniteUIBlazor runtime) {
+ public static bool IsLoadRequested(IIgniteUIBlazor runtime)
+ {
return ModuleLoader.IsLoadRequested(runtime, "WebCalendarBaseModule");
}
}
diff --git a/src/components/Blazor/CalendarDate.cs b/src/components/Blazor/CalendarDate.cs
index 8e3abd4e..007dbe58 100644
--- a/src/components/Blazor/CalendarDate.cs
+++ b/src/components/Blazor/CalendarDate.cs
@@ -1,148 +1,160 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbCalendarDate: BaseRendererElement {
- public override string Type { get { return "CalendarDate"; } }
-
-
- private static bool _marshalByValue = true;
-
- public IgbCalendarDate(): base() {
- OnCreatedIgbCalendarDate();
-
-
- }
-
- partial void OnCreatedIgbCalendarDate();
-
- private DateTime _date = DateTime.MinValue;
-
- partial void OnDateChanging(ref DateTime newValue);
- [Parameter]
- public DateTime Date
- {
- get { return this._date; }
- set {
- if (this._date != value || !IsPropDirty("Date")) {
- MarkPropDirty("Date");
- }
- this._date = value;
-
- }
- }
- private bool _isCurrentMonth = false;
-
- partial void OnIsCurrentMonthChanging(ref bool newValue);
- [Parameter]
- public bool IsCurrentMonth
- {
- get { return this._isCurrentMonth; }
- set {
- if (this._isCurrentMonth != value || !IsPropDirty("IsCurrentMonth")) {
- MarkPropDirty("IsCurrentMonth");
- }
- this._isCurrentMonth = value;
-
- }
- }
- private bool _isPrevMonth = false;
-
- partial void OnIsPrevMonthChanging(ref bool newValue);
- [Parameter]
- public bool IsPrevMonth
- {
- get { return this._isPrevMonth; }
- set {
- if (this._isPrevMonth != value || !IsPropDirty("IsPrevMonth")) {
- MarkPropDirty("IsPrevMonth");
- }
- this._isPrevMonth = value;
-
- }
- }
- private bool _isNextMonth = false;
-
- partial void OnIsNextMonthChanging(ref bool newValue);
- [Parameter]
- public bool IsNextMonth
- {
- get { return this._isNextMonth; }
- set {
- if (this._isNextMonth != value || !IsPropDirty("IsNextMonth")) {
- MarkPropDirty("IsNextMonth");
- }
- this._isNextMonth = value;
-
- }
- }
-
- partial void FindByNameCalendarDate(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameCalendarDate(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
-
- partial void SerializeCoreIgbCalendarDate(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbCalendarDate(ser);
-
- if (IsPropDirty("Date")) { ser.AddDateTimeProp("date", this._date); }
- if (IsPropDirty("IsCurrentMonth")) { ser.AddBooleanProp("isCurrentMonth", this._isCurrentMonth); }
- if (IsPropDirty("IsPrevMonth")) { ser.AddBooleanProp("isPrevMonth", this._isPrevMonth); }
- if (IsPropDirty("IsNextMonth")) { ser.AddBooleanProp("isNextMonth", this._isNextMonth); }
-
- }
-
-
- protected internal override void ToEventJson(BaseRendererControl control, Dictionary args)
- {
- base.ToEventJson(control, args);
-
- if (IsPropDirty("Date")) { args["date"] = DateToString(this._date); }
- if (IsPropDirty("IsCurrentMonth")) { args["isCurrentMonth"] = (this._isCurrentMonth).ToString().ToLower(); }
- if (IsPropDirty("IsPrevMonth")) { args["isPrevMonth"] = (this._isPrevMonth).ToString().ToLower(); }
- if (IsPropDirty("IsNextMonth")) { args["isNextMonth"] = (this._isNextMonth).ToString().ToLower(); }
-
-
- }
-
-
- protected internal override void FromEventJson(BaseRendererControl control, Dictionary args) {
- base.FromEventJson(control, args);
- this.SuppressParentNotify = true;
-
- if (args.ContainsKey("date")) { this.Date = ReturnToDate(args["date"]); }
- if (args.ContainsKey("isCurrentMonth")) { this.IsCurrentMonth = ReturnToBoolean(args["isCurrentMonth"]); }
- if (args.ContainsKey("isPrevMonth")) { this.IsPrevMonth = ReturnToBoolean(args["isPrevMonth"]); }
- if (args.ContainsKey("isNextMonth")) { this.IsNextMonth = ReturnToBoolean(args["isNextMonth"]); }
-
- this.SuppressParentNotify = false;
- }
-
-}
+ public partial class IgbCalendarDate : BaseRendererElement
+ {
+ public override string Type { get { return "CalendarDate"; } }
+
+ private static bool _marshalByValue = true;
+
+ public IgbCalendarDate() : base()
+ {
+ OnCreatedIgbCalendarDate();
+
+ }
+
+ partial void OnCreatedIgbCalendarDate();
+
+ private DateTime _date = DateTime.MinValue;
+
+ partial void OnDateChanging(ref DateTime newValue);
+ [Parameter]
+ public DateTime Date
+ {
+ get { return this._date; }
+ set
+ {
+ if (this._date != value || !IsPropDirty("Date"))
+ {
+ MarkPropDirty("Date");
+ }
+ this._date = value;
+
+ }
+ }
+ private bool _isCurrentMonth = false;
+
+ partial void OnIsCurrentMonthChanging(ref bool newValue);
+ [Parameter]
+ public bool IsCurrentMonth
+ {
+ get { return this._isCurrentMonth; }
+ set
+ {
+ if (this._isCurrentMonth != value || !IsPropDirty("IsCurrentMonth"))
+ {
+ MarkPropDirty("IsCurrentMonth");
+ }
+ this._isCurrentMonth = value;
+
+ }
+ }
+ private bool _isPrevMonth = false;
+
+ partial void OnIsPrevMonthChanging(ref bool newValue);
+ [Parameter]
+ public bool IsPrevMonth
+ {
+ get { return this._isPrevMonth; }
+ set
+ {
+ if (this._isPrevMonth != value || !IsPropDirty("IsPrevMonth"))
+ {
+ MarkPropDirty("IsPrevMonth");
+ }
+ this._isPrevMonth = value;
+
+ }
+ }
+ private bool _isNextMonth = false;
+
+ partial void OnIsNextMonthChanging(ref bool newValue);
+ [Parameter]
+ public bool IsNextMonth
+ {
+ get { return this._isNextMonth; }
+ set
+ {
+ if (this._isNextMonth != value || !IsPropDirty("IsNextMonth"))
+ {
+ MarkPropDirty("IsNextMonth");
+ }
+ this._isNextMonth = value;
+
+ }
+ }
+
+ partial void FindByNameCalendarDate(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameCalendarDate(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+
+ partial void SerializeCoreIgbCalendarDate(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbCalendarDate(ser);
+
+ if (IsPropDirty("Date"))
+ { ser.AddDateTimeProp("date", this._date); }
+ if (IsPropDirty("IsCurrentMonth"))
+ { ser.AddBooleanProp("isCurrentMonth", this._isCurrentMonth); }
+ if (IsPropDirty("IsPrevMonth"))
+ { ser.AddBooleanProp("isPrevMonth", this._isPrevMonth); }
+ if (IsPropDirty("IsNextMonth"))
+ { ser.AddBooleanProp("isNextMonth", this._isNextMonth); }
+
+ }
+
+ protected internal override void ToEventJson(BaseRendererControl control, Dictionary args)
+ {
+ base.ToEventJson(control, args);
+
+ if (IsPropDirty("Date"))
+ { args["date"] = DateToString(this._date); }
+ if (IsPropDirty("IsCurrentMonth"))
+ { args["isCurrentMonth"] = (this._isCurrentMonth).ToString().ToLower(); }
+ if (IsPropDirty("IsPrevMonth"))
+ { args["isPrevMonth"] = (this._isPrevMonth).ToString().ToLower(); }
+ if (IsPropDirty("IsNextMonth"))
+ { args["isNextMonth"] = (this._isNextMonth).ToString().ToLower(); }
+
+ }
+
+ protected internal override void FromEventJson(BaseRendererControl control, Dictionary args)
+ {
+ base.FromEventJson(control, args);
+ this.SuppressParentNotify = true;
+
+ if (args.ContainsKey("date"))
+ { this.Date = ReturnToDate(args["date"]); }
+ if (args.ContainsKey("isCurrentMonth"))
+ { this.IsCurrentMonth = ReturnToBoolean(args["isCurrentMonth"]); }
+ if (args.ContainsKey("isPrevMonth"))
+ { this.IsPrevMonth = ReturnToBoolean(args["isPrevMonth"]); }
+ if (args.ContainsKey("isNextMonth"))
+ { this.IsNextMonth = ReturnToBoolean(args["isNextMonth"]); }
+
+ this.SuppressParentNotify = false;
+ }
+
+ }
}
diff --git a/src/components/Blazor/CalendarDateEventArgs.cs b/src/components/Blazor/CalendarDateEventArgs.cs
index a64ac619..0f3186cf 100644
--- a/src/components/Blazor/CalendarDateEventArgs.cs
+++ b/src/components/Blazor/CalendarDateEventArgs.cs
@@ -1,97 +1,95 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbCalendarDateEventArgs: BaseRendererElement {
- public override string Type { get { return "WebCalendarDateEventArgs"; } }
-
-
- public IgbCalendarDateEventArgs(): base() {
- OnCreatedIgbCalendarDateEventArgs();
-
-
- }
-
- partial void OnCreatedIgbCalendarDateEventArgs();
-
- private IgbCalendarDate _detail;
-
- partial void OnDetailChanging(ref IgbCalendarDate newValue);
- [Parameter]
- public IgbCalendarDate Detail
- {
- get { return this._detail; }
- set {
- OnDetailChanging(ref value);
- MarkPropDirty("Detail");
- if (this._detail != null) {
- this.DetachChild(this._detail);
- }
- if (value != null) {
- this.AttachChild(value);
- }
- this._detail = value;
- }
-
- }
-
- partial void FindByNameCalendarDateEventArgs(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameCalendarDateEventArgs(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
-
- partial void SerializeCoreIgbCalendarDateEventArgs(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbCalendarDateEventArgs(ser);
-
- if (IsPropDirty("Detail")) { ser.AddSerializableProp("detail", this._detail); }
-
- }
-
-
- protected internal override void ToEventJson(BaseRendererControl control, Dictionary args)
- {
- base.ToEventJson(control, args);
-
- if (IsPropDirty("Detail")) { args["detail"] = ObjectToParam(this._detail); }
-
-
- }
-
-
- protected internal override void FromEventJson(BaseRendererControl control, Dictionary args) {
- base.FromEventJson(control, args);
- this.SuppressParentNotify = true;
-
- if (args.ContainsKey("detail")) { this.Detail = (IgbCalendarDate)ConvertReturnValue(args["detail"], "CalendarDate", true); }
-
- this.SuppressParentNotify = false;
- }
-
-}
+ public partial class IgbCalendarDateEventArgs : BaseRendererElement
+ {
+ public override string Type { get { return "WebCalendarDateEventArgs"; } }
+
+ public IgbCalendarDateEventArgs() : base()
+ {
+ OnCreatedIgbCalendarDateEventArgs();
+
+ }
+
+ partial void OnCreatedIgbCalendarDateEventArgs();
+
+ private IgbCalendarDate _detail;
+
+ partial void OnDetailChanging(ref IgbCalendarDate newValue);
+ [Parameter]
+ public IgbCalendarDate Detail
+ {
+ get { return this._detail; }
+ set
+ {
+ OnDetailChanging(ref value);
+ MarkPropDirty("Detail");
+ if (this._detail != null)
+ {
+ this.DetachChild(this._detail);
+ }
+ if (value != null)
+ {
+ this.AttachChild(value);
+ }
+ this._detail = value;
+ }
+
+ }
+
+ partial void FindByNameCalendarDateEventArgs(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameCalendarDateEventArgs(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+
+ partial void SerializeCoreIgbCalendarDateEventArgs(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbCalendarDateEventArgs(ser);
+
+ if (IsPropDirty("Detail"))
+ { ser.AddSerializableProp("detail", this._detail); }
+
+ }
+
+ protected internal override void ToEventJson(BaseRendererControl control, Dictionary args)
+ {
+ base.ToEventJson(control, args);
+
+ if (IsPropDirty("Detail"))
+ { args["detail"] = ObjectToParam(this._detail); }
+
+ }
+
+ protected internal override void FromEventJson(BaseRendererControl control, Dictionary args)
+ {
+ base.FromEventJson(control, args);
+ this.SuppressParentNotify = true;
+
+ if (args.ContainsKey("detail"))
+ { this.Detail = (IgbCalendarDate)ConvertReturnValue(args["detail"], "CalendarDate", true); }
+
+ this.SuppressParentNotify = false;
+ }
+
+ }
}
diff --git a/src/components/Blazor/CalendarFormatOptions.cs b/src/components/Blazor/CalendarFormatOptions.cs
index 71e45225..78c77634 100644
--- a/src/components/Blazor/CalendarFormatOptions.cs
+++ b/src/components/Blazor/CalendarFormatOptions.cs
@@ -1,112 +1,114 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbCalendarFormatOptions: BaseRendererElement {
- public override string Type { get { return "CalendarFormatOptions"; } }
-
-
- private static bool _marshalByValue = true;
-
- public IgbCalendarFormatOptions(): base() {
- OnCreatedIgbCalendarFormatOptions();
-
-
- }
-
- partial void OnCreatedIgbCalendarFormatOptions();
-
- private string _weekday;
-
- partial void OnWeekdayChanging(ref string newValue);
- [Parameter]
- public string Weekday
- {
- get { return this._weekday; }
- set {
- if (this._weekday != value || !IsPropDirty("Weekday")) {
- MarkPropDirty("Weekday");
- }
- this._weekday = value;
-
- }
- }
- private string _month;
-
- partial void OnMonthChanging(ref string newValue);
- [Parameter]
- public string Month
- {
- get { return this._month; }
- set {
- if (this._month != value || !IsPropDirty("Month")) {
- MarkPropDirty("Month");
- }
- this._month = value;
-
- }
- }
-
- partial void FindByNameCalendarFormatOptions(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameCalendarFormatOptions(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
-
- partial void SerializeCoreIgbCalendarFormatOptions(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbCalendarFormatOptions(ser);
-
- if (IsPropDirty("Weekday")) { ser.AddStringProp("weekday", this._weekday); }
- if (IsPropDirty("Month")) { ser.AddStringProp("month", this._month); }
-
- }
-
-
- protected internal override void ToEventJson(BaseRendererControl control, Dictionary args)
- {
- base.ToEventJson(control, args);
-
- if (IsPropDirty("Weekday")) { args["weekday"] = this._weekday; }
- if (IsPropDirty("Month")) { args["month"] = this._month; }
-
-
- }
-
-
- protected internal override void FromEventJson(BaseRendererControl control, Dictionary args) {
- base.FromEventJson(control, args);
- this.SuppressParentNotify = true;
-
- if (args.ContainsKey("weekday")) { this.Weekday = ReturnToString(args["weekday"]); }
- if (args.ContainsKey("month")) { this.Month = ReturnToString(args["month"]); }
-
- this.SuppressParentNotify = false;
- }
-
-}
+ public partial class IgbCalendarFormatOptions : BaseRendererElement
+ {
+ public override string Type { get { return "CalendarFormatOptions"; } }
+
+ private static bool _marshalByValue = true;
+
+ public IgbCalendarFormatOptions() : base()
+ {
+ OnCreatedIgbCalendarFormatOptions();
+
+ }
+
+ partial void OnCreatedIgbCalendarFormatOptions();
+
+ private string _weekday;
+
+ partial void OnWeekdayChanging(ref string newValue);
+ [Parameter]
+ public string Weekday
+ {
+ get { return this._weekday; }
+ set
+ {
+ if (this._weekday != value || !IsPropDirty("Weekday"))
+ {
+ MarkPropDirty("Weekday");
+ }
+ this._weekday = value;
+
+ }
+ }
+ private string _month;
+
+ partial void OnMonthChanging(ref string newValue);
+ [Parameter]
+ public string Month
+ {
+ get { return this._month; }
+ set
+ {
+ if (this._month != value || !IsPropDirty("Month"))
+ {
+ MarkPropDirty("Month");
+ }
+ this._month = value;
+
+ }
+ }
+
+ partial void FindByNameCalendarFormatOptions(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameCalendarFormatOptions(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+
+ partial void SerializeCoreIgbCalendarFormatOptions(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbCalendarFormatOptions(ser);
+
+ if (IsPropDirty("Weekday"))
+ { ser.AddStringProp("weekday", this._weekday); }
+ if (IsPropDirty("Month"))
+ { ser.AddStringProp("month", this._month); }
+
+ }
+
+ protected internal override void ToEventJson(BaseRendererControl control, Dictionary args)
+ {
+ base.ToEventJson(control, args);
+
+ if (IsPropDirty("Weekday"))
+ { args["weekday"] = this._weekday; }
+ if (IsPropDirty("Month"))
+ { args["month"] = this._month; }
+
+ }
+
+ protected internal override void FromEventJson(BaseRendererControl control, Dictionary args)
+ {
+ base.FromEventJson(control, args);
+ this.SuppressParentNotify = true;
+
+ if (args.ContainsKey("weekday"))
+ { this.Weekday = ReturnToString(args["weekday"]); }
+ if (args.ContainsKey("month"))
+ { this.Month = ReturnToString(args["month"]); }
+
+ this.SuppressParentNotify = false;
+ }
+
+ }
}
diff --git a/src/components/Blazor/CalendarHeaderOrientation.cs b/src/components/Blazor/CalendarHeaderOrientation.cs
index 858338b5..0ea4910a 100644
--- a/src/components/Blazor/CalendarHeaderOrientation.cs
+++ b/src/components/Blazor/CalendarHeaderOrientation.cs
@@ -1,8 +1,9 @@
namespace IgniteUI.Blazor.Controls
{
-public enum CalendarHeaderOrientation {
- Horizontal,
- Vertical
+ public enum CalendarHeaderOrientation
+ {
+ Horizontal,
+ Vertical
-}
+ }
}
diff --git a/src/components/Blazor/CalendarModule.cs b/src/components/Blazor/CalendarModule.cs
index 5fd1e4a7..ee873e43 100644
--- a/src/components/Blazor/CalendarModule.cs
+++ b/src/components/Blazor/CalendarModule.cs
@@ -1,24 +1,22 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-using System.Text;
-using System.Collections.Generic;
-
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbCalendarModule {
- public static void Register(IIgniteUIBlazor runtime) {
+ public partial class IgbCalendarModule
+ {
+ public static void Register(IIgniteUIBlazor runtime)
+ {
ModuleLoader.Load(runtime, "WebCalendarModule");
IgbCalendarBaseModule.MarkIsLoadRequested(runtime);
}
- public static void MarkIsLoadRequested(IIgniteUIBlazor runtime) {
+ public static void MarkIsLoadRequested(IIgniteUIBlazor runtime)
+ {
ModuleLoader.MarkIsLoadRequested(runtime, "WebCalendarModule");
}
- public static bool IsLoadRequested(IIgniteUIBlazor runtime) {
+ public static bool IsLoadRequested(IIgniteUIBlazor runtime)
+ {
return ModuleLoader.IsLoadRequested(runtime, "WebCalendarModule");
}
}
diff --git a/src/components/Blazor/CalendarResourceStrings.cs b/src/components/Blazor/CalendarResourceStrings.cs
index 7a131a82..770285b8 100644
--- a/src/components/Blazor/CalendarResourceStrings.cs
+++ b/src/components/Blazor/CalendarResourceStrings.cs
@@ -1,280 +1,316 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbCalendarResourceStrings: BaseRendererElement {
- public override string Type { get { return "WebCalendarResourceStrings"; } }
-
-
- public IgbCalendarResourceStrings(): base() {
- OnCreatedIgbCalendarResourceStrings();
-
-
- }
-
- partial void OnCreatedIgbCalendarResourceStrings();
-
- private string _selectMonth;
-
- partial void OnSelectMonthChanging(ref string newValue);
- [Parameter]
- public string SelectMonth
- {
- get { return this._selectMonth; }
- set {
- if (this._selectMonth != value || !IsPropDirty("SelectMonth")) {
- MarkPropDirty("SelectMonth");
- }
- this._selectMonth = value;
-
- }
- }
- private string _selectYear;
-
- partial void OnSelectYearChanging(ref string newValue);
- [Parameter]
- public string SelectYear
- {
- get { return this._selectYear; }
- set {
- if (this._selectYear != value || !IsPropDirty("SelectYear")) {
- MarkPropDirty("SelectYear");
- }
- this._selectYear = value;
-
- }
- }
- private string _selectDate;
-
- partial void OnSelectDateChanging(ref string newValue);
- [Parameter]
- public string SelectDate
- {
- get { return this._selectDate; }
- set {
- if (this._selectDate != value || !IsPropDirty("SelectDate")) {
- MarkPropDirty("SelectDate");
- }
- this._selectDate = value;
-
- }
- }
- private string _selectRange;
-
- partial void OnSelectRangeChanging(ref string newValue);
- [Parameter]
- public string SelectRange
- {
- get { return this._selectRange; }
- set {
- if (this._selectRange != value || !IsPropDirty("SelectRange")) {
- MarkPropDirty("SelectRange");
- }
- this._selectRange = value;
-
- }
- }
- private string _selectedDate;
-
- partial void OnSelectedDateChanging(ref string newValue);
- [Parameter]
- public string SelectedDate
- {
- get { return this._selectedDate; }
- set {
- if (this._selectedDate != value || !IsPropDirty("SelectedDate")) {
- MarkPropDirty("SelectedDate");
- }
- this._selectedDate = value;
-
- }
- }
- private string _startDate;
-
- partial void OnStartDateChanging(ref string newValue);
- [Parameter]
- public string StartDate
- {
- get { return this._startDate; }
- set {
- if (this._startDate != value || !IsPropDirty("StartDate")) {
- MarkPropDirty("StartDate");
- }
- this._startDate = value;
-
- }
- }
- private string _endDate;
-
- partial void OnEndDateChanging(ref string newValue);
- [Parameter]
- public string EndDate
- {
- get { return this._endDate; }
- set {
- if (this._endDate != value || !IsPropDirty("EndDate")) {
- MarkPropDirty("EndDate");
- }
- this._endDate = value;
-
- }
- }
- private string _previousMonth;
-
- partial void OnPreviousMonthChanging(ref string newValue);
- [Parameter]
- public string PreviousMonth
- {
- get { return this._previousMonth; }
- set {
- if (this._previousMonth != value || !IsPropDirty("PreviousMonth")) {
- MarkPropDirty("PreviousMonth");
- }
- this._previousMonth = value;
-
- }
- }
- private string _nextMonth;
-
- partial void OnNextMonthChanging(ref string newValue);
- [Parameter]
- public string NextMonth
- {
- get { return this._nextMonth; }
- set {
- if (this._nextMonth != value || !IsPropDirty("NextMonth")) {
- MarkPropDirty("NextMonth");
- }
- this._nextMonth = value;
-
- }
- }
- private string _previousYear;
-
- partial void OnPreviousYearChanging(ref string newValue);
- [Parameter]
- public string PreviousYear
- {
- get { return this._previousYear; }
- set {
- if (this._previousYear != value || !IsPropDirty("PreviousYear")) {
- MarkPropDirty("PreviousYear");
- }
- this._previousYear = value;
-
- }
- }
- private string _nextYear;
-
- partial void OnNextYearChanging(ref string newValue);
- [Parameter]
- public string NextYear
- {
- get { return this._nextYear; }
- set {
- if (this._nextYear != value || !IsPropDirty("NextYear")) {
- MarkPropDirty("NextYear");
- }
- this._nextYear = value;
-
- }
- }
- private string _previousYears;
-
- partial void OnPreviousYearsChanging(ref string newValue);
- [Parameter]
- public string PreviousYears
- {
- get { return this._previousYears; }
- set {
- if (this._previousYears != value || !IsPropDirty("PreviousYears")) {
- MarkPropDirty("PreviousYears");
- }
- this._previousYears = value;
-
- }
- }
- private string _nextYears;
-
- partial void OnNextYearsChanging(ref string newValue);
- [Parameter]
- public string NextYears
- {
- get { return this._nextYears; }
- set {
- if (this._nextYears != value || !IsPropDirty("NextYears")) {
- MarkPropDirty("NextYears");
- }
- this._nextYears = value;
-
- }
- }
- private string _weekLabel;
-
- partial void OnWeekLabelChanging(ref string newValue);
- [Parameter]
- public string WeekLabel
- {
- get { return this._weekLabel; }
- set {
- if (this._weekLabel != value || !IsPropDirty("WeekLabel")) {
- MarkPropDirty("WeekLabel");
- }
- this._weekLabel = value;
-
- }
- }
-
- partial void FindByNameCalendarResourceStrings(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameCalendarResourceStrings(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
-
- partial void SerializeCoreIgbCalendarResourceStrings(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbCalendarResourceStrings(ser);
-
- if (IsPropDirty("SelectMonth")) { ser.AddStringProp("selectMonth", this._selectMonth); }
- if (IsPropDirty("SelectYear")) { ser.AddStringProp("selectYear", this._selectYear); }
- if (IsPropDirty("SelectDate")) { ser.AddStringProp("selectDate", this._selectDate); }
- if (IsPropDirty("SelectRange")) { ser.AddStringProp("selectRange", this._selectRange); }
- if (IsPropDirty("SelectedDate")) { ser.AddStringProp("selectedDate", this._selectedDate); }
- if (IsPropDirty("StartDate")) { ser.AddStringProp("startDate", this._startDate); }
- if (IsPropDirty("EndDate")) { ser.AddStringProp("endDate", this._endDate); }
- if (IsPropDirty("PreviousMonth")) { ser.AddStringProp("previousMonth", this._previousMonth); }
- if (IsPropDirty("NextMonth")) { ser.AddStringProp("nextMonth", this._nextMonth); }
- if (IsPropDirty("PreviousYear")) { ser.AddStringProp("previousYear", this._previousYear); }
- if (IsPropDirty("NextYear")) { ser.AddStringProp("nextYear", this._nextYear); }
- if (IsPropDirty("PreviousYears")) { ser.AddStringProp("previousYears", this._previousYears); }
- if (IsPropDirty("NextYears")) { ser.AddStringProp("nextYears", this._nextYears); }
- if (IsPropDirty("WeekLabel")) { ser.AddStringProp("weekLabel", this._weekLabel); }
-
- }
-
-}
+ public partial class IgbCalendarResourceStrings : BaseRendererElement
+ {
+ public override string Type { get { return "WebCalendarResourceStrings"; } }
+
+ public IgbCalendarResourceStrings() : base()
+ {
+ OnCreatedIgbCalendarResourceStrings();
+
+ }
+
+ partial void OnCreatedIgbCalendarResourceStrings();
+
+ private string _selectMonth;
+
+ partial void OnSelectMonthChanging(ref string newValue);
+ [Parameter]
+ public string SelectMonth
+ {
+ get { return this._selectMonth; }
+ set
+ {
+ if (this._selectMonth != value || !IsPropDirty("SelectMonth"))
+ {
+ MarkPropDirty("SelectMonth");
+ }
+ this._selectMonth = value;
+
+ }
+ }
+ private string _selectYear;
+
+ partial void OnSelectYearChanging(ref string newValue);
+ [Parameter]
+ public string SelectYear
+ {
+ get { return this._selectYear; }
+ set
+ {
+ if (this._selectYear != value || !IsPropDirty("SelectYear"))
+ {
+ MarkPropDirty("SelectYear");
+ }
+ this._selectYear = value;
+
+ }
+ }
+ private string _selectDate;
+
+ partial void OnSelectDateChanging(ref string newValue);
+ [Parameter]
+ public string SelectDate
+ {
+ get { return this._selectDate; }
+ set
+ {
+ if (this._selectDate != value || !IsPropDirty("SelectDate"))
+ {
+ MarkPropDirty("SelectDate");
+ }
+ this._selectDate = value;
+
+ }
+ }
+ private string _selectRange;
+
+ partial void OnSelectRangeChanging(ref string newValue);
+ [Parameter]
+ public string SelectRange
+ {
+ get { return this._selectRange; }
+ set
+ {
+ if (this._selectRange != value || !IsPropDirty("SelectRange"))
+ {
+ MarkPropDirty("SelectRange");
+ }
+ this._selectRange = value;
+
+ }
+ }
+ private string _selectedDate;
+
+ partial void OnSelectedDateChanging(ref string newValue);
+ [Parameter]
+ public string SelectedDate
+ {
+ get { return this._selectedDate; }
+ set
+ {
+ if (this._selectedDate != value || !IsPropDirty("SelectedDate"))
+ {
+ MarkPropDirty("SelectedDate");
+ }
+ this._selectedDate = value;
+
+ }
+ }
+ private string _startDate;
+
+ partial void OnStartDateChanging(ref string newValue);
+ [Parameter]
+ public string StartDate
+ {
+ get { return this._startDate; }
+ set
+ {
+ if (this._startDate != value || !IsPropDirty("StartDate"))
+ {
+ MarkPropDirty("StartDate");
+ }
+ this._startDate = value;
+
+ }
+ }
+ private string _endDate;
+
+ partial void OnEndDateChanging(ref string newValue);
+ [Parameter]
+ public string EndDate
+ {
+ get { return this._endDate; }
+ set
+ {
+ if (this._endDate != value || !IsPropDirty("EndDate"))
+ {
+ MarkPropDirty("EndDate");
+ }
+ this._endDate = value;
+
+ }
+ }
+ private string _previousMonth;
+
+ partial void OnPreviousMonthChanging(ref string newValue);
+ [Parameter]
+ public string PreviousMonth
+ {
+ get { return this._previousMonth; }
+ set
+ {
+ if (this._previousMonth != value || !IsPropDirty("PreviousMonth"))
+ {
+ MarkPropDirty("PreviousMonth");
+ }
+ this._previousMonth = value;
+
+ }
+ }
+ private string _nextMonth;
+
+ partial void OnNextMonthChanging(ref string newValue);
+ [Parameter]
+ public string NextMonth
+ {
+ get { return this._nextMonth; }
+ set
+ {
+ if (this._nextMonth != value || !IsPropDirty("NextMonth"))
+ {
+ MarkPropDirty("NextMonth");
+ }
+ this._nextMonth = value;
+
+ }
+ }
+ private string _previousYear;
+
+ partial void OnPreviousYearChanging(ref string newValue);
+ [Parameter]
+ public string PreviousYear
+ {
+ get { return this._previousYear; }
+ set
+ {
+ if (this._previousYear != value || !IsPropDirty("PreviousYear"))
+ {
+ MarkPropDirty("PreviousYear");
+ }
+ this._previousYear = value;
+
+ }
+ }
+ private string _nextYear;
+
+ partial void OnNextYearChanging(ref string newValue);
+ [Parameter]
+ public string NextYear
+ {
+ get { return this._nextYear; }
+ set
+ {
+ if (this._nextYear != value || !IsPropDirty("NextYear"))
+ {
+ MarkPropDirty("NextYear");
+ }
+ this._nextYear = value;
+
+ }
+ }
+ private string _previousYears;
+
+ partial void OnPreviousYearsChanging(ref string newValue);
+ [Parameter]
+ public string PreviousYears
+ {
+ get { return this._previousYears; }
+ set
+ {
+ if (this._previousYears != value || !IsPropDirty("PreviousYears"))
+ {
+ MarkPropDirty("PreviousYears");
+ }
+ this._previousYears = value;
+
+ }
+ }
+ private string _nextYears;
+
+ partial void OnNextYearsChanging(ref string newValue);
+ [Parameter]
+ public string NextYears
+ {
+ get { return this._nextYears; }
+ set
+ {
+ if (this._nextYears != value || !IsPropDirty("NextYears"))
+ {
+ MarkPropDirty("NextYears");
+ }
+ this._nextYears = value;
+
+ }
+ }
+ private string _weekLabel;
+
+ partial void OnWeekLabelChanging(ref string newValue);
+ [Parameter]
+ public string WeekLabel
+ {
+ get { return this._weekLabel; }
+ set
+ {
+ if (this._weekLabel != value || !IsPropDirty("WeekLabel"))
+ {
+ MarkPropDirty("WeekLabel");
+ }
+ this._weekLabel = value;
+
+ }
+ }
+
+ partial void FindByNameCalendarResourceStrings(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameCalendarResourceStrings(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+
+ partial void SerializeCoreIgbCalendarResourceStrings(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbCalendarResourceStrings(ser);
+
+ if (IsPropDirty("SelectMonth"))
+ { ser.AddStringProp("selectMonth", this._selectMonth); }
+ if (IsPropDirty("SelectYear"))
+ { ser.AddStringProp("selectYear", this._selectYear); }
+ if (IsPropDirty("SelectDate"))
+ { ser.AddStringProp("selectDate", this._selectDate); }
+ if (IsPropDirty("SelectRange"))
+ { ser.AddStringProp("selectRange", this._selectRange); }
+ if (IsPropDirty("SelectedDate"))
+ { ser.AddStringProp("selectedDate", this._selectedDate); }
+ if (IsPropDirty("StartDate"))
+ { ser.AddStringProp("startDate", this._startDate); }
+ if (IsPropDirty("EndDate"))
+ { ser.AddStringProp("endDate", this._endDate); }
+ if (IsPropDirty("PreviousMonth"))
+ { ser.AddStringProp("previousMonth", this._previousMonth); }
+ if (IsPropDirty("NextMonth"))
+ { ser.AddStringProp("nextMonth", this._nextMonth); }
+ if (IsPropDirty("PreviousYear"))
+ { ser.AddStringProp("previousYear", this._previousYear); }
+ if (IsPropDirty("NextYear"))
+ { ser.AddStringProp("nextYear", this._nextYear); }
+ if (IsPropDirty("PreviousYears"))
+ { ser.AddStringProp("previousYears", this._previousYears); }
+ if (IsPropDirty("NextYears"))
+ { ser.AddStringProp("nextYears", this._nextYears); }
+ if (IsPropDirty("WeekLabel"))
+ { ser.AddStringProp("weekLabel", this._weekLabel); }
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/CalendarSelection.cs b/src/components/Blazor/CalendarSelection.cs
index e9685469..de2c2ea9 100644
--- a/src/components/Blazor/CalendarSelection.cs
+++ b/src/components/Blazor/CalendarSelection.cs
@@ -1,9 +1,10 @@
namespace IgniteUI.Blazor.Controls
{
-public enum CalendarSelection {
- Single,
- Multiple,
- Range
+ public enum CalendarSelection
+ {
+ Single,
+ Multiple,
+ Range
-}
+ }
}
diff --git a/src/components/Blazor/Card.cs b/src/components/Blazor/Card.cs
index 25ab3606..d05be50e 100644
--- a/src/components/Blazor/Card.cs
+++ b/src/components/Blazor/Card.cs
@@ -1,130 +1,128 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- ///
-/// A container component that wraps different elements related to a single subject.
-/// The card component provides a flexible container for organizing content such as headers,
-/// media, text content, and actions.
-///
-public partial class IgbCard: BaseRendererControl {
- public override string Type { get { return "WebCard"; } }
-
- protected override void EnsureModulesLoaded()
- {
- if (!IgbCardModule.IsLoadRequested(IgBlazor))
- {
- IgbCardModule.Register(IgBlazor);
- }
- }
-
- protected override string ResolveDisplay()
- {
- return "inline-block";
- }
-
- protected override bool SupportsVisualChildren
- {
- get
- {
- return true;
- }
- }
-
- protected override bool UseDirectRender
- {
- get
- {
- return true;
- }
- }
-
- protected override string DirectRenderElementName
- {
- get
- {
- return "igc-card";
- }
- }
-
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Immediate; }
- }
-
- public IgbCard(): base() {
- OnCreatedIgbCard();
-
-
- }
-
- partial void OnCreatedIgbCard();
-
- private bool _elevated = false;
-
- partial void OnElevatedChanging(ref bool newValue);
- ///
- /// Sets the card to have an elevated appearance with shadow.
- /// When false, the card uses an outlined style with a border.
- ///
- [Parameter]
- public bool Elevated
- {
- get { return this._elevated; }
- set {
- if (this._elevated != value || !IsPropDirty("Elevated")) {
- MarkPropDirty("Elevated");
- }
- this._elevated = value;
-
- }
- }
-
- partial void FindByNameCard(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameCard(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
-
- partial void SerializeCoreIgbCard(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbCard(ser);
-
- if (IsPropDirty("Elevated")) { ser.AddBooleanProp("elevated", this._elevated); }
-
- }
-
-}
+ ///
+ /// A container component that wraps different elements related to a single subject.
+ /// The card component provides a flexible container for organizing content such as headers,
+ /// media, text content, and actions.
+ ///
+ public partial class IgbCard : BaseRendererControl
+ {
+ public override string Type { get { return "WebCard"; } }
+
+ protected override void EnsureModulesLoaded()
+ {
+ if (!IgbCardModule.IsLoadRequested(IgBlazor))
+ {
+ IgbCardModule.Register(IgBlazor);
+ }
+ }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override bool UseDirectRender
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override string DirectRenderElementName
+ {
+ get
+ {
+ return "igc-card";
+ }
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Immediate; }
+ }
+
+ public IgbCard() : base()
+ {
+ OnCreatedIgbCard();
+
+ }
+
+ partial void OnCreatedIgbCard();
+
+ private bool _elevated = false;
+
+ partial void OnElevatedChanging(ref bool newValue);
+ ///
+ /// Sets the card to have an elevated appearance with shadow.
+ /// When false, the card uses an outlined style with a border.
+ ///
+ [Parameter]
+ public bool Elevated
+ {
+ get { return this._elevated; }
+ set
+ {
+ if (this._elevated != value || !IsPropDirty("Elevated"))
+ {
+ MarkPropDirty("Elevated");
+ }
+ this._elevated = value;
+
+ }
+ }
+
+ partial void FindByNameCard(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameCard(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+
+ partial void SerializeCoreIgbCard(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbCard(ser);
+
+ if (IsPropDirty("Elevated"))
+ { ser.AddBooleanProp("elevated", this._elevated); }
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/CardActions.cs b/src/components/Blazor/CardActions.cs
index e9355c64..9d3e010e 100644
--- a/src/components/Blazor/CardActions.cs
+++ b/src/components/Blazor/CardActions.cs
@@ -1,128 +1,126 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- ///
-/// A container component for card action items such as buttons or icon buttons.
-/// Actions can be positioned at the start, center, or end of the container.
-///
-public partial class IgbCardActions: BaseRendererControl {
- public override string Type { get { return "WebCardActions"; } }
-
- protected override void EnsureModulesLoaded()
- {
- if (!IgbCardActionsModule.IsLoadRequested(IgBlazor))
- {
- IgbCardActionsModule.Register(IgBlazor);
- }
- }
-
- protected override string ResolveDisplay()
- {
- return "inline-block";
- }
-
- protected override bool SupportsVisualChildren
- {
- get
- {
- return true;
- }
- }
-
- protected override bool UseDirectRender
- {
- get
- {
- return true;
- }
- }
-
- protected override string DirectRenderElementName
- {
- get
- {
- return "igc-card-actions";
- }
- }
-
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Immediate; }
- }
-
- public IgbCardActions(): base() {
- OnCreatedIgbCardActions();
-
-
- }
-
- partial void OnCreatedIgbCardActions();
-
- private ContentOrientation _orientation = ContentOrientation.Horizontal;
-
- partial void OnOrientationChanging(ref ContentOrientation newValue);
- ///
- /// The orientation of the actions layout.
- ///
- [Parameter]
- public ContentOrientation Orientation
- {
- get { return this._orientation; }
- set {
- if (this._orientation != value || !IsPropDirty("Orientation")) {
- MarkPropDirty("Orientation");
- }
- this._orientation = value;
-
- }
- }
-
- partial void FindByNameCardActions(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameCardActions(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
-
- partial void SerializeCoreIgbCardActions(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbCardActions(ser);
-
- if (IsPropDirty("Orientation")) { ser.AddEnumProp("orientation", this._orientation); }
-
- }
-
-}
+ ///
+ /// A container component for card action items such as buttons or icon buttons.
+ /// Actions can be positioned at the start, center, or end of the container.
+ ///
+ public partial class IgbCardActions : BaseRendererControl
+ {
+ public override string Type { get { return "WebCardActions"; } }
+
+ protected override void EnsureModulesLoaded()
+ {
+ if (!IgbCardActionsModule.IsLoadRequested(IgBlazor))
+ {
+ IgbCardActionsModule.Register(IgBlazor);
+ }
+ }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override bool UseDirectRender
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override string DirectRenderElementName
+ {
+ get
+ {
+ return "igc-card-actions";
+ }
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Immediate; }
+ }
+
+ public IgbCardActions() : base()
+ {
+ OnCreatedIgbCardActions();
+
+ }
+
+ partial void OnCreatedIgbCardActions();
+
+ private ContentOrientation _orientation = ContentOrientation.Horizontal;
+
+ partial void OnOrientationChanging(ref ContentOrientation newValue);
+ ///
+ /// The orientation of the actions layout.
+ ///
+ [Parameter]
+ public ContentOrientation Orientation
+ {
+ get { return this._orientation; }
+ set
+ {
+ if (this._orientation != value || !IsPropDirty("Orientation"))
+ {
+ MarkPropDirty("Orientation");
+ }
+ this._orientation = value;
+
+ }
+ }
+
+ partial void FindByNameCardActions(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameCardActions(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+
+ partial void SerializeCoreIgbCardActions(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbCardActions(ser);
+
+ if (IsPropDirty("Orientation"))
+ { ser.AddEnumProp("orientation", this._orientation); }
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/CardActionsModule.cs b/src/components/Blazor/CardActionsModule.cs
index e9d876cb..46bbb3d8 100644
--- a/src/components/Blazor/CardActionsModule.cs
+++ b/src/components/Blazor/CardActionsModule.cs
@@ -1,23 +1,20 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-using System.Text;
-using System.Collections.Generic;
-
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbCardActionsModule {
- public static void Register(IIgniteUIBlazor runtime) {
+ public partial class IgbCardActionsModule
+ {
+ public static void Register(IIgniteUIBlazor runtime)
+ {
ModuleLoader.Load(runtime, "WebCardActionsModule");
-
}
- public static void MarkIsLoadRequested(IIgniteUIBlazor runtime) {
+ public static void MarkIsLoadRequested(IIgniteUIBlazor runtime)
+ {
ModuleLoader.MarkIsLoadRequested(runtime, "WebCardActionsModule");
}
- public static bool IsLoadRequested(IIgniteUIBlazor runtime) {
+ public static bool IsLoadRequested(IIgniteUIBlazor runtime)
+ {
return ModuleLoader.IsLoadRequested(runtime, "WebCardActionsModule");
}
}
diff --git a/src/components/Blazor/CardContent.cs b/src/components/Blazor/CardContent.cs
index f8502be4..49265fe3 100644
--- a/src/components/Blazor/CardContent.cs
+++ b/src/components/Blazor/CardContent.cs
@@ -1,109 +1,100 @@
-
-using System;
-using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
-
namespace IgniteUI.Blazor.Controls
{
- ///
-/// A container component for the card's main text content.
-/// This component should be used within an igc-card element to display the primary content.
-///
-public partial class IgbCardContent: BaseRendererControl {
- public override string Type { get { return "WebCardContent"; } }
-
- protected override void EnsureModulesLoaded()
- {
- if (!IgbCardContentModule.IsLoadRequested(IgBlazor))
- {
- IgbCardContentModule.Register(IgBlazor);
- }
- }
-
- protected override string ResolveDisplay()
- {
- return "inline-block";
- }
-
- protected override bool SupportsVisualChildren
- {
- get
- {
- return true;
- }
- }
-
- protected override bool UseDirectRender
- {
- get
- {
- return true;
- }
- }
-
- protected override string DirectRenderElementName
- {
- get
- {
- return "igc-card-content";
- }
- }
-
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Immediate; }
- }
-
- public IgbCardContent(): base() {
- OnCreatedIgbCardContent();
-
-
- }
-
- partial void OnCreatedIgbCardContent();
-
-
- partial void FindByNameCardContent(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameCardContent(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
-
- partial void SerializeCoreIgbCardContent(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbCardContent(ser);
-
-
- }
-
-}
+ ///
+ /// A container component for the card's main text content.
+ /// This component should be used within an igc-card element to display the primary content.
+ ///
+ public partial class IgbCardContent : BaseRendererControl
+ {
+ public override string Type { get { return "WebCardContent"; } }
+
+ protected override void EnsureModulesLoaded()
+ {
+ if (!IgbCardContentModule.IsLoadRequested(IgBlazor))
+ {
+ IgbCardContentModule.Register(IgBlazor);
+ }
+ }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override bool UseDirectRender
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override string DirectRenderElementName
+ {
+ get
+ {
+ return "igc-card-content";
+ }
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Immediate; }
+ }
+
+ public IgbCardContent() : base()
+ {
+ OnCreatedIgbCardContent();
+
+ }
+
+ partial void OnCreatedIgbCardContent();
+
+ partial void FindByNameCardContent(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameCardContent(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+
+ partial void SerializeCoreIgbCardContent(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbCardContent(ser);
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/CardContentModule.cs b/src/components/Blazor/CardContentModule.cs
index 274b8cc2..625280dd 100644
--- a/src/components/Blazor/CardContentModule.cs
+++ b/src/components/Blazor/CardContentModule.cs
@@ -1,23 +1,20 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-using System.Text;
-using System.Collections.Generic;
-
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbCardContentModule {
- public static void Register(IIgniteUIBlazor runtime) {
+ public partial class IgbCardContentModule
+ {
+ public static void Register(IIgniteUIBlazor runtime)
+ {
ModuleLoader.Load(runtime, "WebCardContentModule");
-
}
- public static void MarkIsLoadRequested(IIgniteUIBlazor runtime) {
+ public static void MarkIsLoadRequested(IIgniteUIBlazor runtime)
+ {
ModuleLoader.MarkIsLoadRequested(runtime, "WebCardContentModule");
}
- public static bool IsLoadRequested(IIgniteUIBlazor runtime) {
+ public static bool IsLoadRequested(IIgniteUIBlazor runtime)
+ {
return ModuleLoader.IsLoadRequested(runtime, "WebCardContentModule");
}
}
diff --git a/src/components/Blazor/CardHeader.cs b/src/components/Blazor/CardHeader.cs
index 8ab79e0d..e0a3613d 100644
--- a/src/components/Blazor/CardHeader.cs
+++ b/src/components/Blazor/CardHeader.cs
@@ -1,109 +1,100 @@
-
-using System;
-using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
-
namespace IgniteUI.Blazor.Controls
{
- ///
-/// A container component for the card's header section.
-/// Displays header content including an optional thumbnail, title, subtitle, and additional content.
-///
-public partial class IgbCardHeader: BaseRendererControl {
- public override string Type { get { return "WebCardHeader"; } }
-
- protected override void EnsureModulesLoaded()
- {
- if (!IgbCardHeaderModule.IsLoadRequested(IgBlazor))
- {
- IgbCardHeaderModule.Register(IgBlazor);
- }
- }
-
- protected override string ResolveDisplay()
- {
- return "inline-block";
- }
-
- protected override bool SupportsVisualChildren
- {
- get
- {
- return true;
- }
- }
-
- protected override bool UseDirectRender
- {
- get
- {
- return true;
- }
- }
-
- protected override string DirectRenderElementName
- {
- get
- {
- return "igc-card-header";
- }
- }
-
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Immediate; }
- }
-
- public IgbCardHeader(): base() {
- OnCreatedIgbCardHeader();
-
-
- }
-
- partial void OnCreatedIgbCardHeader();
-
-
- partial void FindByNameCardHeader(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameCardHeader(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
-
- partial void SerializeCoreIgbCardHeader(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbCardHeader(ser);
-
-
- }
-
-}
+ ///
+ /// A container component for the card's header section.
+ /// Displays header content including an optional thumbnail, title, subtitle, and additional content.
+ ///
+ public partial class IgbCardHeader : BaseRendererControl
+ {
+ public override string Type { get { return "WebCardHeader"; } }
+
+ protected override void EnsureModulesLoaded()
+ {
+ if (!IgbCardHeaderModule.IsLoadRequested(IgBlazor))
+ {
+ IgbCardHeaderModule.Register(IgBlazor);
+ }
+ }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override bool UseDirectRender
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override string DirectRenderElementName
+ {
+ get
+ {
+ return "igc-card-header";
+ }
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Immediate; }
+ }
+
+ public IgbCardHeader() : base()
+ {
+ OnCreatedIgbCardHeader();
+
+ }
+
+ partial void OnCreatedIgbCardHeader();
+
+ partial void FindByNameCardHeader(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameCardHeader(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+
+ partial void SerializeCoreIgbCardHeader(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbCardHeader(ser);
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/CardHeaderModule.cs b/src/components/Blazor/CardHeaderModule.cs
index 706c3e4e..84cd6bbc 100644
--- a/src/components/Blazor/CardHeaderModule.cs
+++ b/src/components/Blazor/CardHeaderModule.cs
@@ -1,23 +1,20 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-using System.Text;
-using System.Collections.Generic;
-
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbCardHeaderModule {
- public static void Register(IIgniteUIBlazor runtime) {
+ public partial class IgbCardHeaderModule
+ {
+ public static void Register(IIgniteUIBlazor runtime)
+ {
ModuleLoader.Load(runtime, "WebCardHeaderModule");
-
}
- public static void MarkIsLoadRequested(IIgniteUIBlazor runtime) {
+ public static void MarkIsLoadRequested(IIgniteUIBlazor runtime)
+ {
ModuleLoader.MarkIsLoadRequested(runtime, "WebCardHeaderModule");
}
- public static bool IsLoadRequested(IIgniteUIBlazor runtime) {
+ public static bool IsLoadRequested(IIgniteUIBlazor runtime)
+ {
return ModuleLoader.IsLoadRequested(runtime, "WebCardHeaderModule");
}
}
diff --git a/src/components/Blazor/CardMedia.cs b/src/components/Blazor/CardMedia.cs
index 3ec1dbc7..4a88e32e 100644
--- a/src/components/Blazor/CardMedia.cs
+++ b/src/components/Blazor/CardMedia.cs
@@ -1,109 +1,100 @@
-
-using System;
-using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
-
namespace IgniteUI.Blazor.Controls
{
- ///
-/// A container component for card media content such as images, GIFs, or videos.
-/// This component should be used within an igc-card element to display visual content.
-///
-public partial class IgbCardMedia: BaseRendererControl {
- public override string Type { get { return "WebCardMedia"; } }
-
- protected override void EnsureModulesLoaded()
- {
- if (!IgbCardMediaModule.IsLoadRequested(IgBlazor))
- {
- IgbCardMediaModule.Register(IgBlazor);
- }
- }
-
- protected override string ResolveDisplay()
- {
- return "inline-block";
- }
-
- protected override bool SupportsVisualChildren
- {
- get
- {
- return true;
- }
- }
-
- protected override bool UseDirectRender
- {
- get
- {
- return true;
- }
- }
-
- protected override string DirectRenderElementName
- {
- get
- {
- return "igc-card-media";
- }
- }
-
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Immediate; }
- }
-
- public IgbCardMedia(): base() {
- OnCreatedIgbCardMedia();
-
-
- }
-
- partial void OnCreatedIgbCardMedia();
-
-
- partial void FindByNameCardMedia(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameCardMedia(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
-
- partial void SerializeCoreIgbCardMedia(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbCardMedia(ser);
-
-
- }
-
-}
+ ///
+ /// A container component for card media content such as images, GIFs, or videos.
+ /// This component should be used within an igc-card element to display visual content.
+ ///
+ public partial class IgbCardMedia : BaseRendererControl
+ {
+ public override string Type { get { return "WebCardMedia"; } }
+
+ protected override void EnsureModulesLoaded()
+ {
+ if (!IgbCardMediaModule.IsLoadRequested(IgBlazor))
+ {
+ IgbCardMediaModule.Register(IgBlazor);
+ }
+ }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override bool UseDirectRender
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override string DirectRenderElementName
+ {
+ get
+ {
+ return "igc-card-media";
+ }
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Immediate; }
+ }
+
+ public IgbCardMedia() : base()
+ {
+ OnCreatedIgbCardMedia();
+
+ }
+
+ partial void OnCreatedIgbCardMedia();
+
+ partial void FindByNameCardMedia(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameCardMedia(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+
+ partial void SerializeCoreIgbCardMedia(RendererSerializer ser);
+
+ internal override void SerializeCore(RendererSerializer ser)
+ {
+ base.SerializeCore(ser);
+
+ SerializeCoreIgbCardMedia(ser);
+
+ }
+
+ }
}
diff --git a/src/components/Blazor/CardMediaModule.cs b/src/components/Blazor/CardMediaModule.cs
index 28df6a91..f2757dd7 100644
--- a/src/components/Blazor/CardMediaModule.cs
+++ b/src/components/Blazor/CardMediaModule.cs
@@ -1,23 +1,20 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-using System.Text;
-using System.Collections.Generic;
-
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbCardMediaModule {
- public static void Register(IIgniteUIBlazor runtime) {
+ public partial class IgbCardMediaModule
+ {
+ public static void Register(IIgniteUIBlazor runtime)
+ {
ModuleLoader.Load(runtime, "WebCardMediaModule");
-
}
- public static void MarkIsLoadRequested(IIgniteUIBlazor runtime) {
+ public static void MarkIsLoadRequested(IIgniteUIBlazor runtime)
+ {
ModuleLoader.MarkIsLoadRequested(runtime, "WebCardMediaModule");
}
- public static bool IsLoadRequested(IIgniteUIBlazor runtime) {
+ public static bool IsLoadRequested(IIgniteUIBlazor runtime)
+ {
return ModuleLoader.IsLoadRequested(runtime, "WebCardMediaModule");
}
}
diff --git a/src/components/Blazor/CardModule.cs b/src/components/Blazor/CardModule.cs
index c55a24ce..aeff3209 100644
--- a/src/components/Blazor/CardModule.cs
+++ b/src/components/Blazor/CardModule.cs
@@ -1,23 +1,20 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-using System.Text;
-using System.Collections.Generic;
-
namespace IgniteUI.Blazor.Controls
{
- public partial class IgbCardModule {
- public static void Register(IIgniteUIBlazor runtime) {
+ public partial class IgbCardModule
+ {
+ public static void Register(IIgniteUIBlazor runtime)
+ {
ModuleLoader.Load(runtime, "WebCardModule");
-
}
- public static void MarkIsLoadRequested(IIgniteUIBlazor runtime) {
+ public static void MarkIsLoadRequested(IIgniteUIBlazor runtime)
+ {
ModuleLoader.MarkIsLoadRequested(runtime, "WebCardModule");
}
- public static bool IsLoadRequested(IIgniteUIBlazor runtime) {
+ public static bool IsLoadRequested(IIgniteUIBlazor runtime)
+ {
return ModuleLoader.IsLoadRequested(runtime, "WebCardModule");
}
}
diff --git a/src/components/Blazor/Carousel.cs b/src/components/Blazor/Carousel.cs
index 0e33f6f6..113b1114 100644
--- a/src/components/Blazor/Carousel.cs
+++ b/src/components/Blazor/Carousel.cs
@@ -1,602 +1,648 @@
-
-using System;
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.Components.Rendering;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Linq;
namespace IgniteUI.Blazor.Controls
{
- ///
-/// The `igc-carousel` presents a set of `igc-carousel-slide`s by sequentially displaying a subset of one or more slides.
-///
-public partial class IgbCarousel: BaseRendererControl {
- public override string Type { get { return "WebCarousel"; } }
-
- protected override void EnsureModulesLoaded()
- {
- if (!IgbCarouselModule.IsLoadRequested(IgBlazor))
- {
- IgbCarouselModule.Register(IgBlazor);
- }
- }
-
- protected override string ResolveDisplay()
+ ///
+ /// The `igc-carousel` presents a set of `igc-carousel-slide`s by sequentially displaying a subset of one or more slides.
+ ///
+ public partial class IgbCarousel : BaseRendererControl
+ {
+ public override string Type { get { return "WebCarousel"; } }
+
+ protected override void EnsureModulesLoaded()
+ {
+ if (!IgbCarouselModule.IsLoadRequested(IgBlazor))
+ {
+ IgbCarouselModule.Register(IgBlazor);
+ }
+ }
+
+ protected override string ResolveDisplay()
+ {
+ return "inline-block";
+ }
+
+ protected override bool SupportsVisualChildren
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override bool UseDirectRender
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ protected override string DirectRenderElementName
+ {
+ get
+ {
+ return "igc-carousel";
+ }
+ }
+
+ protected override ControlEventBehavior DefaultEventBehavior
+ {
+ get { return ControlEventBehavior.Immediate; }
+ }
+
+ public IgbCarousel() : base()
+ {
+ OnCreatedIgbCarousel();
+
+ }
+
+ partial void OnCreatedIgbCarousel();
+
+ private bool _disableLoop = false;
+
+ partial void OnDisableLoopChanging(ref bool newValue);
+ ///
+ /// Whether the carousel should skip rotating to the first slide after it reaches the last.
+ ///
+ [Parameter]
+ public bool DisableLoop
+ {
+ get { return this._disableLoop; }
+ set
+ {
+ if (this._disableLoop != value || !IsPropDirty("DisableLoop"))
+ {
+ MarkPropDirty("DisableLoop");
+ }
+ this._disableLoop = value;
+
+ }
+ }
+ private bool _disablePauseOnInteraction = false;
+
+ partial void OnDisablePauseOnInteractionChanging(ref bool newValue);
+ ///
+ /// Whether the carousel should ignore use interactions and not pause on them.
+ ///
+ [Parameter]
+ public bool DisablePauseOnInteraction
+ {
+ get { return this._disablePauseOnInteraction; }
+ set
+ {
+ if (this._disablePauseOnInteraction != value || !IsPropDirty("DisablePauseOnInteraction"))
+ {
+ MarkPropDirty("DisablePauseOnInteraction");
+ }
+ this._disablePauseOnInteraction = value;
+
+ }
+ }
+ private bool _hideNavigation = false;
+
+ partial void OnHideNavigationChanging(ref bool newValue);
+ ///
+ /// Whether the carousel should skip rendering of the default navigation buttons.
+ ///
+ [Parameter]
+ public bool HideNavigation
+ {
+ get { return this._hideNavigation; }
+ set
+ {
+ if (this._hideNavigation != value || !IsPropDirty("HideNavigation"))
+ {
+ MarkPropDirty("HideNavigation");
+ }
+ this._hideNavigation = value;
+
+ }
+ }
+ private bool _hideIndicators = false;
+
+ partial void OnHideIndicatorsChanging(ref bool newValue);
+ ///
+ /// Whether the carousel should render the indicator controls (dots).
+ ///
+ [Parameter]
+ public bool HideIndicators
+ {
+ get { return this._hideIndicators; }
+ set
+ {
+ if (this._hideIndicators != value || !IsPropDirty("HideIndicators"))
+ {
+ MarkPropDirty("HideIndicators");
+ }
+ this._hideIndicators = value;
+
+ }
+ }
+ private bool _vertical = false;
+
+ partial void OnVerticalChanging(ref bool newValue);
+ ///
+ /// Whether the carousel has vertical alignment.
+ ///
+ [Parameter]
+ public bool Vertical
+ {
+ get { return this._vertical; }
+ set
+ {
+ if (this._vertical != value || !IsPropDirty("Vertical"))
+ {
+ MarkPropDirty("Vertical");
+ }
+ this._vertical = value;
+
+ }
+ }
+ private CarouselIndicatorsOrientation _indicatorsOrientation = CarouselIndicatorsOrientation.End;
+
+ partial void OnIndicatorsOrientationChanging(ref CarouselIndicatorsOrientation newValue);
+ ///
+ /// Sets the orientation of the indicator controls (dots).
+ ///
+ [Parameter]
+ public CarouselIndicatorsOrientation IndicatorsOrientation
+ {
+ get { return this._indicatorsOrientation; }
+ set
+ {
+ if (this._indicatorsOrientation != value || !IsPropDirty("IndicatorsOrientation"))
+ {
+ MarkPropDirty("IndicatorsOrientation");
+ }
+ this._indicatorsOrientation = value;
+
+ }
+ }
+ private string _indicatorsLabelFormat;
+
+ partial void OnIndicatorsLabelFormatChanging(ref string newValue);
+ ///
+ /// The format used to set the aria-label on the carousel indicators.
+ /// Instances of '{0}' will be replaced with the index of the corresponding slide.
+ ///
+ [Parameter]
+ public string IndicatorsLabelFormat
+ {
+ get { return this._indicatorsLabelFormat; }
+ set
+ {
+ if (this._indicatorsLabelFormat != value || !IsPropDirty("IndicatorsLabelFormat"))
+ {
+ MarkPropDirty("IndicatorsLabelFormat");
+ }
+ this._indicatorsLabelFormat = value;
+
+ }
+ }
+ private string _slidesLabelFormat;
+
+ partial void OnSlidesLabelFormatChanging(ref string newValue);
+ ///
+ /// The format used to set the aria-label on the carousel slides and the text displayed
+ /// when the number of indicators is greater than tha maximum indicator count.
+ /// Instances of '{0}' will be replaced with the index of the corresponding slide.
+ /// Instances of '{1}' will be replaced with the total amount of slides.
+ ///
+ [Parameter]
+ public string SlidesLabelFormat
+ {
+ get { return this._slidesLabelFormat; }
+ set
+ {
+ if (this._slidesLabelFormat != value || !IsPropDirty("SlidesLabelFormat"))
+ {
+ MarkPropDirty("SlidesLabelFormat");
+ }
+ this._slidesLabelFormat = value;
+
+ }
+ }
+ private double _interval = 0;
+
+ partial void OnIntervalChanging(ref double newValue);
+ ///
+ /// The duration in milliseconds between changing the active slide.
+ ///
+ [Parameter]
+ public double Interval
+ {
+ get { return this._interval; }
+ set
+ {
+ if (this._interval != value || !IsPropDirty("Interval"))
+ {
+ MarkPropDirty("Interval");
+ }
+ this._interval = value;
+
+ }
+ }
+ private double _maximumIndicatorsCount = 0;
+
+ partial void OnMaximumIndicatorsCountChanging(ref double newValue);
+ ///
+ /// Controls the maximum indicator controls (dots) that can be shown. Default value is `10`.
+ ///
+ [Parameter]
+ public double MaximumIndicatorsCount
+ {
+ get { return this._maximumIndicatorsCount; }
+ set
+ {
+ if (this._maximumIndicatorsCount != value || !IsPropDirty("MaximumIndicatorsCount"))
+ {
+ MarkPropDirty("MaximumIndicatorsCount");
+ }
+ this._maximumIndicatorsCount = value;
+
+ }
+ }
+ private HorizontalTransitionAnimation _animationType = HorizontalTransitionAnimation.Slide;
+
+ partial void OnAnimationTypeChanging(ref HorizontalTransitionAnimation newValue);
+ ///
+ /// The animation type.
+ ///
+ [Parameter]
+ public HorizontalTransitionAnimation AnimationType
+ {
+ get { return this._animationType; }
+ set
+ {
+ if (this._animationType != value || !IsPropDirty("AnimationType"))
+ {
+ MarkPropDirty("AnimationType");
+ }
+ this._animationType = value;
+
+ }
+ }
+ public async Task GetTotalAsync()
+ {
+ var iv = await InvokeMethod("p:Total", new object[] { }, new string[] { });
+ return ReturnToDouble(iv);
+ }
+ public double GetTotal()
+ {
+ var iv = InvokeMethodSync("p:Total", new object[] { }, new string[] { });
+ return ReturnToDouble(iv);
+ }
+ public async Task GetCurrentAsync()
+ {
+ var iv = await InvokeMethod("p:Current", new object[] { }, new string[] { });
+ return ReturnToDouble(iv);
+ }
+ public double GetCurrent()
+ {
+ var iv = InvokeMethodSync("p:Current", new object[] { }, new string[] { });
+ return ReturnToDouble(iv);
+ }
+ public async Task GetIsPlayingAsync()
+ {
+ var iv = await InvokeMethod("p:IsPlaying", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ public bool GetIsPlaying()
+ {
+ var iv = InvokeMethodSync("p:IsPlaying", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ public async Task GetIsPausedAsync()
+ {
+ var iv = await InvokeMethod("p:IsPaused", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ public bool GetIsPaused()
+ {
+ var iv = InvokeMethodSync("p:IsPaused", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+
+ partial void FindByNameCarousel(string name, ref object item);
+ public override object FindByName(string name)
+ {
+
+ var baseResult = base.FindByName(name);
+ if (baseResult != null)
+ {
+ return baseResult;
+ }
+
+ object item = null;
+ FindByNameCarousel(name, ref item);
+ if (item != null)
+ {
+ return item;
+ }
+
+ return null;
+ }
+ public async Task SetNativeElementAsync(Object element)
+ {
+ await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ public void SetNativeElement(Object element)
+ {
+ InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
+ }
+ ///
+ /// Resumes playing of the carousel slides.
+ ///
+ public async Task PlayAsync()
+ {
+ await InvokeMethod("play", new object[] { }, new string[] { });
+ }
+ public void Play()
+ {
+ InvokeMethodSync("play", new object[] { }, new string[] { });
+ }
+ ///
+ /// Pauses the carousel rotation of slides.
+ ///
+ public async Task PauseAsync()
+ {
+ await InvokeMethod("pause", new object[] { }, new string[] { });
+ }
+ public void Pause()
+ {
+ InvokeMethodSync("pause", new object[] { }, new string[] { });
+ }
+ ///
+ /// Switches to the next slide, runs any animations, and returns if the operation was successful.
+ ///
+ public async Task NextAsync()
+ {
+ var iv = await InvokeMethod("next", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ public bool Next()
+ {
+ var iv = InvokeMethodSync("next", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ ///
+ /// Switches to the previous slide, runs any animations, and returns if the operation was successful.
+ ///
+ public async Task PrevAsync()
+ {
+ var iv = await InvokeMethod("prev", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ public bool Prev()
+ {
+ var iv = InvokeMethodSync("prev", new object[] { }, new string[] { });
+ return ReturnToBoolean(iv);
+ }
+ public async Task SelectAsync(double index, CarouselAnimationDirection? animationDirection = null)
+ {
+ var iv = await InvokeMethod("select", new object[] { index, ObjectToParam(animationDirection, typeof(CarouselAnimationDirection)) }, new string[] { "Number", "Json" });
+ return ReturnToBoolean(iv);
+ }
+ public bool Select(double index, CarouselAnimationDirection? animationDirection = null)
+ {
+ var iv = InvokeMethodSync("select", new object[] { index, ObjectToParam(animationDirection, typeof(CarouselAnimationDirection)) }, new string[] { "Number", "Json" });
+ return ReturnToBoolean(iv);
+ }
+
+ private string _slideChangedRef = null;
+ private string _slideChangedScript = null;
+ [Parameter]
+ public string SlideChangedScript
+ {
+
+ set
+ {
+ if (value != this._slideChangedScript)
+ {
+ this._slideChangedScript = value;
+ this.OnRefChanged("SlideChanged", null, value, true, false, (string refName, object oldValue, object newValue) =>
+ {
+ this._slideChangedRef = refName;
+ this.MarkPropDirty("SlideChangedRef");
+ });
+ }
+ }
+ get
+ {
+ return this._slideChangedScript;
+ }
+ }
+
+ partial void OnHandlingSlideChanged(IgbNumberEventArgs args);
+ private EventCallback? _slideChanged = null;
+ [Parameter]
+ public EventCallback SlideChanged
+ {
+ get
+ {
+ return this._slideChanged != null ? this._slideChanged.Value : EventCallback.Empty;
+ }
+ set
+ {
+ if (!value.Equals(EventCallback.Empty))
+ {
+ if (!CompareEventCallbacks(value, _slideChanged, ref eventCallbacksCache))
+ {
+ _slideChanged = value;
+ this.SetHandler(this.Name, "SlideChanged", value, (args) =>
{
- return "inline-block";
- }
+ OnHandlingSlideChanged(args);
- protected override bool SupportsVisualChildren
+ });
+ this.OnRefChanged("SlideChanged", null, "event:::SlideChanged", true, false, (refName, oldValue, newValue) =>
{
- get
- {
- return true;
- }
- }
+ this._slideChangedRef = refName;
+ this.MarkPropDirty("SlideChangedRef");
+ });
+ }
+ }
+ else
+ {
+ _slideChanged = null;
+ this.SetHandler(this.Name, "SlideChanged", null);
+ this.OnRefChanged("SlideChanged", null, null, true, false, (refName, oldValue, newValue) =>
+ {
+ this._slideChangedRef = null;
+ this.MarkPropDirty("SlideChangedRef");
+ });
+ }
+ }
+ }
+
+ private string _playingRef = null;
+ private string _playingScript = null;
+ [Parameter]
+ public string PlayingScript
+ {
+
+ set
+ {
+ if (value != this._playingScript)
+ {
+ this._playingScript = value;
+ this.OnRefChanged("Playing", null, value, true, false, (string refName, object oldValue, object newValue) =>
+ {
+ this._playingRef = refName;
+ this.MarkPropDirty("PlayingRef");
+ });
+ }
+ }
+ get
+ {
+ return this._playingScript;
+ }
+ }
- protected override bool UseDirectRender
+ partial void OnHandlingPlaying(IgbVoidEventArgs args);
+ private EventCallback? _playing = null;
+ [Parameter]
+ public EventCallback Playing
+ {
+ get
+ {
+ return this._playing != null ? this._playing.Value : EventCallback.Empty;
+ }
+ set
+ {
+ if (!value.Equals(EventCallback.Empty))
+ {
+ if (!CompareEventCallbacks(value, _playing, ref eventCallbacksCache))
+ {
+ _playing = value;
+ this.SetHandler(this.Name, "Playing", value, (args) =>
{
- get
- {
- return true;
- }
- }
+ OnHandlingPlaying(args);
- protected override string DirectRenderElementName
+ });
+ this.OnRefChanged("Playing", null, "event:::Playing", true, false, (refName, oldValue, newValue) =>
{
- get
- {
- return "igc-carousel";
- }
- }
-
- protected override ControlEventBehavior DefaultEventBehavior
- {
- get { return ControlEventBehavior.Immediate; }
- }
-
- public IgbCarousel(): base() {
- OnCreatedIgbCarousel();
-
-
- }
-
- partial void OnCreatedIgbCarousel();
-
- private bool _disableLoop = false;
-
- partial void OnDisableLoopChanging(ref bool newValue);
- ///
- /// Whether the carousel should skip rotating to the first slide after it reaches the last.
- ///
- [Parameter]
- public bool DisableLoop
- {
- get { return this._disableLoop; }
- set {
- if (this._disableLoop != value || !IsPropDirty("DisableLoop")) {
- MarkPropDirty("DisableLoop");
- }
- this._disableLoop = value;
-
- }
- }
- private bool _disablePauseOnInteraction = false;
-
- partial void OnDisablePauseOnInteractionChanging(ref bool newValue);
- ///
- /// Whether the carousel should ignore use interactions and not pause on them.
- ///
- [Parameter]
- public bool DisablePauseOnInteraction
- {
- get { return this._disablePauseOnInteraction; }
- set {
- if (this._disablePauseOnInteraction != value || !IsPropDirty("DisablePauseOnInteraction")) {
- MarkPropDirty("DisablePauseOnInteraction");
- }
- this._disablePauseOnInteraction = value;
-
- }
- }
- private bool _hideNavigation = false;
-
- partial void OnHideNavigationChanging(ref bool newValue);
- ///
- /// Whether the carousel should skip rendering of the default navigation buttons.
- ///
- [Parameter]
- public bool HideNavigation
- {
- get { return this._hideNavigation; }
- set {
- if (this._hideNavigation != value || !IsPropDirty("HideNavigation")) {
- MarkPropDirty("HideNavigation");
- }
- this._hideNavigation = value;
-
- }
- }
- private bool _hideIndicators = false;
-
- partial void OnHideIndicatorsChanging(ref bool newValue);
- ///
- /// Whether the carousel should render the indicator controls (dots).
- ///
- [Parameter]
- public bool HideIndicators
- {
- get { return this._hideIndicators; }
- set {
- if (this._hideIndicators != value || !IsPropDirty("HideIndicators")) {
- MarkPropDirty("HideIndicators");
- }
- this._hideIndicators = value;
-
- }
- }
- private bool _vertical = false;
-
- partial void OnVerticalChanging(ref bool newValue);
- ///
- /// Whether the carousel has vertical alignment.
- ///
- [Parameter]
- public bool Vertical
- {
- get { return this._vertical; }
- set {
- if (this._vertical != value || !IsPropDirty("Vertical")) {
- MarkPropDirty("Vertical");
- }
- this._vertical = value;
-
- }
- }
- private CarouselIndicatorsOrientation _indicatorsOrientation = CarouselIndicatorsOrientation.End;
-
- partial void OnIndicatorsOrientationChanging(ref CarouselIndicatorsOrientation newValue);
- ///
- /// Sets the orientation of the indicator controls (dots).
- ///
- [Parameter]
- public CarouselIndicatorsOrientation IndicatorsOrientation
- {
- get { return this._indicatorsOrientation; }
- set {
- if (this._indicatorsOrientation != value || !IsPropDirty("IndicatorsOrientation")) {
- MarkPropDirty("IndicatorsOrientation");
- }
- this._indicatorsOrientation = value;
-
- }
- }
- private string _indicatorsLabelFormat;
-
- partial void OnIndicatorsLabelFormatChanging(ref string newValue);
- ///
- /// The format used to set the aria-label on the carousel indicators.
- /// Instances of '{0}' will be replaced with the index of the corresponding slide.
- ///
- [Parameter]
- public string IndicatorsLabelFormat
- {
- get { return this._indicatorsLabelFormat; }
- set {
- if (this._indicatorsLabelFormat != value || !IsPropDirty("IndicatorsLabelFormat")) {
- MarkPropDirty("IndicatorsLabelFormat");
- }
- this._indicatorsLabelFormat = value;
-
- }
- }
- private string _slidesLabelFormat;
-
- partial void OnSlidesLabelFormatChanging(ref string newValue);
- ///
- /// The format used to set the aria-label on the carousel slides and the text displayed
- /// when the number of indicators is greater than tha maximum indicator count.
- /// Instances of '{0}' will be replaced with the index of the corresponding slide.
- /// Instances of '{1}' will be replaced with the total amount of slides.
- ///
- [Parameter]
- public string SlidesLabelFormat
- {
- get { return this._slidesLabelFormat; }
- set {
- if (this._slidesLabelFormat != value || !IsPropDirty("SlidesLabelFormat")) {
- MarkPropDirty("SlidesLabelFormat");
- }
- this._slidesLabelFormat = value;
-
- }
- }
- private double _interval = 0;
-
- partial void OnIntervalChanging(ref double newValue);
- ///
- /// The duration in milliseconds between changing the active slide.
- ///
- [Parameter]
- public double Interval
- {
- get { return this._interval; }
- set {
- if (this._interval != value || !IsPropDirty("Interval")) {
- MarkPropDirty("Interval");
- }
- this._interval = value;
-
- }
- }
- private double _maximumIndicatorsCount = 0;
-
- partial void OnMaximumIndicatorsCountChanging(ref double newValue);
- ///
- /// Controls the maximum indicator controls (dots) that can be shown. Default value is `10`.
- ///
- [Parameter]
- public double MaximumIndicatorsCount
- {
- get { return this._maximumIndicatorsCount; }
- set {
- if (this._maximumIndicatorsCount != value || !IsPropDirty("MaximumIndicatorsCount")) {
- MarkPropDirty("MaximumIndicatorsCount");
- }
- this._maximumIndicatorsCount = value;
-
- }
- }
- private HorizontalTransitionAnimation _animationType = HorizontalTransitionAnimation.Slide;
-
- partial void OnAnimationTypeChanging(ref HorizontalTransitionAnimation newValue);
- ///
- /// The animation type.
- ///
- [Parameter]
- public HorizontalTransitionAnimation AnimationType
- {
- get { return this._animationType; }
- set {
- if (this._animationType != value || !IsPropDirty("AnimationType")) {
- MarkPropDirty("AnimationType");
- }
- this._animationType = value;
-
- }
- }
- public async Task GetTotalAsync()
- {
- var iv = await InvokeMethod("p:Total", new object[] { }, new string[] { });
- return ReturnToDouble(iv);
- }
- public double GetTotal()
- {
- var iv = InvokeMethodSync("p:Total", new object[] { }, new string[] { });
- return ReturnToDouble(iv);
- }
- public async Task GetCurrentAsync()
- {
- var iv = await InvokeMethod("p:Current", new object[] { }, new string[] { });
- return ReturnToDouble(iv);
- }
- public double GetCurrent()
- {
- var iv = InvokeMethodSync("p:Current", new object[] { }, new string[] { });
- return ReturnToDouble(iv);
- }
- public async Task GetIsPlayingAsync()
- {
- var iv = await InvokeMethod("p:IsPlaying", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- public bool GetIsPlaying()
- {
- var iv = InvokeMethodSync("p:IsPlaying", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- public async Task GetIsPausedAsync()
- {
- var iv = await InvokeMethod("p:IsPaused", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- public bool GetIsPaused()
- {
- var iv = InvokeMethodSync("p:IsPaused", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
-
- partial void FindByNameCarousel(string name, ref object item);
- public override object FindByName(string name)
- {
-
- var baseResult = base.FindByName(name);
- if (baseResult != null)
- {
- return baseResult;
- }
-
- object item = null;
- FindByNameCarousel(name, ref item);
- if (item != null)
- {
- return item;
- }
-
- return null;
- }
- public async Task SetNativeElementAsync(Object element)
- {
- await InvokeMethod("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- public void SetNativeElement(Object element)
- {
- InvokeMethodSync("setNativeElement", new object[] { ObjectToParam(element) }, new string[] { "Json" });
- }
- ///
- /// Resumes playing of the carousel slides.
- ///
- public async Task PlayAsync()
- {
- await InvokeMethod("play", new object[] { }, new string[] { });
- }
- public void Play()
- {
- InvokeMethodSync("play", new object[] { }, new string[] { });
- }
- ///
- /// Pauses the carousel rotation of slides.
- ///
- public async Task PauseAsync()
- {
- await InvokeMethod("pause", new object[] { }, new string[] { });
- }
- public void Pause()
- {
- InvokeMethodSync("pause", new object[] { }, new string[] { });
- }
- ///
- /// Switches to the next slide, runs any animations, and returns if the operation was successful.
- ///
- public async Task NextAsync()
- {
- var iv = await InvokeMethod("next", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- public bool Next()
- {
- var iv = InvokeMethodSync("next", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- ///
- /// Switches to the previous slide, runs any animations, and returns if the operation was successful.
- ///
- public async Task PrevAsync()
- {
- var iv = await InvokeMethod("prev", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- public bool Prev()
- {
- var iv = InvokeMethodSync("prev", new object[] { }, new string[] { });
- return ReturnToBoolean(iv);
- }
- public async Task SelectAsync(double index, CarouselAnimationDirection? animationDirection = null)
- {
- var iv = await InvokeMethod("select", new object[] { index, ObjectToParam(animationDirection, typeof(CarouselAnimationDirection)) }, new string[] { "Number", "Json" });
- return ReturnToBoolean(iv);
- }
- public bool Select(double index, CarouselAnimationDirection? animationDirection = null)
- {
- var iv = InvokeMethodSync("select", new object[] { index, ObjectToParam(animationDirection, typeof(CarouselAnimationDirection)) }, new string[] { "Number", "Json" });
- return ReturnToBoolean(iv);
- }
-
- private string _slideChangedRef = null;
- private string _slideChangedScript = null;
- [Parameter]
- public string SlideChangedScript {
-
- set
- {
- if (value != this._slideChangedScript)
- {
- this._slideChangedScript = value;
- this.OnRefChanged("SlideChanged", null, value, true, false, (string refName, object oldValue, object newValue) => {
- this._slideChangedRef = refName;
- this.MarkPropDirty("SlideChangedRef");
- });
- }
- }
- get
- {
- return this._slideChangedScript;
- }
- }
-
- partial void OnHandlingSlideChanged(IgbNumberEventArgs args);
- private EventCallback? _slideChanged = null;
- [Parameter]
- public EventCallback SlideChanged
- {
- get
- {
- return this._slideChanged != null ? this._slideChanged.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _slideChanged, ref eventCallbacksCache))
- {
- _slideChanged = value;
- this.SetHandler(this.Name, "SlideChanged", value, (args) => {
- OnHandlingSlideChanged(args);
-
- });
- this.OnRefChanged("SlideChanged", null, "event:::SlideChanged", true, false, (refName, oldValue, newValue) => {
- this._slideChangedRef = refName;
- this.MarkPropDirty("SlideChangedRef");
- });
- }
- }
- else
- {
- _slideChanged = null;
- this.SetHandler(this.Name, "SlideChanged", null);
- this.OnRefChanged("SlideChanged", null, null, true, false, (refName, oldValue, newValue) => {
- this._slideChangedRef = null;
- this.MarkPropDirty("SlideChangedRef");
- });
- }
- }
- }
-
- private string _playingRef = null;
- private string _playingScript = null;
- [Parameter]
- public string PlayingScript {
-
- set
- {
- if (value != this._playingScript)
- {
- this._playingScript = value;
- this.OnRefChanged("Playing", null, value, true, false, (string refName, object oldValue, object newValue) => {
- this._playingRef = refName;
- this.MarkPropDirty("PlayingRef");
- });
- }
- }
- get
- {
- return this._playingScript;
- }
- }
-
- partial void OnHandlingPlaying(IgbVoidEventArgs args);
- private EventCallback? _playing = null;
- [Parameter]
- public EventCallback Playing
- {
- get
- {
- return this._playing != null ? this._playing.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _playing, ref eventCallbacksCache))
- {
- _playing = value;
- this.SetHandler(this.Name, "Playing", value, (args) => {
- OnHandlingPlaying(args);
-
- });
- this.OnRefChanged("Playing", null, "event:::Playing", true, false, (refName, oldValue, newValue) => {
- this._playingRef = refName;
- this.MarkPropDirty("PlayingRef");
- });
- }
- }
- else
- {
- _playing = null;
- this.SetHandler(this.Name, "Playing", null);
- this.OnRefChanged("Playing", null, null, true, false, (refName, oldValue, newValue) => {
- this._playingRef = null;
- this.MarkPropDirty("PlayingRef");
- });
- }
- }
- }
-
- private string _pausedRef = null;
- private string _pausedScript = null;
- [Parameter]
- public string PausedScript {
-
- set
- {
- if (value != this._pausedScript)
- {
- this._pausedScript = value;
- this.OnRefChanged("Paused", null, value, true, false, (string refName, object oldValue, object newValue) => {
- this._pausedRef = refName;
- this.MarkPropDirty("PausedRef");
- });
- }
- }
- get
- {
- return this._pausedScript;
- }
- }
-
- partial void OnHandlingPaused(IgbVoidEventArgs args);
- private EventCallback? _paused = null;
- [Parameter]
- public EventCallback Paused
- {
- get
- {
- return this._paused != null ? this._paused.Value : EventCallback.Empty;
- }
- set
- {
- if (!value.Equals(EventCallback.Empty))
- {
- if (!CompareEventCallbacks(value, _paused, ref eventCallbacksCache))
- {
- _paused = value;
- this.SetHandler(this.Name, "Paused", value, (args) => {
- OnHandlingPaused(args);
-
- });
- this.OnRefChanged("Paused", null, "event:::Paused", true, false, (refName, oldValue, newValue) => {
- this._pausedRef = refName;
- this.MarkPropDirty("PausedRef");
- });
- }
- }
- else
- {
- _paused = null;
- this.SetHandler(this.Name, "Paused", null);
- this.OnRefChanged("Paused", null, null, true, false, (refName, oldValue, newValue) => {
- this._pausedRef = null;
- this.MarkPropDirty("PausedRef");
- });
- }
- }
- }
-
- partial void SerializeCoreIgbCarousel(RendererSerializer ser);
-
- internal override void SerializeCore(RendererSerializer ser)
- {
- base.SerializeCore(ser);
-
- SerializeCoreIgbCarousel(ser);
-
- if (IsPropDirty("DisableLoop")) { ser.AddBooleanProp("disableLoop", this._disableLoop); }
- if (IsPropDirty("DisablePauseOnInteraction")) { ser.AddBooleanProp("disablePauseOnInteraction", this._disablePauseOnInteraction); }
- if (IsPropDirty("HideNavigation")) { ser.AddBooleanProp("hideNavigation", this._hideNavigation); }
- if (IsPropDirty("HideIndicators")) { ser.AddBooleanProp("hideIndicators", this._hideIndicators); }
- if (IsPropDirty("Vertical")) { ser.AddBooleanProp("vertical", this._vertical); }
- if (IsPropDirty("IndicatorsOrientation")) { ser.AddEnumProp("indicatorsOrientation", this._indicatorsOrientation); }
- if (IsPropDirty("IndicatorsLabelFormat")) { ser.AddStringProp("indicatorsLabelFormat", this._indicatorsLabelFormat); }
- if (IsPropDirty("SlidesLabelFormat")) { ser.AddStringProp("slidesLabelFormat", this._slidesLabelFormat); }
- if (IsPropDirty("Interval")) { ser.AddNumberProp("interval", this._interval); }
- if (IsPropDirty("MaximumIndicatorsCount")) { ser.AddNumberProp("maximumIndicatorsCount", this._maximumIndicatorsCount); }
- if (IsPropDirty("AnimationType")) { ser.AddEnumProp("animationType", this._animationType); }
- if (IsPropDirty("SlideChangedRef")) { ser.AddStringProp("slideChangedRef", this._slideChangedRef); }
- if (IsPropDirty("PlayingRef")) { ser.AddStringProp("playingRef", this._playingRef); }
- if (IsPropDirty("PausedRef")) { ser.AddStringProp("pausedRef", this._pausedRef); }
-
- }
-
-}
+ this._playingRef = refName;
+ this.MarkPropDirty("PlayingRef");
+ });
+ }
+ }
+ else
+ {
+ _playing = null;
+ this.SetHandler(this.Name, "Playing", null);
+ this.OnRefChanged("Playing", null, null, true, false, (refName, oldValue, newValue) =>
+ {
+ this._playingRef = null;
+ this.MarkPropDirty("PlayingRef");
+ });
+ }
+ }
+ }
+
+ private string _pausedRef = null;
+ private string _pausedScript = null;
+ [Parameter]
+ public string PausedScript
+ {
+
+ set
+ {
+ if (value != this._pausedScript)
+ {
+ this._pausedScript = value;
+ this.OnRefChanged("Paused", null, value, true, false, (string refName, object oldValue, object newValue) =>
+ {
+ this._pausedRef = refName;
+ this.MarkPropDirty("PausedRef");
+ });
+ }
+ }
+ get
+ {
+ return this._pausedScript;
+ }
+ }
+
+ partial void OnHandlingPaused(IgbVoidEventArgs args);
+ private EventCallback