diff --git a/src/activities/Elsa.Activities.Http/Activities/HttpEndpoint/HttpEndpoint.cs b/src/activities/Elsa.Activities.Http/Activities/HttpEndpoint/HttpEndpoint.cs index 6400f4d17..8dcbf930a 100644 --- a/src/activities/Elsa.Activities.Http/Activities/HttpEndpoint/HttpEndpoint.cs +++ b/src/activities/Elsa.Activities.Http/Activities/HttpEndpoint/HttpEndpoint.cs @@ -43,8 +43,8 @@ namespace Elsa.Activities.Http /// /// The HTTP methods that triggers this activity. /// - [ActivityProperty(UIHint = ActivityPropertyUIHints.CheckList, Hint = "The HTTP methods that triggers this activity.", Options = new[] { "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS", "HEAD" })] - public HashSet Methods { get; set; } = new HashSet(); + [ActivityProperty(UIHint = ActivityPropertyUIHints.CheckList, Hint = "The HTTP methods that trigger this activity.", Options = new[] { "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS", "HEAD" })] + public HashSet Methods { get; set; } = new(); /// /// A value indicating whether the HTTP request content body should be read and stored as part of the HTTP request model. diff --git a/src/clients/Elsa.Client/Models/ActivityPropertyDescriptor.cs b/src/clients/Elsa.Client/Models/ActivityPropertyDescriptor.cs index c284ff09c..422f9e30f 100644 --- a/src/clients/Elsa.Client/Models/ActivityPropertyDescriptor.cs +++ b/src/clients/Elsa.Client/Models/ActivityPropertyDescriptor.cs @@ -10,6 +10,6 @@ namespace Elsa.Client.Models [DataMember(Order = 2)] public string UIHint { get; set; } = default!; [DataMember(Order = 3)] public string? Label { get; set; } [DataMember(Order = 4)] public string? Hint { get; set; } - [DataMember(Order = 5)] public JObject? Options { get; set; } + [DataMember(Order = 5)] public object? Options { get; set; } } } \ No newline at end of file diff --git a/src/designer/elsa-workflows-studio/src/assets/styles/tailwind.css b/src/designer/elsa-workflows-studio/src/assets/styles/tailwind.css index e837bf250..358ff0ce9 100644 --- a/src/designer/elsa-workflows-studio/src/assets/styles/tailwind.css +++ b/src/designer/elsa-workflows-studio/src/assets/styles/tailwind.css @@ -1,3 +1,5 @@ +/*! tailwindcss v2.0.3 | MIT License | https://tailwindcss.com */ + /*! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */ /* @@ -440,15 +442,18 @@ textarea { } input::-moz-placeholder, textarea::-moz-placeholder { + opacity: 1; color: #9fa6b2; } input:-ms-input-placeholder, textarea:-ms-input-placeholder { + opacity: 1; color: #9fa6b2; } input::placeholder, textarea::placeholder { + opacity: 1; color: #9fa6b2; } @@ -869,6 +874,26 @@ select { .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3e%3cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3' stroke='%239fa6b2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e"); +} + +.form-select::-ms-expand { + color: #9fa6b2; + border: none; +} + +@media not print { + .form-select::-ms-expand { + display: none; + } +} + +@media print and (-ms-high-contrast: active), print and (-ms-high-contrast: none) { + .form-select { + padding-right: 0.75rem; + } +} + +.form-select { -webkit-appearance: none; -moz-appearance: none; appearance: none; @@ -889,29 +914,30 @@ select { background-size: 1.5em 1.5em; } -.form-select::-ms-expand { - color: #9fa6b2; - border: none; -} - -@media not print { - .form-select::-ms-expand { - display: none; - } -} - -@media print and (-ms-high-contrast: active), print and (-ms-high-contrast: none) { - .form-select { - padding-right: 0.75rem; - } -} - .form-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(164, 202, 254, 0.45); border-color: #a4cafe; } +.form-checkbox:checked { + background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e"); + border-color: transparent; + background-color: currentColor; + background-size: 100% 100%; + background-position: center; + background-repeat: no-repeat; +} + +@media not print { + .form-checkbox::-ms-check { + color: transparent; + background: inherit; + border-color: inherit; + border-radius: inherit; + } +} + .form-checkbox { -webkit-appearance: none; -moz-appearance: none; @@ -933,24 +959,6 @@ select { border-color: #d2d6dc; } -.form-checkbox:checked { - background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e"); - border-color: transparent; - background-color: currentColor; - background-size: 100% 100%; - background-position: center; - background-repeat: no-repeat; -} - -@media not print { - .form-checkbox::-ms-check { - color: transparent; - background: inherit; - border-color: inherit; - border-radius: inherit; - } -} - .form-checkbox:focus { outline: none; box-shadow: 0 0 0 3px rgba(164, 202, 254, 0.45); @@ -961,6 +969,24 @@ select { border-color: transparent; } +.form-radio:checked { + background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e"); + border-color: transparent; + background-color: currentColor; + background-size: 100% 100%; + background-position: center; + background-repeat: no-repeat; +} + +@media not print { + .form-radio::-ms-check { + color: transparent; + background: inherit; + border-color: inherit; + border-radius: inherit; + } +} + .form-radio { -webkit-appearance: none; -moz-appearance: none; @@ -983,24 +1009,6 @@ select { border-color: #d2d6dc; } -.form-radio:checked { - background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e"); - border-color: transparent; - background-color: currentColor; - background-size: 100% 100%; - background-position: center; - background-repeat: no-repeat; -} - -@media not print { - .form-radio::-ms-check { - color: transparent; - background: inherit; - border-color: inherit; - border-radius: inherit; - } -} - .form-radio:focus { outline: none; box-shadow: 0 0 0 3px rgba(164, 202, 254, 0.45); @@ -16517,6 +16525,10 @@ select { cursor: move; } +.cursor-help { + cursor: help; +} + .cursor-not-allowed { cursor: not-allowed; } @@ -61408,6 +61420,10 @@ svg.jtk-connector path { cursor: move; } + .sm\:cursor-help { + cursor: help; + } + .sm\:cursor-not-allowed { cursor: not-allowed; } @@ -106215,6 +106231,10 @@ svg.jtk-connector path { cursor: move; } + .md\:cursor-help { + cursor: help; + } + .md\:cursor-not-allowed { cursor: not-allowed; } @@ -151022,6 +151042,10 @@ svg.jtk-connector path { cursor: move; } + .lg\:cursor-help { + cursor: help; + } + .lg\:cursor-not-allowed { cursor: not-allowed; } @@ -195829,6 +195853,10 @@ svg.jtk-connector path { cursor: move; } + .xl\:cursor-help { + cursor: help; + } + .xl\:cursor-not-allowed { cursor: not-allowed; }