@gravitee/ui-components 3.25.3-typescript-8a53edf → 3.25.3-typescript-e7256ca
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/package.json +3 -4
- package/src/atoms/gv-autocomplete.d.ts +104 -0
- package/src/atoms/gv-autocomplete.js +1 -461
- package/src/atoms/gv-button.d.ts +109 -0
- package/src/atoms/gv-button.js +1 -410
- package/src/atoms/gv-checkbox.d.ts +114 -0
- package/src/atoms/gv-checkbox.js +1 -187
- package/src/atoms/gv-date-picker-calendar.d.ts +190 -0
- package/src/atoms/gv-date-picker-calendar.js +1 -894
- package/src/atoms/gv-date-picker-cell.d.ts +80 -0
- package/src/atoms/gv-date-picker-cell.js +1 -190
- package/src/atoms/gv-date-picker.d.ts +194 -0
- package/src/atoms/gv-date-picker.js +1 -671
- package/src/atoms/gv-file-upload.d.ts +64 -0
- package/src/atoms/gv-file-upload.js +1 -367
- package/src/atoms/gv-icon.d.ts +26 -0
- package/src/atoms/gv-icon.js +1 -103
- package/src/atoms/gv-image.d.ts +45 -0
- package/src/atoms/gv-image.js +1 -144
- package/src/atoms/gv-input-message.d.ts +20 -0
- package/src/atoms/gv-input-message.js +1 -84
- package/src/atoms/gv-input.d.ts +246 -0
- package/src/atoms/gv-input.js +1 -561
- package/src/atoms/gv-link.d.ts +67 -0
- package/src/atoms/gv-link.js +1 -210
- package/src/atoms/gv-message.d.ts +23 -0
- package/src/atoms/gv-message.js +1 -128
- package/src/atoms/gv-metric.d.ts +32 -0
- package/src/atoms/gv-metric.js +1 -117
- package/src/atoms/gv-relative-time.d.ts +45 -0
- package/src/atoms/gv-relative-time.js +1 -156
- package/src/atoms/gv-select-native.d.ts +174 -0
- package/src/atoms/gv-select-native.js +1 -388
- package/src/atoms/gv-select.d.ts +71 -0
- package/src/atoms/gv-select.js +1 -437
- package/src/atoms/gv-spinner.d.ts +10 -0
- package/src/atoms/gv-spinner.js +1 -57
- package/src/atoms/gv-state.d.ts +50 -0
- package/src/atoms/gv-state.js +1 -130
- package/src/atoms/gv-switch.d.ts +60 -0
- package/src/atoms/gv-switch.js +1 -243
- package/src/atoms/gv-tag.d.ts +69 -0
- package/src/atoms/gv-tag.js +1 -168
- package/src/atoms/gv-text.d.ts +110 -0
- package/src/atoms/gv-text.js +1 -168
- package/src/charts/gv-chart-bar.d.ts +50 -0
- package/src/charts/gv-chart-bar.js +1 -103
- package/src/charts/gv-chart-gauge.d.ts +58 -0
- package/src/charts/gv-chart-gauge.js +1 -100
- package/src/charts/gv-chart-histogram.d.ts +48 -0
- package/src/charts/gv-chart-histogram.js +1 -83
- package/src/charts/gv-chart-line.d.ts +52 -0
- package/src/charts/gv-chart-line.js +1 -224
- package/src/charts/gv-chart-map.d.ts +50 -0
- package/src/charts/gv-chart-map.js +1 -112
- package/src/charts/gv-chart-pie.d.ts +50 -0
- package/src/charts/gv-chart-pie.js +1 -91
- package/src/index.d.ts +77 -0
- package/src/index.js +1 -77
- package/src/lib/cron-expression.d.ts +1 -0
- package/src/lib/cron-expression.js +1 -205
- package/src/lib/date.d.ts +1 -0
- package/src/lib/date.js +1 -44
- package/src/lib/events.d.ts +1 -0
- package/src/lib/events.js +1 -26
- package/src/lib/http-client-schema-form.d.ts +68 -0
- package/src/lib/http-client-schema-form.js +1 -67
- package/src/lib/http.d.ts +222 -0
- package/src/lib/http.js +1 -237
- package/src/lib/i18n.d.ts +30 -0
- package/src/lib/i18n.js +1 -103
- package/src/lib/item.d.ts +12 -0
- package/src/lib/item.js +1 -118
- package/src/lib/properties.d.ts +42 -0
- package/src/lib/properties.js +1 -189
- package/src/lib/schema-form.d.ts +5 -0
- package/src/lib/schema-form.js +1 -44
- package/src/lib/studio.d.ts +2 -0
- package/src/lib/studio.js +1 -141
- package/src/lib/style.d.ts +6 -0
- package/src/lib/style.js +1 -41
- package/src/lib/text-format.d.ts +6 -0
- package/src/lib/text-format.js +1 -69
- package/src/lib/theme.d.ts +4 -0
- package/src/lib/theme.js +1 -63
- package/src/lib/utils.d.ts +9 -0
- package/src/lib/utils.js +1 -111
- package/src/mixins/chart-element.d.ts +39 -0
- package/src/mixins/chart-element.js +1 -165
- package/src/mixins/input-element.d.ts +64 -0
- package/src/mixins/input-element.js +1 -144
- package/src/mixins/item-resource.d.ts +56 -0
- package/src/mixins/item-resource.js +1 -120
- package/src/mixins/keyboard-element.d.ts +25 -0
- package/src/mixins/keyboard-element.js +1 -69
- package/src/mixins/update-after-browser.d.ts +11 -0
- package/src/mixins/update-after-browser.js +1 -30
- package/src/mixins/with-resize-observer.d.ts +12 -0
- package/src/mixins/with-resize-observer.js +1 -68
- package/src/mixins/with-skeleton-attribute.d.ts +35 -0
- package/src/mixins/with-skeleton-attribute.js +1 -112
- package/src/molecules/gv-card-full.d.ts +78 -0
- package/src/molecules/gv-card-full.js +1 -218
- package/src/molecules/gv-card-list.d.ts +33 -0
- package/src/molecules/gv-card-list.js +1 -113
- package/src/molecules/gv-card.d.ts +65 -0
- package/src/molecules/gv-card.js +1 -133
- package/src/molecules/gv-category-list.d.ts +17 -0
- package/src/molecules/gv-category-list.js +1 -60
- package/src/molecules/gv-category.d.ts +64 -0
- package/src/molecules/gv-category.js +1 -170
- package/src/molecules/gv-code.d.ts +192 -0
- package/src/molecules/gv-code.js +1 -359
- package/src/molecules/gv-confirm.d.ts +60 -0
- package/src/molecules/gv-confirm.js +1 -188
- package/src/molecules/gv-cron-editor.d.ts +115 -0
- package/src/molecules/gv-cron-editor.js +1 -710
- package/src/molecules/gv-dropdown-menu.d.ts +28 -0
- package/src/molecules/gv-dropdown-menu.js +1 -116
- package/src/molecules/gv-expandable.d.ts +37 -0
- package/src/molecules/gv-expandable.js +1 -122
- package/src/molecules/gv-expression-language.d.ts +150 -0
- package/src/molecules/gv-expression-language.js +1 -270
- package/src/molecules/gv-identity-picture.d.ts +44 -0
- package/src/molecules/gv-identity-picture.js +1 -148
- package/src/molecules/gv-list.d.ts +123 -0
- package/src/molecules/gv-list.js +1 -227
- package/src/molecules/gv-metrics.d.ts +65 -0
- package/src/molecules/gv-metrics.js +1 -162
- package/src/molecules/gv-modal.d.ts +64 -0
- package/src/molecules/gv-modal.js +1 -213
- package/src/molecules/gv-nav.d.ts +41 -0
- package/src/molecules/gv-nav.js +1 -196
- package/src/molecules/gv-option.d.ts +65 -0
- package/src/molecules/gv-option.js +1 -242
- package/src/molecules/gv-plans.d.ts +73 -0
- package/src/molecules/gv-plans.js +1 -429
- package/src/molecules/gv-popover.d.ts +91 -0
- package/src/molecules/gv-popover.js +1 -351
- package/src/molecules/gv-promote.d.ts +108 -0
- package/src/molecules/gv-promote.js +1 -209
- package/src/molecules/gv-rating-list.d.ts +77 -0
- package/src/molecules/gv-rating-list.js +1 -365
- package/src/molecules/gv-rating.d.ts +55 -0
- package/src/molecules/gv-rating.js +1 -253
- package/src/molecules/gv-row-expandable.d.ts +8 -0
- package/src/molecules/gv-row-expandable.js +1 -45
- package/src/molecules/gv-row.d.ts +37 -0
- package/src/molecules/gv-row.js +1 -210
- package/src/molecules/gv-stats.d.ts +53 -0
- package/src/molecules/gv-stats.js +1 -121
- package/src/molecules/gv-stepper.d.ts +46 -0
- package/src/molecules/gv-stepper.js +1 -288
- package/src/molecules/gv-table.d.ts +159 -0
- package/src/molecules/gv-table.js +1 -685
- package/src/molecules/gv-tree.d.ts +44 -0
- package/src/molecules/gv-tree.js +1 -250
- package/src/organisms/gv-documentation.d.ts +52 -0
- package/src/organisms/gv-documentation.js +1 -215
- package/src/organisms/gv-header.d.ts +60 -0
- package/src/organisms/gv-header.js +1 -288
- package/src/organisms/gv-http-client.d.ts +57 -0
- package/src/organisms/gv-http-client.js +1 -275
- package/src/organisms/gv-menu.d.ts +74 -0
- package/src/organisms/gv-menu.js +1 -263
- package/src/organisms/gv-newsletter-subscription.d.ts +82 -0
- package/src/organisms/gv-newsletter-subscription.js +1 -271
- package/src/organisms/gv-pagination.d.ts +63 -0
- package/src/organisms/gv-pagination.js +1 -198
- package/src/organisms/gv-properties.d.ts +229 -0
- package/src/organisms/gv-properties.js +1 -920
- package/src/organisms/gv-resizable-views.d.ts +33 -0
- package/src/organisms/gv-resizable-views.js +1 -396
- package/src/organisms/gv-resources.d.ts +125 -0
- package/src/organisms/gv-resources.js +1 -535
- package/src/organisms/gv-schema-form-array.d.ts +55 -0
- package/src/organisms/gv-schema-form-array.js +1 -250
- package/src/organisms/gv-schema-form-control-object.d.ts +64 -0
- package/src/organisms/gv-schema-form-control-object.js +1 -154
- package/src/organisms/gv-schema-form-control.d.ts +90 -0
- package/src/organisms/gv-schema-form-control.js +1 -443
- package/src/organisms/gv-schema-form.d.ts +156 -0
- package/src/organisms/gv-schema-form.js +1 -751
- package/src/organisms/gv-tabs.d.ts +56 -0
- package/src/organisms/gv-tabs.js +1 -210
- package/src/organisms/gv-user-menu.d.ts +56 -0
- package/src/organisms/gv-user-menu.js +1 -314
- package/src/organisms/gv-vertical-menu.d.ts +28 -0
- package/src/organisms/gv-vertical-menu.js +1 -123
- package/src/policy-studio/gv-flow-step.d.ts +142 -0
- package/src/policy-studio/gv-flow-step.js +1 -464
- package/src/policy-studio/gv-flow.d.ts +89 -0
- package/src/policy-studio/gv-flow.js +1 -621
- package/src/policy-studio/gv-policy-studio-menu.d.ts +94 -0
- package/src/policy-studio/gv-policy-studio-menu.js +1 -750
- package/src/policy-studio/gv-policy-studio.d.ts +464 -0
- package/src/policy-studio/gv-policy-studio.js +1 -1842
- package/src/styles/empty.d.ts +1 -0
- package/src/styles/empty.js +1 -36
- package/src/styles/input.d.ts +1 -0
- package/src/styles/input.js +1 -263
- package/src/styles/link.d.ts +1 -0
- package/src/styles/link.js +1 -32
- package/src/styles/shapes.d.ts +2 -0
- package/src/styles/shapes.js +1 -17
- package/src/styles/skeleton.d.ts +1 -0
- package/src/styles/skeleton.js +1 -53
- package/src/styles/zoom.d.ts +1 -0
- package/src/styles/zoom.js +1 -40
- package/src/theme/gv-theme.d.ts +81 -0
- package/src/theme/gv-theme.js +1 -203
- package/wc/gv-autocomplete.d.ts +1 -0
- package/wc/gv-autocomplete.js +1 -1
- package/wc/gv-button.d.ts +1 -0
- package/wc/gv-button.js +1 -1
- package/wc/gv-card-full.d.ts +1 -0
- package/wc/gv-card-full.js +1 -1
- package/wc/gv-card-list.d.ts +1 -0
- package/wc/gv-card-list.js +1 -1
- package/wc/gv-card.d.ts +1 -0
- package/wc/gv-card.js +1 -1
- package/wc/gv-category-list.d.ts +1 -0
- package/wc/gv-category-list.js +1 -1
- package/wc/gv-category.d.ts +1 -0
- package/wc/gv-category.js +1 -1
- package/wc/gv-chart-bar.d.ts +1 -0
- package/wc/gv-chart-bar.js +1 -1
- package/wc/gv-chart-gauge.d.ts +1 -0
- package/wc/gv-chart-gauge.js +1 -1
- package/wc/gv-chart-histogram.d.ts +1 -0
- package/wc/gv-chart-histogram.js +1 -1
- package/wc/gv-chart-line.d.ts +1 -0
- package/wc/gv-chart-line.js +1 -1
- package/wc/gv-chart-map.d.ts +1 -0
- package/wc/gv-chart-map.js +1 -1
- package/wc/gv-chart-pie.d.ts +1 -0
- package/wc/gv-chart-pie.js +1 -1
- package/wc/gv-checkbox.d.ts +1 -0
- package/wc/gv-checkbox.js +1 -1
- package/wc/gv-code.d.ts +1 -0
- package/wc/gv-code.js +1 -1
- package/wc/gv-confirm.d.ts +1 -0
- package/wc/gv-confirm.js +1 -1
- package/wc/gv-cron-editor.d.ts +1 -0
- package/wc/gv-cron-editor.js +1 -1
- package/wc/gv-date-picker-calendar.d.ts +1 -0
- package/wc/gv-date-picker-calendar.js +1 -1
- package/wc/gv-date-picker-cell.d.ts +1 -0
- package/wc/gv-date-picker-cell.js +1 -1
- package/wc/gv-date-picker.d.ts +1 -0
- package/wc/gv-date-picker.js +1 -1
- package/wc/gv-documentation.d.ts +1 -0
- package/wc/gv-documentation.js +1 -1
- package/wc/gv-dropdown-menu.d.ts +1 -0
- package/wc/gv-dropdown-menu.js +1 -1
- package/wc/gv-expandable.d.ts +1 -0
- package/wc/gv-expandable.js +1 -1
- package/wc/gv-expression-language.d.ts +1 -0
- package/wc/gv-expression-language.js +1 -1
- package/wc/gv-file-upload.d.ts +1 -0
- package/wc/gv-file-upload.js +1 -1
- package/wc/gv-flow-step.d.ts +1 -0
- package/wc/gv-flow-step.js +1 -1
- package/wc/gv-flow.d.ts +1 -0
- package/wc/gv-flow.js +1 -1
- package/wc/gv-header.d.ts +1 -0
- package/wc/gv-header.js +1 -1
- package/wc/gv-http-client.d.ts +1 -0
- package/wc/gv-http-client.js +1 -1
- package/wc/gv-icon.d.ts +1 -0
- package/wc/gv-icon.js +1 -1
- package/wc/gv-identity-picture.d.ts +1 -0
- package/wc/gv-identity-picture.js +1 -1
- package/wc/gv-image.d.ts +1 -0
- package/wc/gv-image.js +1 -1
- package/wc/gv-input-message.d.ts +1 -0
- package/wc/gv-input-message.js +1 -1
- package/wc/gv-input.d.ts +1 -0
- package/wc/gv-input.js +1 -1
- package/wc/gv-link.d.ts +1 -0
- package/wc/gv-link.js +1 -1
- package/wc/gv-list.d.ts +1 -0
- package/wc/gv-list.js +1 -1
- package/wc/gv-menu.d.ts +1 -0
- package/wc/gv-menu.js +1 -1
- package/wc/gv-message.d.ts +1 -0
- package/wc/gv-message.js +1 -1
- package/wc/gv-metric.d.ts +1 -0
- package/wc/gv-metric.js +1 -1
- package/wc/gv-metrics.d.ts +1 -0
- package/wc/gv-metrics.js +1 -1
- package/wc/gv-modal.d.ts +1 -0
- package/wc/gv-modal.js +1 -1
- package/wc/gv-nav.d.ts +1 -0
- package/wc/gv-nav.js +1 -1
- package/wc/gv-newsletter-subscription.d.ts +1 -0
- package/wc/gv-newsletter-subscription.js +1 -1
- package/wc/gv-option.d.ts +1 -0
- package/wc/gv-option.js +1 -1
- package/wc/gv-pagination.d.ts +1 -0
- package/wc/gv-pagination.js +1 -1
- package/wc/gv-plans.d.ts +1 -0
- package/wc/gv-plans.js +1 -1
- package/wc/gv-policy-studio-menu.d.ts +1 -0
- package/wc/gv-policy-studio-menu.js +1 -1
- package/wc/gv-policy-studio.d.ts +1 -0
- package/wc/gv-policy-studio.js +1 -1
- package/wc/gv-popover.d.ts +1 -0
- package/wc/gv-popover.js +1 -1
- package/wc/gv-promote.d.ts +1 -0
- package/wc/gv-promote.js +1 -1
- package/wc/gv-properties.d.ts +1 -0
- package/wc/gv-properties.js +1 -1
- package/wc/gv-rating-list.d.ts +1 -0
- package/wc/gv-rating-list.js +1 -1
- package/wc/gv-rating.d.ts +1 -0
- package/wc/gv-rating.js +1 -1
- package/wc/gv-relative-time.d.ts +1 -0
- package/wc/gv-relative-time.js +1 -1
- package/wc/gv-resizable-views.d.ts +1 -0
- package/wc/gv-resizable-views.js +1 -1
- package/wc/gv-resources.d.ts +1 -0
- package/wc/gv-resources.js +1 -1
- package/wc/gv-row-expandable.d.ts +1 -0
- package/wc/gv-row-expandable.js +1 -1
- package/wc/gv-row.d.ts +1 -0
- package/wc/gv-row.js +1 -1
- package/wc/gv-schema-form-array.d.ts +1 -0
- package/wc/gv-schema-form-array.js +1 -1
- package/wc/gv-schema-form-control-object.d.ts +1 -0
- package/wc/gv-schema-form-control-object.js +1 -1
- package/wc/gv-schema-form-control.d.ts +1 -0
- package/wc/gv-schema-form-control.js +1 -1
- package/wc/gv-schema-form.d.ts +1 -0
- package/wc/gv-schema-form.js +1 -1
- package/wc/gv-select-native.d.ts +1 -0
- package/wc/gv-select-native.js +1 -1
- package/wc/gv-select.d.ts +1 -0
- package/wc/gv-select.js +1 -1
- package/wc/gv-spinner.d.ts +1 -0
- package/wc/gv-spinner.js +1 -1
- package/wc/gv-state.d.ts +1 -0
- package/wc/gv-state.js +1 -1
- package/wc/gv-stats.d.ts +1 -0
- package/wc/gv-stats.js +1 -1
- package/wc/gv-stepper.d.ts +1 -0
- package/wc/gv-stepper.js +1 -1
- package/wc/gv-switch.d.ts +1 -0
- package/wc/gv-switch.js +1 -1
- package/wc/gv-table.d.ts +1 -0
- package/wc/gv-table.js +1 -1
- package/wc/gv-tabs.d.ts +1 -0
- package/wc/gv-tabs.js +1 -1
- package/wc/gv-tag.d.ts +1 -0
- package/wc/gv-tag.js +1 -1
- package/wc/gv-text.d.ts +1 -0
- package/wc/gv-text.js +1 -1
- package/wc/gv-theme.d.ts +1 -0
- package/wc/gv-theme.js +1 -1
- package/wc/gv-tree.d.ts +1 -0
- package/wc/gv-tree.js +1 -1
- package/wc/gv-user-menu.d.ts +1 -0
- package/wc/gv-user-menu.js +1 -1
- package/wc/gv-vertical-menu.d.ts +1 -0
- package/wc/gv-vertical-menu.js +1 -1
- package/CHANGELOG.md +0 -1292
- package/LICENSE.txt +0 -202
- package/README.md +0 -195
- package/src/.eslintrc.js +0 -19
- package/src/theme/definition.json +0 -1762
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export { GvAutocomplete } from "./atoms/gv-autocomplete";
|
|
2
|
+
export { GvButton } from "./atoms/gv-button";
|
|
3
|
+
export { GvCheckbox } from "./atoms/gv-checkbox";
|
|
4
|
+
export { GvDatePickerCalendar } from "./atoms/gv-date-picker-calendar";
|
|
5
|
+
export { GvDatePickerCell } from "./atoms/gv-date-picker-cell";
|
|
6
|
+
export { GvDatePicker } from "./atoms/gv-date-picker";
|
|
7
|
+
export { GvFileUpload } from "./atoms/gv-file-upload";
|
|
8
|
+
export { GvIcon } from "./atoms/gv-icon";
|
|
9
|
+
export { GvImage } from "./atoms/gv-image";
|
|
10
|
+
export { GvInputMessage } from "./atoms/gv-input-message";
|
|
11
|
+
export { GvInput } from "./atoms/gv-input";
|
|
12
|
+
export { GvLink } from "./atoms/gv-link";
|
|
13
|
+
export { GvMessage } from "./atoms/gv-message";
|
|
14
|
+
export { GvMetric } from "./atoms/gv-metric";
|
|
15
|
+
export { GvRelativeTime } from "./atoms/gv-relative-time";
|
|
16
|
+
export { GvSelectNative } from "./atoms/gv-select-native";
|
|
17
|
+
export { GvSelect } from "./atoms/gv-select";
|
|
18
|
+
export { GvSpinner } from "./atoms/gv-spinner";
|
|
19
|
+
export { GvState } from "./atoms/gv-state";
|
|
20
|
+
export { GvSwitch } from "./atoms/gv-switch";
|
|
21
|
+
export { GvTag } from "./atoms/gv-tag";
|
|
22
|
+
export { GvText } from "./atoms/gv-text";
|
|
23
|
+
export { GvChartBar } from "./charts/gv-chart-bar";
|
|
24
|
+
export { GvChartGauge } from "./charts/gv-chart-gauge";
|
|
25
|
+
export { GvChartHistogram } from "./charts/gv-chart-histogram";
|
|
26
|
+
export { GvChartLine } from "./charts/gv-chart-line";
|
|
27
|
+
export { GvChartMap } from "./charts/gv-chart-map";
|
|
28
|
+
export { GvChartPie } from "./charts/gv-chart-pie";
|
|
29
|
+
export { GvCardFull } from "./molecules/gv-card-full";
|
|
30
|
+
export { GvCardList } from "./molecules/gv-card-list";
|
|
31
|
+
export { GvCard } from "./molecules/gv-card";
|
|
32
|
+
export { GvCategoryList } from "./molecules/gv-category-list";
|
|
33
|
+
export { GvCategory } from "./molecules/gv-category";
|
|
34
|
+
export { GvCode } from "./molecules/gv-code";
|
|
35
|
+
export { GvConfirm } from "./molecules/gv-confirm";
|
|
36
|
+
export { GvCronEditor } from "./molecules/gv-cron-editor";
|
|
37
|
+
export { GvDropdownMenu } from "./molecules/gv-dropdown-menu";
|
|
38
|
+
export { GvExpandable } from "./molecules/gv-expandable";
|
|
39
|
+
export { GvExpressionLanguage } from "./molecules/gv-expression-language";
|
|
40
|
+
export { GvIdentityPicture } from "./molecules/gv-identity-picture";
|
|
41
|
+
export { GvList } from "./molecules/gv-list";
|
|
42
|
+
export { GvMetrics } from "./molecules/gv-metrics";
|
|
43
|
+
export { GvModal } from "./molecules/gv-modal";
|
|
44
|
+
export { GvNav } from "./molecules/gv-nav";
|
|
45
|
+
export { GvOption } from "./molecules/gv-option";
|
|
46
|
+
export { GvPlans } from "./molecules/gv-plans";
|
|
47
|
+
export { GvPopover } from "./molecules/gv-popover";
|
|
48
|
+
export { GvPromote } from "./molecules/gv-promote";
|
|
49
|
+
export { GvRatingList } from "./molecules/gv-rating-list";
|
|
50
|
+
export { GvRating } from "./molecules/gv-rating";
|
|
51
|
+
export { GvRowExpandable } from "./molecules/gv-row-expandable";
|
|
52
|
+
export { GvRow } from "./molecules/gv-row";
|
|
53
|
+
export { GvStats } from "./molecules/gv-stats";
|
|
54
|
+
export { GvStepper } from "./molecules/gv-stepper";
|
|
55
|
+
export { GvTable } from "./molecules/gv-table";
|
|
56
|
+
export { GvTree } from "./molecules/gv-tree";
|
|
57
|
+
export { GvDocumentation } from "./organisms/gv-documentation";
|
|
58
|
+
export { GvHeader } from "./organisms/gv-header";
|
|
59
|
+
export { GvHttpClient } from "./organisms/gv-http-client";
|
|
60
|
+
export { GvMenu } from "./organisms/gv-menu";
|
|
61
|
+
export { GvNewsletterSubscription } from "./organisms/gv-newsletter-subscription";
|
|
62
|
+
export { GvPagination } from "./organisms/gv-pagination";
|
|
63
|
+
export { GvProperties } from "./organisms/gv-properties";
|
|
64
|
+
export { GvResizableViews } from "./organisms/gv-resizable-views";
|
|
65
|
+
export { GvResources } from "./organisms/gv-resources";
|
|
66
|
+
export { GvSchemaFormArray } from "./organisms/gv-schema-form-array";
|
|
67
|
+
export { GvSchemaFormControlObject } from "./organisms/gv-schema-form-control-object";
|
|
68
|
+
export { GvSchemaFormControl } from "./organisms/gv-schema-form-control";
|
|
69
|
+
export { GvSchemaForm } from "./organisms/gv-schema-form";
|
|
70
|
+
export { GvTabs } from "./organisms/gv-tabs";
|
|
71
|
+
export { GvUserMenu } from "./organisms/gv-user-menu";
|
|
72
|
+
export { GvVerticalMenu } from "./organisms/gv-vertical-menu";
|
|
73
|
+
export { GvFlowStep } from "./policy-studio/gv-flow-step";
|
|
74
|
+
export { GvFlow } from "./policy-studio/gv-flow";
|
|
75
|
+
export { GvPolicyStudioMenu } from "./policy-studio/gv-policy-studio-menu";
|
|
76
|
+
export { GvPolicyStudio } from "./policy-studio/gv-policy-studio";
|
|
77
|
+
export { GvTheme } from "./theme/gv-theme";
|
package/src/index.js
CHANGED
|
@@ -1,77 +1 @@
|
|
|
1
|
-
export { GvAutocomplete } from './atoms/gv-autocomplete';
|
|
2
|
-
export { GvButton } from './atoms/gv-button';
|
|
3
|
-
export { GvCheckbox } from './atoms/gv-checkbox';
|
|
4
|
-
export { GvDatePickerCalendar } from './atoms/gv-date-picker-calendar';
|
|
5
|
-
export { GvDatePickerCell } from './atoms/gv-date-picker-cell';
|
|
6
|
-
export { GvDatePicker } from './atoms/gv-date-picker';
|
|
7
|
-
export { GvFileUpload } from './atoms/gv-file-upload';
|
|
8
|
-
export { GvIcon } from './atoms/gv-icon';
|
|
9
|
-
export { GvImage } from './atoms/gv-image';
|
|
10
|
-
export { GvInputMessage } from './atoms/gv-input-message';
|
|
11
|
-
export { GvInput } from './atoms/gv-input';
|
|
12
|
-
export { GvLink } from './atoms/gv-link';
|
|
13
|
-
export { GvMessage } from './atoms/gv-message';
|
|
14
|
-
export { GvMetric } from './atoms/gv-metric';
|
|
15
|
-
export { GvRelativeTime } from './atoms/gv-relative-time';
|
|
16
|
-
export { GvSelectNative } from './atoms/gv-select-native';
|
|
17
|
-
export { GvSelect } from './atoms/gv-select';
|
|
18
|
-
export { GvSpinner } from './atoms/gv-spinner';
|
|
19
|
-
export { GvState } from './atoms/gv-state';
|
|
20
|
-
export { GvSwitch } from './atoms/gv-switch';
|
|
21
|
-
export { GvTag } from './atoms/gv-tag';
|
|
22
|
-
export { GvText } from './atoms/gv-text';
|
|
23
|
-
export { GvChartBar } from './charts/gv-chart-bar';
|
|
24
|
-
export { GvChartGauge } from './charts/gv-chart-gauge';
|
|
25
|
-
export { GvChartHistogram } from './charts/gv-chart-histogram';
|
|
26
|
-
export { GvChartLine } from './charts/gv-chart-line';
|
|
27
|
-
export { GvChartMap } from './charts/gv-chart-map';
|
|
28
|
-
export { GvChartPie } from './charts/gv-chart-pie';
|
|
29
|
-
export { GvCardFull } from './molecules/gv-card-full';
|
|
30
|
-
export { GvCardList } from './molecules/gv-card-list';
|
|
31
|
-
export { GvCard } from './molecules/gv-card';
|
|
32
|
-
export { GvCategoryList } from './molecules/gv-category-list';
|
|
33
|
-
export { GvCategory } from './molecules/gv-category';
|
|
34
|
-
export { GvCode } from './molecules/gv-code';
|
|
35
|
-
export { GvConfirm } from './molecules/gv-confirm';
|
|
36
|
-
export { GvCronEditor } from './molecules/gv-cron-editor';
|
|
37
|
-
export { GvDropdownMenu } from './molecules/gv-dropdown-menu';
|
|
38
|
-
export { GvExpandable } from './molecules/gv-expandable';
|
|
39
|
-
export { GvExpressionLanguage } from './molecules/gv-expression-language';
|
|
40
|
-
export { GvIdentityPicture } from './molecules/gv-identity-picture';
|
|
41
|
-
export { GvList } from './molecules/gv-list';
|
|
42
|
-
export { GvMetrics } from './molecules/gv-metrics';
|
|
43
|
-
export { GvModal } from './molecules/gv-modal';
|
|
44
|
-
export { GvNav } from './molecules/gv-nav';
|
|
45
|
-
export { GvOption } from './molecules/gv-option';
|
|
46
|
-
export { GvPlans } from './molecules/gv-plans';
|
|
47
|
-
export { GvPopover } from './molecules/gv-popover';
|
|
48
|
-
export { GvPromote } from './molecules/gv-promote';
|
|
49
|
-
export { GvRatingList } from './molecules/gv-rating-list';
|
|
50
|
-
export { GvRating } from './molecules/gv-rating';
|
|
51
|
-
export { GvRowExpandable } from './molecules/gv-row-expandable';
|
|
52
|
-
export { GvRow } from './molecules/gv-row';
|
|
53
|
-
export { GvStats } from './molecules/gv-stats';
|
|
54
|
-
export { GvStepper } from './molecules/gv-stepper';
|
|
55
|
-
export { GvTable } from './molecules/gv-table';
|
|
56
|
-
export { GvTree } from './molecules/gv-tree';
|
|
57
|
-
export { GvDocumentation } from './organisms/gv-documentation';
|
|
58
|
-
export { GvHeader } from './organisms/gv-header';
|
|
59
|
-
export { GvHttpClient } from './organisms/gv-http-client';
|
|
60
|
-
export { GvMenu } from './organisms/gv-menu';
|
|
61
|
-
export { GvNewsletterSubscription } from './organisms/gv-newsletter-subscription';
|
|
62
|
-
export { GvPagination } from './organisms/gv-pagination';
|
|
63
|
-
export { GvProperties } from './organisms/gv-properties';
|
|
64
|
-
export { GvResizableViews } from './organisms/gv-resizable-views';
|
|
65
|
-
export { GvResources } from './organisms/gv-resources';
|
|
66
|
-
export { GvSchemaFormArray } from './organisms/gv-schema-form-array';
|
|
67
|
-
export { GvSchemaFormControlObject } from './organisms/gv-schema-form-control-object';
|
|
68
|
-
export { GvSchemaFormControl } from './organisms/gv-schema-form-control';
|
|
69
|
-
export { GvSchemaForm } from './organisms/gv-schema-form';
|
|
70
|
-
export { GvTabs } from './organisms/gv-tabs';
|
|
71
|
-
export { GvUserMenu } from './organisms/gv-user-menu';
|
|
72
|
-
export { GvVerticalMenu } from './organisms/gv-vertical-menu';
|
|
73
|
-
export { GvFlowStep } from './policy-studio/gv-flow-step';
|
|
74
|
-
export { GvFlow } from './policy-studio/gv-flow';
|
|
75
|
-
export { GvPolicyStudioMenu } from './policy-studio/gv-policy-studio-menu';
|
|
76
|
-
export { GvPolicyStudio } from './policy-studio/gv-policy-studio';
|
|
77
|
-
export { GvTheme } from './theme/gv-theme';
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.GvRating=exports.GvRatingList=exports.GvPromote=exports.GvPopover=exports.GvPlans=exports.GvOption=exports.GvNav=exports.GvModal=exports.GvMetrics=exports.GvList=exports.GvIdentityPicture=exports.GvExpressionLanguage=exports.GvExpandable=exports.GvDropdownMenu=exports.GvCronEditor=exports.GvConfirm=exports.GvCode=exports.GvCategory=exports.GvCategoryList=exports.GvCard=exports.GvCardList=exports.GvCardFull=exports.GvChartPie=exports.GvChartMap=exports.GvChartLine=exports.GvChartHistogram=exports.GvChartGauge=exports.GvChartBar=exports.GvText=exports.GvTag=exports.GvSwitch=exports.GvState=exports.GvSpinner=exports.GvSelect=exports.GvSelectNative=exports.GvRelativeTime=exports.GvMetric=exports.GvMessage=exports.GvLink=exports.GvInput=exports.GvInputMessage=exports.GvImage=exports.GvIcon=exports.GvFileUpload=exports.GvDatePicker=exports.GvDatePickerCell=exports.GvDatePickerCalendar=exports.GvCheckbox=exports.GvButton=exports.GvAutocomplete=void 0,exports.GvTheme=exports.GvPolicyStudio=exports.GvPolicyStudioMenu=exports.GvFlow=exports.GvFlowStep=exports.GvVerticalMenu=exports.GvUserMenu=exports.GvTabs=exports.GvSchemaForm=exports.GvSchemaFormControl=exports.GvSchemaFormControlObject=exports.GvSchemaFormArray=exports.GvResources=exports.GvResizableViews=exports.GvProperties=exports.GvPagination=exports.GvNewsletterSubscription=exports.GvMenu=exports.GvHttpClient=exports.GvHeader=exports.GvDocumentation=exports.GvTree=exports.GvTable=exports.GvStepper=exports.GvStats=exports.GvRow=exports.GvRowExpandable=void 0;var e=require("./atoms/gv-autocomplete");Object.defineProperty(exports,"GvAutocomplete",{enumerable:!0,get:function(){return e.GvAutocomplete}});var r=require("./atoms/gv-button");Object.defineProperty(exports,"GvButton",{enumerable:!0,get:function(){return r.GvButton}});var t=require("./atoms/gv-checkbox");Object.defineProperty(exports,"GvCheckbox",{enumerable:!0,get:function(){return t.GvCheckbox}});var o=require("./atoms/gv-date-picker-calendar");Object.defineProperty(exports,"GvDatePickerCalendar",{enumerable:!0,get:function(){return o.GvDatePickerCalendar}});var n=require("./atoms/gv-date-picker-cell");Object.defineProperty(exports,"GvDatePickerCell",{enumerable:!0,get:function(){return n.GvDatePickerCell}});var i=require("./atoms/gv-date-picker");Object.defineProperty(exports,"GvDatePicker",{enumerable:!0,get:function(){return i.GvDatePicker}});var u=require("./atoms/gv-file-upload");Object.defineProperty(exports,"GvFileUpload",{enumerable:!0,get:function(){return u.GvFileUpload}});var a=require("./atoms/gv-icon");Object.defineProperty(exports,"GvIcon",{enumerable:!0,get:function(){return a.GvIcon}});var v=require("./atoms/gv-image");Object.defineProperty(exports,"GvImage",{enumerable:!0,get:function(){return v.GvImage}});var s=require("./atoms/gv-input-message");Object.defineProperty(exports,"GvInputMessage",{enumerable:!0,get:function(){return s.GvInputMessage}});var p=require("./atoms/gv-input");Object.defineProperty(exports,"GvInput",{enumerable:!0,get:function(){return p.GvInput}});var c=require("./atoms/gv-link");Object.defineProperty(exports,"GvLink",{enumerable:!0,get:function(){return c.GvLink}});var l=require("./atoms/gv-message");Object.defineProperty(exports,"GvMessage",{enumerable:!0,get:function(){return l.GvMessage}});var G=require("./atoms/gv-metric");Object.defineProperty(exports,"GvMetric",{enumerable:!0,get:function(){return G.GvMetric}});var g=require("./atoms/gv-relative-time");Object.defineProperty(exports,"GvRelativeTime",{enumerable:!0,get:function(){return g.GvRelativeTime}});var m=require("./atoms/gv-select-native");Object.defineProperty(exports,"GvSelectNative",{enumerable:!0,get:function(){return m.GvSelectNative}});var b=require("./atoms/gv-select");Object.defineProperty(exports,"GvSelect",{enumerable:!0,get:function(){return b.GvSelect}});var x=require("./atoms/gv-spinner");Object.defineProperty(exports,"GvSpinner",{enumerable:!0,get:function(){return x.GvSpinner}});var f=require("./atoms/gv-state");Object.defineProperty(exports,"GvState",{enumerable:!0,get:function(){return f.GvState}});var d=require("./atoms/gv-switch");Object.defineProperty(exports,"GvSwitch",{enumerable:!0,get:function(){return d.GvSwitch}});var P=require("./atoms/gv-tag");Object.defineProperty(exports,"GvTag",{enumerable:!0,get:function(){return P.GvTag}});var y=require("./atoms/gv-text");Object.defineProperty(exports,"GvText",{enumerable:!0,get:function(){return y.GvText}});var O=require("./charts/gv-chart-bar");Object.defineProperty(exports,"GvChartBar",{enumerable:!0,get:function(){return O.GvChartBar}});var j=require("./charts/gv-chart-gauge");Object.defineProperty(exports,"GvChartGauge",{enumerable:!0,get:function(){return j.GvChartGauge}});var q=require("./charts/gv-chart-histogram");Object.defineProperty(exports,"GvChartHistogram",{enumerable:!0,get:function(){return q.GvChartHistogram}});var h=require("./charts/gv-chart-line");Object.defineProperty(exports,"GvChartLine",{enumerable:!0,get:function(){return h.GvChartLine}});var C=require("./charts/gv-chart-map");Object.defineProperty(exports,"GvChartMap",{enumerable:!0,get:function(){return C.GvChartMap}});var S=require("./charts/gv-chart-pie");Object.defineProperty(exports,"GvChartPie",{enumerable:!0,get:function(){return S.GvChartPie}});var M=require("./molecules/gv-card-full");Object.defineProperty(exports,"GvCardFull",{enumerable:!0,get:function(){return M.GvCardFull}});var w=require("./molecules/gv-card-list");Object.defineProperty(exports,"GvCardList",{enumerable:!0,get:function(){return w.GvCardList}});var F=require("./molecules/gv-card");Object.defineProperty(exports,"GvCard",{enumerable:!0,get:function(){return F.GvCard}});var L=require("./molecules/gv-category-list");Object.defineProperty(exports,"GvCategoryList",{enumerable:!0,get:function(){return L.GvCategoryList}});var R=require("./molecules/gv-category");Object.defineProperty(exports,"GvCategory",{enumerable:!0,get:function(){return R.GvCategory}});var T=require("./molecules/gv-code");Object.defineProperty(exports,"GvCode",{enumerable:!0,get:function(){return T.GvCode}});var k=require("./molecules/gv-confirm");Object.defineProperty(exports,"GvConfirm",{enumerable:!0,get:function(){return k.GvConfirm}});var D=require("./molecules/gv-cron-editor");Object.defineProperty(exports,"GvCronEditor",{enumerable:!0,get:function(){return D.GvCronEditor}});var I=require("./molecules/gv-dropdown-menu");Object.defineProperty(exports,"GvDropdownMenu",{enumerable:!0,get:function(){return I.GvDropdownMenu}});var E=require("./molecules/gv-expandable");Object.defineProperty(exports,"GvExpandable",{enumerable:!0,get:function(){return E.GvExpandable}});var H=require("./molecules/gv-expression-language");Object.defineProperty(exports,"GvExpressionLanguage",{enumerable:!0,get:function(){return H.GvExpressionLanguage}});var N=require("./molecules/gv-identity-picture");Object.defineProperty(exports,"GvIdentityPicture",{enumerable:!0,get:function(){return N.GvIdentityPicture}});var A=require("./molecules/gv-list");Object.defineProperty(exports,"GvList",{enumerable:!0,get:function(){return A.GvList}});var B=require("./molecules/gv-metrics");Object.defineProperty(exports,"GvMetrics",{enumerable:!0,get:function(){return B.GvMetrics}});var U=require("./molecules/gv-modal");Object.defineProperty(exports,"GvModal",{enumerable:!0,get:function(){return U.GvModal}});var V=require("./molecules/gv-nav");Object.defineProperty(exports,"GvNav",{enumerable:!0,get:function(){return V.GvNav}});var z=require("./molecules/gv-option");Object.defineProperty(exports,"GvOption",{enumerable:!0,get:function(){return z.GvOption}});var _=require("./molecules/gv-plans");Object.defineProperty(exports,"GvPlans",{enumerable:!0,get:function(){return _.GvPlans}});var J=require("./molecules/gv-popover");Object.defineProperty(exports,"GvPopover",{enumerable:!0,get:function(){return J.GvPopover}});var K=require("./molecules/gv-promote");Object.defineProperty(exports,"GvPromote",{enumerable:!0,get:function(){return K.GvPromote}});var Q=require("./molecules/gv-rating-list");Object.defineProperty(exports,"GvRatingList",{enumerable:!0,get:function(){return Q.GvRatingList}});var W=require("./molecules/gv-rating");Object.defineProperty(exports,"GvRating",{enumerable:!0,get:function(){return W.GvRating}});var X=require("./molecules/gv-row-expandable");Object.defineProperty(exports,"GvRowExpandable",{enumerable:!0,get:function(){return X.GvRowExpandable}});var Y=require("./molecules/gv-row");Object.defineProperty(exports,"GvRow",{enumerable:!0,get:function(){return Y.GvRow}});var Z=require("./molecules/gv-stats");Object.defineProperty(exports,"GvStats",{enumerable:!0,get:function(){return Z.GvStats}});var $=require("./molecules/gv-stepper");Object.defineProperty(exports,"GvStepper",{enumerable:!0,get:function(){return $.GvStepper}});var ee=require("./molecules/gv-table");Object.defineProperty(exports,"GvTable",{enumerable:!0,get:function(){return ee.GvTable}});var re=require("./molecules/gv-tree");Object.defineProperty(exports,"GvTree",{enumerable:!0,get:function(){return re.GvTree}});var te=require("./organisms/gv-documentation");Object.defineProperty(exports,"GvDocumentation",{enumerable:!0,get:function(){return te.GvDocumentation}});var oe=require("./organisms/gv-header");Object.defineProperty(exports,"GvHeader",{enumerable:!0,get:function(){return oe.GvHeader}});var ne=require("./organisms/gv-http-client");Object.defineProperty(exports,"GvHttpClient",{enumerable:!0,get:function(){return ne.GvHttpClient}});var ie=require("./organisms/gv-menu");Object.defineProperty(exports,"GvMenu",{enumerable:!0,get:function(){return ie.GvMenu}});var ue=require("./organisms/gv-newsletter-subscription");Object.defineProperty(exports,"GvNewsletterSubscription",{enumerable:!0,get:function(){return ue.GvNewsletterSubscription}});var ae=require("./organisms/gv-pagination");Object.defineProperty(exports,"GvPagination",{enumerable:!0,get:function(){return ae.GvPagination}});var ve=require("./organisms/gv-properties");Object.defineProperty(exports,"GvProperties",{enumerable:!0,get:function(){return ve.GvProperties}});var se=require("./organisms/gv-resizable-views");Object.defineProperty(exports,"GvResizableViews",{enumerable:!0,get:function(){return se.GvResizableViews}});var pe=require("./organisms/gv-resources");Object.defineProperty(exports,"GvResources",{enumerable:!0,get:function(){return pe.GvResources}});var ce=require("./organisms/gv-schema-form-array");Object.defineProperty(exports,"GvSchemaFormArray",{enumerable:!0,get:function(){return ce.GvSchemaFormArray}});var le=require("./organisms/gv-schema-form-control-object");Object.defineProperty(exports,"GvSchemaFormControlObject",{enumerable:!0,get:function(){return le.GvSchemaFormControlObject}});var Ge=require("./organisms/gv-schema-form-control");Object.defineProperty(exports,"GvSchemaFormControl",{enumerable:!0,get:function(){return Ge.GvSchemaFormControl}});var ge=require("./organisms/gv-schema-form");Object.defineProperty(exports,"GvSchemaForm",{enumerable:!0,get:function(){return ge.GvSchemaForm}});var me=require("./organisms/gv-tabs");Object.defineProperty(exports,"GvTabs",{enumerable:!0,get:function(){return me.GvTabs}});var be=require("./organisms/gv-user-menu");Object.defineProperty(exports,"GvUserMenu",{enumerable:!0,get:function(){return be.GvUserMenu}});var xe=require("./organisms/gv-vertical-menu");Object.defineProperty(exports,"GvVerticalMenu",{enumerable:!0,get:function(){return xe.GvVerticalMenu}});var fe=require("./policy-studio/gv-flow-step");Object.defineProperty(exports,"GvFlowStep",{enumerable:!0,get:function(){return fe.GvFlowStep}});var de=require("./policy-studio/gv-flow");Object.defineProperty(exports,"GvFlow",{enumerable:!0,get:function(){return de.GvFlow}});var Pe=require("./policy-studio/gv-policy-studio-menu");Object.defineProperty(exports,"GvPolicyStudioMenu",{enumerable:!0,get:function(){return Pe.GvPolicyStudioMenu}});var ye=require("./policy-studio/gv-policy-studio");Object.defineProperty(exports,"GvPolicyStudio",{enumerable:!0,get:function(){return ye.GvPolicyStudio}});var Oe=require("./theme/gv-theme");Object.defineProperty(exports,"GvTheme",{enumerable:!0,get:function(){return Oe.GvTheme}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function isValidCron(cron: any, options: any): boolean;
|
|
@@ -1,205 +1 @@
|
|
|
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
|
-
// This comes from the fact that parseInt trims characters coming
|
|
17
|
-
// after digits and consider it a valid int, so `1*` becomes `1`.
|
|
18
|
-
const safeParseInt = (value) => {
|
|
19
|
-
if (/^\d+$/.test(value)) {
|
|
20
|
-
return Number(value);
|
|
21
|
-
} else {
|
|
22
|
-
return NaN;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
const isWildcard = (value) => {
|
|
27
|
-
return value === '*';
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const isQuestionMark = (value) => {
|
|
31
|
-
return value === '?';
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
const isInRange = (value, start, stop) => {
|
|
35
|
-
return value >= start && value <= stop;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
const isValidRange = (value, start, stop) => {
|
|
39
|
-
const sides = value.split('-');
|
|
40
|
-
switch (sides.length) {
|
|
41
|
-
case 1:
|
|
42
|
-
return isWildcard(value) || isInRange(safeParseInt(value), start, stop);
|
|
43
|
-
case 2:
|
|
44
|
-
// eslint-disable-next-line no-case-declarations
|
|
45
|
-
const [small, big] = sides.map((side) => safeParseInt(side));
|
|
46
|
-
return small <= big && isInRange(small, start, stop) && isInRange(big, start, stop);
|
|
47
|
-
default:
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
const isValidStep = (value) => {
|
|
53
|
-
return value === undefined || value.search(/[^\d]/) === -1;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
const validateForRange = (value, start, stop) => {
|
|
57
|
-
if (value.search(/[^\d-,/*]/) !== -1) {
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const list = value.split(',');
|
|
62
|
-
return list.every((condition) => {
|
|
63
|
-
const splits = condition.split('/');
|
|
64
|
-
// Prevents `*/ * * * *` from being accepted.
|
|
65
|
-
if (condition.trim().endsWith('/')) {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// Prevents `*/*/* * * * *` from being accepted
|
|
70
|
-
if (splits.length > 2) {
|
|
71
|
-
return false;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// If we don't have a `/`, right will be undefined which is considered a valid step if we don't a `/`.
|
|
75
|
-
const [left, right] = splits;
|
|
76
|
-
return isValidRange(left, start, stop) && isValidStep(right);
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
const hasValidSeconds = (seconds) => {
|
|
81
|
-
return validateForRange(seconds, 0, 59);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
const hasValidMinutes = (minutes) => {
|
|
85
|
-
return validateForRange(minutes, 0, 59);
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
const hasValidHours = (hours) => {
|
|
89
|
-
return validateForRange(hours, 0, 23);
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
const hasValidDays = (days, allowBlankDay) => {
|
|
93
|
-
return (allowBlankDay && isQuestionMark(days)) || validateForRange(days, 1, 31);
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
const monthAlias = {
|
|
97
|
-
jan: '1',
|
|
98
|
-
feb: '2',
|
|
99
|
-
mar: '3',
|
|
100
|
-
apr: '4',
|
|
101
|
-
may: '5',
|
|
102
|
-
jun: '6',
|
|
103
|
-
jul: '7',
|
|
104
|
-
aug: '8',
|
|
105
|
-
sep: '9',
|
|
106
|
-
oct: '10',
|
|
107
|
-
nov: '11',
|
|
108
|
-
dec: '12',
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
const hasValidMonths = (months, alias) => {
|
|
112
|
-
// Prevents alias to be used as steps
|
|
113
|
-
if (months.search(/\/[a-zA-Z]/) !== -1) {
|
|
114
|
-
return false;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
if (alias) {
|
|
118
|
-
const remappedMonths = months.toLowerCase().replace(/[a-z]{3}/g, (match) => {
|
|
119
|
-
return monthAlias[match] === undefined ? match : monthAlias[match];
|
|
120
|
-
});
|
|
121
|
-
// If any invalid alias was used, it won't pass the other checks as there will be non-numeric values in the months
|
|
122
|
-
return validateForRange(remappedMonths, 1, 12);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
return validateForRange(months, 1, 12);
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
const weekdaysAlias = {
|
|
129
|
-
sun: '0',
|
|
130
|
-
mon: '1',
|
|
131
|
-
tue: '2',
|
|
132
|
-
wed: '3',
|
|
133
|
-
thu: '4',
|
|
134
|
-
fri: '5',
|
|
135
|
-
sat: '6',
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
const hasValidWeekdays = (weekdays, alias, allowBlankDay, allowSevenAsSunday) => {
|
|
139
|
-
// If there is a question mark, checks if the allowBlankDay flag is set
|
|
140
|
-
if (allowBlankDay && isQuestionMark(weekdays)) {
|
|
141
|
-
return true;
|
|
142
|
-
} else if (!allowBlankDay && isQuestionMark(weekdays)) {
|
|
143
|
-
return false;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// Prevents alias to be used as steps
|
|
147
|
-
if (weekdays.search(/\/[a-zA-Z]/) !== -1) {
|
|
148
|
-
return false;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
if (alias) {
|
|
152
|
-
const remappedWeekdays = weekdays.toLowerCase().replace(/[a-z]{3}/g, (match) => {
|
|
153
|
-
return weekdaysAlias[match] === undefined ? match : weekdaysAlias[match];
|
|
154
|
-
});
|
|
155
|
-
// If any invalid alias was used, it won't pass the other checks as there will be non-numeric values in the weekdays
|
|
156
|
-
return validateForRange(remappedWeekdays, 0, allowSevenAsSunday ? 7 : 6);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
return validateForRange(weekdays, 0, allowSevenAsSunday ? 7 : 6);
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
const hasCompatibleDayFormat = (days, weekdays, allowBlankDay) => {
|
|
163
|
-
return !(allowBlankDay && isQuestionMark(days) && isQuestionMark(weekdays));
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
const split = (cron) => {
|
|
167
|
-
return cron.trim().split(/\s+/);
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
const defaultOptions = {
|
|
171
|
-
alias: false,
|
|
172
|
-
seconds: false,
|
|
173
|
-
allowBlankDay: false,
|
|
174
|
-
allowSevenAsSunday: false,
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
export const isValidCron = (cron, options) => {
|
|
178
|
-
options = { ...defaultOptions, ...options };
|
|
179
|
-
|
|
180
|
-
const splits = split(cron);
|
|
181
|
-
|
|
182
|
-
if (splits.length > (options.seconds ? 6 : 5) || splits.length < 5) {
|
|
183
|
-
return false;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
const checks = [];
|
|
187
|
-
if (splits.length === 6) {
|
|
188
|
-
const seconds = splits.shift();
|
|
189
|
-
if (seconds) {
|
|
190
|
-
checks.push(hasValidSeconds(seconds));
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
// We could only check the steps gradually and return false on the first invalid block,
|
|
195
|
-
// However, this won't have any performance impact so why bother for now.
|
|
196
|
-
const [minutes, hours, days, months, weekdays] = splits;
|
|
197
|
-
checks.push(hasValidMinutes(minutes));
|
|
198
|
-
checks.push(hasValidHours(hours));
|
|
199
|
-
checks.push(hasValidDays(days, options.allowBlankDay));
|
|
200
|
-
checks.push(hasValidMonths(months, options.alias));
|
|
201
|
-
checks.push(hasValidWeekdays(weekdays, options.alias, options.allowBlankDay, options.allowSevenAsSunday));
|
|
202
|
-
checks.push(hasCompatibleDayFormat(days, weekdays, options.allowBlankDay));
|
|
203
|
-
|
|
204
|
-
return checks.every(Boolean);
|
|
205
|
-
};
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.isValidCron=void 0;const e=e=>/^\d+$/.test(e)?Number(e):NaN,r=e=>"?"===e,t=(e,r,t)=>e>=r&&e<=t,n=(r,n,s)=>{if(-1!==r.search(/[^\d-,/*]/))return!1;return r.split(",").every((r=>{const a=r.split("/");if(r.trim().endsWith("/"))return!1;if(a.length>2)return!1;const[o,l]=a;return((r,n,s)=>{const a=r.split("-");switch(a.length){case 1:return(e=>"*"===e)(r)||t(e(r),n,s);case 2:const[o,l]=a.map((r=>e(r)));return o<=l&&t(o,n,s)&&t(l,n,s);default:return!1}})(o,n,s)&&(e=>void 0===e||-1===e.search(/[^\d]/))(l)}))},s={jan:"1",feb:"2",mar:"3",apr:"4",may:"5",jun:"6",jul:"7",aug:"8",sep:"9",oct:"10",nov:"11",dec:"12"},a={sun:"0",mon:"1",tue:"2",wed:"3",thu:"4",fri:"5",sat:"6"},o={alias:!1,seconds:!1,allowBlankDay:!1,allowSevenAsSunday:!1};exports.isValidCron=(e,t)=>{t={...o,...t};const l=(e=>e.trim().split(/\s+/))(e);if(l.length>(t.seconds?6:5)||l.length<5)return!1;const u=[];if(6===l.length){const e=l.shift();e&&u.push((e=>n(e,0,59))(e))}const[i,c,h,p,d]=l;return u.push((e=>n(e,0,59))(i)),u.push((e=>n(e,0,23))(c)),u.push(((e,t)=>t&&r(e)||n(e,1,31))(h,t.allowBlankDay)),u.push(((e,r)=>{if(-1!==e.search(/\/[a-zA-Z]/))return!1;if(r){const r=e.toLowerCase().replace(/[a-z]{3}/g,(e=>void 0===s[e]?e:s[e]));return n(r,1,12)}return n(e,1,12)})(p,t.alias)),u.push(((e,t,s,o)=>{if(s&&r(e))return!0;if(!s&&r(e))return!1;if(-1!==e.search(/\/[a-zA-Z]/))return!1;if(t){const r=e.toLowerCase().replace(/[a-z]{3}/g,(e=>void 0===a[e]?e:a[e]));return n(r,0,o?7:6)}return n(e,0,o?7:6)})(d,t.alias,t.allowBlankDay,t.allowSevenAsSunday)),u.push(((e,t,n)=>!(n&&r(e)&&r(t)))(h,d,t.allowBlankDay)),u.every(Boolean)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function isInvalid(date: any, min: any, max: any, noTime?: boolean, disabledDates?: any[]): boolean;
|
package/src/lib/date.js
CHANGED
|
@@ -1,44 +1 @@
|
|
|
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
|
-
export function isInvalid(date, min, max, noTime = true, disabledDates = []) {
|
|
17
|
-
if (date) {
|
|
18
|
-
if (min) {
|
|
19
|
-
const minDate = new Date(min * 1000);
|
|
20
|
-
if (noTime) {
|
|
21
|
-
minDate.setHours(0, 0);
|
|
22
|
-
}
|
|
23
|
-
minDate.setSeconds(0, 0);
|
|
24
|
-
if (date < minDate.getTime() / 1000) {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
if (max) {
|
|
29
|
-
const maxDate = new Date(max * 1000);
|
|
30
|
-
if (noTime) {
|
|
31
|
-
maxDate.setHours(23, 59);
|
|
32
|
-
}
|
|
33
|
-
maxDate.setSeconds(59, 59);
|
|
34
|
-
if (date > maxDate.getTime() / 1000) {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
if (disabledDates.findIndex((disabledDay) => parseInt(disabledDay, 10) === date) !== -1) {
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.isInvalid=void 0,exports.isInvalid=function(e,t,n,s=!0,i=[]){if(e){if(t){const n=new Date(1e3*t);if(s&&n.setHours(0,0),n.setSeconds(0,0),e<n.getTime()/1e3)return!0}if(n){const t=new Date(1e3*n);if(s&&t.setHours(23,59),t.setSeconds(59,59),e>t.getTime()/1e3)return!0}if(-1!==i.findIndex((t=>parseInt(t,10)===e)))return!0}return!1};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function dispatchCustomEvent(node: any, suffix: any, detail: any, options?: {}): void;
|
package/src/lib/events.js
CHANGED
|
@@ -1,26 +1 @@
|
|
|
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
|
-
export function dispatchCustomEvent(node, suffix, detail, options = {}) {
|
|
17
|
-
const eventName = `${node.nodeName.toLocaleLowerCase()}:${suffix}`;
|
|
18
|
-
/* global CustomEvent */
|
|
19
|
-
const event = new CustomEvent(eventName, {
|
|
20
|
-
detail,
|
|
21
|
-
bubbles: true,
|
|
22
|
-
composed: true,
|
|
23
|
-
...options,
|
|
24
|
-
});
|
|
25
|
-
node.dispatchEvent(event);
|
|
26
|
-
}
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.dispatchCustomEvent=void 0,exports.dispatchCustomEvent=function(e,t,o,s={}){const n=`${e.nodeName.toLocaleLowerCase()}:${t}`,d=new CustomEvent(n,{detail:o,bubbles:!0,composed:!0,...s});e.dispatchEvent(d)};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export namespace httpClientSchemaForm {
|
|
2
|
+
export const type: string;
|
|
3
|
+
export const id: string;
|
|
4
|
+
export namespace properties {
|
|
5
|
+
namespace method {
|
|
6
|
+
export const title: string;
|
|
7
|
+
export const description: string;
|
|
8
|
+
const type_1: string;
|
|
9
|
+
export { type_1 as type };
|
|
10
|
+
const _default: string;
|
|
11
|
+
export { _default as default };
|
|
12
|
+
const _enum: string[];
|
|
13
|
+
export { _enum as enum };
|
|
14
|
+
}
|
|
15
|
+
namespace path {
|
|
16
|
+
const title_1: string;
|
|
17
|
+
export { title_1 as title };
|
|
18
|
+
const type_2: string;
|
|
19
|
+
export { type_2 as type };
|
|
20
|
+
const _default_1: string;
|
|
21
|
+
export { _default_1 as default };
|
|
22
|
+
}
|
|
23
|
+
namespace headers {
|
|
24
|
+
const type_3: string;
|
|
25
|
+
export { type_3 as type };
|
|
26
|
+
const title_2: string;
|
|
27
|
+
export { title_2 as title };
|
|
28
|
+
export namespace items {
|
|
29
|
+
const type_4: string;
|
|
30
|
+
export { type_4 as type };
|
|
31
|
+
const title_3: string;
|
|
32
|
+
export { title_3 as title };
|
|
33
|
+
export namespace properties_1 {
|
|
34
|
+
namespace name {
|
|
35
|
+
const title_4: string;
|
|
36
|
+
export { title_4 as title };
|
|
37
|
+
const type_5: string;
|
|
38
|
+
export { type_5 as type };
|
|
39
|
+
}
|
|
40
|
+
namespace value {
|
|
41
|
+
const title_5: string;
|
|
42
|
+
export { title_5 as title };
|
|
43
|
+
const type_6: string;
|
|
44
|
+
export { type_6 as type };
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export { properties_1 as properties };
|
|
48
|
+
}
|
|
49
|
+
export const required: string[];
|
|
50
|
+
}
|
|
51
|
+
const body: {
|
|
52
|
+
title: string;
|
|
53
|
+
type: string;
|
|
54
|
+
'x-schema-form': {
|
|
55
|
+
type: string;
|
|
56
|
+
codemirrorOptions: {
|
|
57
|
+
placeholder: string;
|
|
58
|
+
lineWrapping: boolean;
|
|
59
|
+
lineNumbers: boolean;
|
|
60
|
+
allowDropFileTypes: boolean;
|
|
61
|
+
autoCloseTags: boolean;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
const required_1: string[];
|
|
67
|
+
export { required_1 as required };
|
|
68
|
+
}
|
|
@@ -1,67 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (C) 2021 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
|
-
export const httpClientSchemaForm = {
|
|
17
|
-
type: 'object',
|
|
18
|
-
id: 'urn:jsonschema:io:gravitee:http:client',
|
|
19
|
-
properties: {
|
|
20
|
-
method: {
|
|
21
|
-
title: 'HTTP Method',
|
|
22
|
-
description: 'HTTP method to invoke the endpoint.',
|
|
23
|
-
type: 'string',
|
|
24
|
-
default: 'GET',
|
|
25
|
-
enum: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'HEAD', 'CONNECT', 'OPTIONS', 'TRACE'],
|
|
26
|
-
},
|
|
27
|
-
path: {
|
|
28
|
-
title: 'Path',
|
|
29
|
-
type: 'string',
|
|
30
|
-
default: '/',
|
|
31
|
-
},
|
|
32
|
-
headers: {
|
|
33
|
-
type: 'array',
|
|
34
|
-
title: 'Request Headers',
|
|
35
|
-
items: {
|
|
36
|
-
type: 'object',
|
|
37
|
-
title: 'Header',
|
|
38
|
-
properties: {
|
|
39
|
-
name: {
|
|
40
|
-
title: 'Name',
|
|
41
|
-
type: 'string',
|
|
42
|
-
},
|
|
43
|
-
value: {
|
|
44
|
-
title: 'Value',
|
|
45
|
-
type: 'string',
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
required: ['name', 'value'],
|
|
50
|
-
},
|
|
51
|
-
body: {
|
|
52
|
-
title: 'Request body',
|
|
53
|
-
type: 'string',
|
|
54
|
-
'x-schema-form': {
|
|
55
|
-
type: 'codemirror',
|
|
56
|
-
codemirrorOptions: {
|
|
57
|
-
placeholder: 'Put request body here',
|
|
58
|
-
lineWrapping: true,
|
|
59
|
-
lineNumbers: true,
|
|
60
|
-
allowDropFileTypes: true,
|
|
61
|
-
autoCloseTags: true,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
required: ['method', 'path'],
|
|
67
|
-
};
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.httpClientSchemaForm=void 0,exports.httpClientSchemaForm={type:"object",id:"urn:jsonschema:io:gravitee:http:client",properties:{method:{title:"HTTP Method",description:"HTTP method to invoke the endpoint.",type:"string",default:"GET",enum:["GET","POST","PUT","DELETE","PATCH","HEAD","CONNECT","OPTIONS","TRACE"]},path:{title:"Path",type:"string",default:"/"},headers:{type:"array",title:"Request Headers",items:{type:"object",title:"Header",properties:{name:{title:"Name",type:"string"},value:{title:"Value",type:"string"}}},required:["name","value"]},body:{title:"Request body",type:"string","x-schema-form":{type:"codemirror",codemirrorOptions:{placeholder:"Put request body here",lineWrapping:!0,lineNumbers:!0,allowDropFileTypes:!0,autoCloseTags:!0}}}},required:["method","path"]};
|