fomantic-ui 2.9.0-beta.99 → 2.9.1-beta.0
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/.all-contributorsrc +86 -1
- package/.github/codeql/codeql-config.yml +4 -0
- package/.github/dependabot.yml +10 -0
- package/.github/workflows/ci.yml +10 -6
- package/.github/workflows/codeql.yml +68 -0
- package/.github/workflows/nightly.yml +16 -8
- package/.github/workflows/release.yml +34 -0
- package/CHANGELOG.md +925 -650
- package/CONTRIBUTORS.md +16 -1
- package/FAQ.md +38 -38
- package/README.md +7 -7
- package/dist/components/accordion.css +136 -40
- package/dist/components/accordion.js +10 -4
- package/dist/components/accordion.min.css +2 -2
- package/dist/components/accordion.min.js +3 -3
- package/dist/components/ad.css +4 -4
- package/dist/components/ad.min.css +2 -2
- package/dist/components/api.js +82 -25
- package/dist/components/api.min.js +3 -3
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +124 -77
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +18 -1
- package/dist/components/calendar.js +92 -73
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +3 -3
- package/dist/components/card.css +729 -99
- package/dist/components/card.min.css +2 -2
- package/dist/components/checkbox.css +92 -92
- package/dist/components/checkbox.js +4 -3
- package/dist/components/checkbox.min.css +2 -2
- package/dist/components/checkbox.min.js +3 -3
- package/dist/components/comment.css +2 -2
- package/dist/components/comment.min.css +2 -2
- package/dist/components/container.css +98 -4
- package/dist/components/container.min.css +2 -2
- package/dist/components/dimmer.css +7 -6
- package/dist/components/dimmer.js +19 -10
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +3 -3
- package/dist/components/divider.css +31 -31
- package/dist/components/divider.min.css +2 -2
- package/dist/components/dropdown.css +74 -47
- package/dist/components/dropdown.js +237 -188
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +3 -3
- package/dist/components/embed.css +5 -5
- package/dist/components/embed.js +14 -10
- package/dist/components/embed.min.css +2 -2
- package/dist/components/embed.min.js +3 -3
- package/dist/components/emoji.css +10797 -8839
- package/dist/components/emoji.min.css +1 -1
- package/dist/components/feed.css +2 -2
- package/dist/components/feed.min.css +2 -2
- package/dist/components/flag.css +563 -563
- package/dist/components/flag.min.css +2 -2
- package/dist/components/flyout.css +592 -0
- package/dist/components/flyout.js +1530 -0
- package/dist/components/flyout.min.css +9 -0
- package/dist/components/flyout.min.js +11 -0
- package/dist/components/form.css +67 -39
- package/dist/components/form.js +25 -21
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +3 -3
- package/dist/components/grid.css +15 -14
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +6 -4
- package/dist/components/header.min.css +2 -2
- package/dist/components/icon.css +2105 -2061
- package/dist/components/icon.min.css +2 -2
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +743 -21
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +5 -5
- package/dist/components/item.min.css +2 -2
- package/dist/components/label.css +72 -68
- package/dist/components/label.min.css +2 -2
- package/dist/components/list.css +31 -31
- package/dist/components/list.min.css +2 -2
- package/dist/components/loader.css +352 -352
- package/dist/components/loader.min.css +2 -2
- package/dist/components/menu.css +79 -71
- package/dist/components/menu.min.css +1 -1
- package/dist/components/message.css +3 -3
- package/dist/components/message.min.css +2 -2
- package/dist/components/modal.css +35 -6
- package/dist/components/modal.js +97 -57
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +3 -3
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +3 -3
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +3 -3
- package/dist/components/placeholder.css +33 -33
- package/dist/components/placeholder.min.css +2 -2
- package/dist/components/popup.css +100 -104
- package/dist/components/popup.js +17 -23
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +3 -3
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +6 -3
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +3 -3
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +8 -4
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +3 -3
- package/dist/components/reset.css +5 -4
- package/dist/components/reset.min.css +2 -2
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +6 -6
- package/dist/components/search.js +48 -21
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +3 -3
- package/dist/components/segment.css +107 -29
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +4 -4
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +3 -3
- package/dist/components/sidebar.css +20 -8
- package/dist/components/sidebar.js +141 -44
- package/dist/components/sidebar.min.css +2 -2
- package/dist/components/sidebar.min.js +3 -3
- package/dist/components/site.css +79 -4
- package/dist/components/site.js +2 -2
- package/dist/components/site.min.css +2 -2
- package/dist/components/site.min.js +3 -3
- package/dist/components/slider.css +17 -17
- package/dist/components/slider.js +79 -64
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +3 -3
- package/dist/components/state.js +3 -3
- package/dist/components/state.min.js +3 -3
- package/dist/components/statistic.css +4 -4
- package/dist/components/statistic.min.css +2 -2
- package/dist/components/step.css +30 -30
- package/dist/components/step.min.css +2 -2
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +30 -19
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +3 -3
- package/dist/components/tab.css +5 -5
- package/dist/components/tab.js +25 -7
- package/dist/components/tab.min.css +2 -2
- package/dist/components/tab.min.js +3 -3
- package/dist/components/table.css +1680 -270
- package/dist/components/table.min.css +2 -2
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +11 -1
- package/dist/components/toast.js +19 -12
- package/dist/components/toast.min.css +2 -2
- package/dist/components/toast.min.js +3 -3
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +27 -22
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +3 -3
- package/dist/components/visibility.js +5 -5
- package/dist/components/visibility.min.js +3 -3
- package/dist/semantic.css +41415 -34430
- package/dist/semantic.js +2597 -696
- package/dist/semantic.min.css +3 -3
- package/dist/semantic.min.js +3 -3
- package/dist/themes/default/assets/fonts/Lato-Bold.woff +0 -0
- package/dist/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
- package/dist/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/dist/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/dist/themes/default/assets/fonts/Lato-Italic.woff +0 -0
- package/dist/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
- package/dist/themes/default/assets/fonts/Lato-Regular.woff +0 -0
- package/dist/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
- package/dist/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/dist/themes/default/assets/fonts/brand-icons.woff2 +0 -0
- package/dist/themes/default/assets/fonts/icons.woff +0 -0
- package/dist/themes/default/assets/fonts/icons.woff2 +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.woff2 +0 -0
- package/dist/themes/{default → famfamfam}/assets/images/flags.png +0 -0
- package/examples/assets/library/iframe-content.js +3 -3
- package/examples/assets/library/iframe.js +3 -3
- package/examples/components/button.html +1 -1
- package/examples/components/card.html +1 -1
- package/examples/components/input.html +1 -1
- package/examples/components/menu.html +1 -1
- package/examples/components/site.html +1 -1
- package/examples/components/sticky-context.html +197 -0
- package/examples/components/table.html +1 -1
- package/package.json +19 -17
- package/scripts/nightly-version.js +47 -38
- package/src/definitions/behaviors/api.js +81 -24
- package/src/definitions/behaviors/form.js +24 -20
- package/src/definitions/behaviors/state.js +2 -2
- package/src/definitions/behaviors/visibility.js +4 -4
- package/src/definitions/collections/form.less +43 -31
- package/src/definitions/collections/grid.less +11 -11
- package/src/definitions/collections/menu.less +62 -47
- package/src/definitions/collections/message.less +1 -1
- package/src/definitions/collections/table.less +636 -39
- package/src/definitions/elements/button.less +254 -125
- package/src/definitions/elements/container.less +129 -0
- package/src/definitions/elements/divider.less +24 -24
- package/src/definitions/elements/emoji.less +25 -2
- package/src/definitions/elements/flag.less +47 -1
- package/src/definitions/elements/header.less +4 -2
- package/src/definitions/elements/icon.less +91 -12
- package/src/definitions/elements/input.less +259 -27
- package/src/definitions/elements/label.less +42 -39
- package/src/definitions/elements/list.less +29 -30
- package/src/definitions/elements/loader.less +87 -87
- package/src/definitions/elements/placeholder.less +32 -32
- package/src/definitions/elements/segment.less +147 -34
- package/src/definitions/elements/step.less +25 -25
- package/src/definitions/globals/reset.less +2 -2
- package/src/definitions/globals/site.js +1 -1
- package/src/definitions/globals/site.less +14 -12
- package/src/definitions/modules/accordion.js +9 -3
- package/src/definitions/modules/accordion.less +371 -269
- package/src/definitions/modules/calendar.js +91 -72
- package/src/definitions/modules/calendar.less +20 -0
- package/src/definitions/modules/checkbox.js +3 -2
- package/src/definitions/modules/checkbox.less +53 -53
- package/src/definitions/modules/dimmer.js +18 -9
- package/src/definitions/modules/dimmer.less +11 -10
- package/src/definitions/modules/dropdown.js +236 -187
- package/src/definitions/modules/dropdown.less +110 -77
- package/src/definitions/modules/embed.js +13 -9
- package/src/definitions/modules/embed.less +4 -4
- package/src/definitions/modules/flyout.js +1530 -0
- package/src/definitions/modules/flyout.less +650 -0
- package/src/definitions/modules/modal.js +96 -56
- package/src/definitions/modules/modal.less +68 -33
- package/src/definitions/modules/nag.js +2 -2
- package/src/definitions/modules/popup.js +16 -22
- package/src/definitions/modules/popup.less +86 -90
- package/src/definitions/modules/progress.js +5 -2
- package/src/definitions/modules/rating.js +7 -3
- package/src/definitions/modules/search.js +47 -20
- package/src/definitions/modules/search.less +3 -3
- package/src/definitions/modules/shape.js +3 -3
- package/src/definitions/modules/sidebar.js +140 -43
- package/src/definitions/modules/sidebar.less +20 -5
- package/src/definitions/modules/slider.js +78 -63
- package/src/definitions/modules/slider.less +9 -9
- package/src/definitions/modules/sticky.js +29 -18
- package/src/definitions/modules/sticky.less +3 -1
- package/src/definitions/modules/tab.js +24 -6
- package/src/definitions/modules/tab.less +4 -4
- package/src/definitions/modules/toast.js +18 -11
- package/src/definitions/modules/toast.less +6 -0
- package/src/definitions/modules/transition.js +26 -21
- package/src/definitions/views/ad.less +3 -3
- package/src/definitions/views/card.less +124 -18
- package/src/definitions/views/comment.less +1 -1
- package/src/definitions/views/feed.less +1 -1
- package/src/definitions/views/item.less +3 -3
- package/src/definitions/views/statistic.less +1 -1
- package/src/semantic.less +1 -0
- package/src/theme.config.example +1 -0
- package/src/theme.less +13 -2
- package/src/themes/amazon/globals/site.variables +1 -0
- package/src/themes/basic/elements/icon.overrides +149 -149
- package/src/themes/basic/elements/icon.variables +16 -6
- package/src/themes/basic/elements/step.overrides +2 -2
- package/src/themes/bookish/elements/header.overrides +1 -1
- package/src/themes/chubby/elements/button.overrides +1 -1
- package/src/themes/chubby/elements/header.overrides +1 -1
- package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
- package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
- package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
- package/src/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/src/themes/default/assets/fonts/brand-icons.woff2 +0 -0
- package/src/themes/default/assets/fonts/icons.woff +0 -0
- package/src/themes/default/assets/fonts/icons.woff2 +0 -0
- package/src/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/src/themes/default/assets/fonts/outline-icons.woff2 +0 -0
- package/src/themes/default/collections/form.variables +4 -0
- package/src/themes/default/collections/table.variables +52 -0
- package/src/themes/default/elements/button.variables +5 -0
- package/src/themes/default/elements/container.variables +12 -0
- package/src/themes/default/elements/divider.overrides +7 -7
- package/src/themes/default/elements/emoji.overrides +0 -3090
- package/src/themes/default/elements/emoji.variables +3563 -1
- package/src/themes/default/elements/flag.overrides +0 -1640
- package/src/themes/default/elements/flag.variables +1597 -1
- package/src/themes/default/elements/icon.overrides +1 -2043
- package/src/themes/default/elements/icon.variables +2045 -30
- package/src/themes/default/elements/input.variables +15 -0
- package/src/themes/default/elements/segment.variables +8 -0
- package/src/themes/default/elements/step.overrides +4 -7
- package/src/themes/default/globals/site.variables +103 -8
- package/src/themes/default/globals/variation.variables +59 -0
- package/src/themes/default/modules/accordion.overrides +7 -9
- package/src/themes/default/modules/accordion.variables +34 -2
- package/src/themes/default/modules/calendar.variables +3 -0
- package/src/themes/default/modules/checkbox.overrides +10 -12
- package/src/themes/default/modules/checkbox.variables +5 -5
- package/src/themes/default/modules/dropdown.overrides +6 -9
- package/src/themes/default/modules/dropdown.variables +6 -9
- package/src/themes/default/modules/flyout.overrides +3 -0
- package/src/themes/default/modules/flyout.variables +100 -0
- package/src/themes/default/modules/modal.variables +16 -2
- package/src/themes/default/modules/popup.variables +0 -2
- package/src/themes/default/modules/sidebar.variables +4 -1
- package/src/themes/default/views/card.variables +8 -0
- package/src/themes/{default → famfamfam}/assets/images/flags.png +0 -0
- package/src/themes/famfamfam/elements/flag.overrides +496 -496
- package/src/themes/famfamfam/elements/flag.variables +8 -1
- package/src/themes/github/elements/icon.overrides +206 -206
- package/src/themes/github/elements/icon.variables +16 -1
- package/src/themes/github/elements/step.overrides +5 -5
- package/src/themes/github/globals/site.variables +1 -0
- package/src/themes/github/modules/dropdown.overrides +7 -10
- package/src/themes/instagram/views/card.overrides +1 -1
- package/src/themes/joypixels/elements/emoji.overrides +0 -3089
- package/src/themes/joypixels/elements/emoji.variables +3562 -5
- package/src/themes/material/collections/menu.overrides +1 -1
- package/src/themes/material/elements/button.overrides +1 -1
- package/src/themes/material/elements/header.overrides +1 -1
- package/src/themes/material/elements/icon.overrides +932 -932
- package/src/themes/material/elements/icon.variables +17 -0
- package/src/themes/material/globals/site.variables +0 -1
- package/src/themes/material/modules/dropdown.overrides +1 -1
- package/src/themes/material/modules/modal.overrides +1 -1
- package/src/themes/pulsar/elements/loader.overrides +2 -2
- package/src/themes/resetcss/globals/reset.overrides +3 -3
- package/src/themes/rtl/globals/site.overrides +1 -1
- package/src/themes/striped/modules/progress.overrides +1 -1
- package/src/themes/systemfont/globals/reset.overrides +8 -0
- package/src/themes/systemfont/globals/site.variables +10 -0
- package/src/themes/twitter/elements/emoji.overrides +0 -3091
- package/src/themes/twitter/elements/emoji.variables +3558 -6
- package/tasks/admin/distributions/create.js +1 -1
- package/tasks/admin/publish.js +1 -1
- package/tasks/admin/release.js +1 -1
- package/tasks/build/assets.js +1 -1
- package/tasks/build/css.js +3 -3
- package/tasks/build/javascript.js +3 -3
- package/tasks/check-install.js +1 -1
- package/tasks/clean.js +1 -1
- package/tasks/collections/README.md +1 -1
- package/tasks/collections/admin.js +1 -1
- package/tasks/config/admin/oauth.example.js +1 -1
- package/tasks/config/admin/release.js +1 -0
- package/tasks/config/admin/templates/composer.json +1 -1
- package/tasks/config/admin/templates/css-package.js +8 -12
- package/tasks/config/admin/templates/less-package.js +2 -2
- package/tasks/config/defaults.js +1 -0
- package/tasks/config/project/install.js +16 -13
- package/tasks/install.js +1 -0
- package/tasks/rtl/watch.js +1 -1
- package/tasks/version.js +1 -1
- package/test/fixtures/accordion.html +1 -1
- package/test/fixtures/checkbox.html +1 -1
- package/test/fixtures/dropdown.html +1 -1
- package/test/fixtures/modal.html +1 -1
- package/test/fixtures/popup.html +1 -1
- package/test/fixtures/rating.html +1 -1
- package/test/fixtures/shape.html +1 -1
- package/test/fixtures/sidebar.html +1 -1
- package/test/fixtures/tab.html +1 -1
- package/test/fixtures/transition.html +1 -1
- package/test/fixtures/video.html +1 -1
- package/test/helpers/jasmine-jquery.js +2 -2
- package/test/helpers/jasmine-sinon.js +1 -1
- package/test/helpers/jquery-events.js +1 -1
- package/test/helpers/sinon.js +2 -2
- package/test/meteor/fonts.js +1 -1
- package/test/modules/accordion.spec.js +1 -1
- package/test/modules/checkbox.spec.js +1 -1
- package/test/modules/dropdown.spec.js +1 -1
- package/test/modules/modal.spec.js +1 -1
- package/test/modules/module.spec.js +1 -1
- package/test/modules/popup.spec.js +1 -1
- package/test/modules/search.spec.js +1 -1
- package/test/modules/shape.spec.js +1 -1
- package/test/modules/sidebar.spec.js +1 -1
- package/test/modules/tab.spec.js +1 -1
- package/test/modules/transition.spec.js +1 -1
- package/test/modules/video.spec.js +1 -1
- package/dist/themes/basic/assets/fonts/icons.eot +0 -0
- package/dist/themes/basic/assets/fonts/icons.svg +0 -450
- package/dist/themes/basic/assets/fonts/icons.ttf +0 -0
- package/dist/themes/default/assets/fonts/brand-icons.eot +0 -0
- package/dist/themes/default/assets/fonts/brand-icons.svg +0 -3570
- package/dist/themes/default/assets/fonts/brand-icons.ttf +0 -0
- package/dist/themes/default/assets/fonts/icons.eot +0 -0
- package/dist/themes/default/assets/fonts/icons.svg +0 -4938
- package/dist/themes/default/assets/fonts/icons.ttf +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.eot +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.svg +0 -803
- package/dist/themes/default/assets/fonts/outline-icons.ttf +0 -0
- package/dist/themes/github/assets/fonts/octicons-local.ttf +0 -0
- package/dist/themes/github/assets/fonts/octicons.svg +0 -200
- package/dist/themes/github/assets/fonts/octicons.ttf +0 -0
- package/dist/themes/material/assets/fonts/icons.eot +0 -0
- package/dist/themes/material/assets/fonts/icons.svg +0 -2373
- package/dist/themes/material/assets/fonts/icons.ttf +0 -0
- package/src/themes/basic/assets/fonts/icons.eot +0 -0
- package/src/themes/basic/assets/fonts/icons.svg +0 -450
- package/src/themes/basic/assets/fonts/icons.ttf +0 -0
- package/src/themes/default/assets/fonts/brand-icons.eot +0 -0
- package/src/themes/default/assets/fonts/brand-icons.svg +0 -3570
- package/src/themes/default/assets/fonts/brand-icons.ttf +0 -0
- package/src/themes/default/assets/fonts/icons.eot +0 -0
- package/src/themes/default/assets/fonts/icons.svg +0 -4938
- package/src/themes/default/assets/fonts/icons.ttf +0 -0
- package/src/themes/default/assets/fonts/outline-icons.eot +0 -0
- package/src/themes/default/assets/fonts/outline-icons.svg +0 -803
- package/src/themes/default/assets/fonts/outline-icons.ttf +0 -0
- package/src/themes/github/assets/fonts/octicons-local.ttf +0 -0
- package/src/themes/github/assets/fonts/octicons.svg +0 -200
- package/src/themes/github/assets/fonts/octicons.ttf +0 -0
- package/src/themes/material/assets/fonts/icons.eot +0 -0
- package/src/themes/material/assets/fonts/icons.svg +0 -2373
- package/src/themes/material/assets/fonts/icons.ttf +0 -0
@@ -1,11 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* # Fomantic UI - 2.9.
|
2
|
+
* # Fomantic UI - 2.9.1-beta.0+a290620
|
3
3
|
* https://github.com/fomantic/Fomantic-UI
|
4
4
|
* http://fomantic-ui.com/
|
5
5
|
*
|
6
|
-
* Copyright
|
6
|
+
* Copyright 2022 Contributors
|
7
7
|
* Released under the MIT license
|
8
8
|
* http://opensource.org/licenses/MIT
|
9
9
|
*
|
10
10
|
*/
|
11
|
-
!function(R,P,K,W){"use strict";R.isFunction=R.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},P=void 0!==P&&P.Math==Math?P:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),R.fn.modal=function(A){var H,e=R(this),D=R(P),O=R(K),E=R("body"),L=e.selector||"",I=(new Date).getTime(),N=[],z=A,j="string"==typeof z,q=[].slice.call(arguments,1),B=P.requestAnimationFrame||P.mozRequestAnimationFrame||P.webkitRequestAnimationFrame||P.msRequestAnimationFrame||function(e){setTimeout(e,0)};return e.each(function(){var n,o,s,e,i,a,c,r,t,l,d,u,f=R.isPlainObject(A)?R.extend(!0,{},R.fn.modal.settings,A):R.extend({},R.fn.modal.settings),m=f.selector,h=f.className,g=f.namespace,p=f.fields,v=f.error,b="."+g,y="module-"+g,x=R(this),k=R(f.context),w=x.find(m.closeIcon),C=this,S=x.hasClass("modal")?x.data(y):W,F=!1,M="",T="";u={initialize:function(){if(u.create.id(),x.hasClass("modal")||(u.create.modal(),R.isFunction(f.onHidden)||(f.onHidden=function(){u.destroy(),x.remove()})),x.addClass(f.class),""!==f.title&&x.find(m.title).html(u.helpers.escape(f.title,f.preserveHTML)).addClass(f.classTitle),""!==f.content&&x.find(m.content).html(u.helpers.escape(f.content,f.preserveHTML)).addClass(f.classContent),u.has.configActions()){var s=x.find(m.actions).addClass(f.classActions);0===s.length?s=R("<div/>",{class:h.actions+" "+(f.classActions||"")}).appendTo(x):s.empty(),f.actions.forEach(function(e){var t=e[p.icon]?"<i "+(e[p.text]?'aria-hidden="true"':"")+' class="'+u.helpers.deQuote(e[p.icon])+' icon"></i>':"",n=u.helpers.escape(e[p.text]||"",f.preserveHTML),i=u.helpers.deQuote(e[p.class]||""),o=e[p.click]&&R.isFunction(e[p.click])?e[p.click]:function(){};s.append(R("<button/>",{html:t+n,"aria-label":R("<div>"+(e[p.text]||e[p.icon]||"")+"</div>").text(),class:h.button+" "+i,click:function(){var e=R(this);e.is(m.approve)||e.is(m.deny)||!1===o.call(C,x)||u.hide()}}))})}u.cache={},u.verbose("Initializing dimmer",k),u.create.dimmer(),f.allowMultiple&&u.create.innerDimmer(),f.centered||x.addClass("top aligned"),u.refreshModals(),u.refreshInputs(),u.bind.events(),u.observeChanges(),u.instantiate(),f.autoShow&&u.show()},instantiate:function(){u.verbose("Storing instance of modal"),S=u,x.data(y,S)},create:{modal:function(){if(x=R("<div/>",{class:h.modal,role:"dialog","aria-modal":!0}),f.closeIcon&&(w=R("<i/>",{class:h.close,role:"button",tabindex:0,"aria-label":f.text.close}),x.append(w)),""!==f.title){var e="_"+u.get.id()+"title";x.attr("aria-labelledby",e),R("<div/>",{class:h.title,id:e}).appendTo(x)}if(""!==f.content){var t="_"+u.get.id()+"desc";x.attr("aria-describedby",t),R("<div/>",{class:h.content,id:t}).appendTo(x)}u.has.configActions()&&R("<div/>",{class:h.actions}).appendTo(x),k.append(x)},dimmer:function(){var e={debug:f.debug,dimmerName:"modals"},t=R.extend(!0,e,f.dimmerSettings);R.fn.dimmer!==W?(u.debug("Creating dimmer"),i=k.dimmer(t),f.detachable?(u.verbose("Modal is detachable, moving content into dimmer"),i.dimmer("add content",x)):u.set.undetached(),a=i.dimmer("get dimmer")):u.error(v.dimmer)},id:function(){l=(Math.random().toString(16)+"000000000").substr(2,8),t="."+l,u.verbose("Creating unique id for element",l)},innerDimmer:function(){0==x.find(m.dimmer).length&&x.prepend('<div class="ui inverted dimmer"></div>')}},destroy:function(){d&&d.disconnect(),u.verbose("Destroying previous modal"),x.removeData(y).off(b),D.off(t),a.off(t),w.off(t),n&&n.off(t),k.dimmer("destroy")},observeChanges:function(){"MutationObserver"in P&&((d=new MutationObserver(function(e){f.observeChanges&&(u.debug("DOM tree modified, refreshing"),u.refresh()),u.refreshInputs()})).observe(C,{childList:!0,subtree:!0}),u.debug("Setting up mutation observer",d))},refresh:function(){u.remove.scrolling(),u.cacheSizes(),u.can.useFlex()||u.set.modalOffset(),u.set.screenHeight(),u.set.type()},refreshModals:function(){s=x.siblings(m.modal),o=s.add(x)},refreshInputs:function(){n&&n.off("keydown"+t),(n=x.find("[tabindex], :input").filter(":visible").filter(function(){return 0===R(this).closest(".disabled").length})).first().on("keydown"+t,u.event.inputKeyDown.first),n.last().on("keydown"+t,u.event.inputKeyDown.last)},attachEvents:function(e,t){var n=R(e);t=R.isFunction(u[t])?u[t]:u.toggle,0<n.length?(u.debug("Attaching modal events to element",e,t),n.off(b).on("click"+b,t)):u.error(v.notFound,e)},bind:{events:function(){u.verbose("Attaching events"),x.on("click"+b,m.close,u.event.close).on("click"+b,m.approve,u.event.approve).on("click"+b,m.deny,u.event.deny),w.on("keyup"+t,u.event.closeKeyUp),D.on("resize"+t,u.event.resize)},scrollLock:function(){i.get(0).addEventListener("touchmove",u.event.preventScroll,{passive:!1})}},unbind:{scrollLock:function(){i.get(0).removeEventListener("touchmove",u.event.preventScroll,{passive:!1})}},get:{id:function(){return l},element:function(){return x},settings:function(){return f}},event:{approve:function(){F||!1===f.onApprove.call(C,R(this))?u.verbose("Approve callback returned false cancelling hide"):(F=!0,u.hide(function(){F=!1}))},preventScroll:function(e){-1!==e.target.className.indexOf("dimmer")&&e.preventDefault()},deny:function(){F||!1===f.onDeny.call(C,R(this))?u.verbose("Deny callback returned false cancelling hide"):(F=!0,u.hide(function(){F=!1}))},close:function(){u.hide()},closeKeyUp:function(e){var t=e.which;t!==f.keys.enter&&t!==f.keys.space||!x.hasClass(h.front)||u.hide()},inputKeyDown:{first:function(e){e.which===f.keys.tab&&e.shiftKey&&(n.last().focus(),e.preventDefault())},last:function(e){e.which!==f.keys.tab||e.shiftKey||(n.first().focus(),e.preventDefault())}},mousedown:function(e){var t=R(e.target),n=u.is.rtl();(c=0<t.closest(m.modal).length)&&u.verbose("Mouse down event registered inside the modal"),(r=u.is.scrolling()&&(!n&&R(P).outerWidth()-f.scrollbarWidth<=e.clientX||n&&f.scrollbarWidth>=e.clientX))&&u.verbose("Mouse down event registered inside the scrollbar")},mouseup:function(e){if(f.closable)if(c)u.debug("Dimmer clicked but mouse down was initially registered inside the modal");else if(r)u.debug("Dimmer clicked but mouse down was initially registered inside the scrollbar");else{var t=0<R(e.target).closest(m.modal).length,n=R.contains(K.documentElement,e.target);if(!t&&n&&u.is.active()&&x.hasClass(h.front)){if(u.debug("Dimmer clicked, hiding all modals"),f.allowMultiple){if(!u.hideAll())return}else if(!u.hide())return;u.remove.clickaway()}}else u.verbose("Dimmer clicked but closable setting is disabled")},debounce:function(e,t){clearTimeout(u.timer),u.timer=setTimeout(e,t)},keyboard:function(e){e.which===f.keys.escape&&(f.closable?(u.debug("Escape key pressed hiding modal"),x.hasClass(h.front)&&u.hide()):u.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){i.dimmer("is active")&&(u.is.animating()||u.is.active())&&B(u.refresh)}},toggle:function(){u.is.active()||u.is.animating()?u.hide():u.show()},show:function(e){e=R.isFunction(e)?e:function(){},u.refreshModals(),u.set.dimmerSettings(),u.set.dimmerStyles(),u.showModal(e)},hide:function(e){return e=R.isFunction(e)?e:function(){},u.refreshModals(),u.hideModal(e)},showModal:function(e){e=R.isFunction(e)?e:function(){},u.is.animating()||!u.is.active()?(u.showDimmer(),u.cacheSizes(),u.set.bodyMargin(),u.can.useFlex()?u.remove.legacy():(u.set.legacy(),u.set.modalOffset(),u.debug("Using non-flex legacy modal positioning.")),u.set.screenHeight(),u.set.type(),u.set.clickaway(),!f.allowMultiple&&u.others.active()?u.hideOthers(u.showModal):(F=!1,f.allowMultiple&&(u.others.active()&&s.filter("."+h.active).find(m.dimmer).addClass("active"),f.detachable&&x.detach().appendTo(a)),f.onShow.call(C),f.transition&&R.fn.transition!==W&&x.transition("is supported")?(u.debug("Showing modal with css animations"),x.transition({debug:f.debug,animation:(f.transition.showMethod||f.transition)+" in",queue:f.queue,duration:f.transition.showDuration||f.duration,useFailSafe:!0,onComplete:function(){f.onVisible.apply(C),f.keyboardShortcuts&&u.add.keyboardShortcuts(),u.save.focus(),u.set.active(),f.autofocus&&u.set.autofocus(),e()}})):u.error(v.noTransition))):u.debug("Modal is already visible")},hideModal:function(e,t,n){var i=s.filter("."+h.active).last();if(e=R.isFunction(e)?e:function(){},u.debug("Hiding modal"),!1===f.onHide.call(C,R(this)))return u.verbose("Hide callback returned false cancelling hide"),F=!1;(u.is.animating()||u.is.active())&&(f.transition&&R.fn.transition!==W&&x.transition("is supported")?(u.remove.active(),x.transition({debug:f.debug,animation:(f.transition.hideMethod||f.transition)+" out",queue:f.queue,duration:f.transition.hideDuration||f.duration,useFailSafe:!0,onStart:function(){u.others.active()||u.others.animating()||t||u.hideDimmer(),f.keyboardShortcuts&&!u.others.active()&&u.remove.keyboardShortcuts()},onComplete:function(){u.unbind.scrollLock(),f.allowMultiple&&(i.addClass(h.front),x.removeClass(h.front),n?o.find(m.dimmer).removeClass("active"):i.find(m.dimmer).removeClass("active")),R.isFunction(f.onHidden)&&f.onHidden.call(C),u.remove.dimmerStyles(),u.restore.focus(),e()}})):u.error(v.noTransition))},showDimmer:function(){i.dimmer("is animating")||!i.dimmer("is active")?(u.save.bodyMargin(),u.debug("Showing dimmer"),i.dimmer("show")):u.debug("Dimmer already visible")},hideDimmer:function(){i.dimmer("is animating")||i.dimmer("is active")?(u.unbind.scrollLock(),i.dimmer("hide",function(){u.restore.bodyMargin(),u.remove.clickaway(),u.remove.screenHeight()})):u.debug("Dimmer is not visible cannot hide")},hideAll:function(n){var e=o.filter("."+h.active+", ."+h.animating);if(n=R.isFunction(n)?n:function(){},0<e.length){u.debug("Hiding all visible modals");var i=!0;return R(e.get().reverse()).each(function(e,t){i=i&&R(t).modal("hide modal",n,!1,!0)}),i&&u.hideDimmer(),i}},hideOthers:function(e){var t=s.filter("."+h.active+", ."+h.animating);e=R.isFunction(e)?e:function(){},0<t.length&&(u.debug("Hiding other modals",s),t.modal("hide modal",e,!0))},others:{active:function(){return 0<s.filter("."+h.active).length},animating:function(){return 0<s.filter("."+h.animating).length}},add:{keyboardShortcuts:function(){u.verbose("Adding keyboard shortcuts"),O.on("keyup"+b,u.event.keyboard)}},save:{focus:function(){0<R(K.activeElement).closest(x).length||(e=R(K.activeElement).blur())},bodyMargin:function(){M=E.css("margin-"+(u.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(M.replace(/[^\d.]/g,"")),t=P.innerWidth-K.documentElement.clientWidth;T=e+t}},restore:{focus:function(){e&&0<e.length&&f.restoreFocus&&e.focus()},bodyMargin:function(){var n=u.can.leftBodyScrollbar()?"left":"right";E.css("margin-"+n,M),E.find(m.bodyFixed.replace("right",n)).each(function(){var e=R(this),t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"")})}},remove:{active:function(){x.removeClass(h.active)},legacy:function(){x.removeClass(h.legacy)},clickaway:function(){f.detachable||x.off("mousedown"+t),a.off("mousedown"+t),a.off("mouseup"+t)},dimmerStyles:function(){a.removeClass(h.inverted),i.removeClass(h.blurring)},bodyStyle:function(){""===E.attr("style")&&(u.verbose("Removing style attribute"),E.removeAttr("style"))},screenHeight:function(){u.debug("Removing page height"),E.css("height","")},keyboardShortcuts:function(){u.verbose("Removing keyboard shortcuts"),O.off("keyup"+b)},scrolling:function(){i.removeClass(h.scrolling),x.removeClass(h.scrolling)}},cacheSizes:function(){x.addClass(h.loading);var e=x.prop("scrollHeight"),t=x.outerWidth(),n=x.outerHeight();u.cache.pageHeight!==W&&0===n||(R.extend(u.cache,{pageHeight:R(K).outerHeight(),width:t,height:n+f.offset,scrollHeight:e+f.offset,contextHeight:"body"==f.context?R(P).height():i.height()}),u.cache.topOffset=-u.cache.height/2),x.removeClass(h.loading),u.debug("Caching modal and container sizes",u.cache)},helpers:{deQuote:function(e){return String(e).replace(/"/g,"")},escape:function(e,t){if(t)return e;var n={"<":"<",">":">",'"':""","'":"'","`":"`"};return/[&<>"'`]/.test(e)?(e=e.replace(/&(?![a-z0-9#]{1,6};)/,"&")).replace(/[<>"'`]/g,function(e){return n[e]}):e}},can:{leftBodyScrollbar:function(){return u.cache.leftBodyScrollbar===W&&(u.cache.leftBodyScrollbar=u.is.rtl()&&(u.is.iframe&&!u.is.firefox()||u.is.safari()||u.is.edge()||u.is.ie())),u.cache.leftBodyScrollbar},useFlex:function(){return"auto"===f.useFlex?f.detachable&&!u.is.ie():(f.useFlex&&u.is.ie()?u.debug("useFlex true is not supported in IE"):f.useFlex&&!f.detachable&&u.debug("useFlex true in combination with detachable false is not supported"),f.useFlex)},fit:function(){var e=u.cache.contextHeight,t=u.cache.contextHeight/2,n=u.cache.topOffset,i=u.cache.scrollHeight,o=u.cache.height,s=f.padding;return o<i?t+n+i+s<e:o+2*s<e}},has:{configActions:function(){return Array.isArray(f.actions)&&0<f.actions.length}},is:{active:function(){return x.hasClass(h.active)},ie:function(){if(u.cache.isIE===W){var e=!P.ActiveXObject&&"ActiveXObject"in P,t="ActiveXObject"in P;u.cache.isIE=e||t}return u.cache.isIE},animating:function(){return x.transition("is supported")?x.transition("is animating"):x.is(":visible")},scrolling:function(){return i.hasClass(h.scrolling)},modernBrowser:function(){return!(P.ActiveXObject||"ActiveXObject"in P)},rtl:function(){return u.cache.isRTL===W&&(u.cache.isRTL="rtl"===E.attr("dir")||"rtl"===E.css("direction")),u.cache.isRTL},safari:function(){return u.cache.isSafari===W&&(u.cache.isSafari=/constructor/i.test(P.HTMLElement)||!!P.ApplePaySession),u.cache.isSafari},edge:function(){return u.cache.isEdge===W&&(u.cache.isEdge=!!P.setImmediate&&!u.is.ie()),u.cache.isEdge},firefox:function(){return u.cache.isFirefox===W&&(u.cache.isFirefox=!!P.InstallTrigger),u.cache.isFirefox},iframe:function(){return!(self===top)}},set:{autofocus:function(){var e=n.filter("[autofocus]"),t=0<e.length?e.first():(1<n.length?n.filter(":not(i.close)"):n).first();0<t.length&&t.focus()},bodyMargin:function(){var n=u.can.leftBodyScrollbar()?"left":"right";(f.detachable||u.can.fit())&&E.css("margin-"+n,T+"px"),E.find(m.bodyFixed.replace("right",n)).each(function(){var e=R(this),t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"calc("+e.css(t)+" + "+T+"px)")})},clickaway:function(){f.detachable||x.on("mousedown"+t,u.event.mousedown),a.on("mousedown"+t,u.event.mousedown),a.on("mouseup"+t,u.event.mouseup)},dimmerSettings:function(){if(R.fn.dimmer!==W){var e={debug:f.debug,dimmerName:"modals",closable:"auto",useFlex:u.can.useFlex(),duration:{show:f.transition.showDuration||f.duration,hide:f.transition.hideDuration||f.duration}},t=R.extend(!0,e,f.dimmerSettings);f.inverted&&(t.variation=t.variation!==W?t.variation+" inverted":"inverted"),k.dimmer("setting",t)}else u.error(v.dimmer)},dimmerStyles:function(){f.inverted?a.addClass(h.inverted):a.removeClass(h.inverted),f.blurring?i.addClass(h.blurring):i.removeClass(h.blurring)},modalOffset:function(){if(f.detachable)x.css({marginTop:!x.hasClass("aligned")&&u.can.fit()?-u.cache.height/2:f.padding/2,marginLeft:-u.cache.width/2});else{var e=u.can.fit();x.css({top:!x.hasClass("aligned")&&e?R(K).scrollTop()+(u.cache.contextHeight-u.cache.height)/2:!e||x.hasClass("top")?R(K).scrollTop()+f.padding:R(K).scrollTop()+(u.cache.contextHeight-u.cache.height-f.padding),marginLeft:-u.cache.width/2})}u.verbose("Setting modal offset for legacy mode")},screenHeight:function(){u.can.fit()?E.css("height",""):x.hasClass("bottom")||(u.debug("Modal is taller than page content, resizing page height"),E.css("height",u.cache.height+2*f.padding))},active:function(){x.addClass(h.active+" "+h.front),s.filter("."+h.active).removeClass(h.front)},scrolling:function(){i.addClass(h.scrolling),x.addClass(h.scrolling),u.unbind.scrollLock()},legacy:function(){x.addClass(h.legacy)},type:function(){u.can.fit()?(u.verbose("Modal fits on screen"),u.others.active()||u.others.animating()||(u.remove.scrolling(),u.bind.scrollLock())):x.hasClass("bottom")?u.verbose("Bottom aligned modal not fitting on screen is unsupported for scrolling"):(u.verbose("Modal cannot fit on screen setting to scrolling"),u.set.scrolling())},undetached:function(){i.addClass(h.undetached)}},setting:function(e,t){if(u.debug("Changing setting",e,t),R.isPlainObject(e))R.extend(!0,f,e);else{if(t===W)return f[e];R.isPlainObject(f[e])?R.extend(!0,f[e],t):f[e]=t}},internal:function(e,t){if(R.isPlainObject(e))R.extend(!0,u,e);else{if(t===W)return u[e];u[e]=t}},debug:function(){!f.silent&&f.debug&&(f.performance?u.performance.log(arguments):(u.debug=Function.prototype.bind.call(console.info,console,f.name+":"),u.debug.apply(console,arguments)))},verbose:function(){!f.silent&&f.verbose&&f.debug&&(f.performance?u.performance.log(arguments):(u.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),u.verbose.apply(console,arguments)))},error:function(){f.silent||(u.error=Function.prototype.bind.call(console.error,console,f.name+":"),u.error.apply(console,arguments))},performance:{log:function(e){var t,n;f.performance&&(n=(t=(new Date).getTime())-(I||t),I=t,N.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:C,"Execution Time":n})),clearTimeout(u.performance.timer),u.performance.timer=setTimeout(u.performance.display,500)},display:function(){var e=f.name+":",n=0;I=!1,clearTimeout(u.performance.timer),R.each(N,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",L&&(e+=" '"+L+"'"),(console.group!==W||console.table!==W)&&0<N.length&&(console.groupCollapsed(e),console.table?console.table(N):R.each(N,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),N=[]}},invoke:function(i,e,t){var o,s,n,a=S;return e=e||q,t=C||t,"string"==typeof i&&a!==W&&(i=i.split(/[\. ]/),o=i.length-1,R.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(R.isPlainObject(a[n])&&e!=o)a=a[n];else{if(a[n]!==W)return s=a[n],!1;if(!R.isPlainObject(a[t])||e==o)return a[t]!==W&&(s=a[t]),!1;a=a[t]}})),R.isFunction(s)?n=s.apply(t,e):s!==W&&(n=s),Array.isArray(H)?H.push(n):H!==W?H=[H,n]:n!==W&&(H=n),s}},j?(S===W&&(R.isFunction(f.templates[z])&&(f.autoShow=!0,f.className.modal=f.className.template,f=R.extend(!0,{},f,f.templates[z].apply(u,q)),h=f.className,g=f.namespace,p=f.fields,v=f.error),u.initialize()),R.isFunction(f.templates[z])||u.invoke(z)):(S!==W&&S.invoke("destroy"),u.initialize(),H=x)}),H!==W?H:this},R.fn.modal.settings={name:"Modal",namespace:"modal",useFlex:"auto",offset:0,silent:!1,debug:!1,verbose:!1,performance:!0,observeChanges:!1,allowMultiple:!1,detachable:!0,closable:!0,autofocus:!0,restoreFocus:!0,autoShow:!1,inverted:!1,blurring:!1,centered:!0,dimmerSettings:{closable:!1,useCSS:!0},keyboardShortcuts:!0,context:"body",queue:!1,duration:500,transition:"scale",padding:50,scrollbarWidth:10,title:"",content:"",class:"",classTitle:"",classContent:"",classActions:"",closeIcon:!1,actions:!1,preserveHTML:!0,fields:{class:"class",text:"text",icon:"icon",click:"click"},onShow:function(){},onVisible:function(){},onHide:function(){return!0},onHidden:!1,onApprove:function(){return!0},onDeny:function(){return!0},keys:{space:32,enter:13,escape:27,tab:9},selector:{title:"> .header",content:"> .content",actions:"> .actions",close:"> .close",closeIcon:"> .close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel",modal:".ui.modal",dimmer:"> .ui.dimmer",bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close",prompt:".ui.input > input"},error:{dimmer:"UI Dimmer, a required component is not included in this page",method:"The method you called is not defined.",notFound:"The element you specified could not be found"},className:{active:"active",animating:"animating",blurring:"blurring",inverted:"inverted",legacy:"legacy",loading:"loading",scrolling:"scrolling",undetached:"undetached",front:"front",close:"close icon",button:"ui button",modal:"ui modal",title:"header",content:"content",actions:"actions",template:"ui tiny modal",ok:"positive",cancel:"negative",prompt:"ui fluid input"},text:{ok:"Ok",cancel:"Cancel",close:"Close"}},R.fn.modal.settings.templates={getArguments:function(e){var t=[].slice.call(e);return R.isPlainObject(t[0])?R.extend({handler:function(){},content:"",title:""},t[0]):(R.isFunction(t[t.length-1])||t.push(function(){}),{handler:t.pop(),content:t.pop()||"",title:t.pop()||""})},alert:function(){var e=this.get.settings(),t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:t.handler}]}},confirm:function(){var e=this.get.settings(),t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){t.handler(!0)}},{text:e.text.cancel,class:e.className.cancel,click:function(){t.handler(!1)}}]}},prompt:function(){var n=this,e=this.get.settings(),i=e.templates.getArguments(arguments);return 0===R(R.parseHTML(i.content)).filter(".ui.input").length&&(i.content+='<p><div class="'+e.className.prompt+'"><input placeholder="'+this.helpers.deQuote(i.placeholder||"")+'" type="text" value="'+this.helpers.deQuote(i.defaultValue||"")+'"></div></p>'),{title:i.title,content:i.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){var e=n.get.settings(),t=n.get.element().find(e.selector.prompt)[0];i.handler(R(t).val())}},{text:e.text.cancel,class:e.className.cancel,click:function(){i.handler(null)}}]}}}}(jQuery,window,document);
|
11
|
+
!function(Q,X,U,V){"use strict";Q.isFunction=Q.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},X=void 0!==X&&X.Math==Math?X:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Q.modal=Q.fn.modal=function(E){var L,e=Q(this),I=Q(X),N=Q(U),z=Q("body"),j=e.selector||"",q=(new Date).getTime(),B=[],R=E,W="string"==typeof R,P=[].slice.call(arguments,1),K=X.requestAnimationFrame||X.mozRequestAnimationFrame||X.webkitRequestAnimationFrame||X.msRequestAnimationFrame||function(e){setTimeout(e,0)};return e.each(function(){var t,o,s,e,i,n,a,r,c,l,d,u=Q.isPlainObject(E)?Q.extend(!0,{},Q.fn.modal.settings,E):Q.extend({},Q.fn.modal.settings),f=u.selector,m=u.className,h=u.namespace,g=u.fields,p=u.error,v="."+h,b="module-"+h,y=Q(this),k=[X,U].indexOf(u.context)<0?N.find(u.context):z,x=k[0]===z[0],w=y.find(f.closeIcon),C=y.hasClass("modal"),S=this,F=C?y.data(b):V,M=!1,T="",A="",D=!1,H=!1,O={initialize:function(){var s;O.create.id(),C||(O.create.modal(),Q.isFunction(u.onHidden)||(u.onHidden=function(){O.destroy(),y.remove()})),y.addClass(u.class),""!==u.title&&y.find(f.title).html(O.helpers.escape(u.title,u.preserveHTML)).addClass(u.classTitle),""!==u.content&&y.find(f.content).html(O.helpers.escape(u.content,u.preserveHTML)).addClass(u.classContent),O.has.configActions()&&(0===(s=y.find(f.actions).addClass(u.classActions)).length?s=Q("<div/>",{class:m.actions+" "+(u.classActions||"")}).appendTo(y):s.empty(),u.actions.forEach(function(e){var t=e[g.icon]?"<i "+(e[g.text]?'aria-hidden="true"':"")+' class="'+O.helpers.deQuote(e[g.icon])+' icon"></i>':"",n=O.helpers.escape(e[g.text]||"",u.preserveHTML),i=O.helpers.deQuote(e[g.class]||""),o=e[g.click]&&Q.isFunction(e[g.click])?e[g.click]:function(){};s.append(Q("<button/>",{html:t+n,"aria-label":(e[g.text]||e[g.icon]||"").replace(/<[^>]+(>|$)/g,""),class:m.button+" "+i,click:function(){var e=Q(this);e.is(f.approve)||e.is(f.deny)||!1===o.call(S,y)||O.hide()}}))})),O.cache={},O.verbose("Initializing dimmer",k),O.create.dimmer(),u.allowMultiple&&O.create.innerDimmer(),u.centered||y.addClass("top aligned"),O.refreshModals(),O.bind.events(),O.observeChanges(),O.instantiate(),u.autoShow&&O.show()},instantiate:function(){O.verbose("Storing instance of modal"),F=O,y.data(b,F)},create:{modal:function(){var e;y=Q("<div/>",{class:m.modal,role:"dialog","aria-modal":!0}),u.closeIcon&&(w=Q("<i/>",{class:m.close,role:"button",tabindex:0,"aria-label":u.text.close}),y.append(w)),""!==u.title&&(e="_"+O.get.id()+"title",y.attr("aria-labelledby",e),Q("<div/>",{class:m.title,id:e}).appendTo(y)),""!==u.content&&(e="_"+O.get.id()+"desc",y.attr("aria-describedby",e),Q("<div/>",{class:m.content,id:e}).appendTo(y)),O.has.configActions()&&Q("<div/>",{class:m.actions}).appendTo(y),k.append(y),S=y[0]},dimmer:function(){var e={debug:u.debug,dimmerName:"modals"},e=Q.extend(!0,e,u.dimmerSettings);Q.fn.dimmer===V?O.error(p.dimmer):(O.debug("Creating dimmer"),i=k.dimmer(e),D=O.is.scrolling(),u.detachable?(O.verbose("Modal is detachable, moving content into dimmer"),i.dimmer("add content",y)):O.set.undetached(),n=i.dimmer("get dimmer"))},id:function(){l=(Math.random().toString(16)+"000000000").slice(2,10),c="."+l,O.verbose("Creating unique id for element",l)},innerDimmer:function(){0===y.find(f.dimmer).length&&Q("<div/>",{class:m.innerDimmer}).prependTo(y)}},destroy:function(){d&&d.disconnect(),O.verbose("Destroying previous modal"),y.removeData(b).off(v),I.off(c),n.off(c),w.off(c),t&&t.off(c),k.dimmer("destroy")},observeChanges:function(){"MutationObserver"in X&&((d=new MutationObserver(function(e){u.observeChanges&&(O.debug("DOM tree modified, refreshing"),O.refresh()),O.refreshInputs()})).observe(S,{childList:!0,subtree:!0}),O.debug("Setting up mutation observer",d))},refresh:function(){O.remove.scrolling(),O.cacheSizes(),O.can.useFlex()||O.set.modalOffset(),O.set.screenHeight(),O.set.type()},refreshModals:function(){s=y.siblings(f.modal),o=s.add(y)},refreshInputs:function(){t&&t.off("keydown"+c),(t=y.find("[tabindex], :input").filter(":visible").filter(function(){return 0===Q(this).closest(".disabled").length})).first().on("keydown"+c,O.event.inputKeyDown.first),t.last().on("keydown"+c,O.event.inputKeyDown.last)},attachEvents:function(e,t){var n=Q(e);t=Q.isFunction(O[t])?O[t]:O.toggle,0<n.length?(O.debug("Attaching modal events to element",e,t),n.off(v).on("click"+v,t)):O.error(p.notFound,e)},bind:{events:function(){O.verbose("Attaching events"),y.on("click"+v,f.close,O.event.close).on("click"+v,f.approve,O.event.approve).on("click"+v,f.deny,O.event.deny),w.on("keyup"+c,O.event.closeKeyUp),I.on("resize"+c,O.event.resize)},scrollLock:function(){i[0].addEventListener("touchmove",O.event.preventScroll,{passive:!1})}},unbind:{scrollLock:function(){i[0].removeEventListener("touchmove",O.event.preventScroll,{passive:!1})}},get:{id:function(){return l},element:function(){return y},settings:function(){return u}},event:{approve:function(){M||!1===u.onApprove.call(S,Q(this))?O.verbose("Approve callback returned false cancelling hide"):(M=!0,O.hide(function(){M=!1}))},preventScroll:function(e){-1!==e.target.className.indexOf("dimmer")&&e.preventDefault()},deny:function(){M||!1===u.onDeny.call(S,Q(this))?O.verbose("Deny callback returned false cancelling hide"):(M=!0,O.hide(function(){M=!1}))},close:function(){O.hide()},closeKeyUp:function(e){e=e.which;e!==u.keys.enter&&e!==u.keys.space||!y.hasClass(m.front)||O.hide()},inputKeyDown:{first:function(e){e.which===u.keys.tab&&e.shiftKey&&(t.last().focus(),e.preventDefault())},last:function(e){e.which!==u.keys.tab||e.shiftKey||(t.first().focus(),e.preventDefault())}},mousedown:function(e){var t=Q(e.target),n=O.is.rtl();(a=0<t.closest(f.modal).length)&&O.verbose("Mouse down event registered inside the modal"),(r=O.is.scrolling()&&(!n&&I.outerWidth()-u.scrollbarWidth<=e.clientX||n&&u.scrollbarWidth>=e.clientX))&&O.verbose("Mouse down event registered inside the scrollbar")},mouseup:function(e){if(u.closable)if(a)O.debug("Dimmer clicked but mouse down was initially registered inside the modal");else if(r)O.debug("Dimmer clicked but mouse down was initially registered inside the scrollbar");else{var t=0<Q(e.target).closest(f.modal).length,e=Q.contains(U.documentElement,e.target);if(!t&&e&&O.is.active()&&y.hasClass(m.front)){if(O.debug("Dimmer clicked, hiding all modals"),u.allowMultiple){if(!O.hideAll())return}else if(!O.hide())return;O.remove.clickaway()}}else O.verbose("Dimmer clicked but closable setting is disabled")},debounce:function(e,t){clearTimeout(O.timer),O.timer=setTimeout(e,t)},keyboard:function(e){e.which===u.keys.escape&&(u.closable?(O.debug("Escape key pressed hiding modal"),y.hasClass(m.front)&&O.hide()):O.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){i.dimmer("is active")&&(O.is.animating()||O.is.active())&&K(O.refresh)}},toggle:function(){O.is.active()||O.is.animating()?O.hide():O.show()},show:function(e){e=Q.isFunction(e)?e:function(){},O.refreshModals(),O.set.dimmerSettings(),O.set.dimmerStyles(),O.showModal(e)},hide:function(e){return e=Q.isFunction(e)?e:function(){},O.refreshModals(),O.hideModal(e)},showModal:function(e){e=Q.isFunction(e)?e:function(){},O.is.animating()||!O.is.active()?!1===u.onShow.call(S)?O.verbose("Show callback returned false cancelling show"):(H=O.has.scrollbar(),O.showDimmer(),O.cacheSizes(),H&&O.set.bodyMargin(),O.can.useFlex()?O.remove.legacy():(O.set.legacy(),O.set.modalOffset(),O.debug("Using non-flex legacy modal positioning.")),O.set.screenHeight(),O.set.type(),O.set.clickaway(),!u.allowMultiple&&O.others.active()?O.hideOthers(O.showModal):(M=!1,u.allowMultiple&&(O.others.active()&&s.filter("."+m.active).find(f.dimmer).addClass("active"),u.detachable&&y.detach().appendTo(n)),u.transition&&Q.fn.transition!==V&&y.transition("is supported")?(O.debug("Showing modal with css animations"),y.transition({debug:u.debug,verbose:u.verbose,silent:u.silent,animation:(u.transition.showMethod||u.transition)+" in",queue:u.queue,duration:u.transition.showDuration||u.duration,useFailSafe:!0,onComplete:function(){u.onVisible.apply(S),u.keyboardShortcuts&&O.add.keyboardShortcuts(),O.save.focus(),O.set.active(),O.refreshInputs(),u.autofocus&&O.set.autofocus(),e()}})):O.error(p.noTransition))):O.debug("Modal is already visible")},hideModal:function(e,t,n){var i=s.filter("."+m.active).last();if(e=Q.isFunction(e)?e:function(){},!1===u.onHide.call(S,Q(this)))return O.verbose("Hide callback returned false cancelling hide"),M=!1;(O.is.animating()||O.is.active())&&(O.debug("Hiding modal"),u.transition&&Q.fn.transition!==V&&y.transition("is supported")?(O.remove.active(),y.transition({debug:u.debug,verbose:u.verbose,silent:u.silent,animation:(u.transition.hideMethod||u.transition)+" out",queue:u.queue,duration:u.transition.hideDuration||u.duration,useFailSafe:!0,onStart:function(){O.others.active()||O.others.animating()||t||O.hideDimmer(),u.keyboardShortcuts&&!O.others.active()&&O.remove.keyboardShortcuts()},onComplete:function(){O.unbind.scrollLock(),u.allowMultiple&&(i.addClass(m.front),y.removeClass(m.front),(n?o:i).find(f.dimmer).removeClass("active")),Q.isFunction(u.onHidden)&&u.onHidden.call(S),O.remove.dimmerStyles(),O.restore.focus(),e()}})):O.error(p.noTransition))},showDimmer:function(){i.dimmer("is animating")||!i.dimmer("is active")?(H&&(x||n.css("top",i.scrollTop()),O.save.bodyMargin()),O.debug("Showing dimmer"),i.dimmer("show")):O.debug("Dimmer already visible")},hideDimmer:function(){i.dimmer("is animating")||i.dimmer("is active")?(O.unbind.scrollLock(),i.dimmer("hide",function(){H&&O.restore.bodyMargin(),O.remove.clickaway(),O.remove.screenHeight()})):O.debug("Dimmer is not visible cannot hide")},hideAll:function(n){var i,e=o.filter("."+m.active+", ."+m.animating);if(n=Q.isFunction(n)?n:function(){},0<e.length)return O.debug("Hiding all visible modals"),i=!0,Q(e.get().reverse()).each(function(e,t){i=i&&Q(t).modal("hide modal",n,!1,!0)}),i&&O.hideDimmer(),i},hideOthers:function(e){var t=s.filter("."+m.active+", ."+m.animating);e=Q.isFunction(e)?e:function(){},0<t.length&&(O.debug("Hiding other modals",s),t.modal("hide modal",e,!0))},others:{active:function(){return 0<s.filter("."+m.active).length},animating:function(){return 0<s.filter("."+m.animating).length}},add:{keyboardShortcuts:function(){O.verbose("Adding keyboard shortcuts"),N.on("keydown"+v,O.event.keyboard)}},save:{focus:function(){0<Q(U.activeElement).closest(y).length||(e=Q(U.activeElement).blur())},bodyMargin:function(){T=k.css((x?"margin-":"padding-")+(O.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(T.replace(/[^\d.]/g,"")),t=x?X.innerWidth-U.documentElement.clientWidth:k[0].offsetWidth-k[0].clientWidth;A=e+t}},restore:{focus:function(){e&&0<e.length&&u.restoreFocus&&e.focus()},bodyMargin:function(){var n=O.can.leftBodyScrollbar()?"left":"right";k.css((x?"margin-":"padding-")+n,T),k.find(f.bodyFixed.replace("right",n)).each(function(){var e=Q(this),t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"")})}},remove:{active:function(){y.removeClass(m.active)},legacy:function(){y.removeClass(m.legacy)},clickaway:function(){u.detachable||y.off("mousedown"+c),n.off("mousedown"+c),n.off("mouseup"+c)},dimmerStyles:function(){n.removeClass(m.inverted),i.removeClass(m.blurring)},bodyStyle:function(){""===k.attr("style")&&(O.verbose("Removing style attribute"),k.removeAttr("style"))},screenHeight:function(){O.debug("Removing page height"),k.css("height",""),O.remove.bodyStyle()},keyboardShortcuts:function(){O.verbose("Removing keyboard shortcuts"),N.off("keydown"+v)},scrolling:function(){D||i.removeClass(m.scrolling),y.removeClass(m.scrolling)}},cacheSizes:function(){y.addClass(m.loading);var e=y.prop("scrollHeight"),t=y.outerWidth(),n=y.outerHeight();O.cache.pageHeight!==V&&0===n||(Q.extend(O.cache,{pageHeight:N.outerHeight(),width:t,height:n+u.offset,scrollHeight:e+u.offset,contextHeight:(x?I:i).height()}),O.cache.topOffset=-O.cache.height/2),y.removeClass(m.loading),O.debug("Caching modal and container sizes",O.cache)},helpers:{deQuote:function(e){return String(e).replace(/"/g,"")},escape:function(e,t){if(t)return e;var n={"<":"<",">":">",'"':""","'":"'","`":"`"};return/[&<>"'`]/.test(e)?(e=e.replace(/&(?![a-z0-9#]{1,12};)/gi,"&")).replace(/[<>"'`]/g,function(e){return n[e]}):e}},can:{leftBodyScrollbar:function(){return O.cache.leftBodyScrollbar===V&&(O.cache.leftBodyScrollbar=O.is.rtl()&&(O.is.iframe&&!O.is.firefox()||O.is.safari()||O.is.edge()||O.is.ie())),O.cache.leftBodyScrollbar},useFlex:function(){return"auto"===u.useFlex?u.detachable&&!O.is.ie():(u.useFlex&&O.is.ie()?O.debug("useFlex true is not supported in IE"):u.useFlex&&!u.detachable&&O.debug("useFlex true in combination with detachable false is not supported"),u.useFlex)},fit:function(){var e=O.cache.contextHeight,t=O.cache.contextHeight/2,n=O.cache.topOffset,i=O.cache.scrollHeight,o=O.cache.height,s=u.padding;return o<i?t+n+i+s<e:o+2*s<e}},has:{configActions:function(){return Array.isArray(u.actions)&&0<u.actions.length},scrollbar:function(){return x||"hidden"!==k.css("overflow-y")}},is:{active:function(){return y.hasClass(m.active)},ie:function(){var e,t;return O.cache.isIE===V&&(e=!X.ActiveXObject&&"ActiveXObject"in X,t="ActiveXObject"in X,O.cache.isIE=e||t),O.cache.isIE},animating:function(){return y.transition("is supported")?y.transition("is animating"):y.is(":visible")},scrolling:function(){return i.hasClass(m.scrolling)},modernBrowser:function(){return!(X.ActiveXObject||"ActiveXObject"in X)},rtl:function(){return O.cache.isRTL===V&&(O.cache.isRTL="rtl"===y.attr("dir")||"rtl"===y.css("direction")||"rtl"===z.attr("dir")||"rtl"===z.css("direction")||"rtl"===k.attr("dir")||"rtl"===k.css("direction")),O.cache.isRTL},safari:function(){return O.cache.isSafari===V&&(O.cache.isSafari=/constructor/i.test(X.HTMLElement)||!!X.ApplePaySession),O.cache.isSafari},edge:function(){return O.cache.isEdge===V&&(O.cache.isEdge=!!X.setImmediate&&!O.is.ie()),O.cache.isEdge},firefox:function(){return O.cache.isFirefox===V&&(O.cache.isFirefox=!!X.InstallTrigger),O.cache.isFirefox},iframe:function(){return!(self===top)}},set:{autofocus:function(){var e=t.filter("[autofocus]"),e=(0<e.length?e:1<t.length?t.filter(":not(i.close)"):t).first();0<e.length&&e.focus()},bodyMargin:function(){var n=O.can.leftBodyScrollbar()?"left":"right";(u.detachable||O.can.fit())&&k.css((x?"margin-":"padding-")+n,A+"px"),k.find(f.bodyFixed.replace("right",n)).each(function(){var e=Q(this),t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"calc("+e.css(t)+" + "+A+"px)")})},clickaway:function(){u.detachable||y.on("mousedown"+c,O.event.mousedown),n.on("mousedown"+c,O.event.mousedown),n.on("mouseup"+c,O.event.mouseup)},dimmerSettings:function(){var e;Q.fn.dimmer===V?O.error(p.dimmer):(e={debug:u.debug,dimmerName:"modals",closable:"auto",useFlex:O.can.useFlex(),duration:{show:u.transition.showDuration||u.duration,hide:u.transition.hideDuration||u.duration}},e=Q.extend(!0,e,u.dimmerSettings),u.inverted&&(e.variation=e.variation!==V?e.variation+" inverted":"inverted"),k.dimmer("setting",e))},dimmerStyles:function(){u.inverted?n.addClass(m.inverted):n.removeClass(m.inverted),u.blurring?i.addClass(m.blurring):i.removeClass(m.blurring)},modalOffset:function(){var e;u.detachable?y.css({marginTop:!y.hasClass("aligned")&&O.can.fit()?-O.cache.height/2:u.padding/2,marginLeft:-O.cache.width/2}):(e=O.can.fit(),y.css({top:!y.hasClass("aligned")&&e?N.scrollTop()+(O.cache.contextHeight-O.cache.height)/2:!e||y.hasClass("top")?N.scrollTop()+u.padding:N.scrollTop()+(O.cache.contextHeight-O.cache.height-u.padding),marginLeft:-O.cache.width/2})),O.verbose("Setting modal offset for legacy mode")},screenHeight:function(){O.can.fit()?k.css("height",""):y.hasClass("bottom")||(O.debug("Modal is taller than page content, resizing page height"),k.css("height",O.cache.height+2*u.padding))},active:function(){y.addClass(m.active+" "+m.front),s.filter("."+m.active).removeClass(m.front)},scrolling:function(){i.addClass(m.scrolling),y.addClass(m.scrolling),O.unbind.scrollLock()},legacy:function(){y.addClass(m.legacy)},type:function(){O.can.fit()?(O.verbose("Modal fits on screen"),O.others.active()||O.others.animating()||(O.remove.scrolling(),O.bind.scrollLock())):y.hasClass("bottom")?O.verbose("Bottom aligned modal not fitting on screen is unsupported for scrolling"):(O.verbose("Modal cannot fit on screen setting to scrolling"),O.set.scrolling())},undetached:function(){i.addClass(m.undetached)}},setting:function(e,t){if(O.debug("Changing setting",e,t),Q.isPlainObject(e))Q.extend(!0,u,e);else{if(t===V)return u[e];Q.isPlainObject(u[e])?Q.extend(!0,u[e],t):u[e]=t}},internal:function(e,t){if(Q.isPlainObject(e))Q.extend(!0,O,e);else{if(t===V)return O[e];O[e]=t}},debug:function(){!u.silent&&u.debug&&(u.performance?O.performance.log(arguments):(O.debug=Function.prototype.bind.call(console.info,console,u.name+":"),O.debug.apply(console,arguments)))},verbose:function(){!u.silent&&u.verbose&&u.debug&&(u.performance?O.performance.log(arguments):(O.verbose=Function.prototype.bind.call(console.info,console,u.name+":"),O.verbose.apply(console,arguments)))},error:function(){u.silent||(O.error=Function.prototype.bind.call(console.error,console,u.name+":"),O.error.apply(console,arguments))},performance:{log:function(e){var t,n;u.performance&&(n=(t=(new Date).getTime())-(q||t),q=t,B.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:S,"Execution Time":n})),clearTimeout(O.performance.timer),O.performance.timer=setTimeout(O.performance.display,500)},display:function(){var e=u.name+":",n=0;q=!1,clearTimeout(O.performance.timer),Q.each(B,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",j&&(e+=" '"+j+"'"),(console.group!==V||console.table!==V)&&0<B.length&&(console.groupCollapsed(e),console.table?console.table(B):Q.each(B,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),B=[]}},invoke:function(i,e,t){var o,s,n,a=F;return e=e||P,t=t||S,"string"==typeof i&&a!==V&&(i=i.split(/[\. ]/),o=i.length-1,Q.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(Q.isPlainObject(a[n])&&e!=o)a=a[n];else{if(a[n]!==V)return s=a[n],!1;{if(!Q.isPlainObject(a[t])||e==o)return a[t]!==V&&(s=a[t]),!1;a=a[t]}}})),Q.isFunction(s)?n=s.apply(t,e):s!==V&&(n=s),Array.isArray(L)?L.push(n):L!==V?L=[L,n]:n!==V&&(L=n),s}};W?(F===V&&(Q.isFunction(u.templates[R])&&(u.autoShow=!0,u.className.modal=u.className.template,u=Q.extend(!0,{},u,u.templates[R].apply(O,P)),m=u.className,u.namespace,g=u.fields,p=u.error),O.initialize()),Q.isFunction(u.templates[R])||O.invoke(R)):(F!==V&&F.invoke("destroy"),O.initialize(),L=y)}),L!==V?L:this},Q.fn.modal.settings={name:"Modal",namespace:"modal",useFlex:"auto",offset:0,silent:!1,debug:!1,verbose:!1,performance:!0,observeChanges:!1,allowMultiple:!1,detachable:!0,closable:!0,autofocus:!0,restoreFocus:!0,autoShow:!1,inverted:!1,blurring:!1,centered:!0,dimmerSettings:{closable:!1,useCSS:!0},keyboardShortcuts:!0,context:"body",queue:!1,duration:500,transition:"scale",padding:50,scrollbarWidth:10,title:"",content:"",class:"",classTitle:"",classContent:"",classActions:"",closeIcon:!1,actions:!1,preserveHTML:!0,fields:{class:"class",text:"text",icon:"icon",click:"click"},onShow:function(){},onVisible:function(){},onHide:function(){return!0},onHidden:!1,onApprove:function(){return!0},onDeny:function(){return!0},keys:{space:32,enter:13,escape:27,tab:9},selector:{title:"> .header",content:"> .content",actions:"> .actions",close:"> .close",closeIcon:"> .close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel",modal:".ui.modal",dimmer:"> .ui.dimmer",bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close",prompt:".ui.input > input"},error:{dimmer:"UI Dimmer, a required component is not included in this page",method:"The method you called is not defined.",notFound:"The element you specified could not be found"},className:{active:"active",animating:"animating",blurring:"blurring",inverted:"inverted",legacy:"legacy",loading:"loading",scrolling:"scrolling",undetached:"undetached",front:"front",close:"close icon",button:"ui button",modal:"ui modal",title:"header",content:"content",actions:"actions",template:"ui tiny modal",ok:"positive",cancel:"negative",prompt:"ui fluid input",innerDimmer:"ui inverted dimmer"},text:{ok:"Ok",cancel:"Cancel",close:"Close"}},Q.fn.modal.settings.templates={getArguments:function(e){e=[].slice.call(e);return Q.isPlainObject(e[0])?Q.extend({handler:function(){},content:"",title:""},e[0]):(Q.isFunction(e[e.length-1])||e.push(function(){}),{handler:e.pop(),content:e.pop()||"",title:e.pop()||""})},alert:function(){var e=this.get.settings(),t=e.templates.getArguments(arguments),n=t.handler;return{title:t.title,content:t.content,onApprove:n,actions:[{text:e.text.ok,class:e.className.ok,click:n}]}},confirm:function(){function e(){i.handler(!0)}function t(){i.handler(!1)}var n=this.get.settings(),i=n.templates.getArguments(arguments);return{title:i.title,content:i.content,onApprove:e,onDeny:t,actions:[{text:n.text.ok,class:n.className.ok,click:e},{text:n.text.cancel,class:n.className.cancel,click:t}]}},prompt:function(){function e(){var e=n.get.settings(),e=n.get.element().find(e.selector.prompt)[0];o.handler(Q(e).val())}function t(){o.handler(null)}var n=this,i=this.get.settings(),o=i.templates.getArguments(arguments);return 0===Q(Q.parseHTML(o.content)).filter(".ui.input").length&&(o.content+='<p><div class="'+this.helpers.deQuote(i.className.prompt)+'"><input placeholder="'+this.helpers.deQuote(o.placeholder||"")+'" type="text" value="'+this.helpers.deQuote(o.defaultValue||"")+'"></div></p>'),{title:o.title,content:o.content,onApprove:e,onDeny:t,actions:[{text:i.text.ok,class:i.className.ok,click:e},{text:i.text.cancel,class:i.className.cancel,click:t}]}}}}(jQuery,window,document);
|
package/dist/components/nag.css
CHANGED
package/dist/components/nag.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.9.
|
2
|
+
* # Fomantic-UI 2.9.1-beta.0+a290620 - Nag
|
3
3
|
* http://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -53,7 +53,7 @@ $.fn.nag = function(parameters) {
|
|
53
53
|
$module = $(this),
|
54
54
|
|
55
55
|
$context = (settings.context)
|
56
|
-
? $(settings.context)
|
56
|
+
? ([window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context))
|
57
57
|
: $('body'),
|
58
58
|
|
59
59
|
element = this,
|
@@ -403,7 +403,7 @@ $.fn.nag = function(parameters) {
|
|
403
403
|
response
|
404
404
|
;
|
405
405
|
passedArguments = passedArguments || queryArguments;
|
406
|
-
context =
|
406
|
+
context = context || element;
|
407
407
|
if(typeof query == 'string' && object !== undefined) {
|
408
408
|
query = query.split(/[\. ]/);
|
409
409
|
maxDepth = query.length - 1;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* # Fomantic UI - 2.9.
|
2
|
+
* # Fomantic UI - 2.9.1-beta.0+a290620
|
3
3
|
* https://github.com/fomantic/Fomantic-UI
|
4
4
|
* http://fomantic-ui.com/
|
5
5
|
*
|
6
|
-
* Copyright
|
6
|
+
* Copyright 2022 Contributors
|
7
7
|
* Released under the MIT license
|
8
8
|
* http://opensource.org/licenses/MIT
|
9
9
|
*
|
10
10
|
*/
|
11
|
-
!function(x,w,D,I){"use strict";x.isFunction=x.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},w=void 0!==w&&w.Math==Math?w:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),x.fn.nag=function(d){var p,e=x(this),m=e.selector||"",f=(new Date).getTime(),h=[],b=d,
|
11
|
+
!function(x,w,D,I){"use strict";x.isFunction=x.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},w=void 0!==w&&w.Math==Math?w:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),x.fn.nag=function(d){var p,e=x(this),m=e.selector||"",f=(new Date).getTime(),h=[],b=d,y="string"==typeof b,v=[].slice.call(arguments,1);return e.each(function(){var o,i=x.isPlainObject(d)?x.extend(!0,{},x.fn.nag.settings,d):x.extend({},x.fn.nag.settings),e=i.selector,s=i.error,n=i.namespace,t="."+n,a=n+"-module",r=x(this),c=i.context?[w,D].indexOf(i.context)<0?x(D).find(i.context):x(i.context):x("body"),l=this,u=r.data(a),g={initialize:function(){g.verbose("Initializing element"),o=g.get.storage(),r.on("click"+t,e.close,g.dismiss).data(a,g),i.detachable&&r.parent()[0]!==c[0]&&r.detach().prependTo(c),0<i.displayTime&&setTimeout(g.hide,i.displayTime),g.show()},destroy:function(){g.verbose("Destroying instance"),r.removeData(a).off(t)},show:function(){if(g.should.show()&&!r.is(":visible")){if(!1===i.onShow.call(l))return g.debug("onShow callback returned false, cancelling nag animation"),!1;g.debug("Showing nag",i.animation.show),"fade"===i.animation.show?r.fadeIn(i.duration,i.easing,i.onVisible):r.slideDown(i.duration,i.easing,i.onVisible)}},hide:function(){if(!1===i.onHide.call(l))return g.debug("onHide callback returned false, cancelling nag animation"),!1;g.debug("Hiding nag",i.animation.hide),"fade"===i.animation.hide?r.fadeOut(i.duration,i.easing,i.onHidden):r.slideUp(i.duration,i.easing,i.onHidden)},dismiss:function(e){!1!==g.hide()&&i.storageMethod&&(g.debug("Dismissing nag",i.storageMethod,i.key,i.value,i.expires),g.storage.set(i.key,i.value)),e.stopImmediatePropagation(),e.preventDefault()},should:{show:function(){return i.persist?(g.debug("Persistent nag is set, can show nag"),!0):g.storage.get(i.key)!=i.value.toString()?(g.debug("Stored value is not set, can show nag",g.storage.get(i.key)),!0):(g.debug("Stored value is set, cannot show nag",g.storage.get(i.key)),!1)}},get:{expirationDate:function(e){if((e="number"==typeof e?new Date(Date.now()+864e5*e):e)instanceof Date&&e.getTime())return e.toUTCString();g.error(s.expiresFormat)},storage:function(){return"localstorage"===i.storageMethod&&w.localStorage!==I?(g.debug("Using local storage"),w.localStorage):"sessionstorage"===i.storageMethod&&w.sessionStorage!==I?(g.debug("Using session storage"),w.sessionStorage):"cookie"in D?(g.debug("Using cookie"),{setItem:function(e,n,t){e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),n=encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent);var o,i="";for(o in t)t.hasOwnProperty(o)&&(i+="; "+o,"string"==typeof t[o]&&(i+="="+t[o].split(";")[0]));D.cookie=e+"="+n+i},getItem:function(e){for(var n=D.cookie.split("; "),t=0,o=n.length;t<o;t++){var i=n[t].split("=");if(e===i[0].replace(/(%[\dA-F]{2})+/gi,decodeURIComponent))return i[1]||""}},removeItem:function(e,n){o.setItem(e,"",n)}}):void g.error(s.noStorage)},storageOptions:function(){var e={};return i.expires&&(e.expires=g.get.expirationDate(i.expires)),i.domain&&(e.domain=i.domain),i.path&&(e.path=i.path),i.secure&&(e.secure=i.secure),i.samesite&&(e.samesite=i.samesite),e}},clear:function(){g.storage.remove(i.key)},storage:{set:function(e,n){var t=g.get.storageOptions();o===w.localStorage&&t.expires&&(g.debug("Storing expiration value in localStorage",e,t.expires),o.setItem(e+i.expirationKey,t.expires)),g.debug("Value stored",e,n);try{o.setItem(e,n,t)}catch(e){g.error(s.setItem,e)}},get:function(e){var n,t=o.getItem(e);return o===w.localStorage&&null!==(n=o.getItem(e+i.expirationKey))&&n!==I&&new Date(n)<new Date&&(g.debug("Value in localStorage has expired. Deleting key",e),g.storage.remove(e),t=null),t="undefined"!=t&&"null"!=t&&t!==I&&null!==t?t:I},remove:function(e){var n=g.get.storageOptions();n.expires=g.get.expirationDate(-1),o===w.localStorage&&o.removeItem(e+i.expirationKey),o.removeItem(e,n)}},setting:function(e,n){if(g.debug("Changing setting",e,n),x.isPlainObject(e))x.extend(!0,i,e);else{if(n===I)return i[e];x.isPlainObject(i[e])?x.extend(!0,i[e],n):i[e]=n}},internal:function(e,n){if(x.isPlainObject(e))x.extend(!0,g,e);else{if(n===I)return g[e];g[e]=n}},debug:function(){!i.silent&&i.debug&&(i.performance?g.performance.log(arguments):(g.debug=Function.prototype.bind.call(console.info,console,i.name+":"),g.debug.apply(console,arguments)))},verbose:function(){!i.silent&&i.verbose&&i.debug&&(i.performance?g.performance.log(arguments):(g.verbose=Function.prototype.bind.call(console.info,console,i.name+":"),g.verbose.apply(console,arguments)))},error:function(){i.silent||(g.error=Function.prototype.bind.call(console.error,console,i.name+":"),g.error.apply(console,arguments))},performance:{log:function(e){var n,t;i.performance&&(t=(n=(new Date).getTime())-(f||n),f=n,h.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:l,"Execution Time":t})),clearTimeout(g.performance.timer),g.performance.timer=setTimeout(g.performance.display,500)},display:function(){var e=i.name+":",t=0;f=!1,clearTimeout(g.performance.timer),x.each(h,function(e,n){t+=n["Execution Time"]}),e+=" "+t+"ms",m&&(e+=" '"+m+"'"),(console.group!==I||console.table!==I)&&0<h.length&&(console.groupCollapsed(e),console.table?console.table(h):x.each(h,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),h=[]}},invoke:function(o,e,n){var i,a,t,r=u;return e=e||v,n=n||l,"string"==typeof o&&r!==I&&(o=o.split(/[\. ]/),i=o.length-1,x.each(o,function(e,n){var t=e!=i?n+o[e+1].charAt(0).toUpperCase()+o[e+1].slice(1):o;if(x.isPlainObject(r[t])&&e!=i)r=r[t];else{if(r[t]!==I)return a=r[t],!1;{if(!x.isPlainObject(r[n])||e==i)return r[n]!==I?a=r[n]:g.error(s.method,o),!1;r=r[n]}}})),x.isFunction(a)?t=a.apply(n,e):a!==I&&(t=a),Array.isArray(p)?p.push(t):p!==I?p=[p,t]:t!==I&&(p=t),a}};y?(u===I&&g.initialize(),g.invoke(b)):(u!==I&&u.invoke("destroy"),g.initialize())}),p!==I?p:this},x.fn.nag.settings={name:"Nag",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"Nag",persist:!1,displayTime:0,animation:{show:"slide",hide:"slide"},context:!1,detachable:!1,expires:30,domain:!1,path:"/",secure:!1,samesite:!1,storageMethod:"cookie",key:"nag",value:"dismiss",expirationKey:"ExpirationDate",error:{noStorage:"Unsupported storage method",method:"The method you called is not defined.",setItem:"Unexpected error while setting value",expiresFormat:'"expires" must be a number of days or a Date Object'},className:{bottom:"bottom",fixed:"fixed"},selector:{close:"> .close.icon"},duration:500,easing:"easeOutQuad",onShow:function(){},onVisible:function(){},onHide:function(){},onHidden:function(){}},x.extend(x.easing,{easeOutQuad:function(e,n,t,o,i){return-o*(n/=i)*(n-2)+t}})}(jQuery,window,document);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.9.
|
2
|
+
* # Fomantic-UI 2.9.1-beta.0+a290620 - Loader
|
3
3
|
* http://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -62,10 +62,10 @@
|
|
62
62
|
animation-delay: 0.6s;
|
63
63
|
}
|
64
64
|
.ui.placeholder,
|
65
|
-
.ui.placeholder >
|
66
|
-
.ui.placeholder .image.header
|
65
|
+
.ui.placeholder > ::before,
|
66
|
+
.ui.placeholder .image.header::after,
|
67
67
|
.ui.placeholder .line,
|
68
|
-
.ui.placeholder .line
|
68
|
+
.ui.placeholder .line::after {
|
69
69
|
background-color: #FFFFFF;
|
70
70
|
}
|
71
71
|
.ui.placeholder.hidden {
|
@@ -96,17 +96,17 @@
|
|
96
96
|
position: relative;
|
97
97
|
height: 0.85714286em;
|
98
98
|
}
|
99
|
-
.ui.placeholder .line
|
100
|
-
.ui.placeholder .line
|
99
|
+
.ui.placeholder .line::before,
|
100
|
+
.ui.placeholder .line::after {
|
101
101
|
top: 100%;
|
102
102
|
position: absolute;
|
103
103
|
content: '';
|
104
104
|
background-color: inherit;
|
105
105
|
}
|
106
|
-
.ui.placeholder .line
|
106
|
+
.ui.placeholder .line::before {
|
107
107
|
left: 0;
|
108
108
|
}
|
109
|
-
.ui.placeholder .line
|
109
|
+
.ui.placeholder .line::after {
|
110
110
|
right: 0;
|
111
111
|
}
|
112
112
|
|
@@ -114,8 +114,8 @@
|
|
114
114
|
.ui.placeholder .line {
|
115
115
|
margin-bottom: 0.5em;
|
116
116
|
}
|
117
|
-
.ui.placeholder .line
|
118
|
-
.ui.placeholder .line
|
117
|
+
.ui.placeholder .line::before,
|
118
|
+
.ui.placeholder .line::after {
|
119
119
|
height: 0.5em;
|
120
120
|
}
|
121
121
|
.ui.placeholder .line:not(:first-child) {
|
@@ -123,19 +123,19 @@
|
|
123
123
|
}
|
124
124
|
|
125
125
|
/* Line Outdent */
|
126
|
-
.ui.placeholder .line:nth-child(1)
|
126
|
+
.ui.placeholder .line:nth-child(1)::after {
|
127
127
|
width: 0;
|
128
128
|
}
|
129
|
-
.ui.placeholder .line:nth-child(2)
|
129
|
+
.ui.placeholder .line:nth-child(2)::after {
|
130
130
|
width: 50%;
|
131
131
|
}
|
132
|
-
.ui.placeholder .line:nth-child(3)
|
132
|
+
.ui.placeholder .line:nth-child(3)::after {
|
133
133
|
width: 10%;
|
134
134
|
}
|
135
|
-
.ui.placeholder .line:nth-child(4)
|
135
|
+
.ui.placeholder .line:nth-child(4)::after {
|
136
136
|
width: 35%;
|
137
137
|
}
|
138
|
-
.ui.placeholder .line:nth-child(5)
|
138
|
+
.ui.placeholder .line:nth-child(5)::after {
|
139
139
|
width: 65%;
|
140
140
|
}
|
141
141
|
|
@@ -149,27 +149,27 @@
|
|
149
149
|
.ui.placeholder .header .line {
|
150
150
|
margin-bottom: 0.64285714em;
|
151
151
|
}
|
152
|
-
.ui.placeholder .header .line
|
153
|
-
.ui.placeholder .header .line
|
152
|
+
.ui.placeholder .header .line::before,
|
153
|
+
.ui.placeholder .header .line::after {
|
154
154
|
height: 0.64285714em;
|
155
155
|
}
|
156
156
|
.ui.placeholder .header .line:not(:first-child) {
|
157
157
|
margin-top: 0.64285714em;
|
158
158
|
}
|
159
|
-
.ui.placeholder .header .line
|
159
|
+
.ui.placeholder .header .line::after {
|
160
160
|
width: 20%;
|
161
161
|
}
|
162
|
-
.ui.placeholder .header .line:nth-child(2)
|
162
|
+
.ui.placeholder .header .line:nth-child(2)::after {
|
163
163
|
width: 60%;
|
164
164
|
}
|
165
165
|
/* Image Header */
|
166
166
|
.ui.placeholder .image.header .line {
|
167
167
|
margin-left: 3em;
|
168
168
|
}
|
169
|
-
.ui.placeholder .image.header .line
|
169
|
+
.ui.placeholder .image.header .line::before {
|
170
170
|
width: 0.71428571rem;
|
171
171
|
}
|
172
|
-
.ui.placeholder .image.header
|
172
|
+
.ui.placeholder .image.header::after {
|
173
173
|
display: block;
|
174
174
|
height: 0.85714286em;
|
175
175
|
content: '';
|
@@ -182,9 +182,9 @@
|
|
182
182
|
.ui.placeholder .header .line:first-child {
|
183
183
|
height: 0.01px;
|
184
184
|
}
|
185
|
-
.ui.placeholder .image:not(:first-child)
|
186
|
-
.ui.placeholder .paragraph:not(:first-child)
|
187
|
-
.ui.placeholder .header:not(:first-child)
|
185
|
+
.ui.placeholder .image:not(:first-child)::before,
|
186
|
+
.ui.placeholder .paragraph:not(:first-child)::before,
|
187
|
+
.ui.placeholder .header:not(:first-child)::before {
|
188
188
|
height: 1.42857143em;
|
189
189
|
content: '';
|
190
190
|
display: block;
|
@@ -197,10 +197,10 @@
|
|
197
197
|
background-image: linear-gradient(to right, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.14) 15%, rgba(255, 255, 255, 0.08) 30%);
|
198
198
|
}
|
199
199
|
.ui.inverted.placeholder,
|
200
|
-
.ui.inverted.placeholder >
|
201
|
-
.ui.inverted.placeholder .image.header
|
200
|
+
.ui.inverted.placeholder > ::before,
|
201
|
+
.ui.inverted.placeholder .image.header::after,
|
202
202
|
.ui.inverted.placeholder .line,
|
203
|
-
.ui.inverted.placeholder .line
|
203
|
+
.ui.inverted.placeholder .line::after {
|
204
204
|
background-color: #1B1C1D;
|
205
205
|
}
|
206
206
|
|
@@ -214,22 +214,22 @@
|
|
214
214
|
Sizes
|
215
215
|
--------------------*/
|
216
216
|
|
217
|
-
.ui.placeholder .full.line.line.line
|
217
|
+
.ui.placeholder .full.line.line.line::after {
|
218
218
|
width: 0;
|
219
219
|
}
|
220
|
-
.ui.placeholder .very.long.line.line.line
|
220
|
+
.ui.placeholder .very.long.line.line.line::after {
|
221
221
|
width: 10%;
|
222
222
|
}
|
223
|
-
.ui.placeholder .long.line.line.line
|
223
|
+
.ui.placeholder .long.line.line.line::after {
|
224
224
|
width: 35%;
|
225
225
|
}
|
226
|
-
.ui.placeholder .medium.line.line.line
|
226
|
+
.ui.placeholder .medium.line.line.line::after {
|
227
227
|
width: 50%;
|
228
228
|
}
|
229
|
-
.ui.placeholder .short.line.line.line
|
229
|
+
.ui.placeholder .short.line.line.line::after {
|
230
230
|
width: 65%;
|
231
231
|
}
|
232
|
-
.ui.placeholder .very.short.line.line.line
|
232
|
+
.ui.placeholder .very.short.line.line.line::after {
|
233
233
|
width: 80%;
|
234
234
|
}
|
235
235
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.9.
|
2
|
+
* # Fomantic-UI 2.9.1-beta.0+a290620 - Loader
|
3
3
|
* http://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
6
6
|
* Released under the MIT license
|
7
7
|
* http://opensource.org/licenses/MIT
|
8
8
|
*
|
9
|
-
*/.ui.placeholder{position:static;overflow:hidden;-webkit-animation:placeholderShimmer 2s linear;animation:placeholderShimmer 2s linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;background-color:#fff;background-image:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(0,0,0,.08)),color-stop(15%,rgba(0,0,0,.15)),color-stop(30%,rgba(0,0,0,.08)));background-image:-webkit-linear-gradient(left,rgba(0,0,0,.08) 0,rgba(0,0,0,.15) 15%,rgba(0,0,0,.08) 30%);background-image:linear-gradient(to right,rgba(0,0,0,.08) 0,rgba(0,0,0,.15) 15%,rgba(0,0,0,.08) 30%);background-size:1200px 100%;max-width:30rem}@-webkit-keyframes placeholderShimmer{0%{background-position:-1200px 0}100%{background-position:1200px 0}}@keyframes placeholderShimmer{0%{background-position:-1200px 0}100%{background-position:1200px 0}}.ui.placeholder+.ui.placeholder{margin-top:2rem}.ui.placeholder+.ui.placeholder{-webkit-animation-delay:.15s;animation-delay:.15s}.ui.placeholder+.ui.placeholder+.ui.placeholder{-webkit-animation-delay:.3s;animation-delay:.3s}.ui.placeholder+.ui.placeholder+.ui.placeholder+.ui.placeholder{-webkit-animation-delay:.45s;animation-delay:.45s}.ui.placeholder+.ui.placeholder+.ui.placeholder+.ui.placeholder+.ui.placeholder{-webkit-animation-delay:.6s;animation-delay:.6s}.ui.placeholder,.ui.placeholder .image.header
|
9
|
+
*/.ui.placeholder{position:static;overflow:hidden;-webkit-animation:placeholderShimmer 2s linear;animation:placeholderShimmer 2s linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;background-color:#fff;background-image:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(0,0,0,.08)),color-stop(15%,rgba(0,0,0,.15)),color-stop(30%,rgba(0,0,0,.08)));background-image:-webkit-linear-gradient(left,rgba(0,0,0,.08) 0,rgba(0,0,0,.15) 15%,rgba(0,0,0,.08) 30%);background-image:linear-gradient(to right,rgba(0,0,0,.08) 0,rgba(0,0,0,.15) 15%,rgba(0,0,0,.08) 30%);background-size:1200px 100%;max-width:30rem}@-webkit-keyframes placeholderShimmer{0%{background-position:-1200px 0}100%{background-position:1200px 0}}@keyframes placeholderShimmer{0%{background-position:-1200px 0}100%{background-position:1200px 0}}.ui.placeholder+.ui.placeholder{margin-top:2rem}.ui.placeholder+.ui.placeholder{-webkit-animation-delay:.15s;animation-delay:.15s}.ui.placeholder+.ui.placeholder+.ui.placeholder{-webkit-animation-delay:.3s;animation-delay:.3s}.ui.placeholder+.ui.placeholder+.ui.placeholder+.ui.placeholder{-webkit-animation-delay:.45s;animation-delay:.45s}.ui.placeholder+.ui.placeholder+.ui.placeholder+.ui.placeholder+.ui.placeholder{-webkit-animation-delay:.6s;animation-delay:.6s}.ui.placeholder,.ui.placeholder .image.header::after,.ui.placeholder .line,.ui.placeholder .line::after,.ui.placeholder>::before{background-color:#fff}.ui.placeholder.hidden{display:none}.ui.placeholder .image:not(.header):not(.ui):not(.icon){height:100px}.ui.placeholder .square.image:not(.header){height:0;overflow:hidden;padding-top:100%}.ui.placeholder .rectangular.image:not(.header){height:0;overflow:hidden;padding-top:75%}.ui.placeholder .line{position:relative;height:.85714286em}.ui.placeholder .line::after,.ui.placeholder .line::before{top:100%;position:absolute;content:'';background-color:inherit}.ui.placeholder .line::before{left:0}.ui.placeholder .line::after{right:0}.ui.placeholder .line{margin-bottom:.5em}.ui.placeholder .line::after,.ui.placeholder .line::before{height:.5em}.ui.placeholder .line:not(:first-child){margin-top:.5em}.ui.placeholder .line:nth-child(1)::after{width:0}.ui.placeholder .line:nth-child(2)::after{width:50%}.ui.placeholder .line:nth-child(3)::after{width:10%}.ui.placeholder .line:nth-child(4)::after{width:35%}.ui.placeholder .line:nth-child(5)::after{width:65%}.ui.placeholder .header{position:relative;overflow:hidden}.ui.placeholder .header .line{margin-bottom:.64285714em}.ui.placeholder .header .line::after,.ui.placeholder .header .line::before{height:.64285714em}.ui.placeholder .header .line:not(:first-child){margin-top:.64285714em}.ui.placeholder .header .line::after{width:20%}.ui.placeholder .header .line:nth-child(2)::after{width:60%}.ui.placeholder .image.header .line{margin-left:3em}.ui.placeholder .image.header .line::before{width:.71428571rem}.ui.placeholder .image.header::after{display:block;height:.85714286em;content:'';margin-left:3em}.ui.placeholder .header .line:first-child,.ui.placeholder .image .line:first-child,.ui.placeholder .paragraph .line:first-child{height:.01px}.ui.placeholder .header:not(:first-child)::before,.ui.placeholder .image:not(:first-child)::before,.ui.placeholder .paragraph:not(:first-child)::before{height:1.42857143em;content:'';display:block}.ui.inverted.placeholder{background-image:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(255,255,255,.08)),color-stop(15%,rgba(255,255,255,.14)),color-stop(30%,rgba(255,255,255,.08)));background-image:-webkit-linear-gradient(left,rgba(255,255,255,.08) 0,rgba(255,255,255,.14) 15%,rgba(255,255,255,.08) 30%);background-image:linear-gradient(to right,rgba(255,255,255,.08) 0,rgba(255,255,255,.14) 15%,rgba(255,255,255,.08) 30%)}.ui.inverted.placeholder,.ui.inverted.placeholder .image.header::after,.ui.inverted.placeholder .line,.ui.inverted.placeholder .line::after,.ui.inverted.placeholder>::before{background-color:#1b1c1d}.ui.placeholder .full.line.line.line::after{width:0}.ui.placeholder .very.long.line.line.line::after{width:10%}.ui.placeholder .long.line.line.line::after{width:35%}.ui.placeholder .medium.line.line.line::after{width:50%}.ui.placeholder .short.line.line.line::after{width:65%}.ui.placeholder .very.short.line.line.line::after{width:80%}.ui.fluid.placeholder{max-width:none}
|