@gravitee/ui-components 3.25.3-typescript-bfd8f67 → 3.25.3-typescript-94e8113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1292 -0
- package/LICENSE.txt +202 -0
- package/README.md +195 -0
- package/dist/src/atoms/gv-autocomplete.d.ts +104 -0
- package/dist/src/atoms/gv-autocomplete.js +422 -0
- package/dist/src/atoms/gv-button.d.ts +109 -0
- package/dist/src/atoms/gv-button.js +397 -0
- package/dist/src/atoms/gv-checkbox.d.ts +114 -0
- package/dist/src/atoms/gv-checkbox.js +178 -0
- package/dist/src/atoms/gv-date-picker-calendar.d.ts +190 -0
- package/dist/src/atoms/gv-date-picker-calendar.js +812 -0
- package/dist/src/atoms/gv-date-picker-cell.d.ts +80 -0
- package/dist/src/atoms/gv-date-picker-cell.js +174 -0
- package/dist/src/atoms/gv-date-picker.d.ts +194 -0
- package/dist/src/atoms/gv-date-picker.js +638 -0
- package/dist/src/atoms/gv-file-upload.d.ts +64 -0
- package/dist/src/atoms/gv-file-upload.js +348 -0
- package/dist/src/atoms/gv-icon.d.ts +26 -0
- package/dist/src/atoms/gv-icon.js +93 -0
- package/dist/src/atoms/gv-image.d.ts +45 -0
- package/dist/src/atoms/gv-image.js +135 -0
- package/dist/src/atoms/gv-input-message.d.ts +20 -0
- package/dist/src/atoms/gv-input-message.js +78 -0
- package/dist/src/atoms/gv-input.d.ts +246 -0
- package/dist/src/atoms/gv-input.js +508 -0
- package/dist/src/atoms/gv-link.d.ts +67 -0
- package/dist/src/atoms/gv-link.js +204 -0
- package/dist/src/atoms/gv-message.d.ts +23 -0
- package/dist/src/atoms/gv-message.js +133 -0
- package/dist/src/atoms/gv-metric.d.ts +32 -0
- package/dist/src/atoms/gv-metric.js +112 -0
- package/dist/src/atoms/gv-relative-time.d.ts +45 -0
- package/dist/src/atoms/gv-relative-time.js +143 -0
- package/dist/src/atoms/gv-select-native.d.ts +174 -0
- package/dist/src/atoms/gv-select-native.js +363 -0
- package/dist/src/atoms/gv-select.d.ts +71 -0
- package/dist/src/atoms/gv-select.js +413 -0
- package/dist/src/atoms/gv-spinner.d.ts +10 -0
- package/dist/src/atoms/gv-spinner.js +54 -0
- package/dist/src/atoms/gv-state.d.ts +50 -0
- package/dist/src/atoms/gv-state.js +125 -0
- package/dist/src/atoms/gv-switch.d.ts +60 -0
- package/dist/src/atoms/gv-switch.js +235 -0
- package/dist/src/atoms/gv-tag.d.ts +69 -0
- package/dist/src/atoms/gv-tag.js +162 -0
- package/dist/src/atoms/gv-text.d.ts +110 -0
- package/dist/src/atoms/gv-text.js +160 -0
- package/dist/src/charts/gv-chart-bar.d.ts +50 -0
- package/dist/src/charts/gv-chart-bar.js +101 -0
- package/dist/src/charts/gv-chart-gauge.d.ts +58 -0
- package/dist/src/charts/gv-chart-gauge.js +92 -0
- package/dist/src/charts/gv-chart-histogram.d.ts +48 -0
- package/dist/src/charts/gv-chart-histogram.js +78 -0
- package/dist/src/charts/gv-chart-line.d.ts +52 -0
- package/dist/src/charts/gv-chart-line.js +218 -0
- package/dist/src/charts/gv-chart-map.d.ts +50 -0
- package/dist/src/charts/gv-chart-map.js +111 -0
- package/dist/src/charts/gv-chart-pie.d.ts +50 -0
- package/dist/src/charts/gv-chart-pie.js +89 -0
- package/dist/src/index.d.ts +77 -0
- package/dist/src/index.js +77 -0
- package/dist/src/lib/cron-expression.d.ts +1 -0
- package/dist/src/lib/cron-expression.js +176 -0
- package/dist/src/lib/date.d.ts +1 -0
- package/dist/src/lib/date.js +43 -0
- package/dist/src/lib/events.d.ts +1 -0
- package/dist/src/lib/events.js +26 -0
- package/dist/src/lib/http-client-schema-form.d.ts +68 -0
- package/dist/src/lib/http-client-schema-form.js +67 -0
- package/dist/src/lib/http.d.ts +222 -0
- package/dist/src/lib/http.js +237 -0
- package/dist/src/lib/i18n.d.ts +30 -0
- package/dist/src/lib/i18n.js +93 -0
- package/dist/src/lib/item.d.ts +12 -0
- package/dist/src/lib/item.js +110 -0
- package/dist/src/lib/properties.d.ts +42 -0
- package/dist/src/lib/properties.js +171 -0
- package/dist/src/lib/schema-form.d.ts +5 -0
- package/dist/src/lib/schema-form.js +39 -0
- package/dist/src/lib/studio.d.ts +2 -0
- package/dist/src/lib/studio.js +144 -0
- package/dist/src/lib/style.d.ts +6 -0
- package/dist/src/lib/style.js +39 -0
- package/dist/src/lib/text-format.d.ts +6 -0
- package/dist/src/lib/text-format.js +65 -0
- package/dist/src/lib/theme.d.ts +4 -0
- package/dist/src/lib/theme.js +60 -0
- package/dist/src/lib/utils.d.ts +9 -0
- package/dist/src/lib/utils.js +106 -0
- package/dist/src/mixins/chart-element.d.ts +39 -0
- package/dist/src/mixins/chart-element.js +153 -0
- package/dist/src/mixins/input-element.d.ts +64 -0
- package/dist/src/mixins/input-element.js +136 -0
- package/dist/src/mixins/item-resource.d.ts +56 -0
- package/dist/src/mixins/item-resource.js +102 -0
- package/dist/src/mixins/keyboard-element.d.ts +25 -0
- package/dist/src/mixins/keyboard-element.js +62 -0
- package/dist/src/mixins/update-after-browser.d.ts +11 -0
- package/dist/src/mixins/update-after-browser.js +30 -0
- package/dist/src/mixins/with-resize-observer.d.ts +12 -0
- package/dist/src/mixins/with-resize-observer.js +62 -0
- package/dist/src/mixins/with-skeleton-attribute.d.ts +35 -0
- package/dist/src/mixins/with-skeleton-attribute.js +109 -0
- package/dist/src/molecules/gv-card-full.d.ts +78 -0
- package/dist/src/molecules/gv-card-full.js +209 -0
- package/dist/src/molecules/gv-card-list.d.ts +33 -0
- package/dist/src/molecules/gv-card-list.js +101 -0
- package/dist/src/molecules/gv-card.d.ts +65 -0
- package/dist/src/molecules/gv-card.js +130 -0
- package/dist/src/molecules/gv-category-list.d.ts +17 -0
- package/dist/src/molecules/gv-category-list.js +56 -0
- package/dist/src/molecules/gv-category.d.ts +64 -0
- package/dist/src/molecules/gv-category.js +163 -0
- package/dist/src/molecules/gv-code.d.ts +192 -0
- package/dist/src/molecules/gv-code.js +334 -0
- package/dist/src/molecules/gv-confirm.d.ts +60 -0
- package/dist/src/molecules/gv-confirm.js +175 -0
- package/dist/src/molecules/gv-cron-editor.d.ts +115 -0
- package/dist/src/molecules/gv-cron-editor.js +685 -0
- package/dist/src/molecules/gv-dropdown-menu.d.ts +28 -0
- package/dist/src/molecules/gv-dropdown-menu.js +108 -0
- package/dist/src/molecules/gv-expandable.d.ts +37 -0
- package/dist/src/molecules/gv-expandable.js +116 -0
- package/dist/src/molecules/gv-expression-language.d.ts +150 -0
- package/dist/src/molecules/gv-expression-language.js +263 -0
- package/dist/src/molecules/gv-identity-picture.d.ts +44 -0
- package/dist/src/molecules/gv-identity-picture.js +139 -0
- package/dist/src/molecules/gv-list.d.ts +123 -0
- package/dist/src/molecules/gv-list.js +214 -0
- package/dist/src/molecules/gv-metrics.d.ts +65 -0
- package/dist/src/molecules/gv-metrics.js +147 -0
- package/dist/src/molecules/gv-modal.d.ts +64 -0
- package/dist/src/molecules/gv-modal.js +203 -0
- package/dist/src/molecules/gv-nav.d.ts +41 -0
- package/dist/src/molecules/gv-nav.js +180 -0
- package/dist/src/molecules/gv-option.d.ts +65 -0
- package/dist/src/molecules/gv-option.js +230 -0
- package/dist/src/molecules/gv-plans.d.ts +73 -0
- package/dist/src/molecules/gv-plans.js +400 -0
- package/dist/src/molecules/gv-popover.d.ts +91 -0
- package/dist/src/molecules/gv-popover.js +323 -0
- package/dist/src/molecules/gv-promote.d.ts +108 -0
- package/dist/src/molecules/gv-promote.js +203 -0
- package/dist/src/molecules/gv-rating-list.d.ts +77 -0
- package/dist/src/molecules/gv-rating-list.js +341 -0
- package/dist/src/molecules/gv-rating.d.ts +55 -0
- package/dist/src/molecules/gv-rating.js +234 -0
- package/dist/src/molecules/gv-row-expandable.d.ts +8 -0
- package/dist/src/molecules/gv-row-expandable.js +42 -0
- package/dist/src/molecules/gv-row.d.ts +37 -0
- package/dist/src/molecules/gv-row.js +205 -0
- package/dist/src/molecules/gv-stats.d.ts +53 -0
- package/dist/src/molecules/gv-stats.js +110 -0
- package/dist/src/molecules/gv-stepper.d.ts +46 -0
- package/dist/src/molecules/gv-stepper.js +274 -0
- package/dist/src/molecules/gv-table.d.ts +159 -0
- package/dist/src/molecules/gv-table.js +644 -0
- package/dist/src/molecules/gv-tree.d.ts +44 -0
- package/dist/src/molecules/gv-tree.js +238 -0
- package/dist/src/organisms/gv-documentation.d.ts +52 -0
- package/dist/src/organisms/gv-documentation.js +205 -0
- package/dist/src/organisms/gv-header.d.ts +60 -0
- package/dist/src/organisms/gv-header.js +276 -0
- package/dist/src/organisms/gv-http-client.d.ts +57 -0
- package/dist/src/organisms/gv-http-client.js +258 -0
- package/dist/src/organisms/gv-menu.d.ts +74 -0
- package/dist/src/organisms/gv-menu.js +258 -0
- package/dist/src/organisms/gv-newsletter-subscription.d.ts +82 -0
- package/dist/src/organisms/gv-newsletter-subscription.js +258 -0
- package/dist/src/organisms/gv-pagination.d.ts +63 -0
- package/dist/src/organisms/gv-pagination.js +179 -0
- package/dist/src/organisms/gv-properties.d.ts +229 -0
- package/dist/src/organisms/gv-properties.js +860 -0
- package/dist/src/organisms/gv-resizable-views.d.ts +33 -0
- package/dist/src/organisms/gv-resizable-views.js +371 -0
- package/dist/src/organisms/gv-resources.d.ts +125 -0
- package/dist/src/organisms/gv-resources.js +496 -0
- package/dist/src/organisms/gv-schema-form-array.d.ts +55 -0
- package/dist/src/organisms/gv-schema-form-array.js +237 -0
- package/dist/src/organisms/gv-schema-form-control-object.d.ts +64 -0
- package/dist/src/organisms/gv-schema-form-control-object.js +141 -0
- package/dist/src/organisms/gv-schema-form-control.d.ts +90 -0
- package/dist/src/organisms/gv-schema-form-control.js +419 -0
- package/dist/src/organisms/gv-schema-form.d.ts +156 -0
- package/dist/src/organisms/gv-schema-form.js +700 -0
- package/dist/src/organisms/gv-tabs.d.ts +56 -0
- package/dist/src/organisms/gv-tabs.js +201 -0
- package/dist/src/organisms/gv-user-menu.d.ts +56 -0
- package/dist/src/organisms/gv-user-menu.js +298 -0
- package/dist/src/organisms/gv-vertical-menu.d.ts +28 -0
- package/dist/src/organisms/gv-vertical-menu.js +119 -0
- package/dist/src/policy-studio/gv-flow-step.d.ts +142 -0
- package/dist/src/policy-studio/gv-flow-step.js +443 -0
- package/dist/src/policy-studio/gv-flow.d.ts +89 -0
- package/dist/src/policy-studio/gv-flow.js +595 -0
- package/dist/src/policy-studio/gv-policy-studio-menu.d.ts +94 -0
- package/dist/src/policy-studio/gv-policy-studio-menu.js +689 -0
- package/dist/src/policy-studio/gv-policy-studio.d.ts +464 -0
- package/dist/src/policy-studio/gv-policy-studio.js +1712 -0
- package/dist/src/styles/empty.d.ts +1 -0
- package/dist/src/styles/empty.js +35 -0
- package/dist/src/styles/input.d.ts +1 -0
- package/dist/src/styles/input.js +262 -0
- package/dist/src/styles/link.d.ts +1 -0
- package/dist/src/styles/link.js +31 -0
- package/dist/src/styles/shapes.d.ts +2 -0
- package/dist/src/styles/shapes.js +17 -0
- package/dist/src/styles/skeleton.d.ts +1 -0
- package/dist/src/styles/skeleton.js +52 -0
- package/dist/src/styles/zoom.d.ts +1 -0
- package/dist/src/styles/zoom.js +39 -0
- package/dist/src/theme/gv-theme.d.ts +81 -0
- package/dist/src/theme/gv-theme.js +197 -0
- package/dist/wc/gv-autocomplete.d.ts +1 -0
- package/dist/wc/gv-autocomplete.js +1 -0
- package/dist/wc/gv-button.d.ts +1 -0
- package/dist/wc/gv-button.js +1 -0
- package/dist/wc/gv-card-full.d.ts +1 -0
- package/dist/wc/gv-card-full.js +1 -0
- package/dist/wc/gv-card-list.d.ts +1 -0
- package/dist/wc/gv-card-list.js +1 -0
- package/dist/wc/gv-card.d.ts +1 -0
- package/dist/wc/gv-card.js +1 -0
- package/dist/wc/gv-category-list.d.ts +1 -0
- package/dist/wc/gv-category-list.js +1 -0
- package/dist/wc/gv-category.d.ts +1 -0
- package/dist/wc/gv-category.js +1 -0
- package/dist/wc/gv-chart-bar.d.ts +1 -0
- package/dist/wc/gv-chart-bar.js +1 -0
- package/dist/wc/gv-chart-gauge.d.ts +1 -0
- package/dist/wc/gv-chart-gauge.js +1 -0
- package/dist/wc/gv-chart-histogram.d.ts +1 -0
- package/dist/wc/gv-chart-histogram.js +1 -0
- package/dist/wc/gv-chart-line.d.ts +1 -0
- package/dist/wc/gv-chart-line.js +1 -0
- package/dist/wc/gv-chart-map.d.ts +1 -0
- package/dist/wc/gv-chart-map.js +1 -0
- package/dist/wc/gv-chart-pie.d.ts +1 -0
- package/dist/wc/gv-chart-pie.js +1 -0
- package/dist/wc/gv-checkbox.d.ts +1 -0
- package/dist/wc/gv-checkbox.js +1 -0
- package/dist/wc/gv-code.d.ts +1 -0
- package/dist/wc/gv-code.js +1 -0
- package/dist/wc/gv-confirm.d.ts +1 -0
- package/dist/wc/gv-confirm.js +1 -0
- package/dist/wc/gv-cron-editor.d.ts +1 -0
- package/dist/wc/gv-cron-editor.js +1 -0
- package/dist/wc/gv-date-picker-calendar.d.ts +1 -0
- package/dist/wc/gv-date-picker-calendar.js +1 -0
- package/dist/wc/gv-date-picker-cell.d.ts +1 -0
- package/dist/wc/gv-date-picker-cell.js +1 -0
- package/dist/wc/gv-date-picker.d.ts +1 -0
- package/dist/wc/gv-date-picker.js +1 -0
- package/dist/wc/gv-documentation.d.ts +1 -0
- package/dist/wc/gv-documentation.js +1 -0
- package/dist/wc/gv-dropdown-menu.d.ts +1 -0
- package/dist/wc/gv-dropdown-menu.js +1 -0
- package/dist/wc/gv-expandable.d.ts +1 -0
- package/dist/wc/gv-expandable.js +1 -0
- package/dist/wc/gv-expression-language.d.ts +1 -0
- package/dist/wc/gv-expression-language.js +1 -0
- package/dist/wc/gv-file-upload.d.ts +1 -0
- package/dist/wc/gv-file-upload.js +1 -0
- package/dist/wc/gv-flow-step.d.ts +1 -0
- package/dist/wc/gv-flow-step.js +1 -0
- package/dist/wc/gv-flow.d.ts +1 -0
- package/dist/wc/gv-flow.js +1 -0
- package/dist/wc/gv-header.d.ts +1 -0
- package/dist/wc/gv-header.js +1 -0
- package/dist/wc/gv-http-client.d.ts +1 -0
- package/dist/wc/gv-http-client.js +1 -0
- package/dist/wc/gv-icon.d.ts +1 -0
- package/dist/wc/gv-icon.js +1 -0
- package/dist/wc/gv-identity-picture.d.ts +1 -0
- package/dist/wc/gv-identity-picture.js +1 -0
- package/dist/wc/gv-image.d.ts +1 -0
- package/dist/wc/gv-image.js +1 -0
- package/dist/wc/gv-input-message.d.ts +1 -0
- package/dist/wc/gv-input-message.js +1 -0
- package/dist/wc/gv-input.d.ts +1 -0
- package/dist/wc/gv-input.js +1 -0
- package/dist/wc/gv-link.d.ts +1 -0
- package/dist/wc/gv-link.js +1 -0
- package/dist/wc/gv-list.d.ts +1 -0
- package/dist/wc/gv-list.js +1 -0
- package/dist/wc/gv-menu.d.ts +1 -0
- package/dist/wc/gv-menu.js +1 -0
- package/dist/wc/gv-message.d.ts +1 -0
- package/dist/wc/gv-message.js +1 -0
- package/dist/wc/gv-metric.d.ts +1 -0
- package/dist/wc/gv-metric.js +1 -0
- package/dist/wc/gv-metrics.d.ts +1 -0
- package/dist/wc/gv-metrics.js +1 -0
- package/dist/wc/gv-modal.d.ts +1 -0
- package/dist/wc/gv-modal.js +1 -0
- package/dist/wc/gv-nav.d.ts +1 -0
- package/dist/wc/gv-nav.js +1 -0
- package/dist/wc/gv-newsletter-subscription.d.ts +1 -0
- package/dist/wc/gv-newsletter-subscription.js +1 -0
- package/dist/wc/gv-option.d.ts +1 -0
- package/dist/wc/gv-option.js +1 -0
- package/dist/wc/gv-pagination.d.ts +1 -0
- package/dist/wc/gv-pagination.js +1 -0
- package/dist/wc/gv-plans.d.ts +1 -0
- package/dist/wc/gv-plans.js +1 -0
- package/dist/wc/gv-policy-studio-menu.d.ts +1 -0
- package/dist/wc/gv-policy-studio-menu.js +1 -0
- package/dist/wc/gv-policy-studio.d.ts +1 -0
- package/dist/wc/gv-policy-studio.js +1 -0
- package/dist/wc/gv-popover.d.ts +1 -0
- package/dist/wc/gv-popover.js +1 -0
- package/dist/wc/gv-promote.d.ts +1 -0
- package/dist/wc/gv-promote.js +1 -0
- package/dist/wc/gv-properties.d.ts +1 -0
- package/dist/wc/gv-properties.js +1 -0
- package/dist/wc/gv-rating-list.d.ts +1 -0
- package/dist/wc/gv-rating-list.js +1 -0
- package/dist/wc/gv-rating.d.ts +1 -0
- package/dist/wc/gv-rating.js +1 -0
- package/dist/wc/gv-relative-time.d.ts +1 -0
- package/dist/wc/gv-relative-time.js +1 -0
- package/dist/wc/gv-resizable-views.d.ts +1 -0
- package/dist/wc/gv-resizable-views.js +1 -0
- package/dist/wc/gv-resources.d.ts +1 -0
- package/dist/wc/gv-resources.js +1 -0
- package/dist/wc/gv-row-expandable.d.ts +1 -0
- package/dist/wc/gv-row-expandable.js +1 -0
- package/dist/wc/gv-row.d.ts +1 -0
- package/dist/wc/gv-row.js +1 -0
- package/dist/wc/gv-schema-form-array.d.ts +1 -0
- package/dist/wc/gv-schema-form-array.js +1 -0
- package/dist/wc/gv-schema-form-control-object.d.ts +1 -0
- package/dist/wc/gv-schema-form-control-object.js +1 -0
- package/dist/wc/gv-schema-form-control.d.ts +1 -0
- package/dist/wc/gv-schema-form-control.js +1 -0
- package/dist/wc/gv-schema-form.d.ts +1 -0
- package/dist/wc/gv-schema-form.js +1 -0
- package/dist/wc/gv-select-native.d.ts +1 -0
- package/dist/wc/gv-select-native.js +1 -0
- package/dist/wc/gv-select.d.ts +1 -0
- package/dist/wc/gv-select.js +1 -0
- package/dist/wc/gv-spinner.d.ts +1 -0
- package/dist/wc/gv-spinner.js +1 -0
- package/dist/wc/gv-state.d.ts +1 -0
- package/dist/wc/gv-state.js +1 -0
- package/dist/wc/gv-stats.d.ts +1 -0
- package/dist/wc/gv-stats.js +1 -0
- package/dist/wc/gv-stepper.d.ts +1 -0
- package/dist/wc/gv-stepper.js +1 -0
- package/dist/wc/gv-switch.d.ts +1 -0
- package/dist/wc/gv-switch.js +1 -0
- package/dist/wc/gv-table.d.ts +1 -0
- package/dist/wc/gv-table.js +1 -0
- package/dist/wc/gv-tabs.d.ts +1 -0
- package/dist/wc/gv-tabs.js +1 -0
- package/dist/wc/gv-tag.d.ts +1 -0
- package/dist/wc/gv-tag.js +1 -0
- package/dist/wc/gv-text.d.ts +1 -0
- package/dist/wc/gv-text.js +1 -0
- package/dist/wc/gv-theme.d.ts +1 -0
- package/dist/wc/gv-theme.js +1 -0
- package/dist/wc/gv-tree.d.ts +1 -0
- package/dist/wc/gv-tree.js +1 -0
- package/dist/wc/gv-user-menu.d.ts +1 -0
- package/dist/wc/gv-user-menu.js +1 -0
- package/dist/wc/gv-vertical-menu.d.ts +1 -0
- package/dist/wc/gv-vertical-menu.js +1 -0
- package/package.json +8 -16
- package/src/atoms/gv-autocomplete.js +0 -1
- package/src/atoms/gv-button.js +0 -1
- package/src/atoms/gv-checkbox.js +0 -1
- package/src/atoms/gv-date-picker-calendar.js +0 -1
- package/src/atoms/gv-date-picker-cell.js +0 -1
- package/src/atoms/gv-date-picker.js +0 -1
- package/src/atoms/gv-file-upload.js +0 -1
- package/src/atoms/gv-icon.js +0 -1
- package/src/atoms/gv-image.js +0 -1
- package/src/atoms/gv-input-message.js +0 -1
- package/src/atoms/gv-input.js +0 -1
- package/src/atoms/gv-link.js +0 -1
- package/src/atoms/gv-message.js +0 -1
- package/src/atoms/gv-metric.js +0 -1
- package/src/atoms/gv-relative-time.js +0 -1
- package/src/atoms/gv-select-native.js +0 -1
- package/src/atoms/gv-select.js +0 -1
- package/src/atoms/gv-spinner.js +0 -1
- package/src/atoms/gv-state.js +0 -1
- package/src/atoms/gv-switch.js +0 -1
- package/src/atoms/gv-tag.js +0 -1
- package/src/atoms/gv-text.js +0 -1
- package/src/charts/gv-chart-bar.js +0 -1
- package/src/charts/gv-chart-gauge.js +0 -1
- package/src/charts/gv-chart-histogram.js +0 -1
- package/src/charts/gv-chart-line.js +0 -1
- package/src/charts/gv-chart-map.js +0 -1
- package/src/charts/gv-chart-pie.js +0 -1
- package/src/index.js +0 -1
- package/src/lib/cron-expression.js +0 -1
- package/src/lib/date.js +0 -1
- package/src/lib/events.js +0 -1
- package/src/lib/http-client-schema-form.js +0 -1
- package/src/lib/http.js +0 -1
- package/src/lib/i18n.js +0 -1
- package/src/lib/item.js +0 -1
- package/src/lib/properties.js +0 -1
- package/src/lib/schema-form.js +0 -1
- package/src/lib/studio.js +0 -1
- package/src/lib/style.js +0 -1
- package/src/lib/text-format.js +0 -1
- package/src/lib/theme.js +0 -1
- package/src/lib/utils.js +0 -1
- package/src/mixins/chart-element.js +0 -1
- package/src/mixins/input-element.js +0 -1
- package/src/mixins/item-resource.js +0 -1
- package/src/mixins/keyboard-element.js +0 -1
- package/src/mixins/update-after-browser.js +0 -1
- package/src/mixins/with-resize-observer.js +0 -1
- package/src/mixins/with-skeleton-attribute.js +0 -1
- package/src/molecules/gv-card-full.js +0 -1
- package/src/molecules/gv-card-list.js +0 -1
- package/src/molecules/gv-card.js +0 -1
- package/src/molecules/gv-category-list.js +0 -1
- package/src/molecules/gv-category.js +0 -1
- package/src/molecules/gv-code.js +0 -1
- package/src/molecules/gv-confirm.js +0 -1
- package/src/molecules/gv-cron-editor.js +0 -1
- package/src/molecules/gv-dropdown-menu.js +0 -1
- package/src/molecules/gv-expandable.js +0 -1
- package/src/molecules/gv-expression-language.js +0 -1
- package/src/molecules/gv-identity-picture.js +0 -1
- package/src/molecules/gv-list.js +0 -1
- package/src/molecules/gv-metrics.js +0 -1
- package/src/molecules/gv-modal.js +0 -1
- package/src/molecules/gv-nav.js +0 -1
- package/src/molecules/gv-option.js +0 -1
- package/src/molecules/gv-plans.js +0 -1
- package/src/molecules/gv-popover.js +0 -1
- package/src/molecules/gv-promote.js +0 -1
- package/src/molecules/gv-rating-list.js +0 -1
- package/src/molecules/gv-rating.js +0 -1
- package/src/molecules/gv-row-expandable.js +0 -1
- package/src/molecules/gv-row.js +0 -1
- package/src/molecules/gv-stats.js +0 -1
- package/src/molecules/gv-stepper.js +0 -1
- package/src/molecules/gv-table.js +0 -1
- package/src/molecules/gv-tree.js +0 -1
- package/src/organisms/gv-documentation.js +0 -1
- package/src/organisms/gv-header.js +0 -1
- package/src/organisms/gv-http-client.js +0 -1
- package/src/organisms/gv-menu.js +0 -1
- package/src/organisms/gv-newsletter-subscription.js +0 -1
- package/src/organisms/gv-pagination.js +0 -1
- package/src/organisms/gv-properties.js +0 -1
- package/src/organisms/gv-resizable-views.js +0 -1
- package/src/organisms/gv-resources.js +0 -1
- package/src/organisms/gv-schema-form-array.js +0 -1
- package/src/organisms/gv-schema-form-control-object.js +0 -1
- package/src/organisms/gv-schema-form-control.js +0 -1
- package/src/organisms/gv-schema-form.js +0 -1
- package/src/organisms/gv-tabs.js +0 -1
- package/src/organisms/gv-user-menu.js +0 -1
- package/src/organisms/gv-vertical-menu.js +0 -1
- package/src/policy-studio/gv-flow-step.js +0 -1
- package/src/policy-studio/gv-flow.js +0 -1
- package/src/policy-studio/gv-policy-studio-menu.js +0 -1
- package/src/policy-studio/gv-policy-studio.js +0 -1
- package/src/styles/empty.js +0 -1
- package/src/styles/input.js +0 -1
- package/src/styles/link.js +0 -1
- package/src/styles/shapes.js +0 -1
- package/src/styles/skeleton.js +0 -1
- package/src/styles/zoom.js +0 -1
- package/src/theme/gv-theme.js +0 -1
- package/wc/gv-autocomplete.js +0 -1
- package/wc/gv-button.js +0 -1
- package/wc/gv-card-full.js +0 -1
- package/wc/gv-card-list.js +0 -1
- package/wc/gv-card.js +0 -1
- package/wc/gv-category-list.js +0 -1
- package/wc/gv-category.js +0 -1
- package/wc/gv-chart-bar.js +0 -1
- package/wc/gv-chart-gauge.js +0 -1
- package/wc/gv-chart-histogram.js +0 -1
- package/wc/gv-chart-line.js +0 -1
- package/wc/gv-chart-map.js +0 -1
- package/wc/gv-chart-pie.js +0 -1
- package/wc/gv-checkbox.js +0 -1
- package/wc/gv-code.js +0 -1
- package/wc/gv-confirm.js +0 -1
- package/wc/gv-cron-editor.js +0 -1
- package/wc/gv-date-picker-calendar.js +0 -1
- package/wc/gv-date-picker-cell.js +0 -1
- package/wc/gv-date-picker.js +0 -1
- package/wc/gv-documentation.js +0 -1
- package/wc/gv-dropdown-menu.js +0 -1
- package/wc/gv-expandable.js +0 -1
- package/wc/gv-expression-language.js +0 -1
- package/wc/gv-file-upload.js +0 -1
- package/wc/gv-flow-step.js +0 -1
- package/wc/gv-flow.js +0 -1
- package/wc/gv-header.js +0 -1
- package/wc/gv-http-client.js +0 -1
- package/wc/gv-icon.js +0 -1
- package/wc/gv-identity-picture.js +0 -1
- package/wc/gv-image.js +0 -1
- package/wc/gv-input-message.js +0 -1
- package/wc/gv-input.js +0 -1
- package/wc/gv-link.js +0 -1
- package/wc/gv-list.js +0 -1
- package/wc/gv-menu.js +0 -1
- package/wc/gv-message.js +0 -1
- package/wc/gv-metric.js +0 -1
- package/wc/gv-metrics.js +0 -1
- package/wc/gv-modal.js +0 -1
- package/wc/gv-nav.js +0 -1
- package/wc/gv-newsletter-subscription.js +0 -1
- package/wc/gv-option.js +0 -1
- package/wc/gv-pagination.js +0 -1
- package/wc/gv-plans.js +0 -1
- package/wc/gv-policy-studio-menu.js +0 -1
- package/wc/gv-policy-studio.js +0 -1
- package/wc/gv-popover.js +0 -1
- package/wc/gv-promote.js +0 -1
- package/wc/gv-properties.js +0 -1
- package/wc/gv-rating-list.js +0 -1
- package/wc/gv-rating.js +0 -1
- package/wc/gv-relative-time.js +0 -1
- package/wc/gv-resizable-views.js +0 -1
- package/wc/gv-resources.js +0 -1
- package/wc/gv-row-expandable.js +0 -1
- package/wc/gv-row.js +0 -1
- package/wc/gv-schema-form-array.js +0 -1
- package/wc/gv-schema-form-control-object.js +0 -1
- package/wc/gv-schema-form-control.js +0 -1
- package/wc/gv-schema-form.js +0 -1
- package/wc/gv-select-native.js +0 -1
- package/wc/gv-select.js +0 -1
- package/wc/gv-spinner.js +0 -1
- package/wc/gv-state.js +0 -1
- package/wc/gv-stats.js +0 -1
- package/wc/gv-stepper.js +0 -1
- package/wc/gv-switch.js +0 -1
- package/wc/gv-table.js +0 -1
- package/wc/gv-tabs.js +0 -1
- package/wc/gv-tag.js +0 -1
- package/wc/gv-text.js +0 -1
- package/wc/gv-theme.js +0 -1
- package/wc/gv-tree.js +0 -1
- package/wc/gv-user-menu.js +0 -1
- package/wc/gv-vertical-menu.js +0 -1
|
@@ -0,0 +1,860 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { css, html, LitElement } from 'lit';
|
|
17
|
+
import './gv-schema-form';
|
|
18
|
+
import './gv-resizable-views';
|
|
19
|
+
import '../molecules/gv-table';
|
|
20
|
+
import '../atoms/gv-button';
|
|
21
|
+
import '../atoms/gv-input';
|
|
22
|
+
import '../atoms/gv-icon';
|
|
23
|
+
import '../atoms/gv-text';
|
|
24
|
+
import '../atoms/gv-input-message';
|
|
25
|
+
import '../atoms/gv-select';
|
|
26
|
+
import { dispatchCustomEvent } from '../lib/events';
|
|
27
|
+
import { ERROR_TYPES, parseRaw, toNameEqualsValueString } from '../lib/properties';
|
|
28
|
+
import { i18n } from '../lib/i18n';
|
|
29
|
+
import { classMap } from 'lit/directives/class-map';
|
|
30
|
+
import { KeyboardElement, KEYS } from '../mixins/keyboard-element';
|
|
31
|
+
import { empty } from '../styles/empty';
|
|
32
|
+
/**
|
|
33
|
+
* A component to manage properties
|
|
34
|
+
*
|
|
35
|
+
* @fires gv-properties:change - When list of properties change
|
|
36
|
+
* @fires gv-properties:save-provider - When user validates provider configuration
|
|
37
|
+
* @fires gv-properties:switch-encrypted - When user switches encryption toggle
|
|
38
|
+
*
|
|
39
|
+
* @attr {Array} properties - Array of Properties {key, value, dynamic?}
|
|
40
|
+
* @attr {Object} provider - Configuration of provider
|
|
41
|
+
* @attr {Array} providers - List of available providers (only http for the moment)
|
|
42
|
+
* @attr {Boolean} expert - For display expert mode by default
|
|
43
|
+
* @attr {Boolean} encryptable - To display the 'encrypted' toggle on each property
|
|
44
|
+
*
|
|
45
|
+
* @cssprop {Length} [--gv-properties-table--colmg=0.2rem] - Table cells margin
|
|
46
|
+
*/
|
|
47
|
+
export class GvProperties extends KeyboardElement(LitElement) {
|
|
48
|
+
static get properties() {
|
|
49
|
+
return {
|
|
50
|
+
dynamicPropertySchema: { type: Object },
|
|
51
|
+
properties: { type: Array },
|
|
52
|
+
_properties: { type: Array, attribute: false },
|
|
53
|
+
provider: { type: Object },
|
|
54
|
+
providers: { type: Array },
|
|
55
|
+
_propertySchemaForm: { type: Object, attribute: false },
|
|
56
|
+
expert: { type: Boolean },
|
|
57
|
+
_formattedErrors: { type: Array, attributes: false },
|
|
58
|
+
_filter: { type: String },
|
|
59
|
+
_paginationData: { type: Object, attribute: false },
|
|
60
|
+
_pageSize: { type: Number, attribute: false },
|
|
61
|
+
_newItem: { type: Object, attribute: false },
|
|
62
|
+
_providerDocumentation: { type: Boolean, attribute: false },
|
|
63
|
+
_showDocumentation: { type: Boolean, attribute: false },
|
|
64
|
+
_textRows: { type: Number, attribute: false },
|
|
65
|
+
readonly: { type: Boolean, reflect: true },
|
|
66
|
+
encryptable: { type: Boolean, reflect: true },
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
constructor() {
|
|
70
|
+
super();
|
|
71
|
+
this.properties = [];
|
|
72
|
+
this.types = [];
|
|
73
|
+
this.provider = {};
|
|
74
|
+
this._currentResource = null;
|
|
75
|
+
this._formattedErrors = [];
|
|
76
|
+
this._showDocumentation = true;
|
|
77
|
+
this._newItem = { key: '', value: '', _new: true };
|
|
78
|
+
this._pageSize = 10;
|
|
79
|
+
this._textRows = 10;
|
|
80
|
+
this._pageSizes = [5, 10, 25, 50, 100];
|
|
81
|
+
this._errors = [];
|
|
82
|
+
}
|
|
83
|
+
onKeyboard() {
|
|
84
|
+
if (this.isPressed(KEYS.Esc)) {
|
|
85
|
+
this._onClosePropertySchemaForm();
|
|
86
|
+
}
|
|
87
|
+
if (this.isPressed(KEYS.Shift, KEYS.Ctrl, KEYS.Space)) {
|
|
88
|
+
const search = this.shadowRoot.querySelector('#search-property');
|
|
89
|
+
if (search) {
|
|
90
|
+
search.focus();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
set properties(properties) {
|
|
95
|
+
this._properties = properties
|
|
96
|
+
.sort((a, b) => a.key.localeCompare(b.key))
|
|
97
|
+
.map((property) => {
|
|
98
|
+
if (property.encrypted) {
|
|
99
|
+
property.encryptable = true;
|
|
100
|
+
}
|
|
101
|
+
return property;
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
get properties() {
|
|
105
|
+
return this._properties;
|
|
106
|
+
}
|
|
107
|
+
_getResizableViews() {
|
|
108
|
+
return this.shadowRoot.querySelector('gv-resizable-views');
|
|
109
|
+
}
|
|
110
|
+
_maximizeTopView() {
|
|
111
|
+
const views = this._getResizableViews();
|
|
112
|
+
if (views) {
|
|
113
|
+
views.maximizeTop(95, 5);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
_maximizeBottomView() {
|
|
117
|
+
const views = this._getResizableViews();
|
|
118
|
+
if (views) {
|
|
119
|
+
views.resize(30, 70);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
_splitMainViews() {
|
|
123
|
+
const views = this._getResizableViews();
|
|
124
|
+
if (views) {
|
|
125
|
+
views.split();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
_isNewLineTable(line) {
|
|
129
|
+
return line._new === true;
|
|
130
|
+
}
|
|
131
|
+
_onInputNew(name, event) {
|
|
132
|
+
const target = event.target;
|
|
133
|
+
this._newItem[name] = event.detail;
|
|
134
|
+
const { errors } = parseRaw(toNameEqualsValueString([...this.properties, this._newItem]));
|
|
135
|
+
this._errors = errors;
|
|
136
|
+
setTimeout(() => {
|
|
137
|
+
const btn = this.shadowRoot.querySelector('gv-button#add-property');
|
|
138
|
+
if (errors.length > 0 || this._disabledNewLine(this._newItem)) {
|
|
139
|
+
btn.setAttribute('disabled', true);
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
btn.removeAttribute('disabled');
|
|
143
|
+
}
|
|
144
|
+
if (name === 'key') {
|
|
145
|
+
if (errors.length === 0) {
|
|
146
|
+
target.removeAttribute('invalid');
|
|
147
|
+
target.setAttribute('valid', true);
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
target.removeAttribute('valid');
|
|
151
|
+
target.setAttribute('invalid', true);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}, 0);
|
|
155
|
+
}
|
|
156
|
+
_onInput() {
|
|
157
|
+
dispatchCustomEvent(this, 'change', { properties: this.properties });
|
|
158
|
+
}
|
|
159
|
+
_onSwitchEncrypted(item) {
|
|
160
|
+
if (item.encrypted === true) {
|
|
161
|
+
item.value = '';
|
|
162
|
+
item.encrypted = false;
|
|
163
|
+
item.encryptionWarning = i18n('gv-properties.infos.overwrite-encryption');
|
|
164
|
+
this.requestUpdate();
|
|
165
|
+
}
|
|
166
|
+
dispatchCustomEvent(this, 'switch-encrypted', { properties: this.properties });
|
|
167
|
+
}
|
|
168
|
+
_addProperty(item) {
|
|
169
|
+
delete item._new;
|
|
170
|
+
this.properties = [item, ...this._properties];
|
|
171
|
+
this._newItem = { key: '', value: '', _new: true, encryptable: false, encrypted: false };
|
|
172
|
+
dispatchCustomEvent(this, 'change', { properties: this.properties });
|
|
173
|
+
}
|
|
174
|
+
_removeProperty(item) {
|
|
175
|
+
this._properties = this._properties.filter((property) => property.key !== item.key);
|
|
176
|
+
dispatchCustomEvent(this, 'change', { properties: this.properties });
|
|
177
|
+
}
|
|
178
|
+
_disabledNewLine(item) {
|
|
179
|
+
return item.key == null || item.value == null || item.key.trim() === '' || item.value.trim() === '';
|
|
180
|
+
}
|
|
181
|
+
_submitExpertMode() {
|
|
182
|
+
if (this.expert) {
|
|
183
|
+
this.properties = this._handleExpertModeInput(this.shadowRoot.querySelector('#expert-input').value);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
_onExpertModeTextInput({ detail }) {
|
|
187
|
+
this._handleExpertModeInput(detail);
|
|
188
|
+
}
|
|
189
|
+
_handleExpertModeInput(expertModeInputString) {
|
|
190
|
+
let allProperties = this._properties;
|
|
191
|
+
const providerEnabled = this.provider && this.provider.enabled;
|
|
192
|
+
const dynamicProperties = allProperties.filter((prop) => providerEnabled && prop.dynamic);
|
|
193
|
+
const encryptedProperties = allProperties.filter((prop) => prop.encrypted);
|
|
194
|
+
const allPropertiesString = `${expertModeInputString}\n${toNameEqualsValueString(dynamicProperties)}\n${toNameEqualsValueString(encryptedProperties)}`;
|
|
195
|
+
const { errors } = parseRaw(allPropertiesString);
|
|
196
|
+
this._errors = errors;
|
|
197
|
+
if (errors.length === 0) {
|
|
198
|
+
const { variables } = parseRaw(expertModeInputString);
|
|
199
|
+
allProperties = [...variables, ...dynamicProperties, ...encryptedProperties];
|
|
200
|
+
dispatchCustomEvent(this, 'change', { properties: allProperties });
|
|
201
|
+
}
|
|
202
|
+
return allProperties;
|
|
203
|
+
}
|
|
204
|
+
_onSubmitPropertyForm({ detail }) {
|
|
205
|
+
const provider = detail.values;
|
|
206
|
+
dispatchCustomEvent(this, 'save-provider', { provider });
|
|
207
|
+
this.requestUpdate();
|
|
208
|
+
}
|
|
209
|
+
submit() {
|
|
210
|
+
if (this.expert) {
|
|
211
|
+
this._submitExpertMode();
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
this._onSubmit();
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
_onSubmit() {
|
|
218
|
+
const invalidControls = [...this.shadowRoot.querySelectorAll('form .control')].find((control) => control.invalid);
|
|
219
|
+
if (invalidControls == null) {
|
|
220
|
+
this._addProperty(this._newItem);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
_onConfigureDynamicProperties() {
|
|
224
|
+
if (this.dynamicPropertySchema == null) {
|
|
225
|
+
// dynamicPropertySchema has been introduced to ensure backward compatibility with old versions. If no schema is provided a default schema will be used.
|
|
226
|
+
const providersTitleMap = this.providers.reduce((map, provider) => {
|
|
227
|
+
map[provider.id] = provider.key;
|
|
228
|
+
return map;
|
|
229
|
+
}, {});
|
|
230
|
+
const providersEnum = Object.keys(providersTitleMap);
|
|
231
|
+
this.dynamicPropertySchema = {
|
|
232
|
+
properties: {
|
|
233
|
+
enabled: {
|
|
234
|
+
type: 'boolean',
|
|
235
|
+
title: 'Enabled',
|
|
236
|
+
description: ' This service is requiring an API deployment. Do not forget to deploy API to start dynamic-properties service.',
|
|
237
|
+
},
|
|
238
|
+
schedule: {
|
|
239
|
+
type: 'string',
|
|
240
|
+
title: 'Schedule',
|
|
241
|
+
'x-schema-form': {
|
|
242
|
+
'cron-expression': true,
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
provider: {
|
|
246
|
+
type: 'string',
|
|
247
|
+
title: 'Provider type',
|
|
248
|
+
enum: providersEnum,
|
|
249
|
+
default: providersEnum[0],
|
|
250
|
+
'x-schema-form': {
|
|
251
|
+
titleMap: providersTitleMap,
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
required: ['schedule', 'provider'],
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
const defaultProvider = this.providers[0];
|
|
259
|
+
this._propertySchemaForm = {
|
|
260
|
+
properties: { ...this.dynamicPropertySchema.properties, configuration: defaultProvider.schema },
|
|
261
|
+
required: this.dynamicPropertySchema.required,
|
|
262
|
+
};
|
|
263
|
+
this._providerDocumentation = defaultProvider.documentation;
|
|
264
|
+
this._maximizeBottomView();
|
|
265
|
+
}
|
|
266
|
+
_onClosePropertySchemaForm() {
|
|
267
|
+
this._propertySchemaForm = null;
|
|
268
|
+
this._maximizeTopView();
|
|
269
|
+
}
|
|
270
|
+
_onSearchProperty({ detail }) {
|
|
271
|
+
this._filter = detail;
|
|
272
|
+
this._onClosePropertySchemaForm();
|
|
273
|
+
}
|
|
274
|
+
_onClearProperty() {
|
|
275
|
+
this._filter = null;
|
|
276
|
+
this._onClosePropertySchemaForm();
|
|
277
|
+
}
|
|
278
|
+
get _errors() {
|
|
279
|
+
return this._formattedErrors;
|
|
280
|
+
}
|
|
281
|
+
set _errors(rawErrors) {
|
|
282
|
+
this._formattedErrors = rawErrors.map(({ type, key, pos }) => {
|
|
283
|
+
if (type === ERROR_TYPES.INVALID_NAME) {
|
|
284
|
+
return {
|
|
285
|
+
line: pos.line,
|
|
286
|
+
msg: i18n('gv-properties.errors.invalid-key', { key }),
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
if (type === ERROR_TYPES.DUPLICATED_NAME) {
|
|
290
|
+
return {
|
|
291
|
+
line: pos.line,
|
|
292
|
+
msg: i18n('gv-properties.errors.duplicated-key', { key }),
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
if (type === ERROR_TYPES.INVALID_LINE) {
|
|
296
|
+
return {
|
|
297
|
+
line: pos.line,
|
|
298
|
+
msg: i18n('gv-properties.errors.invalid-line'),
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
if (type === ERROR_TYPES.INVALID_VALUE) {
|
|
302
|
+
return {
|
|
303
|
+
line: pos.line,
|
|
304
|
+
msg: i18n('gv-properties.errors.invalid-value'),
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
return { line: '?', msg: i18n('gv-properties.errors.unknown') };
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
_renderErrors(withLine = false) {
|
|
311
|
+
if (this._formattedErrors.length > 0) {
|
|
312
|
+
return html `<div class="${classMap({ 'add-form-error': true, 'add-form-error_expert': this.expert })}">
|
|
313
|
+
<div></div>
|
|
314
|
+
<div class="error-list">
|
|
315
|
+
${this._formattedErrors.map(({ line, msg }) => html `
|
|
316
|
+
<gv-input-message
|
|
317
|
+
>${withLine ? html `<strong .innerHTML="${i18n('gv-properties.errors.line')} ${line}: "></strong>` : ''}
|
|
318
|
+
<span .innerHTML="${msg}"></span
|
|
319
|
+
></gv-input-message>
|
|
320
|
+
`)}
|
|
321
|
+
</div>
|
|
322
|
+
</div>`;
|
|
323
|
+
}
|
|
324
|
+
return html ``;
|
|
325
|
+
}
|
|
326
|
+
_renderTable() {
|
|
327
|
+
const providerEnabled = this.provider && this.provider.enabled;
|
|
328
|
+
if (this.expert) {
|
|
329
|
+
this._computeTextRows();
|
|
330
|
+
const staticProperties = providerEnabled ? this._properties.filter((prop) => !(providerEnabled && prop.dynamic)) : this._properties;
|
|
331
|
+
const expertProperties = staticProperties.filter((prop) => !prop.encrypted);
|
|
332
|
+
const content = expertProperties.map((prop) => `${prop.key}="${prop.value}"`).join('\n');
|
|
333
|
+
return html `<gv-text
|
|
334
|
+
id="expert-input"
|
|
335
|
+
placeholder="${i18n('gv-properties.placeholder.input')}"
|
|
336
|
+
@gv-text:input="${this._onExpertModeTextInput}"
|
|
337
|
+
.value="${content}"
|
|
338
|
+
?readonly="${this.readonly}"
|
|
339
|
+
.rows="${this._textRows}"
|
|
340
|
+
></gv-text>
|
|
341
|
+
${this._renderErrors(true)}`;
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
const options = {
|
|
345
|
+
data: [
|
|
346
|
+
{
|
|
347
|
+
field: 'dynamic',
|
|
348
|
+
label: 'Dynamic',
|
|
349
|
+
width: '40px',
|
|
350
|
+
type: (item) => (item.dynamic && providerEnabled ? 'gv-icon' : 'div'),
|
|
351
|
+
attributes: {
|
|
352
|
+
shape: (item) => (item.dynamic && providerEnabled ? 'code:time-schedule' : ''),
|
|
353
|
+
title: (item) => (item.dynamic && providerEnabled ? 'Dynamic properties service is actually in running' : ''),
|
|
354
|
+
style: 'justify-content: center; align-items: center; height: 100%;',
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
field: 'key',
|
|
359
|
+
label: 'Key',
|
|
360
|
+
type: 'gv-input',
|
|
361
|
+
attributes: {
|
|
362
|
+
clipboard: true,
|
|
363
|
+
placeholder: i18n('gv-properties.placeholder.key'),
|
|
364
|
+
name: 'key',
|
|
365
|
+
required: true,
|
|
366
|
+
readonly: this.readonly,
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
field: 'value',
|
|
371
|
+
label: 'Value',
|
|
372
|
+
type: 'gv-input',
|
|
373
|
+
attributes: {
|
|
374
|
+
name: 'value',
|
|
375
|
+
placeholder: 'Property value',
|
|
376
|
+
required: true,
|
|
377
|
+
readonly: this.readonly,
|
|
378
|
+
disabled: (item) => (item.dynamic && providerEnabled) || item.encrypted,
|
|
379
|
+
type: (item) => (item.encrypted ? 'password' : 'text'),
|
|
380
|
+
title: (item) => (item.encrypted ? i18n('gv-properties.infos.encrypted-value') : ''),
|
|
381
|
+
description: (item) => item.encryptionWarning,
|
|
382
|
+
icon: null,
|
|
383
|
+
'ongv-input:input': this._onInput.bind(this),
|
|
384
|
+
},
|
|
385
|
+
},
|
|
386
|
+
],
|
|
387
|
+
};
|
|
388
|
+
if (this.encryptable === true) {
|
|
389
|
+
options.data.push({
|
|
390
|
+
field: 'encryptable',
|
|
391
|
+
type: 'gv-switch',
|
|
392
|
+
style: '--gv-switch--ta: right;',
|
|
393
|
+
width: '105px',
|
|
394
|
+
attributes: {
|
|
395
|
+
description: i18n('gv-properties.encrypted-toggle'),
|
|
396
|
+
required: true,
|
|
397
|
+
readonly: this.readonly,
|
|
398
|
+
disabled: (item) => item.dynamic && providerEnabled,
|
|
399
|
+
'ongv-switch:input': this._onSwitchEncrypted.bind(this),
|
|
400
|
+
style: 'display: inline-flex; font-size: 12px; height: 40px;',
|
|
401
|
+
},
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
if (this.readonly !== true) {
|
|
405
|
+
options.data.push({
|
|
406
|
+
type: 'gv-button',
|
|
407
|
+
width: '40px',
|
|
408
|
+
attributes: {
|
|
409
|
+
'ongv-button:click': (item, event, target) => this._removeProperty(item, target),
|
|
410
|
+
title: 'Remove',
|
|
411
|
+
disabled: (item) => item.dynamic && providerEnabled,
|
|
412
|
+
danger: true,
|
|
413
|
+
outlined: true,
|
|
414
|
+
icon: 'home:trash',
|
|
415
|
+
},
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
const filteredProperties = this._filter != null
|
|
419
|
+
? this._properties.filter((prop) => {
|
|
420
|
+
return (prop.key.toLowerCase() + prop.value.toLowerCase()).includes(this._filter);
|
|
421
|
+
})
|
|
422
|
+
: this._properties;
|
|
423
|
+
let properties = [...filteredProperties];
|
|
424
|
+
if (this._paginationData) {
|
|
425
|
+
this._paginationData.last = Math.ceil(filteredProperties.length / this._pageSize);
|
|
426
|
+
this._paginationData.total = filteredProperties.length;
|
|
427
|
+
this._paginationData.total_pages = Math.ceil(filteredProperties.length / this._pageSize);
|
|
428
|
+
const index = (this._paginationData.current_page - 1) * this._pageSize;
|
|
429
|
+
properties = [...filteredProperties].splice(index, this._pageSize);
|
|
430
|
+
}
|
|
431
|
+
const addPropertyFormGridClass = this.encryptable ? 'add-form-grid-with-encrypted-toggle' : 'add-form-grid';
|
|
432
|
+
const addPropertyForm = this.readonly !== true
|
|
433
|
+
? html `<form id="add-property-form" class="add-form ${addPropertyFormGridClass}" @submit="${this._onSubmit}">
|
|
434
|
+
<div></div>
|
|
435
|
+
<gv-input
|
|
436
|
+
class="control"
|
|
437
|
+
placeholder="${i18n('gv-properties.placeholder.key')}"
|
|
438
|
+
required
|
|
439
|
+
@gv-input:input="${this._onInputNew.bind(this, 'key')}"
|
|
440
|
+
value="${this._newItem.key}"
|
|
441
|
+
></gv-input>
|
|
442
|
+
<gv-input
|
|
443
|
+
class="control"
|
|
444
|
+
placeholder="${i18n('gv-properties.placeholder.value')}"
|
|
445
|
+
required
|
|
446
|
+
@gv-input:input="${this._onInputNew.bind(this, 'value')}"
|
|
447
|
+
.value="${this._newItem.value}"
|
|
448
|
+
></gv-input>
|
|
449
|
+
${this.encryptable
|
|
450
|
+
? html ` <gv-switch
|
|
451
|
+
class="control"
|
|
452
|
+
required
|
|
453
|
+
description="${i18n('gv-properties.encrypted-toggle')}"
|
|
454
|
+
@gv-switch:input="${this._onInputNew.bind(this, 'encryptable')}"
|
|
455
|
+
.value="${this._newItem.encryptable}"
|
|
456
|
+
></gv-switch>`
|
|
457
|
+
: ''}
|
|
458
|
+
<gv-button
|
|
459
|
+
id="add-property"
|
|
460
|
+
icon="code:plus"
|
|
461
|
+
outlined
|
|
462
|
+
disabled
|
|
463
|
+
@gv-button:click="${this._addProperty.bind(this, this._newItem)}"
|
|
464
|
+
title="${i18n('gv-properties.add')}"
|
|
465
|
+
></gv-button>
|
|
466
|
+
</form>
|
|
467
|
+
${this._renderErrors()}
|
|
468
|
+
<hr />`
|
|
469
|
+
: '';
|
|
470
|
+
return html ` ${addPropertyForm}
|
|
471
|
+
<gv-table .options="${options}" .items="${properties}" noheader nosort order="key" rowheight="57px"></gv-table>`;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
_onChangeMode({ detail }) {
|
|
475
|
+
this._submitExpertMode();
|
|
476
|
+
this.expert = detail;
|
|
477
|
+
this._errors = [];
|
|
478
|
+
this._newItem = { key: '', value: '', _new: true };
|
|
479
|
+
this._onClosePropertySchemaForm();
|
|
480
|
+
}
|
|
481
|
+
_onPaginate({ detail }) {
|
|
482
|
+
this._paginationData.current_page = detail.page;
|
|
483
|
+
this._onClosePropertySchemaForm();
|
|
484
|
+
this.requestUpdate();
|
|
485
|
+
}
|
|
486
|
+
updated(props) {
|
|
487
|
+
if (props.has('_properties') || props.has('_pageSize')) {
|
|
488
|
+
this._paginationData = {
|
|
489
|
+
first: 1,
|
|
490
|
+
last: Math.ceil(this._properties.length / this._pageSize),
|
|
491
|
+
total: this._properties.length,
|
|
492
|
+
current_page: 1,
|
|
493
|
+
total_pages: Math.ceil(this._properties.length / this._pageSize),
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
_onChangePageSize({ detail }) {
|
|
498
|
+
this._pageSize = Number(detail).valueOf();
|
|
499
|
+
this._onClosePropertySchemaForm();
|
|
500
|
+
}
|
|
501
|
+
_renderTableForm() {
|
|
502
|
+
return html `<div class="container">
|
|
503
|
+
<div class="header">
|
|
504
|
+
<div class="title">Manage global properties <span>(${this._properties ? this._properties.length : 0})</span></div>
|
|
505
|
+
<gv-switch
|
|
506
|
+
small
|
|
507
|
+
.description="${this.expert ? 'Expert' : 'Simple'}"
|
|
508
|
+
.value="${this.expert}"
|
|
509
|
+
@gv-switch:input="${this._onChangeMode}"
|
|
510
|
+
></gv-switch>
|
|
511
|
+
<gv-input
|
|
512
|
+
id="search-property"
|
|
513
|
+
placeholder="Filter properties (Shift + Ctrl + Space)"
|
|
514
|
+
type="search"
|
|
515
|
+
small
|
|
516
|
+
class="search-input"
|
|
517
|
+
.disabled="${this.expert}"
|
|
518
|
+
@gv-input:input="${this._onSearchProperty}"
|
|
519
|
+
@gv-input:clear="${this._onClearProperty}"
|
|
520
|
+
></gv-input>
|
|
521
|
+
<gv-select
|
|
522
|
+
class="page-size__select"
|
|
523
|
+
@gv-select:input="${this._onChangePageSize}"
|
|
524
|
+
small
|
|
525
|
+
.options="${this._pageSizes}"
|
|
526
|
+
.value="${this._pageSize}"
|
|
527
|
+
.disabled="${this.expert || this._paginationData == null}"
|
|
528
|
+
></gv-select>
|
|
529
|
+
<gv-pagination
|
|
530
|
+
@gv-pagination:paginate="${this._onPaginate}"
|
|
531
|
+
.disabled="${this.expert || this._paginationData == null}"
|
|
532
|
+
.data="${this._paginationData}"
|
|
533
|
+
widget
|
|
534
|
+
></gv-pagination>
|
|
535
|
+
</div>
|
|
536
|
+
<div class="content"><div class="form-content">${this._renderTable()}</div></div>
|
|
537
|
+
</div>`;
|
|
538
|
+
}
|
|
539
|
+
_fetchDocumentation() {
|
|
540
|
+
this._showDocumentation = true;
|
|
541
|
+
}
|
|
542
|
+
_hideDocumentation() {
|
|
543
|
+
this._showDocumentation = false;
|
|
544
|
+
}
|
|
545
|
+
get dirty() {
|
|
546
|
+
const form = this.shadowRoot.querySelector('gv-schema-form');
|
|
547
|
+
return form && form.dirty;
|
|
548
|
+
}
|
|
549
|
+
confirm() {
|
|
550
|
+
const form = this.shadowRoot.querySelector('gv-schema-form');
|
|
551
|
+
if (form) {
|
|
552
|
+
return form.confirm().then(() => this._onClosePropertySchemaForm());
|
|
553
|
+
}
|
|
554
|
+
return Promise.resolve();
|
|
555
|
+
}
|
|
556
|
+
_renderForm() {
|
|
557
|
+
return html `<gv-schema-form
|
|
558
|
+
slot="top"
|
|
559
|
+
scrollable
|
|
560
|
+
.schema="${this._propertySchemaForm}"
|
|
561
|
+
.values="${this.provider}"
|
|
562
|
+
.icon="design:edit"
|
|
563
|
+
has-header
|
|
564
|
+
?readonly="${this.readonly}"
|
|
565
|
+
@gv-schema-form:submit="${this._onSubmitPropertyForm}"
|
|
566
|
+
>
|
|
567
|
+
<div slot="title" class="properties-title">Configure dynamic properties</div>
|
|
568
|
+
<gv-button
|
|
569
|
+
slot="header-left"
|
|
570
|
+
icon="general:close"
|
|
571
|
+
outlined
|
|
572
|
+
small
|
|
573
|
+
@gv-button:click="${this._onClosePropertySchemaForm}"
|
|
574
|
+
title="Close (esc)"
|
|
575
|
+
></gv-button>
|
|
576
|
+
<gv-button
|
|
577
|
+
slot="header-left"
|
|
578
|
+
icon="home:book"
|
|
579
|
+
?disabled="${this._showDocumentation}"
|
|
580
|
+
outlined
|
|
581
|
+
small
|
|
582
|
+
@gv-button:click="${this._fetchDocumentation}"
|
|
583
|
+
title="Open documentation"
|
|
584
|
+
></gv-button>
|
|
585
|
+
</gv-schema-form>`;
|
|
586
|
+
}
|
|
587
|
+
_renderBottom() {
|
|
588
|
+
if (this._propertySchemaForm && this._showDocumentation) {
|
|
589
|
+
return html `<gv-resizable-views no-overflow direction="horizontal">
|
|
590
|
+
${this._renderForm()}
|
|
591
|
+
<gv-documentation
|
|
592
|
+
slot="bottom"
|
|
593
|
+
.text="${this._providerDocumentation}"
|
|
594
|
+
@gv-documentation:close="${this._hideDocumentation}"
|
|
595
|
+
></gv-documentation>
|
|
596
|
+
</gv-resizable-views>`;
|
|
597
|
+
}
|
|
598
|
+
else if (this._propertySchemaForm) {
|
|
599
|
+
return this._renderForm();
|
|
600
|
+
}
|
|
601
|
+
else {
|
|
602
|
+
return html `<div class="properties-bottom-container">${this._renderDynamicConfiguration()}</div>`;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
_renderDynamicConfiguration() {
|
|
606
|
+
const hasDynamicConfiguration = this.provider && this.provider.enabled;
|
|
607
|
+
let configureAction = '';
|
|
608
|
+
if (hasDynamicConfiguration || this.readonly !== true) {
|
|
609
|
+
configureAction = html `<gv-button
|
|
610
|
+
icon="tools:tools"
|
|
611
|
+
@gv-button:click="${this._onConfigureDynamicProperties}"
|
|
612
|
+
outlined
|
|
613
|
+
.disabled="${this.expert}"
|
|
614
|
+
>Configure dynamic properties</gv-button
|
|
615
|
+
>`;
|
|
616
|
+
}
|
|
617
|
+
if (hasDynamicConfiguration) {
|
|
618
|
+
return html `<div class="properties-message">
|
|
619
|
+
Dynamic properties service is actually in <code>running</code> state and run with cron expression
|
|
620
|
+
<code>${this.provider.schedule}</code> using <code>${this.provider.provider}</code> provider.
|
|
621
|
+
</div>
|
|
622
|
+
${configureAction}`;
|
|
623
|
+
}
|
|
624
|
+
else if (this.readonly) {
|
|
625
|
+
return html `<div class="empty">No dynamic properties service configured</div>`;
|
|
626
|
+
}
|
|
627
|
+
else {
|
|
628
|
+
return configureAction;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
_onMove() {
|
|
632
|
+
this._computeTextRows();
|
|
633
|
+
}
|
|
634
|
+
_computeTextRows() {
|
|
635
|
+
const parent = this.shadowRoot.querySelector('.content');
|
|
636
|
+
if (parent) {
|
|
637
|
+
const { height } = parent.getBoundingClientRect();
|
|
638
|
+
// --gv-text--lh=30px
|
|
639
|
+
this._textRows = Math.round(Math.round(height - 20) / 30) - 2;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
render() {
|
|
643
|
+
if (this.providers && this.providers.length > 0) {
|
|
644
|
+
return html `<div class="properties">
|
|
645
|
+
<gv-resizable-views no-overflow @gv-resizable-views:move="${this._onMove}" @gv-resizable-views:resize="${this._onMove}">
|
|
646
|
+
<div slot="top" class="box">${this._renderTableForm()}</div>
|
|
647
|
+
<div slot="bottom">${this._renderBottom()}</div>
|
|
648
|
+
</gv-resizable-views>
|
|
649
|
+
</div>`;
|
|
650
|
+
}
|
|
651
|
+
else {
|
|
652
|
+
return html `<div class="properties">
|
|
653
|
+
<div class="table-box">${this._renderTableForm()}</div>
|
|
654
|
+
</div>`;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
static get styles() {
|
|
658
|
+
return [
|
|
659
|
+
empty,
|
|
660
|
+
// language=CSS
|
|
661
|
+
css `
|
|
662
|
+
:host {
|
|
663
|
+
box-sizing: border-box;
|
|
664
|
+
height: 100%;
|
|
665
|
+
width: 100%;
|
|
666
|
+
display: block;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.properties {
|
|
670
|
+
display: flex;
|
|
671
|
+
height: 100%;
|
|
672
|
+
width: 100%;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
gv-resizable-views {
|
|
676
|
+
height: 100%;
|
|
677
|
+
width: 100%;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
gv-schema-form {
|
|
681
|
+
margin: 0;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.table-box {
|
|
685
|
+
width: 100%;
|
|
686
|
+
border-left: 1px solid #bfbfbf;
|
|
687
|
+
display: flex;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
gv-table {
|
|
691
|
+
height: auto;
|
|
692
|
+
flex: 1;
|
|
693
|
+
margin-top: 10px;
|
|
694
|
+
margin-right: 50px;
|
|
695
|
+
--gv-table-rows--ov: none;
|
|
696
|
+
--gv-table--colmg: var(--gv-properties-table--colmg, 0.2rem);
|
|
697
|
+
--gv-table-cell--d: inline;
|
|
698
|
+
--gv-table-row--ai: flex-start;
|
|
699
|
+
--gv-table-row--ac: flex-start;
|
|
700
|
+
--gv-table-hover--bgc: var(--gv-theme-neutral-color-lightest);
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.properties-title {
|
|
704
|
+
text-transform: uppercase;
|
|
705
|
+
letter-spacing: 0.2rem;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
.properties-bottom-container {
|
|
709
|
+
display: flex;
|
|
710
|
+
justify-content: center;
|
|
711
|
+
align-items: center;
|
|
712
|
+
height: 100%;
|
|
713
|
+
flex-direction: column;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.header {
|
|
717
|
+
border-bottom: 1px solid #d9d9d9;
|
|
718
|
+
display: flex;
|
|
719
|
+
min-height: 45px;
|
|
720
|
+
align-items: center;
|
|
721
|
+
margin-bottom: 0.5rem;
|
|
722
|
+
padding: 0 0.5rem;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
.header .title {
|
|
726
|
+
color: #28444f;
|
|
727
|
+
font-size: 18px;
|
|
728
|
+
display: flex;
|
|
729
|
+
align-items: flex-end;
|
|
730
|
+
flex: 1;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.header .title span {
|
|
734
|
+
font-size: 12px;
|
|
735
|
+
margin-left: 8px;
|
|
736
|
+
opacity: 0.7;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.box {
|
|
740
|
+
position: absolute;
|
|
741
|
+
display: flex;
|
|
742
|
+
flex-direction: column;
|
|
743
|
+
width: 100%;
|
|
744
|
+
top: 0;
|
|
745
|
+
bottom: 0;
|
|
746
|
+
left: 0;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.container {
|
|
750
|
+
flex-grow: 1;
|
|
751
|
+
|
|
752
|
+
display: flex;
|
|
753
|
+
flex-direction: column;
|
|
754
|
+
|
|
755
|
+
/* for Firefox */
|
|
756
|
+
min-height: 0;
|
|
757
|
+
height: 100%;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.content {
|
|
761
|
+
background: white;
|
|
762
|
+
flex-grow: 1;
|
|
763
|
+
|
|
764
|
+
overflow: auto;
|
|
765
|
+
|
|
766
|
+
/* for Firefox */
|
|
767
|
+
min-height: 0;
|
|
768
|
+
padding: 0.5rem;
|
|
769
|
+
|
|
770
|
+
display: flex;
|
|
771
|
+
flex-direction: column;
|
|
772
|
+
align-items: center;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
gv-text {
|
|
776
|
+
--gv-text--fz: 20px;
|
|
777
|
+
--gv-text--lh: 25px;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
gv-switch {
|
|
781
|
+
--gv-switch--ta: right;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
.header gv-input {
|
|
785
|
+
margin: 0 1rem;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.add-form,
|
|
789
|
+
.add-form-error {
|
|
790
|
+
display: grid;
|
|
791
|
+
margin: auto 50px auto 0;
|
|
792
|
+
box-sizing: border-box;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
.add-form {
|
|
796
|
+
column-gap: var(--gv-properties-table--colmg, 0.2rem);
|
|
797
|
+
border-right: solid thick transparent;
|
|
798
|
+
height: 50px;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.add-form gv-input,
|
|
802
|
+
gv-button,
|
|
803
|
+
gv-switch {
|
|
804
|
+
margin: auto 0;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
.add-form gv-switch {
|
|
808
|
+
font-size: 12px;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.add-form-grid {
|
|
812
|
+
grid-template-columns: 40px auto auto 40px;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.add-form-grid-with-encrypted-toggle {
|
|
816
|
+
grid-template-columns: 40px auto auto 105px 40px;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.add-form-error_expert {
|
|
820
|
+
display: flex;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
.add-form-error {
|
|
824
|
+
grid-template-columns: 40px 1fr;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
code {
|
|
828
|
+
color: var(--gv-theme-color-warning-dark, #f57c00);
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.form-content {
|
|
832
|
+
display: flex;
|
|
833
|
+
flex-direction: column;
|
|
834
|
+
width: 100%;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
.properties-message {
|
|
838
|
+
margin-bottom: 0.5rem;
|
|
839
|
+
font-size: 14px;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.page-size__select {
|
|
843
|
+
max-width: 50px;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
.search-input {
|
|
847
|
+
width: 300px;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
hr {
|
|
851
|
+
background-color: var(--gv-theme-neutral-color);
|
|
852
|
+
border: 0;
|
|
853
|
+
width: 100%;
|
|
854
|
+
height: 2px;
|
|
855
|
+
}
|
|
856
|
+
`,
|
|
857
|
+
];
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
window.customElements.define('gv-properties', GvProperties);
|