@gravitee/ui-components 3.27.0 → 3.27.1-pagination-34a0cc9
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 +27 -32
- package/src/atoms/{gv-autocomplete.d.ts → gv-autocomplete/gv-autocomplete.d.ts} +0 -0
- package/src/atoms/{gv-autocomplete.js → gv-autocomplete/gv-autocomplete.js} +1 -1
- package/src/atoms/gv-autocomplete/gv-autocomplete.js.map +1 -0
- package/src/atoms/gv-autocomplete/gv-autocomplete.stories.d.ts +157 -0
- package/src/atoms/gv-autocomplete/gv-autocomplete.stories.js +231 -0
- package/src/atoms/gv-autocomplete/gv-autocomplete.stories.js.map +1 -0
- package/src/atoms/gv-autocomplete/gv-autocomplete.test.d.ts +1 -0
- package/src/atoms/gv-autocomplete/gv-autocomplete.test.js +70 -0
- package/src/atoms/gv-autocomplete/gv-autocomplete.test.js.map +1 -0
- package/src/atoms/gv-autocomplete/index.d.ts +1 -0
- package/src/atoms/gv-autocomplete/index.js +17 -0
- package/src/atoms/gv-autocomplete/index.js.map +1 -0
- package/src/atoms/{gv-button.d.ts → gv-button/gv-button.d.ts} +20 -3
- package/src/atoms/{gv-button.js → gv-button/gv-button.js} +10 -12
- package/src/atoms/gv-button/gv-button.js.map +1 -0
- package/src/atoms/gv-button/gv-button.stories.d.ts +195 -0
- package/src/atoms/gv-button/gv-button.stories.js +81 -0
- package/src/atoms/gv-button/gv-button.stories.js.map +1 -0
- package/src/atoms/gv-button/gv-button.test.d.ts +1 -0
- package/src/atoms/gv-button/gv-button.test.js +67 -0
- package/src/atoms/gv-button/gv-button.test.js.map +1 -0
- package/src/atoms/gv-button/index.d.ts +1 -0
- package/src/atoms/gv-button/index.js +17 -0
- package/src/atoms/gv-button/index.js.map +1 -0
- package/src/atoms/{gv-checkbox.d.ts → gv-checkbox/gv-checkbox.d.ts} +0 -0
- package/src/atoms/{gv-checkbox.js → gv-checkbox/gv-checkbox.js} +3 -3
- package/src/atoms/gv-checkbox/gv-checkbox.js.map +1 -0
- package/src/atoms/gv-checkbox/gv-checkbox.stories.d.ts +62 -0
- package/src/atoms/gv-checkbox/gv-checkbox.stories.js +33 -0
- package/src/atoms/gv-checkbox/gv-checkbox.stories.js.map +1 -0
- package/src/atoms/gv-checkbox/index.d.ts +1 -0
- package/src/atoms/gv-checkbox/index.js +17 -0
- package/src/atoms/gv-checkbox/index.js.map +1 -0
- package/src/atoms/{gv-date-picker.d.ts → gv-date-picker/gv-date-picker.d.ts} +1 -1
- package/src/atoms/{gv-date-picker.js → gv-date-picker/gv-date-picker.js} +36 -23
- package/src/atoms/gv-date-picker/gv-date-picker.js.map +1 -0
- package/src/atoms/gv-date-picker/gv-date-picker.stories.d.ts +67 -0
- package/src/atoms/gv-date-picker/gv-date-picker.stories.js +71 -0
- package/src/atoms/gv-date-picker/gv-date-picker.stories.js.map +1 -0
- package/src/atoms/gv-date-picker/gv-date-picker.test.d.ts +1 -0
- package/src/atoms/gv-date-picker/gv-date-picker.test.js +34 -0
- package/src/atoms/gv-date-picker/gv-date-picker.test.js.map +1 -0
- package/src/atoms/gv-date-picker/index.d.ts +1 -0
- package/src/atoms/gv-date-picker/index.js +17 -0
- package/src/atoms/gv-date-picker/index.js.map +1 -0
- package/src/atoms/{gv-date-picker-calendar.d.ts → gv-date-picker-calendar/gv-date-picker-calendar.d.ts} +0 -0
- package/src/atoms/{gv-date-picker-calendar.js → gv-date-picker-calendar/gv-date-picker-calendar.js} +3 -3
- package/src/atoms/gv-date-picker-calendar/gv-date-picker-calendar.js.map +1 -0
- package/src/atoms/gv-date-picker-calendar/index.d.ts +1 -0
- package/src/atoms/gv-date-picker-calendar/index.js +17 -0
- package/src/atoms/gv-date-picker-calendar/index.js.map +1 -0
- package/src/atoms/{gv-date-picker-cell.d.ts → gv-date-picker-cell/gv-date-picker-cell.d.ts} +0 -0
- package/src/atoms/{gv-date-picker-cell.js → gv-date-picker-cell/gv-date-picker-cell.js} +2 -2
- package/src/atoms/gv-date-picker-cell/gv-date-picker-cell.js.map +1 -0
- package/src/atoms/gv-date-picker-cell/index.d.ts +1 -0
- package/src/atoms/gv-date-picker-cell/index.js +17 -0
- package/src/atoms/gv-date-picker-cell/index.js.map +1 -0
- package/src/atoms/{gv-file-upload.d.ts → gv-file-upload/gv-file-upload.d.ts} +0 -0
- package/src/atoms/{gv-file-upload.js → gv-file-upload/gv-file-upload.js} +3 -3
- package/src/atoms/gv-file-upload/gv-file-upload.js.map +1 -0
- package/src/atoms/gv-file-upload/gv-file-upload.stories.d.ts +81 -0
- package/src/atoms/gv-file-upload/gv-file-upload.stories.js +40 -0
- package/src/atoms/gv-file-upload/gv-file-upload.stories.js.map +1 -0
- package/src/atoms/gv-file-upload/index.d.ts +1 -0
- package/src/atoms/gv-file-upload/index.js +17 -0
- package/src/atoms/gv-file-upload/index.js.map +1 -0
- package/src/atoms/{gv-icon.d.ts → gv-icon/gv-icon.d.ts} +0 -0
- package/src/atoms/{gv-icon.js → gv-icon/gv-icon.js} +0 -0
- package/src/atoms/gv-icon/gv-icon.js.map +1 -0
- package/src/atoms/gv-icon/gv-icon.stories.d.ts +14 -0
- package/src/atoms/gv-icon/gv-icon.stories.js +53 -0
- package/src/atoms/gv-icon/gv-icon.stories.js.map +1 -0
- package/src/atoms/gv-icon/index.d.ts +1 -0
- package/src/atoms/gv-icon/index.js +17 -0
- package/src/atoms/gv-icon/index.js.map +1 -0
- package/src/atoms/{gv-image.d.ts → gv-image/gv-image.d.ts} +0 -0
- package/src/atoms/{gv-image.js → gv-image/gv-image.js} +2 -2
- package/src/atoms/gv-image/gv-image.js.map +1 -0
- package/src/atoms/gv-image/gv-image.stories.d.ts +100 -0
- package/src/atoms/gv-image/gv-image.stories.js +68 -0
- package/src/atoms/gv-image/gv-image.stories.js.map +1 -0
- package/src/atoms/gv-image/index.d.ts +1 -0
- package/src/atoms/gv-image/index.js +17 -0
- package/src/atoms/gv-image/index.js.map +1 -0
- package/src/atoms/{gv-input.d.ts → gv-input/gv-input.d.ts} +0 -0
- package/src/atoms/{gv-input.js → gv-input/gv-input.js} +10 -29
- package/src/atoms/gv-input/gv-input.js.map +1 -0
- package/src/atoms/gv-input/gv-input.stories.d.ts +309 -0
- package/src/atoms/gv-input/gv-input.stories.js +98 -0
- package/src/atoms/gv-input/gv-input.stories.js.map +1 -0
- package/src/atoms/gv-input/index.d.ts +1 -0
- package/src/atoms/gv-input/index.js +17 -0
- package/src/atoms/gv-input/index.js.map +1 -0
- package/src/atoms/{gv-input-message.d.ts → gv-input-message/gv-input-message.d.ts} +0 -0
- package/src/atoms/{gv-input-message.js → gv-input-message/gv-input-message.js} +1 -1
- package/src/atoms/gv-input-message/gv-input-message.js.map +1 -0
- package/src/atoms/gv-input-message/gv-input-message.stories.d.ts +24 -0
- package/src/atoms/gv-input-message/gv-input-message.stories.js +31 -0
- package/src/atoms/gv-input-message/gv-input-message.stories.js.map +1 -0
- package/src/atoms/gv-input-message/index.d.ts +1 -0
- package/src/atoms/gv-input-message/index.js +17 -0
- package/src/atoms/gv-input-message/index.js.map +1 -0
- package/src/atoms/{gv-link.d.ts → gv-link/gv-link.d.ts} +0 -0
- package/src/atoms/{gv-link.js → gv-link/gv-link.js} +23 -12
- package/src/atoms/gv-link/gv-link.js.map +1 -0
- package/src/atoms/gv-link/gv-link.stories.d.ts +81 -0
- package/src/atoms/gv-link/gv-link.stories.js +41 -0
- package/src/atoms/gv-link/gv-link.stories.js.map +1 -0
- package/src/atoms/gv-link/index.d.ts +1 -0
- package/src/atoms/gv-link/index.js +17 -0
- package/src/atoms/gv-link/index.js.map +1 -0
- package/src/atoms/{gv-message.d.ts → gv-message/gv-message.d.ts} +1 -1
- package/src/atoms/{gv-message.js → gv-message/gv-message.js} +2 -2
- package/src/atoms/gv-message/gv-message.js.map +1 -0
- package/src/atoms/gv-message/gv-message.stories.d.ts +158 -0
- package/src/atoms/gv-message/gv-message.stories.js +55 -0
- package/src/atoms/gv-message/gv-message.stories.js.map +1 -0
- package/src/atoms/gv-message/index.d.ts +1 -0
- package/src/atoms/gv-message/index.js +17 -0
- package/src/atoms/gv-message/index.js.map +1 -0
- package/src/atoms/{gv-metric.d.ts → gv-metric/gv-metric.d.ts} +0 -0
- package/src/atoms/{gv-metric.js → gv-metric/gv-metric.js} +2 -2
- package/src/atoms/gv-metric/gv-metric.js.map +1 -0
- package/src/atoms/gv-metric/gv-metric.stories.d.ts +43 -0
- package/src/atoms/gv-metric/gv-metric.stories.js +32 -0
- package/src/atoms/gv-metric/gv-metric.stories.js.map +1 -0
- package/src/atoms/gv-metric/index.d.ts +1 -0
- package/src/atoms/gv-metric/index.js +17 -0
- package/src/atoms/gv-metric/index.js.map +1 -0
- package/src/atoms/{gv-relative-time.d.ts → gv-relative-time/gv-relative-time.d.ts} +1 -1
- package/src/atoms/{gv-relative-time.js → gv-relative-time/gv-relative-time.js} +55 -42
- package/src/atoms/gv-relative-time/gv-relative-time.js.map +1 -0
- package/src/atoms/gv-relative-time/gv-relative-time.stories.d.ts +172 -0
- package/src/atoms/gv-relative-time/gv-relative-time.stories.js +70 -0
- package/src/atoms/gv-relative-time/gv-relative-time.stories.js.map +1 -0
- package/src/atoms/gv-relative-time/index.d.ts +1 -0
- package/src/atoms/gv-relative-time/index.js +17 -0
- package/src/atoms/gv-relative-time/index.js.map +1 -0
- package/src/atoms/{gv-select.d.ts → gv-select/gv-select.d.ts} +0 -0
- package/src/atoms/{gv-select.js → gv-select/gv-select.js} +8 -23
- package/src/atoms/gv-select/gv-select.js.map +1 -0
- package/src/atoms/gv-select/gv-select.stories.d.ts +252 -0
- package/src/atoms/gv-select/gv-select.stories.js +121 -0
- package/src/atoms/gv-select/gv-select.stories.js.map +1 -0
- package/src/atoms/gv-select/gv-select.test.d.ts +1 -0
- package/src/atoms/gv-select/gv-select.test.js +58 -0
- package/src/atoms/gv-select/gv-select.test.js.map +1 -0
- package/src/atoms/gv-select/index.d.ts +1 -0
- package/src/atoms/gv-select/index.js +17 -0
- package/src/atoms/gv-select/index.js.map +1 -0
- package/src/atoms/{gv-select-native.d.ts → gv-select-native/gv-select-native.d.ts} +4 -3
- package/src/atoms/{gv-select-native.js → gv-select-native/gv-select-native.js} +34 -34
- package/src/atoms/gv-select-native/gv-select-native.js.map +1 -0
- package/src/atoms/gv-select-native/gv-select-native.stories.d.ts +214 -0
- package/src/atoms/gv-select-native/gv-select-native.stories.js +87 -0
- package/src/atoms/gv-select-native/gv-select-native.stories.js.map +1 -0
- package/src/atoms/gv-select-native/index.d.ts +1 -0
- package/src/atoms/gv-select-native/index.js +17 -0
- package/src/atoms/gv-select-native/index.js.map +1 -0
- package/src/atoms/{gv-spinner.d.ts → gv-spinner/gv-spinner.d.ts} +0 -0
- package/src/atoms/{gv-spinner.js → gv-spinner/gv-spinner.js} +0 -0
- package/src/atoms/gv-spinner/gv-spinner.js.map +1 -0
- package/src/atoms/gv-spinner/gv-spinner.stories.d.ts +29 -0
- package/src/atoms/gv-spinner/gv-spinner.stories.js +39 -0
- package/src/atoms/gv-spinner/gv-spinner.stories.js.map +1 -0
- package/src/atoms/gv-spinner/index.d.ts +1 -0
- package/src/atoms/gv-spinner/index.js +17 -0
- package/src/atoms/gv-spinner/index.js.map +1 -0
- package/src/atoms/{gv-state.d.ts → gv-state/gv-state.d.ts} +0 -0
- package/src/atoms/{gv-state.js → gv-state/gv-state.js} +1 -1
- package/src/atoms/gv-state/gv-state.js.map +1 -0
- package/src/atoms/gv-state/gv-state.stories.d.ts +62 -0
- package/src/atoms/gv-state/gv-state.stories.js +41 -0
- package/src/atoms/gv-state/gv-state.stories.js.map +1 -0
- package/src/atoms/gv-state/index.d.ts +1 -0
- package/src/atoms/gv-state/index.js +17 -0
- package/src/atoms/gv-state/index.js.map +1 -0
- package/src/atoms/{gv-switch.d.ts → gv-switch/gv-switch.d.ts} +0 -0
- package/src/atoms/{gv-switch.js → gv-switch/gv-switch.js} +2 -2
- package/src/atoms/gv-switch/gv-switch.js.map +1 -0
- package/src/atoms/gv-switch/gv-switch.stories.d.ts +81 -0
- package/src/atoms/gv-switch/gv-switch.stories.js +52 -0
- package/src/atoms/gv-switch/gv-switch.stories.js.map +1 -0
- package/src/atoms/gv-switch/gv-switch.test.d.ts +1 -0
- package/src/atoms/gv-switch/gv-switch.test.js +66 -0
- package/src/atoms/gv-switch/gv-switch.test.js.map +1 -0
- package/src/atoms/gv-switch/index.d.ts +1 -0
- package/src/atoms/gv-switch/index.js +17 -0
- package/src/atoms/gv-switch/index.js.map +1 -0
- package/src/atoms/{gv-tag.d.ts → gv-tag/gv-tag.d.ts} +0 -0
- package/src/atoms/{gv-tag.js → gv-tag/gv-tag.js} +4 -4
- package/src/atoms/gv-tag/gv-tag.js.map +1 -0
- package/src/atoms/gv-tag/gv-tag.stories.d.ts +81 -0
- package/src/atoms/gv-tag/gv-tag.stories.js +47 -0
- package/src/atoms/gv-tag/gv-tag.stories.js.map +1 -0
- package/src/atoms/gv-tag/index.d.ts +1 -0
- package/src/atoms/gv-tag/index.js +17 -0
- package/src/atoms/gv-tag/index.js.map +1 -0
- package/src/atoms/{gv-text.d.ts → gv-text/gv-text.d.ts} +0 -0
- package/src/atoms/{gv-text.js → gv-text/gv-text.js} +3 -3
- package/src/atoms/gv-text/gv-text.js.map +1 -0
- package/src/atoms/gv-text/gv-text.stories.d.ts +138 -0
- package/src/atoms/gv-text/gv-text.stories.js +50 -0
- package/src/atoms/gv-text/gv-text.stories.js.map +1 -0
- package/src/atoms/gv-text/index.d.ts +1 -0
- package/src/atoms/gv-text/index.js +17 -0
- package/src/atoms/gv-text/index.js.map +1 -0
- package/src/charts/{gv-chart-bar.d.ts → gv-chart-bar/gv-chart-bar.d.ts} +0 -0
- package/src/charts/gv-chart-bar/gv-chart-bar.js +113 -0
- package/src/charts/gv-chart-bar/gv-chart-bar.js.map +1 -0
- package/src/charts/gv-chart-bar/gv-chart-bar.stories.d.ts +67 -0
- package/src/charts/gv-chart-bar/gv-chart-bar.stories.js +68 -0
- package/src/charts/gv-chart-bar/gv-chart-bar.stories.js.map +1 -0
- package/src/charts/gv-chart-bar/index.d.ts +1 -0
- package/src/charts/gv-chart-bar/index.js +17 -0
- package/src/charts/gv-chart-bar/index.js.map +1 -0
- package/src/charts/{gv-chart-gauge.d.ts → gv-chart-gauge/gv-chart-gauge.d.ts} +0 -0
- package/src/charts/gv-chart-gauge/gv-chart-gauge.js +96 -0
- package/src/charts/gv-chart-gauge/gv-chart-gauge.js.map +1 -0
- package/src/charts/gv-chart-gauge/gv-chart-gauge.stories.d.ts +67 -0
- package/src/charts/gv-chart-gauge/gv-chart-gauge.stories.js +121 -0
- package/src/charts/gv-chart-gauge/gv-chart-gauge.stories.js.map +1 -0
- package/src/charts/gv-chart-gauge/index.d.ts +1 -0
- package/src/charts/gv-chart-gauge/index.js +17 -0
- package/src/charts/gv-chart-gauge/index.js.map +1 -0
- package/src/charts/{gv-chart-histogram.d.ts → gv-chart-histogram/gv-chart-histogram.d.ts} +0 -0
- package/src/charts/gv-chart-histogram/gv-chart-histogram.js +90 -0
- package/src/charts/gv-chart-histogram/gv-chart-histogram.js.map +1 -0
- package/src/charts/gv-chart-histogram/gv-chart-histogram.stories.d.ts +67 -0
- package/src/charts/gv-chart-histogram/gv-chart-histogram.stories.js +81 -0
- package/src/charts/gv-chart-histogram/gv-chart-histogram.stories.js.map +1 -0
- package/src/charts/gv-chart-histogram/index.d.ts +1 -0
- package/src/charts/gv-chart-histogram/index.js +17 -0
- package/src/charts/gv-chart-histogram/index.js.map +1 -0
- package/src/charts/{gv-chart-line.d.ts → gv-chart-line/gv-chart-line.d.ts} +0 -0
- package/src/charts/gv-chart-line/gv-chart-line.js +223 -0
- package/src/charts/gv-chart-line/gv-chart-line.js.map +1 -0
- package/src/charts/gv-chart-line/gv-chart-line.stories.d.ts +124 -0
- package/src/charts/gv-chart-line/gv-chart-line.stories.js +117 -0
- package/src/charts/gv-chart-line/gv-chart-line.stories.js.map +1 -0
- package/src/charts/gv-chart-line/index.d.ts +1 -0
- package/src/charts/gv-chart-line/index.js +17 -0
- package/src/charts/gv-chart-line/index.js.map +1 -0
- package/src/charts/{gv-chart-map.d.ts → gv-chart-map/gv-chart-map.d.ts} +0 -0
- package/src/charts/gv-chart-map/gv-chart-map.js +123 -0
- package/src/charts/gv-chart-map/gv-chart-map.js.map +1 -0
- package/src/charts/gv-chart-map/gv-chart-map.stories.d.ts +124 -0
- package/src/charts/gv-chart-map/gv-chart-map.stories.js +104 -0
- package/src/charts/gv-chart-map/gv-chart-map.stories.js.map +1 -0
- package/src/charts/gv-chart-map/index.d.ts +1 -0
- package/src/charts/gv-chart-map/index.js +17 -0
- package/src/charts/gv-chart-map/index.js.map +1 -0
- package/src/charts/{gv-chart-pie.d.ts → gv-chart-pie/gv-chart-pie.d.ts} +0 -0
- package/src/charts/gv-chart-pie/gv-chart-pie.js +101 -0
- package/src/charts/gv-chart-pie/gv-chart-pie.js.map +1 -0
- package/src/charts/gv-chart-pie/gv-chart-pie.stories.d.ts +86 -0
- package/src/charts/gv-chart-pie/gv-chart-pie.stories.js +90 -0
- package/src/charts/gv-chart-pie/gv-chart-pie.stories.js.map +1 -0
- package/src/charts/gv-chart-pie/index.d.ts +1 -0
- package/src/charts/gv-chart-pie/index.js +17 -0
- package/src/charts/gv-chart-pie/index.js.map +1 -0
- package/src/lib/cron-expression.js +1 -1
- package/src/lib/cron-expression.js.map +1 -1
- package/src/lib/cron-expression.test.d.ts +1 -0
- package/src/lib/cron-expression.test.js +29 -0
- package/src/lib/cron-expression.test.js.map +1 -0
- package/src/lib/events.js +1 -6
- package/src/lib/events.js.map +1 -1
- package/src/lib/i18n.d.ts +1 -1
- package/src/lib/i18n.js +2 -2
- package/src/lib/i18n.js.map +1 -1
- package/src/lib/utils.test.d.ts +1 -0
- package/src/lib/utils.test.js +81 -0
- package/src/lib/utils.test.js.map +1 -0
- package/src/mixins/chart-element.js +26 -18
- package/src/mixins/chart-element.js.map +1 -1
- package/src/mixins/item-resource.js +2 -7
- package/src/mixins/item-resource.js.map +1 -1
- package/src/mixins/keyboard-element.d.ts +3 -1
- package/src/mixins/keyboard-element.js +10 -6
- package/src/mixins/keyboard-element.js.map +1 -1
- package/src/mixins/update-after-browser.js +17 -3
- package/src/mixins/update-after-browser.js.map +1 -1
- package/src/mixins/with-resize-observer.js +29 -15
- package/src/mixins/with-resize-observer.js.map +1 -1
- package/src/molecules/{gv-card.d.ts → gv-card/gv-card.d.ts} +0 -0
- package/src/molecules/{gv-card.js → gv-card/gv-card.js} +6 -6
- package/src/molecules/gv-card/gv-card.js.map +1 -0
- package/src/molecules/gv-card/gv-card.stories.d.ts +81 -0
- package/src/molecules/gv-card/gv-card.stories.js +70 -0
- package/src/molecules/gv-card/gv-card.stories.js.map +1 -0
- package/src/molecules/gv-card/index.d.ts +1 -0
- package/src/molecules/gv-card/index.js +17 -0
- package/src/molecules/gv-card/index.js.map +1 -0
- package/src/molecules/{gv-card-full.d.ts → gv-card-full/gv-card-full.d.ts} +16 -0
- package/src/molecules/{gv-card-full.js → gv-card-full/gv-card-full.js} +12 -12
- package/src/molecules/gv-card-full/gv-card-full.js.map +1 -0
- package/src/molecules/gv-card-full/gv-card-full.stories.d.ts +100 -0
- package/src/molecules/gv-card-full/gv-card-full.stories.js +114 -0
- package/src/molecules/gv-card-full/gv-card-full.stories.js.map +1 -0
- package/src/molecules/gv-card-full/index.d.ts +1 -0
- package/src/molecules/gv-card-full/index.js +17 -0
- package/src/molecules/gv-card-full/index.js.map +1 -0
- package/src/molecules/{gv-card-list.d.ts → gv-card-list/gv-card-list.d.ts} +0 -0
- package/src/molecules/{gv-card-list.js → gv-card-list/gv-card-list.js} +3 -3
- package/src/molecules/gv-card-list/gv-card-list.js.map +1 -0
- package/src/molecules/gv-card-list/gv-card-list.stories.d.ts +81 -0
- package/src/molecules/gv-card-list/gv-card-list.stories.js +76 -0
- package/src/molecules/gv-card-list/gv-card-list.stories.js.map +1 -0
- package/src/molecules/gv-card-list/index.d.ts +1 -0
- package/src/molecules/gv-card-list/index.js +17 -0
- package/src/molecules/gv-card-list/index.js.map +1 -0
- package/src/molecules/{gv-category.d.ts → gv-category/gv-category.d.ts} +0 -0
- package/src/molecules/{gv-category.js → gv-category/gv-category.js} +4 -4
- package/src/molecules/gv-category/gv-category.js.map +1 -0
- package/src/molecules/gv-category/gv-category.stories.d.ts +81 -0
- package/src/molecules/gv-category/gv-category.stories.js +59 -0
- package/src/molecules/gv-category/gv-category.stories.js.map +1 -0
- package/src/molecules/gv-category/index.d.ts +1 -0
- package/src/molecules/gv-category/index.js +17 -0
- package/src/molecules/gv-category/index.js.map +1 -0
- package/src/molecules/{gv-category-list.d.ts → gv-category-list/gv-category-list.d.ts} +1 -1
- package/src/molecules/{gv-category-list.js → gv-category-list/gv-category-list.js} +2 -2
- package/src/molecules/gv-category-list/gv-category-list.js.map +1 -0
- package/src/molecules/gv-category-list/gv-category-list.stories.d.ts +86 -0
- package/src/molecules/gv-category-list/gv-category-list.stories.js +92 -0
- package/src/molecules/gv-category-list/gv-category-list.stories.js.map +1 -0
- package/src/molecules/gv-category-list/index.d.ts +1 -0
- package/src/molecules/gv-category-list/index.js +17 -0
- package/src/molecules/gv-category-list/index.js.map +1 -0
- package/src/molecules/{gv-code.d.ts → gv-code/gv-code.d.ts} +2 -24
- package/src/molecules/{gv-code.js → gv-code/gv-code.js} +73 -60
- package/src/molecules/gv-code/gv-code.js.map +1 -0
- package/src/molecules/gv-code/gv-code.stories.d.ts +214 -0
- package/src/molecules/gv-code/gv-code.stories.js +280 -0
- package/src/molecules/gv-code/gv-code.stories.js.map +1 -0
- package/src/molecules/gv-code/gv-code.test.d.ts +1 -0
- package/src/molecules/gv-code/gv-code.test.js +106 -0
- package/src/molecules/gv-code/gv-code.test.js.map +1 -0
- package/src/molecules/gv-code/index.d.ts +1 -0
- package/src/molecules/gv-code/index.js +17 -0
- package/src/molecules/gv-code/index.js.map +1 -0
- package/src/molecules/{gv-confirm.d.ts → gv-confirm/gv-confirm.d.ts} +1 -1
- package/src/molecules/{gv-confirm.js → gv-confirm/gv-confirm.js} +5 -5
- package/src/molecules/gv-confirm/gv-confirm.js.map +1 -0
- package/src/molecules/gv-confirm/gv-confirm.stories.d.ts +100 -0
- package/src/molecules/gv-confirm/gv-confirm.stories.js +64 -0
- package/src/molecules/gv-confirm/gv-confirm.stories.js.map +1 -0
- package/src/molecules/gv-confirm/index.d.ts +1 -0
- package/src/molecules/gv-confirm/index.js +17 -0
- package/src/molecules/gv-confirm/index.js.map +1 -0
- package/src/molecules/{gv-cron-editor.d.ts → gv-cron-editor/gv-cron-editor.d.ts} +0 -0
- package/src/molecules/{gv-cron-editor.js → gv-cron-editor/gv-cron-editor.js} +28 -24
- package/src/molecules/gv-cron-editor/gv-cron-editor.js.map +1 -0
- package/src/molecules/gv-cron-editor/gv-cron-editor.stories.d.ts +67 -0
- package/src/molecules/gv-cron-editor/gv-cron-editor.stories.js +39 -0
- package/src/molecules/gv-cron-editor/gv-cron-editor.stories.js.map +1 -0
- package/src/molecules/gv-cron-editor/gv-cron-editor.test.d.ts +1 -0
- package/src/molecules/gv-cron-editor/gv-cron-editor.test.js +38 -0
- package/src/molecules/gv-cron-editor/gv-cron-editor.test.js.map +1 -0
- package/src/molecules/gv-cron-editor/index.d.ts +1 -0
- package/src/molecules/gv-cron-editor/index.js +17 -0
- package/src/molecules/gv-cron-editor/index.js.map +1 -0
- package/src/molecules/{gv-dropdown-menu.d.ts → gv-dropdown-menu/gv-dropdown-menu.d.ts} +0 -0
- package/src/molecules/{gv-dropdown-menu.js → gv-dropdown-menu/gv-dropdown-menu.js} +0 -0
- package/src/molecules/gv-dropdown-menu/gv-dropdown-menu.js.map +1 -0
- package/src/molecules/gv-dropdown-menu/gv-dropdown-menu.stories.d.ts +24 -0
- package/src/molecules/gv-dropdown-menu/gv-dropdown-menu.stories.js +39 -0
- package/src/molecules/gv-dropdown-menu/gv-dropdown-menu.stories.js.map +1 -0
- package/src/molecules/gv-dropdown-menu/index.d.ts +1 -0
- package/src/molecules/gv-dropdown-menu/index.js +17 -0
- package/src/molecules/gv-dropdown-menu/index.js.map +1 -0
- package/src/molecules/{gv-expandable.d.ts → gv-expandable/gv-expandable.d.ts} +0 -0
- package/src/molecules/{gv-expandable.js → gv-expandable/gv-expandable.js} +2 -2
- package/src/molecules/gv-expandable/gv-expandable.js.map +1 -0
- package/src/molecules/gv-expandable/gv-expandable.stories.d.ts +62 -0
- package/src/molecules/gv-expandable/gv-expandable.stories.js +65 -0
- package/src/molecules/gv-expandable/gv-expandable.stories.js.map +1 -0
- package/src/molecules/gv-expandable/index.d.ts +1 -0
- package/src/molecules/gv-expandable/index.js +17 -0
- package/src/molecules/gv-expandable/index.js.map +1 -0
- package/src/molecules/{gv-expression-language.d.ts → gv-expression-language/gv-expression-language.d.ts} +2 -2
- package/src/molecules/{gv-expression-language.js → gv-expression-language/gv-expression-language.js} +3 -6
- package/src/molecules/gv-expression-language/gv-expression-language.js.map +1 -0
- package/src/molecules/gv-expression-language/gv-expression-language.stories.d.ts +252 -0
- package/src/molecules/gv-expression-language/gv-expression-language.stories.js +310 -0
- package/src/molecules/gv-expression-language/gv-expression-language.stories.js.map +1 -0
- package/src/molecules/gv-expression-language/gv-expression-language.test.d.ts +1 -0
- package/src/molecules/gv-expression-language/gv-expression-language.test.js +92 -0
- package/src/molecules/gv-expression-language/gv-expression-language.test.js.map +1 -0
- package/src/molecules/gv-expression-language/index.d.ts +1 -0
- package/src/molecules/gv-expression-language/index.js +17 -0
- package/src/molecules/gv-expression-language/index.js.map +1 -0
- package/src/molecules/{gv-identity-picture.d.ts → gv-identity-picture/gv-identity-picture.d.ts} +0 -0
- package/src/molecules/{gv-identity-picture.js → gv-identity-picture/gv-identity-picture.js} +2 -2
- package/src/molecules/gv-identity-picture/gv-identity-picture.js.map +1 -0
- package/src/molecules/gv-identity-picture/gv-identity-picture.stories.d.ts +119 -0
- package/src/molecules/gv-identity-picture/gv-identity-picture.stories.js +50 -0
- package/src/molecules/gv-identity-picture/gv-identity-picture.stories.js.map +1 -0
- package/src/molecules/gv-identity-picture/index.d.ts +1 -0
- package/src/molecules/gv-identity-picture/index.js +17 -0
- package/src/molecules/gv-identity-picture/index.js.map +1 -0
- package/src/molecules/{gv-list.d.ts → gv-list/gv-list.d.ts} +1 -0
- package/src/molecules/{gv-list.js → gv-list/gv-list.js} +7 -13
- package/src/molecules/gv-list/gv-list.js.map +1 -0
- package/src/molecules/gv-list/gv-list.stories.d.ts +100 -0
- package/src/molecules/gv-list/gv-list.stories.js +56 -0
- package/src/molecules/gv-list/gv-list.stories.js.map +1 -0
- package/src/molecules/gv-list/index.d.ts +1 -0
- package/src/molecules/gv-list/index.js +17 -0
- package/src/molecules/gv-list/index.js.map +1 -0
- package/src/molecules/{gv-metrics.d.ts → gv-metrics/gv-metrics.d.ts} +0 -0
- package/src/molecules/{gv-metrics.js → gv-metrics/gv-metrics.js} +5 -5
- package/src/molecules/gv-metrics/gv-metrics.js.map +1 -0
- package/src/molecules/gv-metrics/gv-metrics.stories.d.ts +138 -0
- package/src/molecules/gv-metrics/gv-metrics.stories.js +79 -0
- package/src/molecules/gv-metrics/gv-metrics.stories.js.map +1 -0
- package/src/molecules/gv-metrics/index.d.ts +1 -0
- package/src/molecules/gv-metrics/index.js +17 -0
- package/src/molecules/gv-metrics/index.js.map +1 -0
- package/src/molecules/{gv-modal.d.ts → gv-modal/gv-modal.d.ts} +0 -0
- package/src/molecules/{gv-modal.js → gv-modal/gv-modal.js} +2 -2
- package/src/molecules/gv-modal/gv-modal.js.map +1 -0
- package/src/molecules/gv-modal/gv-modal.stories.d.ts +34 -0
- package/src/molecules/gv-modal/gv-modal.stories.js +81 -0
- package/src/molecules/gv-modal/gv-modal.stories.js.map +1 -0
- package/src/molecules/gv-modal/index.d.ts +1 -0
- package/src/molecules/gv-modal/index.js +17 -0
- package/src/molecules/gv-modal/index.js.map +1 -0
- package/src/molecules/{gv-nav.d.ts → gv-nav/gv-nav.d.ts} +0 -0
- package/src/molecules/{gv-nav.js → gv-nav/gv-nav.js} +3 -3
- package/src/molecules/gv-nav/gv-nav.js.map +1 -0
- package/src/molecules/gv-nav/gv-nav.stories.d.ts +43 -0
- package/src/molecules/gv-nav/gv-nav.stories.js +45 -0
- package/src/molecules/gv-nav/gv-nav.stories.js.map +1 -0
- package/src/molecules/gv-nav/index.d.ts +1 -0
- package/src/molecules/gv-nav/index.js +17 -0
- package/src/molecules/gv-nav/index.js.map +1 -0
- package/src/molecules/{gv-option.d.ts → gv-option/gv-option.d.ts} +0 -0
- package/src/molecules/{gv-option.js → gv-option/gv-option.js} +19 -5
- package/src/molecules/gv-option/gv-option.js.map +1 -0
- package/src/molecules/gv-option/gv-option.stories.d.ts +119 -0
- package/src/molecules/gv-option/gv-option.stories.js +93 -0
- package/src/molecules/gv-option/gv-option.stories.js.map +1 -0
- package/src/molecules/gv-option/index.d.ts +1 -0
- package/src/molecules/gv-option/index.js +17 -0
- package/src/molecules/gv-option/index.js.map +1 -0
- package/src/molecules/{gv-plans.d.ts → gv-plans/gv-plans.d.ts} +0 -0
- package/src/molecules/{gv-plans.js → gv-plans/gv-plans.js} +7 -7
- package/src/molecules/gv-plans/gv-plans.js.map +1 -0
- package/src/molecules/gv-plans/gv-plans.stories.d.ts +119 -0
- package/src/molecules/gv-plans/gv-plans.stories.js +125 -0
- package/src/molecules/gv-plans/gv-plans.stories.js.map +1 -0
- package/src/molecules/gv-plans/index.d.ts +1 -0
- package/src/molecules/gv-plans/index.js +17 -0
- package/src/molecules/gv-plans/index.js.map +1 -0
- package/src/molecules/{gv-popover.d.ts → gv-popover/gv-popover.d.ts} +0 -0
- package/src/molecules/{gv-popover.js → gv-popover/gv-popover.js} +0 -0
- package/src/molecules/gv-popover/gv-popover.js.map +1 -0
- package/src/molecules/gv-popover/gv-popover.stories.d.ts +105 -0
- package/src/molecules/gv-popover/gv-popover.stories.js +151 -0
- package/src/molecules/gv-popover/gv-popover.stories.js.map +1 -0
- package/src/molecules/gv-popover/index.d.ts +1 -0
- package/src/molecules/gv-popover/index.js +17 -0
- package/src/molecules/gv-popover/index.js.map +1 -0
- package/src/molecules/{gv-promote.d.ts → gv-promote/gv-promote.d.ts} +0 -0
- package/src/molecules/{gv-promote.js → gv-promote/gv-promote.js} +10 -13
- package/src/molecules/gv-promote/gv-promote.js.map +1 -0
- package/src/molecules/gv-promote/gv-promote.stories.d.ts +233 -0
- package/src/molecules/gv-promote/gv-promote.stories.js +128 -0
- package/src/molecules/gv-promote/gv-promote.stories.js.map +1 -0
- package/src/molecules/gv-promote/index.d.ts +1 -0
- package/src/molecules/gv-promote/index.js +17 -0
- package/src/molecules/gv-promote/index.js.map +1 -0
- package/src/molecules/{gv-rating.d.ts → gv-rating/gv-rating.d.ts} +0 -0
- package/src/molecules/{gv-rating.js → gv-rating/gv-rating.js} +3 -3
- package/src/molecules/gv-rating/gv-rating.js.map +1 -0
- package/src/molecules/gv-rating/gv-rating.stories.d.ts +81 -0
- package/src/molecules/gv-rating/gv-rating.stories.js +43 -0
- package/src/molecules/gv-rating/gv-rating.stories.js.map +1 -0
- package/src/molecules/gv-rating/index.d.ts +1 -0
- package/src/molecules/gv-rating/index.js +17 -0
- package/src/molecules/gv-rating/index.js.map +1 -0
- package/src/molecules/{gv-rating-list.d.ts → gv-rating-list/gv-rating-list.d.ts} +0 -0
- package/src/molecules/{gv-rating-list.js → gv-rating-list/gv-rating-list.js} +8 -8
- package/src/molecules/gv-rating-list/gv-rating-list.js.map +1 -0
- package/src/molecules/gv-rating-list/gv-rating-list.stories.d.ts +138 -0
- package/src/molecules/gv-rating-list/gv-rating-list.stories.js +78 -0
- package/src/molecules/gv-rating-list/gv-rating-list.stories.js.map +1 -0
- package/src/molecules/gv-rating-list/index.d.ts +1 -0
- package/src/molecules/gv-rating-list/index.js +17 -0
- package/src/molecules/gv-rating-list/index.js.map +1 -0
- package/src/molecules/{gv-row.d.ts → gv-row/gv-row.d.ts} +0 -0
- package/src/molecules/{gv-row.js → gv-row/gv-row.js} +8 -10
- package/src/molecules/{gv-row.js.map → gv-row/gv-row.js.map} +1 -1
- package/src/molecules/gv-row/gv-row.stories.d.ts +100 -0
- package/src/molecules/gv-row/gv-row.stories.js +86 -0
- package/src/molecules/gv-row/gv-row.stories.js.map +1 -0
- package/src/molecules/gv-row/index.d.ts +1 -0
- package/src/molecules/gv-row/index.js +17 -0
- package/src/molecules/gv-row/index.js.map +1 -0
- package/src/molecules/{gv-row-expandable.d.ts → gv-row-expandable/gv-row-expandable.d.ts} +1 -1
- package/src/molecules/{gv-row-expandable.js → gv-row-expandable/gv-row-expandable.js} +1 -1
- package/src/molecules/gv-row-expandable/gv-row-expandable.js.map +1 -0
- package/src/molecules/gv-row-expandable/gv-row-expandable.stories.d.ts +62 -0
- package/src/molecules/gv-row-expandable/gv-row-expandable.stories.js +110 -0
- package/src/molecules/gv-row-expandable/gv-row-expandable.stories.js.map +1 -0
- package/src/molecules/gv-row-expandable/index.d.ts +1 -0
- package/src/molecules/gv-row-expandable/index.js +17 -0
- package/src/molecules/gv-row-expandable/index.js.map +1 -0
- package/src/molecules/{gv-stats.d.ts → gv-stats/gv-stats.d.ts} +0 -0
- package/src/molecules/{gv-stats.js → gv-stats/gv-stats.js} +4 -4
- package/src/molecules/gv-stats/gv-stats.js.map +1 -0
- package/src/molecules/gv-stats/gv-stats.stories.d.ts +119 -0
- package/src/molecules/gv-stats/gv-stats.stories.js +109 -0
- package/src/molecules/gv-stats/gv-stats.stories.js.map +1 -0
- package/src/molecules/gv-stats/index.d.ts +1 -0
- package/src/molecules/gv-stats/index.js +17 -0
- package/src/molecules/gv-stats/index.js.map +1 -0
- package/src/molecules/{gv-stepper.d.ts → gv-stepper/gv-stepper.d.ts} +0 -0
- package/src/molecules/{gv-stepper.js → gv-stepper/gv-stepper.js} +30 -16
- package/src/molecules/gv-stepper/gv-stepper.js.map +1 -0
- package/src/molecules/gv-stepper/gv-stepper.stories.d.ts +105 -0
- package/src/molecules/gv-stepper/gv-stepper.stories.js +58 -0
- package/src/molecules/gv-stepper/gv-stepper.stories.js.map +1 -0
- package/src/molecules/gv-stepper/index.d.ts +1 -0
- package/src/molecules/gv-stepper/index.js +17 -0
- package/src/molecules/gv-stepper/index.js.map +1 -0
- package/src/molecules/{gv-table.d.ts → gv-table/gv-table.d.ts} +0 -0
- package/src/molecules/{gv-table.js → gv-table/gv-table.js} +20 -26
- package/src/molecules/gv-table/gv-table.js.map +1 -0
- package/src/molecules/gv-table/gv-table.stories.d.ts +176 -0
- package/src/molecules/gv-table/gv-table.stories.js +207 -0
- package/src/molecules/gv-table/gv-table.stories.js.map +1 -0
- package/src/molecules/gv-table/index.d.ts +1 -0
- package/src/molecules/gv-table/index.js +17 -0
- package/src/molecules/gv-table/index.js.map +1 -0
- package/src/molecules/{gv-tree.d.ts → gv-tree/gv-tree.d.ts} +0 -0
- package/src/molecules/{gv-tree.js → gv-tree/gv-tree.js} +3 -3
- package/src/molecules/gv-tree/gv-tree.js.map +1 -0
- package/src/molecules/gv-tree/gv-tree.stories.d.ts +43 -0
- package/src/molecules/gv-tree/gv-tree.stories.js +60 -0
- package/src/molecules/gv-tree/gv-tree.stories.js.map +1 -0
- package/src/molecules/gv-tree/gv-tree.test.d.ts +1 -0
- package/src/molecules/gv-tree/gv-tree.test.js +71 -0
- package/src/molecules/gv-tree/gv-tree.test.js.map +1 -0
- package/src/molecules/gv-tree/index.d.ts +1 -0
- package/src/molecules/gv-tree/index.js +17 -0
- package/src/molecules/gv-tree/index.js.map +1 -0
- package/src/organisms/{gv-documentation.d.ts → gv-documentation/gv-documentation.d.ts} +0 -0
- package/src/organisms/{gv-documentation.js → gv-documentation/gv-documentation.js} +3 -3
- package/src/organisms/gv-documentation/gv-documentation.js.map +1 -0
- package/src/organisms/gv-documentation/gv-documentation.stories.d.ts +105 -0
- package/src/organisms/gv-documentation/gv-documentation.stories.js +61 -0
- package/src/organisms/gv-documentation/gv-documentation.stories.js.map +1 -0
- package/src/organisms/gv-documentation/index.d.ts +1 -0
- package/src/organisms/gv-documentation/index.js +17 -0
- package/src/organisms/gv-documentation/index.js.map +1 -0
- package/src/organisms/{gv-header.d.ts → gv-header/gv-header.d.ts} +0 -0
- package/src/organisms/{gv-header.js → gv-header/gv-header.js} +8 -8
- package/src/organisms/gv-header/gv-header.js.map +1 -0
- package/src/organisms/gv-header/gv-header.stories.d.ts +157 -0
- package/src/organisms/gv-header/gv-header.stories.js +89 -0
- package/src/organisms/gv-header/gv-header.stories.js.map +1 -0
- package/src/organisms/gv-header/index.d.ts +1 -0
- package/src/organisms/gv-header/index.js +17 -0
- package/src/organisms/gv-header/index.js.map +1 -0
- package/src/organisms/{gv-http-client.d.ts → gv-http-client/gv-http-client.d.ts} +2 -18
- package/src/organisms/{gv-http-client.js → gv-http-client/gv-http-client.js} +14 -15
- package/src/organisms/gv-http-client/gv-http-client.js.map +1 -0
- package/src/organisms/gv-http-client/gv-http-client.stories.d.ts +52 -0
- package/src/organisms/gv-http-client/gv-http-client.stories.js +55 -0
- package/src/organisms/gv-http-client/gv-http-client.stories.js.map +1 -0
- package/src/organisms/gv-http-client/index.d.ts +1 -0
- package/src/organisms/gv-http-client/index.js +17 -0
- package/src/organisms/gv-http-client/index.js.map +1 -0
- package/src/organisms/{gv-menu.d.ts → gv-menu/gv-menu.d.ts} +0 -0
- package/src/organisms/{gv-menu.js → gv-menu/gv-menu.js} +3 -3
- package/src/organisms/gv-menu/gv-menu.js.map +1 -0
- package/src/organisms/gv-menu/gv-menu.stories.d.ts +176 -0
- package/src/organisms/gv-menu/gv-menu.stories.js +165 -0
- package/src/organisms/gv-menu/gv-menu.stories.js.map +1 -0
- package/src/organisms/gv-menu/index.d.ts +1 -0
- package/src/organisms/gv-menu/index.js +17 -0
- package/src/organisms/gv-menu/index.js.map +1 -0
- package/src/organisms/{gv-newsletter-subscription.d.ts → gv-newsletter-subscription/gv-newsletter-subscription.d.ts} +0 -0
- package/src/organisms/{gv-newsletter-subscription.js → gv-newsletter-subscription/gv-newsletter-subscription.js} +1 -1
- package/src/organisms/gv-newsletter-subscription/gv-newsletter-subscription.js.map +1 -0
- package/src/organisms/gv-newsletter-subscription/gv-newsletter-subscription.stories.d.ts +100 -0
- package/src/organisms/gv-newsletter-subscription/gv-newsletter-subscription.stories.js +40 -0
- package/src/organisms/gv-newsletter-subscription/gv-newsletter-subscription.stories.js.map +1 -0
- package/src/organisms/gv-newsletter-subscription/index.d.ts +1 -0
- package/src/organisms/gv-newsletter-subscription/index.js +17 -0
- package/src/organisms/gv-newsletter-subscription/index.js.map +1 -0
- package/src/organisms/gv-pagination/gv-pagination.d.ts +54 -0
- package/src/organisms/gv-pagination/gv-pagination.js +320 -0
- package/src/organisms/gv-pagination/gv-pagination.js.map +1 -0
- package/src/organisms/gv-pagination/gv-pagination.stories.d.ts +158 -0
- package/src/organisms/gv-pagination/gv-pagination.stories.js +85 -0
- package/src/organisms/gv-pagination/gv-pagination.stories.js.map +1 -0
- package/src/organisms/gv-pagination/index.d.ts +2 -0
- package/src/organisms/gv-pagination/index.js +18 -0
- package/src/organisms/gv-pagination/index.js.map +1 -0
- package/src/organisms/gv-pagination/model/index.d.ts +2 -0
- package/src/organisms/gv-pagination/model/index.js +18 -0
- package/src/organisms/gv-pagination/model/index.js.map +1 -0
- package/src/organisms/gv-pagination/model/paginate-detail.d.ts +4 -0
- package/src/organisms/gv-pagination/model/paginate-detail.js +2 -0
- package/src/organisms/gv-pagination/model/paginate-detail.js.map +1 -0
- package/src/organisms/gv-pagination/model/pagination.d.ts +9 -0
- package/src/organisms/gv-pagination/model/pagination.js +2 -0
- package/src/organisms/gv-pagination/model/pagination.js.map +1 -0
- package/src/organisms/{gv-properties.d.ts → gv-properties/gv-properties.d.ts} +4 -4
- package/src/organisms/{gv-properties.js → gv-properties/gv-properties.js} +20 -27
- package/src/organisms/gv-properties/gv-properties.js.map +1 -0
- package/src/organisms/gv-properties/gv-properties.stories.d.ts +81 -0
- package/src/organisms/gv-properties/gv-properties.stories.js +58 -0
- package/src/organisms/gv-properties/gv-properties.stories.js.map +1 -0
- package/src/organisms/gv-properties/gv-properties.test.d.ts +1 -0
- package/src/organisms/gv-properties/gv-properties.test.js +50 -0
- package/src/organisms/gv-properties/gv-properties.test.js.map +1 -0
- package/src/organisms/gv-properties/index.d.ts +1 -0
- package/src/organisms/gv-properties/index.js +17 -0
- package/src/organisms/gv-properties/index.js.map +1 -0
- package/src/organisms/{gv-resizable-views.d.ts → gv-resizable-views/gv-resizable-views.d.ts} +0 -0
- package/src/organisms/{gv-resizable-views.js → gv-resizable-views/gv-resizable-views.js} +1 -1
- package/src/organisms/gv-resizable-views/gv-resizable-views.js.map +1 -0
- package/src/organisms/gv-resizable-views/gv-resizable-views.stories.d.ts +43 -0
- package/src/organisms/gv-resizable-views/gv-resizable-views.stories.js +51 -0
- package/src/organisms/gv-resizable-views/gv-resizable-views.stories.js.map +1 -0
- package/src/organisms/gv-resizable-views/index.d.ts +1 -0
- package/src/organisms/gv-resizable-views/index.js +17 -0
- package/src/organisms/gv-resizable-views/index.js.map +1 -0
- package/src/organisms/{gv-resources.d.ts → gv-resources/gv-resources.d.ts} +2 -1
- package/src/organisms/{gv-resources.js → gv-resources/gv-resources.js} +32 -18
- package/src/organisms/gv-resources/gv-resources.js.map +1 -0
- package/src/organisms/gv-resources/gv-resources.stories.d.ts +29 -0
- package/src/organisms/gv-resources/gv-resources.stories.js +57 -0
- package/src/organisms/gv-resources/gv-resources.stories.js.map +1 -0
- package/src/organisms/gv-resources/gv-resources.test.d.ts +1 -0
- package/src/organisms/gv-resources/gv-resources.test.js +92 -0
- package/src/organisms/gv-resources/gv-resources.test.js.map +1 -0
- package/src/organisms/gv-resources/index.d.ts +1 -0
- package/src/organisms/gv-resources/index.js +17 -0
- package/src/organisms/gv-resources/index.js.map +1 -0
- package/src/organisms/{gv-schema-form.d.ts → gv-schema-form/gv-schema-form.d.ts} +0 -0
- package/src/organisms/{gv-schema-form.js → gv-schema-form/gv-schema-form.js} +47 -29
- package/src/organisms/gv-schema-form/gv-schema-form.js.map +1 -0
- package/src/organisms/gv-schema-form/gv-schema-form.stories.d.ts +124 -0
- package/src/organisms/gv-schema-form/gv-schema-form.stories.js +333 -0
- package/src/organisms/gv-schema-form/gv-schema-form.stories.js.map +1 -0
- package/src/organisms/gv-schema-form/gv-schema-form.test.d.ts +1 -0
- package/src/organisms/gv-schema-form/gv-schema-form.test.js +533 -0
- package/src/organisms/gv-schema-form/gv-schema-form.test.js.map +1 -0
- package/src/organisms/gv-schema-form/index.d.ts +1 -0
- package/src/organisms/gv-schema-form/index.js +17 -0
- package/src/organisms/gv-schema-form/index.js.map +1 -0
- package/src/organisms/{gv-schema-form-array.d.ts → gv-schema-form-array/gv-schema-form-array.d.ts} +0 -0
- package/src/organisms/{gv-schema-form-array.js → gv-schema-form-array/gv-schema-form-array.js} +22 -8
- package/src/organisms/gv-schema-form-array/gv-schema-form-array.js.map +1 -0
- package/src/organisms/gv-schema-form-array/index.d.ts +1 -0
- package/src/organisms/gv-schema-form-array/index.js +17 -0
- package/src/organisms/gv-schema-form-array/index.js.map +1 -0
- package/src/organisms/{gv-schema-form-control.d.ts → gv-schema-form-control/gv-schema-form-control.d.ts} +1 -1
- package/src/organisms/{gv-schema-form-control.js → gv-schema-form-control/gv-schema-form-control.js} +40 -24
- package/src/organisms/gv-schema-form-control/gv-schema-form-control.js.map +1 -0
- package/src/organisms/gv-schema-form-control/index.d.ts +1 -0
- package/src/organisms/gv-schema-form-control/index.js +17 -0
- package/src/organisms/gv-schema-form-control/index.js.map +1 -0
- package/src/organisms/{gv-schema-form-control-object.d.ts → gv-schema-form-control-object/gv-schema-form-control-object.d.ts} +0 -0
- package/src/organisms/{gv-schema-form-control-object.js → gv-schema-form-control-object/gv-schema-form-control-object.js} +22 -8
- package/src/organisms/gv-schema-form-control-object/gv-schema-form-control-object.js.map +1 -0
- package/src/organisms/gv-schema-form-control-object/index.d.ts +1 -0
- package/src/organisms/gv-schema-form-control-object/index.js +17 -0
- package/src/organisms/gv-schema-form-control-object/index.js.map +1 -0
- package/src/organisms/{gv-tabs.d.ts → gv-tabs/gv-tabs.d.ts} +0 -0
- package/src/organisms/{gv-tabs.js → gv-tabs/gv-tabs.js} +3 -3
- package/src/organisms/gv-tabs/gv-tabs.js.map +1 -0
- package/src/organisms/gv-tabs/gv-tabs.stories.d.ts +62 -0
- package/src/organisms/gv-tabs/gv-tabs.stories.js +75 -0
- package/src/organisms/gv-tabs/gv-tabs.stories.js.map +1 -0
- package/src/organisms/gv-tabs/index.d.ts +1 -0
- package/src/organisms/gv-tabs/index.js +17 -0
- package/src/organisms/gv-tabs/index.js.map +1 -0
- package/src/organisms/{gv-user-menu.d.ts → gv-user-menu/gv-user-menu.d.ts} +0 -0
- package/src/organisms/{gv-user-menu.js → gv-user-menu/gv-user-menu.js} +2 -2
- package/src/organisms/gv-user-menu/gv-user-menu.js.map +1 -0
- package/src/organisms/gv-user-menu/gv-user-menu.stories.d.ts +100 -0
- package/src/organisms/gv-user-menu/gv-user-menu.stories.js +98 -0
- package/src/organisms/gv-user-menu/gv-user-menu.stories.js.map +1 -0
- package/src/organisms/gv-user-menu/index.d.ts +1 -0
- package/src/organisms/gv-user-menu/index.js +17 -0
- package/src/organisms/gv-user-menu/index.js.map +1 -0
- package/src/organisms/{gv-vertical-menu.d.ts → gv-vertical-menu/gv-vertical-menu.d.ts} +0 -0
- package/src/organisms/{gv-vertical-menu.js → gv-vertical-menu/gv-vertical-menu.js} +3 -3
- package/src/organisms/gv-vertical-menu/gv-vertical-menu.js.map +1 -0
- package/src/organisms/gv-vertical-menu/gv-vertical-menu.stories.d.ts +43 -0
- package/src/organisms/gv-vertical-menu/gv-vertical-menu.stories.js +44 -0
- package/src/organisms/gv-vertical-menu/gv-vertical-menu.stories.js.map +1 -0
- package/src/organisms/gv-vertical-menu/index.d.ts +1 -0
- package/src/organisms/gv-vertical-menu/index.js +17 -0
- package/src/organisms/gv-vertical-menu/index.js.map +1 -0
- package/src/policy-studio/{gv-flow.d.ts → gv-flow/gv-flow.d.ts} +1 -1
- package/src/policy-studio/{gv-flow.js → gv-flow/gv-flow.js} +33 -14
- package/src/policy-studio/gv-flow/gv-flow.js.map +1 -0
- package/src/policy-studio/gv-flow/gv-flow.test.d.ts +1 -0
- package/src/policy-studio/gv-flow/gv-flow.test.js +75 -0
- package/src/policy-studio/gv-flow/gv-flow.test.js.map +1 -0
- package/src/policy-studio/gv-flow/index.d.ts +1 -0
- package/src/policy-studio/gv-flow/index.js +17 -0
- package/src/policy-studio/gv-flow/index.js.map +1 -0
- package/src/policy-studio/{gv-flow-step.d.ts → gv-flow-step/gv-flow-step.d.ts} +0 -0
- package/src/policy-studio/{gv-flow-step.js → gv-flow-step/gv-flow-step.js} +5 -5
- package/src/policy-studio/gv-flow-step/gv-flow-step.js.map +1 -0
- package/src/policy-studio/gv-flow-step/index.d.ts +1 -0
- package/src/policy-studio/gv-flow-step/index.js +17 -0
- package/src/policy-studio/gv-flow-step/index.js.map +1 -0
- package/src/policy-studio/{gv-policy-studio.d.ts → gv-policy-studio/gv-policy-studio.d.ts} +5 -24
- package/src/policy-studio/{gv-policy-studio.js → gv-policy-studio/gv-policy-studio.js} +428 -381
- package/src/policy-studio/gv-policy-studio/gv-policy-studio.js.map +1 -0
- package/src/policy-studio/gv-policy-studio/gv-policy-studio.stories.d.ts +203 -0
- package/src/policy-studio/gv-policy-studio/gv-policy-studio.stories.js +371 -0
- package/src/policy-studio/gv-policy-studio/gv-policy-studio.stories.js.map +1 -0
- package/src/policy-studio/gv-policy-studio/gv-policy-studio.test.d.ts +1 -0
- package/src/policy-studio/gv-policy-studio/gv-policy-studio.test.js +362 -0
- package/src/policy-studio/gv-policy-studio/gv-policy-studio.test.js.map +1 -0
- package/src/policy-studio/gv-policy-studio/index.d.ts +1 -0
- package/src/policy-studio/gv-policy-studio/index.js +17 -0
- package/src/policy-studio/gv-policy-studio/index.js.map +1 -0
- package/src/policy-studio/{gv-policy-studio-menu.d.ts → gv-policy-studio-menu/gv-policy-studio-menu.d.ts} +0 -0
- package/src/policy-studio/{gv-policy-studio-menu.js → gv-policy-studio-menu/gv-policy-studio-menu.js} +8 -8
- package/src/policy-studio/gv-policy-studio-menu/gv-policy-studio-menu.js.map +1 -0
- package/src/policy-studio/gv-policy-studio-menu/index.d.ts +1 -0
- package/src/policy-studio/gv-policy-studio-menu/index.js +17 -0
- package/src/policy-studio/gv-policy-studio-menu/index.js.map +1 -0
- package/src/theme/{gv-theme.d.ts → gv-theme/gv-theme.d.ts} +1 -1
- package/src/theme/{gv-theme.js → gv-theme/gv-theme.js} +2 -2
- package/src/theme/gv-theme/gv-theme.js.map +1 -0
- package/src/theme/gv-theme/index.d.ts +1 -0
- package/src/theme/gv-theme/index.js +17 -0
- package/src/theme/gv-theme/index.js.map +1 -0
- package/wc/gv-pagination.d.ts +1 -1
- package/wc/gv-pagination.js +1 -1
- package/wc/gv-pagination.js.map +1 -1
- package/src/atoms/gv-autocomplete.js.map +0 -1
- package/src/atoms/gv-button.js.map +0 -1
- package/src/atoms/gv-checkbox.js.map +0 -1
- package/src/atoms/gv-date-picker-calendar.js.map +0 -1
- package/src/atoms/gv-date-picker-cell.js.map +0 -1
- package/src/atoms/gv-date-picker.js.map +0 -1
- package/src/atoms/gv-file-upload.js.map +0 -1
- package/src/atoms/gv-icon.js.map +0 -1
- package/src/atoms/gv-image.js.map +0 -1
- package/src/atoms/gv-input-message.js.map +0 -1
- package/src/atoms/gv-input.js.map +0 -1
- package/src/atoms/gv-link.js.map +0 -1
- package/src/atoms/gv-message.js.map +0 -1
- package/src/atoms/gv-metric.js.map +0 -1
- package/src/atoms/gv-relative-time.js.map +0 -1
- package/src/atoms/gv-select-native.js.map +0 -1
- package/src/atoms/gv-select.js.map +0 -1
- package/src/atoms/gv-spinner.js.map +0 -1
- package/src/atoms/gv-state.js.map +0 -1
- package/src/atoms/gv-switch.js.map +0 -1
- package/src/atoms/gv-tag.js.map +0 -1
- package/src/atoms/gv-text.js.map +0 -1
- package/src/charts/gv-chart-bar.js +0 -102
- package/src/charts/gv-chart-bar.js.map +0 -1
- package/src/charts/gv-chart-gauge.js +0 -93
- package/src/charts/gv-chart-gauge.js.map +0 -1
- package/src/charts/gv-chart-histogram.js +0 -79
- package/src/charts/gv-chart-histogram.js.map +0 -1
- package/src/charts/gv-chart-line.js +0 -219
- package/src/charts/gv-chart-line.js.map +0 -1
- package/src/charts/gv-chart-map.js +0 -112
- package/src/charts/gv-chart-map.js.map +0 -1
- package/src/charts/gv-chart-pie.js +0 -90
- package/src/charts/gv-chart-pie.js.map +0 -1
- package/src/molecules/gv-card-full.js.map +0 -1
- package/src/molecules/gv-card-list.js.map +0 -1
- package/src/molecules/gv-card.js.map +0 -1
- package/src/molecules/gv-category-list.js.map +0 -1
- package/src/molecules/gv-category.js.map +0 -1
- package/src/molecules/gv-code.js.map +0 -1
- package/src/molecules/gv-confirm.js.map +0 -1
- package/src/molecules/gv-cron-editor.js.map +0 -1
- package/src/molecules/gv-dropdown-menu.js.map +0 -1
- package/src/molecules/gv-expandable.js.map +0 -1
- package/src/molecules/gv-expression-language.js.map +0 -1
- package/src/molecules/gv-identity-picture.js.map +0 -1
- package/src/molecules/gv-list.js.map +0 -1
- package/src/molecules/gv-metrics.js.map +0 -1
- package/src/molecules/gv-modal.js.map +0 -1
- package/src/molecules/gv-nav.js.map +0 -1
- package/src/molecules/gv-option.js.map +0 -1
- package/src/molecules/gv-plans.js.map +0 -1
- package/src/molecules/gv-popover.js.map +0 -1
- package/src/molecules/gv-promote.js.map +0 -1
- package/src/molecules/gv-rating-list.js.map +0 -1
- package/src/molecules/gv-rating.js.map +0 -1
- package/src/molecules/gv-row-expandable.js.map +0 -1
- package/src/molecules/gv-stats.js.map +0 -1
- package/src/molecules/gv-stepper.js.map +0 -1
- package/src/molecules/gv-table.js.map +0 -1
- package/src/molecules/gv-tree.js.map +0 -1
- package/src/organisms/gv-documentation.js.map +0 -1
- package/src/organisms/gv-header.js.map +0 -1
- package/src/organisms/gv-http-client.js.map +0 -1
- package/src/organisms/gv-menu.js.map +0 -1
- package/src/organisms/gv-newsletter-subscription.js.map +0 -1
- package/src/organisms/gv-pagination.d.ts +0 -63
- package/src/organisms/gv-pagination.js +0 -180
- package/src/organisms/gv-pagination.js.map +0 -1
- package/src/organisms/gv-properties.js.map +0 -1
- package/src/organisms/gv-resizable-views.js.map +0 -1
- package/src/organisms/gv-resources.js.map +0 -1
- package/src/organisms/gv-schema-form-array.js.map +0 -1
- package/src/organisms/gv-schema-form-control-object.js.map +0 -1
- package/src/organisms/gv-schema-form-control.js.map +0 -1
- package/src/organisms/gv-schema-form.js.map +0 -1
- package/src/organisms/gv-tabs.js.map +0 -1
- package/src/organisms/gv-user-menu.js.map +0 -1
- package/src/organisms/gv-vertical-menu.js.map +0 -1
- package/src/policy-studio/gv-flow-step.js.map +0 -1
- package/src/policy-studio/gv-flow.js.map +0 -1
- package/src/policy-studio/gv-policy-studio-menu.js.map +0 -1
- package/src/policy-studio/gv-policy-studio.js.map +0 -1
- package/src/theme/gv-theme.js.map +0 -1
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
11
|
+
var t = {};
|
|
12
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
13
|
+
t[p] = s[p];
|
|
14
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
15
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
17
|
+
t[p[i]] = s[p[i]];
|
|
18
|
+
}
|
|
19
|
+
return t;
|
|
20
|
+
};
|
|
1
21
|
/*
|
|
2
22
|
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3
23
|
*
|
|
@@ -14,25 +34,25 @@
|
|
|
14
34
|
* limitations under the License.
|
|
15
35
|
*/
|
|
16
36
|
import { css, html, LitElement } from 'lit';
|
|
17
|
-
import { methods } from '
|
|
18
|
-
import { dispatchCustomEvent } from '
|
|
19
|
-
import { i18n } from '
|
|
20
|
-
import '
|
|
21
|
-
import '
|
|
22
|
-
import '
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
25
|
-
import '
|
|
26
|
-
import '
|
|
27
|
-
import '
|
|
28
|
-
import '
|
|
29
|
-
import '
|
|
30
|
-
import '
|
|
31
|
-
import '
|
|
32
|
-
import { empty } from '
|
|
37
|
+
import { methods } from '../../lib/studio';
|
|
38
|
+
import { dispatchCustomEvent } from '../../lib/events';
|
|
39
|
+
import { i18n } from '../../lib/i18n';
|
|
40
|
+
import '../../atoms/gv-button';
|
|
41
|
+
import '../../atoms/gv-icon';
|
|
42
|
+
import '../../molecules/gv-option';
|
|
43
|
+
import '../../organisms/gv-documentation';
|
|
44
|
+
import '../../organisms/gv-resizable-views';
|
|
45
|
+
import '../../organisms/gv-schema-form';
|
|
46
|
+
import '../../organisms/gv-http-client';
|
|
47
|
+
import '../../organisms/gv-tabs';
|
|
48
|
+
import '../../molecules/gv-row';
|
|
49
|
+
import '../gv-flow';
|
|
50
|
+
import '../gv-flow-step';
|
|
51
|
+
import '../gv-policy-studio-menu';
|
|
52
|
+
import { empty } from '../../styles/empty';
|
|
33
53
|
import { cache } from 'lit/directives/cache';
|
|
34
|
-
import { deepClone, deepEqual } from '
|
|
35
|
-
import { KeyboardElement, KEYS } from '
|
|
54
|
+
import { deepClone, deepEqual } from '../../lib/utils';
|
|
55
|
+
import { KeyboardElement, KEYS } from '../../mixins/keyboard-element';
|
|
36
56
|
const FLOW_STEP_FORM_ID = 'flow-step-form';
|
|
37
57
|
/**
|
|
38
58
|
* Studio Policy component
|
|
@@ -83,7 +103,6 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
83
103
|
documentation: { type: Object },
|
|
84
104
|
flowSchema: { type: Object, attribute: 'flow-schema' },
|
|
85
105
|
configurationSchema: { type: Object, attribute: 'configuration-schema' },
|
|
86
|
-
_configurationSchema: { type: Object, attribute: false },
|
|
87
106
|
configurationInformation: { type: String, attribute: 'configuration-information' },
|
|
88
107
|
isDirty: { type: Boolean, attribute: 'dirty', reflect: true },
|
|
89
108
|
_dragPolicy: { type: Object, attribute: false },
|
|
@@ -99,7 +118,6 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
99
118
|
_flowFilter: { type: Array, attribute: false },
|
|
100
119
|
_currentAskConfirmation: { type: Boolean, attribute: false },
|
|
101
120
|
hasProperties: { type: Boolean, attribute: 'has-properties' },
|
|
102
|
-
_hasProperties: { type: Boolean, attribute: false },
|
|
103
121
|
hasResources: { type: Boolean, attribute: 'has-resources' },
|
|
104
122
|
hasPolicyFilter: { type: Boolean, attribute: 'has-policy-filter' },
|
|
105
123
|
flowsTitle: { type: String, attribute: 'flows-title' },
|
|
@@ -108,7 +126,6 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
108
126
|
readonly: { type: Boolean },
|
|
109
127
|
readonlyPlans: { type: Boolean, attribute: 'readonly-plans' },
|
|
110
128
|
canDebug: { type: Boolean, attribute: 'can-debug' },
|
|
111
|
-
_canDebug: { type: Boolean, attribute: false },
|
|
112
129
|
debugResponse: { type: Object, attribute: 'debug-response' },
|
|
113
130
|
hasConditionalSteps: { type: Boolean, attribute: 'has-conditional-steps' },
|
|
114
131
|
};
|
|
@@ -353,30 +370,33 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
353
370
|
this._policyFilter = [];
|
|
354
371
|
this._flowFilter = [];
|
|
355
372
|
}
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
this._tabs
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
373
|
+
willUpdate(changedProperties) {
|
|
374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
375
|
+
if (changedProperties.has('configurationSchema') && this.configurationSchema) {
|
|
376
|
+
this._tabs.splice(1, 0, { id: 'settings', title: 'Configuration', icon: 'general:settings#2' });
|
|
377
|
+
}
|
|
378
|
+
if (changedProperties.has('hasPolicyFilter') && this.hasPolicyFilter === true) {
|
|
379
|
+
this._policyFilterOptions = [
|
|
380
|
+
{ id: 'onRequest', title: 'Request', icon: 'navigation:arrow-from-left' },
|
|
381
|
+
{ id: 'onResponse', title: 'Response', icon: 'navigation:arrow-from-right' },
|
|
382
|
+
];
|
|
383
|
+
}
|
|
384
|
+
if (changedProperties.has('canDebug') && this.canDebug === true) {
|
|
385
|
+
this._tabs = [...this._tabs, { id: 'debug', title: 'Try it', icon: 'content:send' }];
|
|
386
|
+
}
|
|
387
|
+
const tabsImport = [];
|
|
388
|
+
if (changedProperties.has('hasProperties') && this.hasProperties === true) {
|
|
389
|
+
tabsImport.push(import('../../organisms/gv-properties').then(() => ({ id: 'properties', title: 'Properties', icon: 'general:settings#1' })));
|
|
390
|
+
}
|
|
391
|
+
if (changedProperties.has('hasResources') && this.hasProperties === true) {
|
|
392
|
+
tabsImport.push(import('../../organisms/gv-resources').then(() => ({ id: 'resources', title: 'Resources', icon: 'general:settings#5' })));
|
|
393
|
+
}
|
|
394
|
+
if (tabsImport.length > 0) {
|
|
395
|
+
const [...tabs] = yield Promise.all(tabsImport);
|
|
396
|
+
this._tabs = [...this._tabs, ...tabs];
|
|
372
397
|
this.requestUpdate();
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
set canDebug(value) {
|
|
377
|
-
if (value) {
|
|
378
|
-
this._tabs = [...this._tabs, { id: 'debug', title: 'Try it', icon: 'content:send' }];
|
|
379
|
-
}
|
|
398
|
+
}
|
|
399
|
+
});
|
|
380
400
|
}
|
|
381
401
|
get _flowFilterOptions() {
|
|
382
402
|
if (this.definedPlans.length > 0) {
|
|
@@ -386,22 +406,8 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
386
406
|
];
|
|
387
407
|
}
|
|
388
408
|
}
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
this._policyFilterOptions = [
|
|
392
|
-
{ id: 'onRequest', title: 'Request', icon: 'navigation:arrow-from-left' },
|
|
393
|
-
{ id: 'onResponse', title: 'Response', icon: 'navigation:arrow-from-right' },
|
|
394
|
-
];
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
set configurationSchema(value) {
|
|
398
|
-
if (value) {
|
|
399
|
-
this._tabs.splice(1, 0, { id: 'settings', title: 'Configuration', icon: 'general:settings#2' });
|
|
400
|
-
}
|
|
401
|
-
this._configurationSchema = value;
|
|
402
|
-
}
|
|
403
|
-
get configurationSchema() {
|
|
404
|
-
return this._configurationSchema;
|
|
409
|
+
get keyboardTarget() {
|
|
410
|
+
return window;
|
|
405
411
|
}
|
|
406
412
|
onKeyboard() {
|
|
407
413
|
if (this._currentAskConfirmation == null) {
|
|
@@ -437,9 +443,9 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
437
443
|
const plans = definition.plans == null
|
|
438
444
|
? []
|
|
439
445
|
: definition.plans.map((plan) => {
|
|
440
|
-
return {
|
|
446
|
+
return Object.assign(Object.assign({}, plan), { flows: this._generatePlanFlowsId(plan) });
|
|
441
447
|
});
|
|
442
|
-
this._initialDefinition = {
|
|
448
|
+
this._initialDefinition = Object.assign(Object.assign({}, definition), { flows, resources, plans });
|
|
443
449
|
this._definition = deepClone(this._initialDefinition);
|
|
444
450
|
this.isDirty = false;
|
|
445
451
|
this._selectFirstFlow();
|
|
@@ -491,90 +497,92 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
491
497
|
_onDragEndPolicy() {
|
|
492
498
|
this.shadowRoot.querySelectorAll('gv-flow').forEach((e) => e.onDragEnd());
|
|
493
499
|
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
else {
|
|
513
|
-
_id = this._generateFlowStepId(targetFlow._id, detail.flowKey, detail.position);
|
|
514
|
-
_new = true;
|
|
515
|
-
}
|
|
516
|
-
const flowStep = { _id, _new, name, policy: policy.id, description, condition, enabled: true, configuration };
|
|
517
|
-
const sourceFlow = detail.sourceFlowId != null ? this._findFlowById(detail.sourceFlowId) : targetFlow;
|
|
518
|
-
if (detail.sourcePosition != null) {
|
|
519
|
-
if (detail.sourceFlowKey && detail.sourceFlowKey !== detail.flowKey) {
|
|
520
|
-
sourceFlow[detail.sourceFlowKey].splice(detail.sourcePosition, 1);
|
|
521
|
-
targetFlow[detail.flowKey].splice(detail.position, 0, flowStep);
|
|
522
|
-
if (this._currentFlowStep != null && this._currentFlowStep.step._id === _id) {
|
|
523
|
-
this._currentFlowStep.group = detail.flowKey;
|
|
524
|
-
// Special case for update schema after change request to response or inverse
|
|
525
|
-
const schema = this.buildSchema(this._currentFlowStep.policy);
|
|
526
|
-
await this._setCurrentFlowStep(this._currentFlowStep, schema, true);
|
|
527
|
-
this._getFlowElement(targetFlow._id).requestUpdate();
|
|
528
|
-
}
|
|
500
|
+
_onDropPolicy({ detail }) {
|
|
501
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
502
|
+
try {
|
|
503
|
+
yield this._askToValidateForms();
|
|
504
|
+
const policy = detail.policy;
|
|
505
|
+
const targetFlow = this._findFlowById(detail.flowId);
|
|
506
|
+
let name = policy.name;
|
|
507
|
+
let description = '';
|
|
508
|
+
let condition = '';
|
|
509
|
+
let configuration = {};
|
|
510
|
+
let _id;
|
|
511
|
+
let _new = false;
|
|
512
|
+
if (detail.flowStep) {
|
|
513
|
+
_id = detail.flowStep._id;
|
|
514
|
+
name = detail.flowStep.name;
|
|
515
|
+
description = detail.flowStep.description || '';
|
|
516
|
+
condition = detail.flowStep.condition || '';
|
|
517
|
+
configuration = detail.flowStep.configuration;
|
|
529
518
|
}
|
|
530
519
|
else {
|
|
531
|
-
|
|
520
|
+
_id = this._generateFlowStepId(targetFlow._id, detail.flowKey, detail.position);
|
|
521
|
+
_new = true;
|
|
522
|
+
}
|
|
523
|
+
const flowStep = { _id, _new, name, policy: policy.id, description, condition, enabled: true, configuration };
|
|
524
|
+
const sourceFlow = detail.sourceFlowId != null ? this._findFlowById(detail.sourceFlowId) : targetFlow;
|
|
525
|
+
if (detail.sourcePosition != null) {
|
|
526
|
+
if (detail.sourceFlowKey && detail.sourceFlowKey !== detail.flowKey) {
|
|
527
|
+
sourceFlow[detail.sourceFlowKey].splice(detail.sourcePosition, 1);
|
|
532
528
|
targetFlow[detail.flowKey].splice(detail.position, 0, flowStep);
|
|
533
|
-
|
|
529
|
+
if (this._currentFlowStep != null && this._currentFlowStep.step._id === _id) {
|
|
530
|
+
this._currentFlowStep.group = detail.flowKey;
|
|
531
|
+
// Special case for update schema after change request to response or inverse
|
|
532
|
+
const schema = this.buildSchema(this._currentFlowStep.policy);
|
|
533
|
+
yield this._setCurrentFlowStep(this._currentFlowStep, schema, true);
|
|
534
|
+
this._getFlowElement(targetFlow._id).requestUpdate();
|
|
535
|
+
}
|
|
534
536
|
}
|
|
535
537
|
else {
|
|
536
|
-
|
|
537
|
-
|
|
538
|
+
if (detail.position > detail.sourcePosition) {
|
|
539
|
+
targetFlow[detail.flowKey].splice(detail.position, 0, flowStep);
|
|
540
|
+
sourceFlow[detail.flowKey].splice(detail.sourcePosition, 1);
|
|
541
|
+
}
|
|
542
|
+
else {
|
|
543
|
+
sourceFlow[detail.flowKey].splice(detail.sourcePosition, 1);
|
|
544
|
+
targetFlow[detail.flowKey].splice(detail.position, 0, flowStep);
|
|
545
|
+
}
|
|
538
546
|
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
this._getFlowElement(targetFlow._id).requestUpdate();
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
else {
|
|
546
|
-
targetFlow[detail.flowKey].splice(detail.position, 0, flowStep);
|
|
547
|
-
const currentFlowForm = this._getFlowStepForm();
|
|
548
|
-
if (currentFlowForm == null || currentFlowForm.dirty !== true) {
|
|
549
|
-
let step = targetFlow[detail.flowKey][detail.position];
|
|
550
|
-
if (step == null) {
|
|
551
|
-
// When confirm lose change after drop policy
|
|
552
|
-
step = targetFlow[detail.flowKey][detail.position - 1];
|
|
547
|
+
// Force Refresh source flow element when move to other flow
|
|
548
|
+
if (targetFlow._id !== sourceFlow._id) {
|
|
549
|
+
this._getFlowElement(targetFlow._id).requestUpdate();
|
|
553
550
|
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
551
|
+
}
|
|
552
|
+
else {
|
|
553
|
+
targetFlow[detail.flowKey].splice(detail.position, 0, flowStep);
|
|
554
|
+
const currentFlowForm = this._getFlowStepForm();
|
|
555
|
+
if (currentFlowForm == null || currentFlowForm.dirty !== true) {
|
|
556
|
+
let step = targetFlow[detail.flowKey][detail.position];
|
|
557
|
+
if (step == null) {
|
|
558
|
+
// When confirm lose change after drop policy
|
|
559
|
+
step = targetFlow[detail.flowKey][detail.position - 1];
|
|
560
|
+
}
|
|
561
|
+
if (detail.cancelEdit !== true) {
|
|
562
|
+
setTimeout(() => __awaiter(this, void 0, void 0, function* () {
|
|
563
|
+
yield this._editFlowStep({ step, policy, flow: targetFlow, group: detail.flowKey });
|
|
564
|
+
this.updateComplete.then(() => {
|
|
565
|
+
const flowElement = this._getFlowElement(targetFlow._id);
|
|
566
|
+
flowElement.selectedStepId = step._id;
|
|
567
|
+
flowElement.requestUpdate();
|
|
568
|
+
});
|
|
569
|
+
}));
|
|
570
|
+
}
|
|
563
571
|
}
|
|
564
572
|
}
|
|
573
|
+
targetFlow._dirty = true;
|
|
574
|
+
sourceFlow._dirty = true;
|
|
575
|
+
this.isDirty = true;
|
|
576
|
+
this.shadowRoot.querySelectorAll('gv-flow').forEach((gvFlow) => gvFlow.removeCandidate());
|
|
577
|
+
setTimeout(() => {
|
|
578
|
+
this._dragPolicy = null;
|
|
579
|
+
this._dropPolicy = null;
|
|
580
|
+
}, 0);
|
|
565
581
|
}
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
setTimeout(() => {
|
|
571
|
-
this._dragPolicy = null;
|
|
572
|
-
this._dropPolicy = null;
|
|
573
|
-
}, 0);
|
|
574
|
-
}
|
|
575
|
-
catch (e) {
|
|
576
|
-
this._currentAskConfirmation = null;
|
|
577
|
-
}
|
|
582
|
+
catch (e) {
|
|
583
|
+
this._currentAskConfirmation = null;
|
|
584
|
+
}
|
|
585
|
+
});
|
|
578
586
|
}
|
|
579
587
|
_onDeletePolicy({ detail }) {
|
|
580
588
|
const targetFlow = this._findFlowById(detail.flowId);
|
|
@@ -606,35 +614,39 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
606
614
|
};
|
|
607
615
|
if (schema) {
|
|
608
616
|
const jsonSchema = typeof schema === 'string' ? JSON.parse(schema) : schema;
|
|
609
|
-
const properties = { commonDescription,
|
|
610
|
-
return {
|
|
617
|
+
const properties = Object.assign(Object.assign({ commonDescription }, (this.hasConditionalSteps ? { commonCondition } : {})), jsonSchema.properties);
|
|
618
|
+
return Object.assign(Object.assign({}, jsonSchema), { properties });
|
|
611
619
|
}
|
|
612
|
-
return { properties: { commonDescription,
|
|
620
|
+
return { properties: Object.assign({ commonDescription }, (this.hasConditionalSteps ? { commonCondition } : {})) };
|
|
613
621
|
}
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
622
|
+
_editFlowStep({ step, flow, policy, group }) {
|
|
623
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
624
|
+
if (step) {
|
|
625
|
+
this._currentPolicyId = policy.id;
|
|
626
|
+
const currentFlowStep = { flow, step, policy, group };
|
|
627
|
+
const schema = this.buildSchema(policy);
|
|
628
|
+
try {
|
|
629
|
+
yield this._setCurrentFlowStep(currentFlowStep, schema);
|
|
630
|
+
this._updateSelectedFlows([flow._id]);
|
|
631
|
+
this._splitMainViews();
|
|
632
|
+
if (localStorage.getItem('gv-policy-studio:keep-documentation-close') == null) {
|
|
633
|
+
this._onOpenDocumentation();
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
catch (e) {
|
|
637
|
+
this._currentAskConfirmation = null;
|
|
625
638
|
}
|
|
626
639
|
}
|
|
627
|
-
|
|
628
|
-
this.
|
|
640
|
+
else {
|
|
641
|
+
yield this._closeFlowStepForm();
|
|
642
|
+
this._maximizeTopView();
|
|
629
643
|
}
|
|
630
|
-
}
|
|
631
|
-
else {
|
|
632
|
-
await this._closeFlowStepForm();
|
|
633
|
-
this._maximizeTopView();
|
|
634
|
-
}
|
|
644
|
+
});
|
|
635
645
|
}
|
|
636
|
-
|
|
637
|
-
return this
|
|
646
|
+
_onEditFlowStep({ detail: { step, flow, policy, group } }) {
|
|
647
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
648
|
+
return this._editFlowStep({ step, flow, policy, group });
|
|
649
|
+
});
|
|
638
650
|
}
|
|
639
651
|
_getResizableViews() {
|
|
640
652
|
return this.shadowRoot.querySelector('gv-resizable-views');
|
|
@@ -657,74 +669,82 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
657
669
|
targetFlow._dirty = true;
|
|
658
670
|
this.isDirty = true;
|
|
659
671
|
}
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
672
|
+
_onCloseFlowStepForm() {
|
|
673
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
674
|
+
try {
|
|
675
|
+
yield this._closeFlowStepForm();
|
|
676
|
+
}
|
|
677
|
+
catch (err) {
|
|
678
|
+
this._currentAskConfirmation = null;
|
|
679
|
+
}
|
|
680
|
+
});
|
|
667
681
|
}
|
|
668
|
-
|
|
669
|
-
|
|
682
|
+
_closeFlowStepForm(force = false) {
|
|
683
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
684
|
+
yield this._setCurrentFlowStep(null, null, force);
|
|
685
|
+
});
|
|
670
686
|
}
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
this._currentAskConfirmation
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
// Refresh if lose changes lost current step selection
|
|
679
|
-
return this._checkCurrentFlowStep().then(() => {
|
|
687
|
+
_askToValidateForms() {
|
|
688
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
689
|
+
if (this._currentAskConfirmation == null) {
|
|
690
|
+
this._currentAskConfirmation = true;
|
|
691
|
+
return Promise.all(this._submitOrConfirmForms()).then((forms) => {
|
|
692
|
+
if (forms.filter((r) => r != null).length > 0) {
|
|
693
|
+
this._definition = this._buildDefinitionToSave();
|
|
680
694
|
this.getChildren().forEach((e) => e.requestUpdate());
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
695
|
+
// Refresh if lose changes lost current step selection
|
|
696
|
+
return this._checkCurrentFlowStep().then(() => {
|
|
697
|
+
this.getChildren().forEach((e) => e.requestUpdate());
|
|
698
|
+
return this.updateComplete.then(() => {
|
|
699
|
+
this._currentAskConfirmation = null;
|
|
700
|
+
return forms;
|
|
701
|
+
});
|
|
684
702
|
});
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
this._currentFlowStep._values
|
|
703
|
+
}
|
|
704
|
+
else {
|
|
705
|
+
this._currentAskConfirmation = null;
|
|
706
|
+
return forms;
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
throw new Error('ask already waiting');
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
_setCurrentFlowStep(currentFlowStep, flowStepSchema, force = false) {
|
|
714
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
715
|
+
if (!force) {
|
|
716
|
+
yield this._askToValidateForms();
|
|
717
|
+
}
|
|
718
|
+
const schema = deepClone(flowStepSchema);
|
|
719
|
+
if (currentFlowStep != null) {
|
|
720
|
+
const configuration = typeof currentFlowStep.step.configuration === 'string'
|
|
721
|
+
? JSON.parse(currentFlowStep.step.configuration)
|
|
722
|
+
: currentFlowStep.step.configuration;
|
|
723
|
+
const step = Object.assign(Object.assign({}, currentFlowStep.step), { configuration });
|
|
724
|
+
const _initialValues = Object.assign(Object.assign({}, step.configuration), { commonDescription: step.description, commonCondition: step.condition });
|
|
725
|
+
this._currentFlowStep = Object.assign(Object.assign({}, currentFlowStep), { step, _initialValues });
|
|
726
|
+
if (flowStepSchema && flowStepSchema.properties.scope) {
|
|
727
|
+
const _enum = schema.properties.scope.enum;
|
|
728
|
+
if (_enum.find((scope) => ['REQUEST', 'REQUEST_CONTENT', 'RESPONSE', 'RESPONSE_CONTENT'].includes(scope)) != null) {
|
|
729
|
+
const filtered = this._currentFlowStep.group === 'pre' ? ['REQUEST', 'REQUEST_CONTENT'] : ['RESPONSE', 'RESPONSE_CONTENT'];
|
|
730
|
+
schema.properties.scope.enum = _enum.filter((scope) => filtered.includes(scope));
|
|
731
|
+
const scope = this._currentFlowStep.step.configuration.scope;
|
|
732
|
+
if (scope == null || !schema.properties.scope.enum.includes(scope)) {
|
|
733
|
+
schema.properties.scope.default = schema.properties.scope.enum[0];
|
|
734
|
+
this._currentFlowStep.step.configuration.scope = schema.properties.scope.enum[0];
|
|
735
|
+
this._currentFlowStep._initialValues.scope = schema.properties.scope.enum[0];
|
|
736
|
+
if (this._currentFlowStep._values) {
|
|
737
|
+
this._currentFlowStep._values.scope = schema.properties.scope.enum[0];
|
|
738
|
+
}
|
|
719
739
|
}
|
|
720
740
|
}
|
|
721
741
|
}
|
|
722
742
|
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
743
|
+
else {
|
|
744
|
+
this._currentFlowStep = null;
|
|
745
|
+
}
|
|
746
|
+
this._flowStepSchema = schema;
|
|
747
|
+
});
|
|
728
748
|
}
|
|
729
749
|
_refresh(closeStepForm = true) {
|
|
730
750
|
if (closeStepForm) {
|
|
@@ -732,32 +752,36 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
732
752
|
}
|
|
733
753
|
this._definition = deepClone(this._definition);
|
|
734
754
|
}
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
755
|
+
_onSelectFlows({ detail }) {
|
|
756
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
757
|
+
try {
|
|
758
|
+
yield this._closeFlowStepForm();
|
|
759
|
+
this._onCloseDocumentation();
|
|
760
|
+
this._updateSelectedFlows(detail.flows);
|
|
761
|
+
this._onDesign();
|
|
762
|
+
}
|
|
763
|
+
catch (e) {
|
|
764
|
+
this._currentAskConfirmation = null;
|
|
765
|
+
}
|
|
766
|
+
});
|
|
745
767
|
}
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
this.
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
768
|
+
_onOpenDocumentationFromMenu({ detail: { policy } }) {
|
|
769
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
770
|
+
try {
|
|
771
|
+
if (this.documentation == null || this.documentation.id !== policy.id) {
|
|
772
|
+
yield this._closeFlowStepForm();
|
|
773
|
+
this._currentPolicyId = policy.id;
|
|
774
|
+
if (this.getSelectedFlow()) {
|
|
775
|
+
this._splitMainViews();
|
|
776
|
+
}
|
|
777
|
+
else {
|
|
778
|
+
this._maximizeBottomView();
|
|
779
|
+
}
|
|
780
|
+
dispatchCustomEvent(this, 'fetch-documentation', { policy });
|
|
756
781
|
}
|
|
757
|
-
dispatchCustomEvent(this, 'fetch-documentation', { policy });
|
|
758
782
|
}
|
|
759
|
-
|
|
760
|
-
|
|
783
|
+
catch (e) { }
|
|
784
|
+
});
|
|
761
785
|
}
|
|
762
786
|
_fetchDocumentation(policy) {
|
|
763
787
|
if (this.documentation == null || this.documentation.id !== policy.id) {
|
|
@@ -798,7 +822,7 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
798
822
|
this._currentFlowStep._values = detail.values;
|
|
799
823
|
}
|
|
800
824
|
_writeFlowStep(values) {
|
|
801
|
-
const { commonDescription, commonCondition,
|
|
825
|
+
const { commonDescription, commonCondition } = values, configuration = __rest(values, ["commonDescription", "commonCondition"]);
|
|
802
826
|
if (this._currentFlowStep.step._new ||
|
|
803
827
|
this._currentFlowStep.step.description !== commonDescription ||
|
|
804
828
|
this._currentFlowStep.step.condition !== commonCondition ||
|
|
@@ -816,10 +840,12 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
816
840
|
this._currentFlowStep.step = flow[this._currentFlowStep.group][position];
|
|
817
841
|
}
|
|
818
842
|
}
|
|
819
|
-
|
|
820
|
-
this
|
|
821
|
-
|
|
822
|
-
|
|
843
|
+
_onSubmitFlowStep({ detail }) {
|
|
844
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
845
|
+
this._writeFlowStep(detail.values);
|
|
846
|
+
yield this.requestUpdate('_definition');
|
|
847
|
+
this.getChildren().forEach((c) => c.requestUpdate());
|
|
848
|
+
});
|
|
823
849
|
}
|
|
824
850
|
_onCancelFlow() {
|
|
825
851
|
this._onDesign();
|
|
@@ -845,29 +871,31 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
845
871
|
_onChangeTab({ detail }) {
|
|
846
872
|
this._changeTab(detail.value);
|
|
847
873
|
}
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
else if (from === 'resources') {
|
|
856
|
-
const component = this.shadowRoot.querySelector('gv-resources');
|
|
857
|
-
if (component.dirty) {
|
|
858
|
-
return component.confirm();
|
|
874
|
+
_changeTabValidator({ from, to }) {
|
|
875
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
876
|
+
if (from === 'properties') {
|
|
877
|
+
const component = this.shadowRoot.querySelector('gv-properties');
|
|
878
|
+
if (component.dirty) {
|
|
879
|
+
return component.confirm();
|
|
880
|
+
}
|
|
859
881
|
}
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
882
|
+
else if (from === 'resources') {
|
|
883
|
+
const component = this.shadowRoot.querySelector('gv-resources');
|
|
884
|
+
if (component.dirty) {
|
|
885
|
+
return component.confirm();
|
|
886
|
+
}
|
|
864
887
|
}
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
888
|
+
else {
|
|
889
|
+
try {
|
|
890
|
+
return yield this._askToValidateForms();
|
|
891
|
+
}
|
|
892
|
+
catch (e) {
|
|
893
|
+
this._currentAskConfirmation = null;
|
|
894
|
+
throw e;
|
|
895
|
+
}
|
|
868
896
|
}
|
|
869
|
-
|
|
870
|
-
|
|
897
|
+
return Promise.resolve();
|
|
898
|
+
});
|
|
871
899
|
}
|
|
872
900
|
_changeTab(tabId) {
|
|
873
901
|
if (this._currentAskConfirmation == null) {
|
|
@@ -997,7 +1025,7 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
997
1025
|
}
|
|
998
1026
|
}
|
|
999
1027
|
if (force || e._id == null) {
|
|
1000
|
-
return {
|
|
1028
|
+
return Object.assign(Object.assign({}, e), { _id });
|
|
1001
1029
|
}
|
|
1002
1030
|
return e;
|
|
1003
1031
|
});
|
|
@@ -1010,9 +1038,14 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
1010
1038
|
...Array.from(this.shadowRoot.querySelectorAll('gv-resizable-views')),
|
|
1011
1039
|
];
|
|
1012
1040
|
}
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1041
|
+
getUpdateComplete() {
|
|
1042
|
+
const _super = Object.create(null, {
|
|
1043
|
+
getUpdateComplete: { get: () => super.getUpdateComplete }
|
|
1044
|
+
});
|
|
1045
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1046
|
+
yield _super.getUpdateComplete.call(this);
|
|
1047
|
+
yield Promise.all(this.getChildren().map((e) => e.updateComplete));
|
|
1048
|
+
});
|
|
1016
1049
|
}
|
|
1017
1050
|
shouldUpdate(changedProperties) {
|
|
1018
1051
|
// Just refresh gv-flow components
|
|
@@ -1033,7 +1066,13 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
1033
1066
|
}
|
|
1034
1067
|
_renderFlowStepForm(readonlyMode) {
|
|
1035
1068
|
const values = this._currentFlowStep._values || this._currentFlowStep._initialValues;
|
|
1036
|
-
const groups = [
|
|
1069
|
+
const groups = [
|
|
1070
|
+
{ items: ['commonDescription', 'commonCondition'] },
|
|
1071
|
+
{
|
|
1072
|
+
name: i18n('gv-policy-studio.policy-settings'),
|
|
1073
|
+
default: true,
|
|
1074
|
+
},
|
|
1075
|
+
];
|
|
1037
1076
|
return html `${cache(this._flowStepSchema && this._currentFlowStep
|
|
1038
1077
|
? html `<div class="flow-step__container">
|
|
1039
1078
|
<div class="flow-step__form">
|
|
@@ -1103,33 +1142,35 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
1103
1142
|
get definedProperties() {
|
|
1104
1143
|
return this._definition && this._definition.properties ? this._definition.properties : [];
|
|
1105
1144
|
}
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1145
|
+
_onDuplicateFlow({ detail }) {
|
|
1146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1147
|
+
try {
|
|
1148
|
+
yield this._askToValidateForms();
|
|
1149
|
+
const flowId = detail.content._id;
|
|
1150
|
+
const { plan, flows } = this._findFlowCollection(flowId);
|
|
1151
|
+
this._addFlow(flows, this._findFlowById(flowId));
|
|
1152
|
+
if (plan != null) {
|
|
1153
|
+
let planIndex = null;
|
|
1154
|
+
this.definedPlans.find((p, i) => {
|
|
1155
|
+
if (p.id === plan.id) {
|
|
1156
|
+
planIndex = i;
|
|
1157
|
+
return true;
|
|
1158
|
+
}
|
|
1159
|
+
return false;
|
|
1160
|
+
});
|
|
1161
|
+
plan.flows = flows;
|
|
1162
|
+
this.definedPlans[planIndex].flows = this._generatePlanFlowsId(plan, true);
|
|
1163
|
+
this._updateSelectedFlows([this.definedPlans[planIndex].flows[flows.length - 1]._id]);
|
|
1164
|
+
}
|
|
1165
|
+
else {
|
|
1166
|
+
this._definition.flows = this._generateFlowsId(this._definition.flows);
|
|
1167
|
+
this._updateSelectedFlows([this._definition.flows[this._definition.flows.length - 1]._id]);
|
|
1168
|
+
}
|
|
1124
1169
|
}
|
|
1125
|
-
|
|
1126
|
-
this.
|
|
1127
|
-
this._updateSelectedFlows([this._definition.flows[this._definition.flows.length - 1]._id]);
|
|
1170
|
+
catch (err) {
|
|
1171
|
+
this._currentAskConfirmation = null;
|
|
1128
1172
|
}
|
|
1129
|
-
}
|
|
1130
|
-
catch (err) {
|
|
1131
|
-
this._currentAskConfirmation = null;
|
|
1132
|
-
}
|
|
1173
|
+
});
|
|
1133
1174
|
}
|
|
1134
1175
|
_onChangeFlowState({ detail }) {
|
|
1135
1176
|
const flow = this._findFlowById(detail.content._id);
|
|
@@ -1137,38 +1178,38 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
1137
1178
|
flow._dirty = true;
|
|
1138
1179
|
this.isDirty = true;
|
|
1139
1180
|
}
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1181
|
+
_onAddFlowPlan({ detail }) {
|
|
1182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1183
|
+
try {
|
|
1184
|
+
yield this._askToValidateForms();
|
|
1185
|
+
this._addFlow(this.definedPlans[detail.planIndex].flows);
|
|
1186
|
+
this.definedPlans[detail.planIndex].flows = this._generatePlanFlowsId(this.definedPlans[detail.planIndex]);
|
|
1187
|
+
this._updateSelectedFlows([this.definedPlans[detail.planIndex].flows[this.definedPlans[detail.planIndex].flows.length - 1]._id]);
|
|
1188
|
+
}
|
|
1189
|
+
catch (err) {
|
|
1190
|
+
this._currentAskConfirmation = null;
|
|
1191
|
+
}
|
|
1192
|
+
});
|
|
1150
1193
|
}
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1194
|
+
_onAddFlow() {
|
|
1195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1196
|
+
try {
|
|
1197
|
+
yield this._askToValidateForms();
|
|
1198
|
+
this._addFlow(this._definition.flows);
|
|
1199
|
+
this._definition.flows = this._generateFlowsId(this._definition.flows);
|
|
1200
|
+
this._updateSelectedFlows([this._definition.flows[this._definition.flows.length - 1]._id]);
|
|
1201
|
+
}
|
|
1202
|
+
catch (err) {
|
|
1203
|
+
this._currentAskConfirmation = null;
|
|
1204
|
+
}
|
|
1205
|
+
});
|
|
1161
1206
|
}
|
|
1162
1207
|
_addFlow(collection, duplicate = null) {
|
|
1163
1208
|
const flow = duplicate == null
|
|
1164
1209
|
? this._createFlowFromSchema()
|
|
1165
|
-
: {
|
|
1166
|
-
...duplicate,
|
|
1167
|
-
_id: null,
|
|
1210
|
+
: Object.assign(Object.assign({}, duplicate), { _id: null,
|
|
1168
1211
|
// reset the id to avoid issue with AM that persists the ID
|
|
1169
|
-
id: null,
|
|
1170
|
-
_dirty: true,
|
|
1171
|
-
};
|
|
1212
|
+
id: null, _dirty: true });
|
|
1172
1213
|
collection.push(flow);
|
|
1173
1214
|
this.isDirty = true;
|
|
1174
1215
|
return collection;
|
|
@@ -1183,7 +1224,7 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
1183
1224
|
return this._instantiate(this.flowSchema.properties, newFlow);
|
|
1184
1225
|
}
|
|
1185
1226
|
_instantiate(propertiesDefinition, initiator = {}) {
|
|
1186
|
-
const property = {
|
|
1227
|
+
const property = Object.assign({}, initiator);
|
|
1187
1228
|
if (propertiesDefinition) {
|
|
1188
1229
|
for (const key of Object.keys(propertiesDefinition)) {
|
|
1189
1230
|
const entry = propertiesDefinition[key];
|
|
@@ -1225,34 +1266,36 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
1225
1266
|
});
|
|
1226
1267
|
return index;
|
|
1227
1268
|
}
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1269
|
+
_onReorderFlows({ detail: { plan } }) {
|
|
1270
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1271
|
+
try {
|
|
1272
|
+
yield this._askToValidateForms();
|
|
1273
|
+
this.isDirty = true;
|
|
1274
|
+
if (plan != null) {
|
|
1275
|
+
const newOrder = this._generatePlanFlowsId(plan, true);
|
|
1276
|
+
if (this.selectedFlowsId) {
|
|
1277
|
+
this._updateSelectedFlows(this.selectedFlowsId.map((flowId) => {
|
|
1278
|
+
const index = this._findFlowIndex(plan.flows, flowId);
|
|
1279
|
+
return index != null ? newOrder[index]._id : flowId;
|
|
1280
|
+
}));
|
|
1281
|
+
}
|
|
1282
|
+
plan.flows = newOrder;
|
|
1239
1283
|
}
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1284
|
+
else {
|
|
1285
|
+
const newOrder = this._generateFlowsId(this._definition.flows, true);
|
|
1286
|
+
if (this.selectedFlowsId) {
|
|
1287
|
+
this._updateSelectedFlows(this.selectedFlowsId.map((flowId) => {
|
|
1288
|
+
const index = this._findFlowIndex(this._definition.flows, flowId);
|
|
1289
|
+
return index != null ? newOrder[index]._id : flowId;
|
|
1290
|
+
}));
|
|
1291
|
+
}
|
|
1292
|
+
this._definition.flows = newOrder;
|
|
1249
1293
|
}
|
|
1250
|
-
this._definition.flows = newOrder;
|
|
1251
1294
|
}
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
}
|
|
1295
|
+
catch (err) {
|
|
1296
|
+
this._currentAskConfirmation = false;
|
|
1297
|
+
}
|
|
1298
|
+
});
|
|
1256
1299
|
}
|
|
1257
1300
|
_onSearchPolicy({ detail }) {
|
|
1258
1301
|
this._searchPolicyQuery = detail;
|
|
@@ -1266,20 +1309,22 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
1266
1309
|
_onClearFlows() {
|
|
1267
1310
|
this._searchFlowQuery = null;
|
|
1268
1311
|
}
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1312
|
+
_onResetAll() {
|
|
1313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1314
|
+
try {
|
|
1315
|
+
yield this._closeFlowStepForm();
|
|
1316
|
+
this.definition = deepClone(this._initialDefinition);
|
|
1317
|
+
}
|
|
1318
|
+
catch (e) {
|
|
1319
|
+
this._currentAskConfirmation = null;
|
|
1320
|
+
}
|
|
1321
|
+
});
|
|
1277
1322
|
}
|
|
1278
1323
|
_filterNotValidStep(step) {
|
|
1279
1324
|
return step._new !== true;
|
|
1280
1325
|
}
|
|
1281
1326
|
_removePrivateProperties(o) {
|
|
1282
|
-
const copy = {
|
|
1327
|
+
const copy = Object.assign({}, o);
|
|
1283
1328
|
Object.keys(o)
|
|
1284
1329
|
.filter((key) => key.startsWith('_'))
|
|
1285
1330
|
.forEach((key) => {
|
|
@@ -1304,21 +1349,23 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
1304
1349
|
getPropertiesElement() {
|
|
1305
1350
|
return this.shadowRoot.querySelector('gv-properties');
|
|
1306
1351
|
}
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1352
|
+
_checkCurrentFlowStep() {
|
|
1353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1354
|
+
if (this._currentFlowStep && this.selectedFlowsId) {
|
|
1355
|
+
const closePromises = this.selectedFlowsId
|
|
1356
|
+
.map((flowId) => {
|
|
1357
|
+
const flow = this._findFlowById(flowId);
|
|
1358
|
+
const currentStep = [...flow.pre, ...flow.post].find((step) => step._id === this._currentFlowStep.step._id);
|
|
1359
|
+
if (currentStep == null) {
|
|
1360
|
+
return this._closeFlowStepForm(true);
|
|
1361
|
+
}
|
|
1362
|
+
return null;
|
|
1363
|
+
})
|
|
1364
|
+
.filter((p) => p !== null);
|
|
1365
|
+
return Promise.all(closePromises);
|
|
1366
|
+
}
|
|
1367
|
+
return Promise.resolve();
|
|
1368
|
+
});
|
|
1322
1369
|
}
|
|
1323
1370
|
saved() {
|
|
1324
1371
|
if (this.isDirty) {
|
|
@@ -1342,7 +1389,7 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
1342
1389
|
flow.post = flow.post.filter(this._filterNotValidStep);
|
|
1343
1390
|
return flow;
|
|
1344
1391
|
});
|
|
1345
|
-
let definition = {
|
|
1392
|
+
let definition = Object.assign(Object.assign({}, this._definition), { flows });
|
|
1346
1393
|
if (this._definition.plans != null) {
|
|
1347
1394
|
const plans = this._definition.plans.map((plan) => {
|
|
1348
1395
|
const flows = plan.flows.map((flow) => {
|
|
@@ -1350,9 +1397,9 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
1350
1397
|
flow.post = flow.post.filter(this._filterNotValidStep);
|
|
1351
1398
|
return flow;
|
|
1352
1399
|
});
|
|
1353
|
-
return {
|
|
1400
|
+
return Object.assign(Object.assign({}, plan), { flows });
|
|
1354
1401
|
});
|
|
1355
|
-
definition = {
|
|
1402
|
+
definition = Object.assign(Object.assign({}, definition), { plans });
|
|
1356
1403
|
}
|
|
1357
1404
|
return definition;
|
|
1358
1405
|
}
|
|
@@ -1364,7 +1411,7 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
1364
1411
|
flow.post = flow.post.map(this._removePrivateProperties);
|
|
1365
1412
|
return flow;
|
|
1366
1413
|
});
|
|
1367
|
-
let definition = {
|
|
1414
|
+
let definition = Object.assign(Object.assign({}, this._definition), { flows });
|
|
1368
1415
|
if (this._definition.plans != null) {
|
|
1369
1416
|
const plans = definitionToSave.plans.map((plan) => {
|
|
1370
1417
|
const flows = plan.flows.map((f) => {
|
|
@@ -1373,17 +1420,17 @@ export class GvPolicyStudio extends KeyboardElement(LitElement) {
|
|
|
1373
1420
|
flow.post = flow.post.map(this._removePrivateProperties);
|
|
1374
1421
|
return flow;
|
|
1375
1422
|
});
|
|
1376
|
-
return {
|
|
1423
|
+
return Object.assign(Object.assign({}, plan), { flows });
|
|
1377
1424
|
});
|
|
1378
|
-
definition = {
|
|
1425
|
+
definition = Object.assign(Object.assign({}, definition), { plans });
|
|
1379
1426
|
}
|
|
1380
1427
|
if (this._definition.properties != null) {
|
|
1381
1428
|
const properties = this._definition.properties.map(this._removePrivateProperties);
|
|
1382
|
-
definition = {
|
|
1429
|
+
definition = Object.assign(Object.assign({}, definition), { properties });
|
|
1383
1430
|
}
|
|
1384
1431
|
if (this._definition.resources != null) {
|
|
1385
1432
|
const resources = this._definition.resources.map(this._removePrivateProperties);
|
|
1386
|
-
definition = {
|
|
1433
|
+
definition = Object.assign(Object.assign({}, definition), { resources });
|
|
1387
1434
|
}
|
|
1388
1435
|
return definition;
|
|
1389
1436
|
}
|