fomantic-ui 2.9.1-beta.21 → 2.9.1-beta.23
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/.eslintrc.js +95 -75
- package/.github/workflows/ci.yml +2 -2
- package/.github/workflows/nightly.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/.stylelintrc.js +6 -7
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +7 -7
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +2 -2
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +54 -53
- package/dist/components/api.min.js +2 -2
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +3 -3
- package/dist/components/calendar.js +119 -99
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +2 -2
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +8 -8
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +2 -2
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +16 -18
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +2 -2
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +1 -1
- package/dist/components/dropdown.js +87 -87
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +2 -2
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +17 -23
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +2 -2
- package/dist/components/flyout.js +32 -30
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +2 -2
- package/dist/components/form.js +113 -89
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +22 -22
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +18 -16
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +2 -2
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +30 -30
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +23 -21
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +2 -2
- 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 -8
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +2 -2
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +41 -46
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +9 -9
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +21 -19
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +11 -10
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.js +39 -42
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +7 -7
- package/dist/components/state.min.js +2 -2
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +7 -7
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +2 -2
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +36 -38
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- package/dist/components/table.css +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +20 -17
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +7 -7
- package/dist/components/transition.js +27 -21
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +8 -8
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +60 -60
- package/dist/semantic.js +780 -735
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/examples/.eslintrc.js +6 -0
- package/examples/responsive.html +1 -1
- package/gulpfile.js +1 -1
- package/package.json +5 -4
- package/scripts/nightly-version.js +3 -3
- package/src/definitions/behaviors/api.js +53 -52
- package/src/definitions/behaviors/form.js +112 -88
- package/src/definitions/behaviors/state.js +6 -6
- package/src/definitions/behaviors/visibility.js +7 -7
- package/src/definitions/collections/menu.less +2 -2
- package/src/definitions/elements/button.less +2 -2
- package/src/definitions/elements/loader.less +4 -4
- package/src/definitions/elements/step.less +1 -1
- package/src/definitions/globals/site.js +10 -9
- package/src/definitions/modules/accordion.js +6 -6
- package/src/definitions/modules/calendar.js +118 -98
- package/src/definitions/modules/calendar.less +2 -2
- package/src/definitions/modules/checkbox.js +7 -7
- package/src/definitions/modules/dimmer.js +15 -17
- package/src/definitions/modules/dimmer.less +10 -10
- package/src/definitions/modules/dropdown.js +86 -86
- package/src/definitions/modules/embed.js +16 -22
- package/src/definitions/modules/flyout.js +31 -29
- package/src/definitions/modules/flyout.less +1 -1
- package/src/definitions/modules/modal.js +21 -21
- package/src/definitions/modules/nag.js +17 -15
- package/src/definitions/modules/popup.js +29 -29
- package/src/definitions/modules/progress.js +22 -20
- package/src/definitions/modules/rating.js +7 -7
- package/src/definitions/modules/search.js +40 -45
- package/src/definitions/modules/shape.js +8 -8
- package/src/definitions/modules/sidebar.js +20 -18
- package/src/definitions/modules/slider.js +38 -41
- package/src/definitions/modules/sticky.js +6 -6
- package/src/definitions/modules/tab.js +35 -37
- package/src/definitions/modules/toast.js +19 -16
- package/src/definitions/modules/transition.js +26 -20
- package/src/themes/amazon/elements/button.overrides +7 -7
- package/src/themes/default/collections/form.variables +1 -1
- package/src/themes/default/elements/reveal.variables +1 -1
- package/src/themes/default/globals/site.variables +1 -1
- package/src/themes/default/modules/dimmer.variables +6 -6
- package/src/themes/default/modules/modal.variables +1 -1
- package/src/themes/default/modules/slider.variables +4 -4
- package/src/themes/default/modules/toast.variables +2 -2
- package/src/themes/default/modules/transition.overrides +12 -12
- package/src/themes/flat/collections/form.overrides +2 -2
- package/src/themes/flat/globals/site.variables +1 -1
- package/src/themes/github/collections/form.overrides +2 -2
- package/src/themes/github/collections/menu.variables +1 -1
- package/src/themes/github/collections/message.overrides +3 -3
- package/src/themes/github/elements/input.overrides +2 -2
- package/src/themes/timeline/views/feed.overrides +3 -3
- package/src/themes/twitter/elements/button.overrides +2 -2
- package/tasks/.eslintrc.js +9 -0
- package/tasks/README.md +1 -3
- package/tasks/admin/components/create.js +9 -16
- package/tasks/admin/components/init.js +7 -7
- package/tasks/admin/components/update.js +7 -7
- package/tasks/admin/distributions/create.js +15 -17
- package/tasks/admin/distributions/init.js +7 -7
- package/tasks/admin/distributions/update.js +7 -7
- package/tasks/admin/publish.js +1 -1
- package/tasks/admin/register.js +2 -2
- package/tasks/admin/release.js +1 -1
- package/tasks/build/assets.js +2 -2
- package/tasks/build/css.js +8 -3
- package/tasks/build/javascript.js +3 -1
- package/tasks/build.js +1 -1
- package/tasks/check-install.js +1 -1
- package/tasks/clean.js +1 -1
- package/tasks/collections/README.md +3 -5
- package/tasks/collections/admin.js +1 -1
- package/tasks/collections/docs.js +1 -1
- package/tasks/collections/install.js +1 -1
- package/tasks/collections/rtl.js +1 -1
- package/tasks/collections/various.js +1 -1
- package/tasks/config/admin/github.js +5 -6
- package/tasks/config/admin/templates/css-package.js +1 -1
- package/tasks/config/admin/templates/less-package.js +1 -1
- package/tasks/config/npm/gulpfile.js +7 -7
- package/tasks/config/project/config.js +9 -16
- package/tasks/config/project/install.js +26 -25
- package/tasks/config/project/release.js +12 -14
- package/tasks/config/tasks.js +17 -19
- package/tasks/config/user.js +1 -1
- package/tasks/docs/build.js +5 -3
- package/tasks/docs/metadata.js +7 -8
- package/tasks/docs/serve.js +5 -3
- package/tasks/install.js +38 -38
- package/tasks/rtl/build.js +1 -1
- package/tasks/rtl/watch.js +1 -1
- package/tasks/version.js +1 -1
- package/tasks/watch.js +1 -1
- package/test/.eslintrc.js +23 -0
- package/test/meteor/assets.js +1 -1
- package/test/modules/module.spec.js +15 -15
- package/test/modules/popup.spec.js +1 -1
- package/test/modules/search.spec.js +1 -1
- package/test/modules/tab.spec.js +1 -1
- package/test/modules/transition.spec.js +1 -1
package/.eslintrc.js
CHANGED
@@ -4,6 +4,8 @@ module.exports = {
|
|
4
4
|
es6: true,
|
5
5
|
},
|
6
6
|
extends: [
|
7
|
+
'airbnb-base',
|
8
|
+
'plugin:unicorn/recommended',
|
7
9
|
],
|
8
10
|
parserOptions: {
|
9
11
|
ecmaVersion: '2020',
|
@@ -17,95 +19,113 @@ module.exports = {
|
|
17
19
|
'/test/helpers',
|
18
20
|
],
|
19
21
|
rules: {
|
20
|
-
|
21
|
-
'
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
'class-methods-use-this': 'off',
|
23
|
+
'comma-dangle': ['error', {
|
24
|
+
arrays: 'always-multiline',
|
25
|
+
objects: 'always-multiline',
|
26
|
+
functions: 'never',
|
27
|
+
imports: 'always-multiline',
|
28
|
+
exports: 'always-multiline',
|
29
|
+
}],
|
30
|
+
'consistent-return': 'off',
|
31
|
+
curly: ['error', 'all'],
|
32
|
+
'default-case': 'off',
|
33
|
+
'func-names': 'off',
|
34
|
+
'import/no-unresolved': 'off',
|
35
|
+
'import/prefer-default-export': 'off',
|
36
|
+
indent: ['error', 4, {
|
37
|
+
SwitchCase: 1,
|
38
|
+
}],
|
39
|
+
'linebreak-style': ['error', 'unix'],
|
40
|
+
'max-len': 'off',
|
41
|
+
'no-console': 'off',
|
42
|
+
'no-continue': 'off',
|
43
|
+
'no-lonely-if': 'off',
|
44
|
+
'no-multi-spaces': ['error', {
|
26
45
|
exceptions: {
|
27
|
-
|
28
|
-
|
29
|
-
ArrowFunctionExpression: false,
|
30
|
-
CallExpression: false,
|
31
|
-
FunctionDeclaration: false,
|
32
|
-
FunctionExpression: false,
|
33
|
-
ImportDeclaration: false,
|
34
|
-
ObjectExpression: false,
|
35
|
-
ObjectPattern: false,
|
36
|
-
VariableDeclaration: false,
|
37
|
-
NewExpression: false,
|
46
|
+
Property: true,
|
47
|
+
VariableDeclarator: true,
|
38
48
|
},
|
39
49
|
}],
|
40
|
-
'
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
'
|
46
|
-
'
|
47
|
-
'object-curly-spacing': ['error', 'always'],
|
48
|
-
'computed-property-spacing': ['error', 'never'],
|
49
|
-
'space-before-blocks': ['error'],
|
50
|
-
'one-var-declaration-per-line': ['error', 'always'],
|
51
|
-
'function-paren-newline': ['error', 'multiline-arguments'],
|
50
|
+
'no-nested-ternary': 'off',
|
51
|
+
'no-param-reassign': 'off',
|
52
|
+
'no-plusplus': 'off',
|
53
|
+
'no-restricted-syntax': 'off',
|
54
|
+
'no-underscore-dangle': 'off',
|
55
|
+
'no-unused-vars': 'off',
|
56
|
+
'object-shorthand': ['error', 'never'],
|
52
57
|
'padding-line-between-statements': ['error', {
|
53
58
|
blankLine: 'always',
|
54
59
|
prev: '*',
|
55
60
|
next: ['continue', 'break', 'export', 'return', 'throw'],
|
56
61
|
}],
|
62
|
+
'prefer-destructuring': 'off',
|
63
|
+
'prefer-template': 'off',
|
57
64
|
'spaced-comment': ['error', 'always', {
|
58
|
-
line: {
|
59
|
-
markers: ['/'],
|
60
|
-
exceptions: ['-', '+'],
|
61
|
-
},
|
62
65
|
block: {
|
63
|
-
markers: ['!'],
|
64
|
-
exceptions: ['*'],
|
65
66
|
balanced: true,
|
67
|
+
exceptions: ['*'],
|
68
|
+
markers: ['!'],
|
66
69
|
},
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
max: 1,
|
71
|
-
maxBOF: 0,
|
72
|
-
maxEOF: 0,
|
73
|
-
}],
|
74
|
-
'no-multi-spaces': ['error', {
|
75
|
-
exceptions: {
|
76
|
-
Property: true,
|
77
|
-
VariableDeclarator: true,
|
70
|
+
line: {
|
71
|
+
exceptions: ['-', '+'],
|
72
|
+
markers: ['/'],
|
78
73
|
},
|
79
74
|
}],
|
80
|
-
|
81
|
-
|
82
|
-
'
|
83
|
-
'
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
'
|
91
|
-
'
|
92
|
-
'
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
'
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
'no-
|
107
|
-
'
|
108
|
-
'
|
75
|
+
strict: 'off',
|
76
|
+
'unicorn/catch-error-name': 'off',
|
77
|
+
'unicorn/no-array-callback-reference': 'off',
|
78
|
+
'unicorn/no-lonely-if': 'off',
|
79
|
+
'unicorn/no-negated-condition': 'off',
|
80
|
+
'unicorn/no-null': 'off',
|
81
|
+
'unicorn/no-this-assignment': 'off',
|
82
|
+
'unicorn/numeric-separators-style': 'off',
|
83
|
+
'unicorn/prefer-array-find': 'off',
|
84
|
+
'unicorn/prefer-array-some': 'off', // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2007
|
85
|
+
'unicorn/prefer-module': 'off',
|
86
|
+
'unicorn/prevent-abbreviations': 'off',
|
87
|
+
'unicorn/switch-case-braces': ['error', 'avoid'],
|
88
|
+
'wrap-iife': ['error', 'inside'],
|
89
|
+
|
90
|
+
// TODO rules to be removed/fixed in v2.10.0 as fixes are not compatible with IE11
|
91
|
+
'guard-for-in': 'off', // refactor to "for of"
|
92
|
+
'no-restricted-globals': 'off',
|
93
|
+
'no-restricted-properties': 'off',
|
94
|
+
'no-var': 'off', // https://github.com/fomantic/Fomantic-UI/pull/2584
|
95
|
+
'one-var': 'off',
|
96
|
+
'prefer-const': 'off',
|
97
|
+
'prefer-exponentiation-operator': 'off',
|
98
|
+
'prefer-spread': 'off',
|
99
|
+
'semi-style': 'off',
|
100
|
+
'unicorn/no-array-for-each': 'off',
|
101
|
+
'unicorn/no-for-loop': 'off', // autofixes to "for of"
|
102
|
+
'unicorn/prefer-code-point': 'off',
|
103
|
+
'unicorn/prefer-includes': 'off',
|
104
|
+
'unicorn/prefer-node-protocol': 'off', // needs Node 14+
|
105
|
+
'unicorn/prefer-number-properties': 'off',
|
106
|
+
'unicorn/prefer-optional-catch-binding': 'off',
|
107
|
+
'unicorn/prefer-prototype-methods': 'off',
|
108
|
+
'unicorn/prefer-reflect-apply': 'off',
|
109
|
+
'unicorn/prefer-spread': 'off',
|
110
|
+
'unicorn/prefer-top-level-await': 'off', // needs Node 14+
|
111
|
+
'vars-on-top': 'off',
|
112
|
+
|
113
|
+
// TODO rules with a lot of errors to be fixed manually, fix in a separate PR
|
114
|
+
eqeqeq: 'off', // about 300 errors to be fixed manually
|
115
|
+
'global-require': 'off', // about 30 errors to be fixed manually
|
116
|
+
'no-shadow': 'off', // about 220 errors to be fixed manually
|
117
|
+
'prefer-arrow-callback': 'off', // about 350 errors (all autofixable)
|
118
|
+
'prefer-rest-params': 'off', // about 180 errors to be fixed manually
|
119
|
+
'unicorn/no-nested-ternary': 'off', // about 80 errors (except 14 nested ternary operators autofixable)
|
120
|
+
|
121
|
+
// TODO
|
122
|
+
'no-return-assign': 'off',
|
123
|
+
'no-shadow-restricted-names': 'off',
|
124
|
+
'no-use-before-define': 'off',
|
125
|
+
'unicorn/prefer-negative-index': 'off',
|
109
126
|
},
|
110
127
|
reportUnusedDisableDirectives: true,
|
128
|
+
globals: {
|
129
|
+
jQuery: true,
|
130
|
+
},
|
111
131
|
};
|
package/.github/workflows/ci.yml
CHANGED
@@ -11,7 +11,7 @@ jobs:
|
|
11
11
|
- uses: actions/checkout@v3
|
12
12
|
- uses: actions/setup-node@v3
|
13
13
|
- name: Install dependencies
|
14
|
-
run: yarn
|
14
|
+
run: yarn && yarn add -D eslint-config-airbnb-base eslint-plugin-unicorn eslint-plugin-jest@^26.9.0 @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript
|
15
15
|
- name: Lint JS and CSS/LESS files
|
16
16
|
run: npm run lint
|
17
17
|
test:
|
@@ -20,7 +20,7 @@ jobs:
|
|
20
20
|
strategy:
|
21
21
|
fail-fast: false
|
22
22
|
matrix:
|
23
|
-
node-version: [12, 14, 16, 18]
|
23
|
+
node-version: [12, 14, 16, 18, latest]
|
24
24
|
steps:
|
25
25
|
- uses: actions/checkout@v3
|
26
26
|
- name: Setup Node.js ${{ matrix.node-version }}
|
package/.stylelintrc.js
CHANGED
@@ -12,11 +12,17 @@ module.exports = {
|
|
12
12
|
'block-closing-brace-newline-before': null, // fix bad formatting with "each()"
|
13
13
|
'declaration-block-trailing-semicolon': null, // fix bad formatting with "each()"
|
14
14
|
indentation: null, // TODO change to "4" once https://github.com/fomantic/Fomantic-UI/pull/2593#discussion_r1045131096 is fixed
|
15
|
+
linebreaks: 'unix',
|
15
16
|
'max-line-length': null,
|
16
17
|
'no-descending-specificity': null,
|
17
18
|
'no-extra-semicolons': null, // fix GH-1832 - workaround for wikimedia/less.php parser
|
19
|
+
'number-max-precision': 5,
|
18
20
|
'rule-empty-line-before': null,
|
19
21
|
|
22
|
+
// TODO rules to be removed/fixed in v2.10.0 as fixes are not compatible with IE11
|
23
|
+
'alpha-value-notation': 'number', // https://caniuse.com/mdn-css_properties_opacity_percentages
|
24
|
+
'color-function-notation': 'legacy', // https://caniuse.com/mdn-css_types_color_rgba_space_separated_parameters
|
25
|
+
|
20
26
|
// TODO
|
21
27
|
'string-quotes': null, // 1676 errors
|
22
28
|
'at-rule-no-unknown': null, // 1081 errors
|
@@ -30,22 +36,15 @@ module.exports = {
|
|
30
36
|
'import-notation': null, // 56 errors
|
31
37
|
'keyframes-name-pattern': null, // 50 errors
|
32
38
|
'property-no-vendor-prefix': null, // 49 errors
|
33
|
-
'number-leading-zero': null, // 49 errors
|
34
|
-
'color-function-notation': null, // 32 errors
|
35
|
-
'alpha-value-notation': null, // 32 errors
|
36
|
-
'color-hex-case': null, // 32 errors
|
37
39
|
'block-no-empty': null, // 25 errors
|
38
40
|
'selector-no-vendor-prefix': null, // 19 errors
|
39
41
|
'selector-class-pattern': null, // 19 errors
|
40
|
-
'number-no-trailing-zeros': null, // 16 errors
|
41
42
|
'font-family-name-quotes': null, // 13 errors
|
42
43
|
'declaration-block-no-redundant-longhand-properties': null, // 12 errors
|
43
44
|
'value-keyword-case': null, // 12 errors
|
44
45
|
'value-no-vendor-prefix': null, // 9 errors
|
45
|
-
'color-hex-length': null, // 9 errors
|
46
46
|
'no-empty-source': null, // 8 errors
|
47
47
|
'font-family-no-missing-generic-family-keyword': null, // 8 errors
|
48
|
-
'number-max-precision': null, // 7 errors
|
49
48
|
'selector-attribute-quotes': null, // 7 errors
|
50
49
|
'shorthand-property-no-redundant-values': null, // 5 errors
|
51
50
|
'function-url-quotes': null, // 5 errors
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.9.1-beta.
|
2
|
+
* # Fomantic-UI 2.9.1-beta.23+27384cb - Accordion
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -15,7 +15,7 @@
|
|
15
15
|
return typeof obj === 'function' && typeof obj.nodeType !== 'number';
|
16
16
|
}
|
17
17
|
|
18
|
-
window = (
|
18
|
+
window = (window !== undefined && window.Math === Math)
|
19
19
|
? window
|
20
20
|
: globalThis;
|
21
21
|
|
@@ -23,11 +23,11 @@
|
|
23
23
|
var
|
24
24
|
$allModules = $(this),
|
25
25
|
|
26
|
-
time =
|
26
|
+
time = Date.now(),
|
27
27
|
performance = [],
|
28
28
|
|
29
29
|
query = arguments[0],
|
30
|
-
methodInvoked = (typeof query
|
30
|
+
methodInvoked = (typeof query === 'string'),
|
31
31
|
queryArguments = [].slice.call(arguments, 1),
|
32
32
|
|
33
33
|
returnedValue
|
@@ -427,7 +427,7 @@
|
|
427
427
|
previousTime
|
428
428
|
;
|
429
429
|
if (settings.performance) {
|
430
|
-
currentTime =
|
430
|
+
currentTime = Date.now();
|
431
431
|
previousTime = time || currentTime;
|
432
432
|
executionTime = currentTime - previousTime;
|
433
433
|
time = currentTime;
|
@@ -478,8 +478,8 @@
|
|
478
478
|
;
|
479
479
|
passedArguments = passedArguments || queryArguments;
|
480
480
|
context = context || element;
|
481
|
-
if (typeof query
|
482
|
-
query = query.split(/[
|
481
|
+
if (typeof query === 'string' && object !== undefined) {
|
482
|
+
query = query.split(/[ .]/);
|
483
483
|
maxDepth = query.length - 1;
|
484
484
|
$.each(query, function (depth, value) {
|
485
485
|
var camelCaseValue = (depth != maxDepth)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* # Fomantic UI - 2.9.1-beta.
|
2
|
+
* # Fomantic UI - 2.9.1-beta.23+27384cb
|
3
3
|
* https://github.com/fomantic/Fomantic-UI
|
4
4
|
* https://fomantic-ui.com/
|
5
5
|
*
|
@@ -8,4 +8,4 @@
|
|
8
8
|
* https://opensource.org/licenses/MIT
|
9
9
|
*
|
10
10
|
*/
|
11
|
-
!function(T,
|
11
|
+
!function(k,T,A){"use strict";T=T!==A&&T.Math===Math?T:globalThis,k.fn.accordion=function(m){var v,h=k(this),b=Date.now(),y=[],C=m,O="string"==typeof C,x=[].slice.call(arguments,1);return h.each(function(){var e,a=k.isPlainObject(m)?k.extend(!0,{},k.fn.accordion.settings,m):k.extend({},k.fn.accordion.settings),s=a.className,n=a.namespace,l=a.selector,r=a.error,t="."+n,i="module-"+n,o=h.selector||"",c=k(this),d=c.find(l.title),u=c.find(l.content),g=this,p=c.data(i),f={initialize:function(){f.debug("Initializing",c),f.bind.events(),a.observeChanges&&f.observeChanges(),f.instantiate()},instantiate:function(){p=f,c.data(i,f)},destroy:function(){f.debug("Destroying previous instance",c),c.off(t).removeData(i)},refresh:function(){d=c.find(l.title),u=c.find(l.content)},observeChanges:function(){"MutationObserver"in T&&((e=new MutationObserver(function(e){f.debug("DOM tree modified, updating selector cache"),f.refresh()})).observe(g,{childList:!0,subtree:!0}),f.debug("Setting up mutation observer",e))},bind:{events:function(){f.debug("Binding delegated events"),c.on(a.on+t,l.trigger,f.event.click)}},event:{click:function(e){0===k(e.target).closest(l.ignore).length&&f.toggle.call(this)}},toggle:function(e){var e=e!==A?"number"==typeof e?d.eq(e):k(e).closest(l.title):k(this).closest(l.title),n=e.next(u),t=n.hasClass(s.animating),n=n.hasClass(s.active),i=n&&!t,n=!n&&t;f.debug("Toggling visibility of content",e),i||n?a.collapsible?f.close.call(e):f.debug("Cannot close accordion content collapsing is disabled"):f.open.call(e)},open:function(e){var e=e!==A?"number"==typeof e?d.eq(e):k(e).closest(l.title):k(this).closest(l.title),n=e.next(u),t=n.hasClass(s.animating);n.hasClass(s.active)||t?f.debug("Accordion already open, skipping",n):(f.debug("Opening accordion content",e),a.onOpening.call(n),a.onChanging.call(n),a.exclusive&&f.closeOthers.call(e),e.addClass(s.active),n.stop(!0,!0).addClass(s.animating),a.animateChildren&&(k.fn.transition!==A&&c.transition("is supported")?n.children().transition({animation:"fade in",queue:!1,useFailSafe:!0,debug:a.debug,verbose:a.verbose,silent:a.silent,duration:a.duration,skipInlineHidden:!0,onComplete:function(){n.children().removeClass(s.transition)}}):n.children().stop(!0,!0).animate({opacity:1},a.duration,f.resetOpacity)),n.slideDown(a.duration,a.easing,function(){n.removeClass(s.animating).addClass(s.active),f.reset.display.call(this),a.onOpen.call(this),a.onChange.call(this)}))},close:function(e){var e=e!==A?"number"==typeof e?d.eq(e):k(e).closest(l.title):k(this).closest(l.title),n=e.next(u),t=n.hasClass(s.animating),i=n.hasClass(s.active);!i&&!(!i&&t)||i&&t||(f.debug("Closing accordion content",n),a.onClosing.call(n),a.onChanging.call(n),e.removeClass(s.active),n.stop(!0,!0).addClass(s.animating),a.animateChildren&&(k.fn.transition!==A&&c.transition("is supported")?n.children().transition({animation:"fade out",queue:!1,useFailSafe:!0,debug:a.debug,verbose:a.verbose,silent:a.silent,duration:a.duration,skipInlineHidden:!0}):n.children().stop(!0,!0).animate({opacity:0},a.duration,f.resetOpacity)),n.slideUp(a.duration,a.easing,function(){n.removeClass(s.animating).removeClass(s.active),f.reset.display.call(this),a.onClose.call(this),a.onChange.call(this)}))},closeOthers:function(e){var n,e=e!==A?d.eq(e):k(this).closest(l.title),t=e.parents(l.content).prev(l.title),e=e.closest(l.accordion),i=l.title+"."+s.active+":visible",o=l.content+"."+s.active+":visible",o=a.closeNested?(n=e.find(i).not(t)).next(u):(n=e.find(i).not(t),e=e.find(o).find(i).not(t),(n=n.not(e)).next(u));0<n.length&&(f.debug("Exclusive enabled, closing other content",n),n.removeClass(s.active),o.removeClass(s.animating).stop(!0,!0),a.animateChildren&&(k.fn.transition!==A&&c.transition("is supported")?o.children().transition({animation:"fade out",useFailSafe:!0,debug:a.debug,verbose:a.verbose,silent:a.silent,duration:a.duration,skipInlineHidden:!0}):o.children().stop(!0,!0).animate({opacity:0},a.duration,f.resetOpacity)),o.slideUp(a.duration,a.easing,function(){k(this).removeClass(s.active),f.reset.display.call(this)}))},reset:{display:function(){f.verbose("Removing inline display from element",this);var e=k(this);e.css("display",""),""===e.attr("style")&&e.attr("style","").removeAttr("style")},opacity:function(){f.verbose("Removing inline opacity from element",this);var e=k(this);e.css("opacity",""),""===e.attr("style")&&e.attr("style","").removeAttr("style")}},setting:function(e,n){if(f.debug("Changing setting",e,n),k.isPlainObject(e))k.extend(!0,a,e);else{if(n===A)return a[e];k.isPlainObject(a[e])?k.extend(!0,a[e],n):a[e]=n}},internal:function(e,n){if(f.debug("Changing internal",e,n),n===A)return f[e];k.isPlainObject(e)?k.extend(!0,f,e):f[e]=n},debug:function(){!a.silent&&a.debug&&(a.performance?f.performance.log(arguments):(f.debug=Function.prototype.bind.call(console.info,console,a.name+":"),f.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?f.performance.log(arguments):(f.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),f.verbose.apply(console,arguments)))},error:function(){a.silent||(f.error=Function.prototype.bind.call(console.error,console,a.name+":"),f.error.apply(console,arguments))},performance:{log:function(e){var n,t;a.performance&&(t=(n=Date.now())-(b||n),b=n,y.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:g,"Execution Time":t})),clearTimeout(f.performance.timer),f.performance.timer=setTimeout(f.performance.display,500)},display:function(){var e=a.name+":",t=0;b=!1,clearTimeout(f.performance.timer),k.each(y,function(e,n){t+=n["Execution Time"]}),e+=" "+t+"ms",o&&(e+=" '"+o+"'"),(console.group!==A||console.table!==A)&&0<y.length&&(console.groupCollapsed(e),console.table?console.table(y):k.each(y,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),y=[]}},invoke:function(i,e,n){var o,a,t,s,l=p;return e=e||x,n=n||g,"string"==typeof i&&l!==A&&(i=i.split(/[ .]/),o=i.length-1,k.each(i,function(e,n){var t=e!=o?n+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(k.isPlainObject(l[t])&&e!=o)l=l[t];else{if(l[t]!==A)return a=l[t],!1;{if(!k.isPlainObject(l[n])||e==o)return l[n]!==A?a=l[n]:f.error(r.method,i),!1;l=l[n]}}})),"function"==typeof(s=a)&&"number"!=typeof s.nodeType?t=a.apply(n,e):a!==A&&(t=a),Array.isArray(v)?v.push(t):v!==A?v=[v,t]:t!==A&&(v=t),a}};O?(p===A&&f.initialize(),f.invoke(C)):(p!==A&&p.invoke("destroy"),f.initialize())}),v!==A?v:this},k.fn.accordion.settings={name:"Accordion",namespace:"accordion",silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",observeChanges:!0,exclusive:!0,collapsible:!0,closeNested:!1,animateChildren:!0,duration:350,easing:"easeOutQuad",onOpening:function(){},onClosing:function(){},onChanging:function(){},onOpen:function(){},onClose:function(){},onChange:function(){},error:{method:"The method you called is not defined"},className:{active:"active",animating:"animating",transition:"transition"},selector:{accordion:".accordion",title:".title",trigger:".title",ignore:".ui.dropdown",content:".content"}},k.extend(k.easing,{easeOutQuad:function(e){return 1-(1-e)*(1-e)}})}(jQuery,window,void document);
|
package/dist/components/ad.css
CHANGED