fomantic-ui 2.10.0-beta.4 → 2.10.0-beta.40
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 +0 -10
- package/CHANGELOG.md +5289 -2325
- package/README.md +4 -5
- package/changelog-setup.js +85 -69
- package/changelog-template.hbs +256 -251
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +103 -142
- 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 +152 -205
- 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 -2
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +308 -346
- package/dist/components/calendar.min.css +1 -1
- 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 +85 -127
- 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 +58 -91
- 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 +7 -5
- package/dist/components/dropdown.js +744 -1071
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +2 -2
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +83 -113
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- package/dist/components/emoji.css +3809 -7617
- package/dist/components/emoji.min.css +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 +1 -1
- package/dist/components/flyout.js +225 -314
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +1 -1
- package/dist/components/form.js +325 -429
- package/dist/components/form.min.css +1 -1
- 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 +2 -1
- package/dist/components/label.min.css +2 -2
- 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/menu.css +40 -40
- package/dist/components/menu.min.css +2 -2
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +3 -3
- package/dist/components/modal.js +259 -358
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +67 -97
- 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 +190 -264
- 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 +103 -138
- 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 +90 -123
- 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 +270 -373
- 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 +157 -223
- 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 +125 -165
- 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 +38 -57
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +242 -325
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +68 -98
- 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 +131 -176
- 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 +168 -233
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- package/dist/components/table.css +8 -8
- 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 +1 -1
- package/dist/components/toast.js +104 -143
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +86 -141
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +145 -223
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +3916 -7722
- package/dist/semantic.js +4324 -5973
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/examples/assets/show-examples.js +2 -4
- package/examples/attached.html +1 -1
- package/examples/components/menu.html +1 -1
- package/gulpfile.js +5 -7
- package/package.json +1 -3
- package/scripts/nightly-version.js +7 -10
- package/src/definitions/behaviors/api.js +151 -204
- package/src/definitions/behaviors/form.js +324 -428
- package/src/definitions/behaviors/state.js +67 -97
- package/src/definitions/behaviors/visibility.js +144 -222
- package/src/definitions/collections/menu.less +101 -96
- package/src/definitions/collections/table.less +7 -7
- package/src/definitions/elements/button.less +0 -1
- package/src/definitions/elements/label.less +1 -0
- package/src/definitions/globals/site.js +37 -56
- package/src/definitions/modules/accordion.js +102 -141
- package/src/definitions/modules/calendar.js +307 -345
- package/src/definitions/modules/checkbox.js +84 -126
- package/src/definitions/modules/dimmer.js +57 -90
- package/src/definitions/modules/dropdown.js +743 -1070
- package/src/definitions/modules/dropdown.less +11 -5
- package/src/definitions/modules/embed.js +82 -112
- package/src/definitions/modules/flyout.js +224 -313
- package/src/definitions/modules/modal.js +258 -357
- package/src/definitions/modules/modal.less +1 -1
- package/src/definitions/modules/nag.js +66 -96
- package/src/definitions/modules/popup.js +189 -263
- package/src/definitions/modules/progress.js +102 -137
- package/src/definitions/modules/rating.js +89 -122
- package/src/definitions/modules/search.js +269 -372
- package/src/definitions/modules/shape.js +156 -222
- package/src/definitions/modules/sidebar.js +124 -164
- package/src/definitions/modules/slider.js +241 -324
- package/src/definitions/modules/sticky.js +130 -175
- package/src/definitions/modules/tab.js +167 -232
- package/src/definitions/modules/toast.js +103 -142
- package/src/definitions/modules/transition.js +85 -140
- package/src/themes/chubby/collections/menu.variables +1 -1
- package/src/themes/default/collections/menu.variables +23 -23
- package/src/themes/default/globals/variation.variables +3 -2
- package/src/themes/default/modules/dropdown.variables +1 -0
- package/src/themes/default/modules/modal.variables +1 -1
- package/tasks/admin/components/create.js +88 -108
- package/tasks/admin/components/init.js +26 -32
- package/tasks/admin/components/update.js +46 -53
- package/tasks/admin/distributions/create.js +71 -101
- package/tasks/admin/distributions/init.js +27 -33
- package/tasks/admin/distributions/update.js +45 -52
- package/tasks/admin/register.js +11 -15
- package/tasks/build/assets.js +14 -18
- package/tasks/build/css.js +54 -63
- package/tasks/build/javascript.js +45 -53
- package/tasks/build.js +4 -6
- package/tasks/check-install.js +5 -7
- package/tasks/clean.js +2 -4
- package/tasks/collections/admin.js +13 -15
- package/tasks/collections/build.js +6 -8
- package/tasks/collections/docs.js +2 -4
- package/tasks/collections/install.js +2 -4
- package/tasks/collections/rtl.js +2 -4
- package/tasks/collections/various.js +2 -4
- package/tasks/config/admin/github.js +7 -9
- package/tasks/config/admin/templates/css-package.js +1 -3
- package/tasks/config/admin/templates/less-package.js +1 -3
- package/tasks/config/defaults.js +0 -1
- package/tasks/config/npm/gulpfile.js +4 -6
- package/tasks/config/project/config.js +22 -30
- package/tasks/config/project/install.js +61 -78
- package/tasks/config/project/release.js +6 -8
- package/tasks/config/tasks.js +8 -12
- package/tasks/config/user.js +13 -17
- package/tasks/docs/build.js +26 -31
- package/tasks/docs/metadata.js +24 -30
- package/tasks/docs/serve.js +20 -26
- package/tasks/install.js +81 -109
- package/tasks/rtl/build.js +2 -4
- package/tasks/rtl/watch.js +2 -4
- package/tasks/watch.js +9 -11
- package/test/meteor/fonts.js +1 -2
- package/test/modules/module.spec.js +16 -18
- package/types/fomantic-ui-dropdown.d.ts +44 -0
- package/types/fomantic-ui-embed.d.ts +1 -1
- package/types/fomantic-ui-search.d.ts +6 -6
package/README.md
CHANGED
@@ -3,7 +3,9 @@
|
|
3
3
|
# Fomantic-UI
|
4
4
|
The official community fork of the popular Semantic-UI framework.
|
5
5
|
|
6
|
-
[](https://github.com/fomantic/Fomantic-UI/actions/workflows/ci.yml)
|
7
|
+
[](https://github.com/fomantic/Fomantic-UI/actions/workflows/nightly.yml)
|
8
|
+
|
7
9
|
[](https://github.com/fomantic/Fomantic-UI/commits/develop)
|
8
10
|
[](https://github.com/fomantic/Fomantic-UI/blob/1fd94d2479f297c906bed557f0567d1d3f0a4d2c/LICENSE.md)
|
9
11
|
|
@@ -16,9 +18,6 @@ The official community fork of the popular Semantic-UI framework.
|
|
16
18
|
[](https://www.jsdelivr.com/package/npm/fomantic-ui)
|
17
19
|
[](https://cdnjs.com/libraries/fomantic-ui)
|
18
20
|
|
19
|
-
[](https://github.com/fomantic/Fomantic-UI/actions/workflows/ci.yml)
|
20
|
-
[](https://github.com/fomantic/Fomantic-UI/actions/workflows/nightly.yml)
|
21
|
-
|
22
21
|
[](https://packagequality.com/#?package=fomantic-ui)
|
23
22
|
[](https://github.com/fomantic/Fomantic-UI/graphs/contributors)
|
24
23
|
[](https://github.com/features/security)
|
@@ -59,7 +58,7 @@ Fomantic includes an interactive installer to help setup your project.
|
|
59
58
|
* Last 2 Versions of Firefox, Chrome, Safari Mac, Edge
|
60
59
|
* Last 4 Versions of Android, Chrome for Android, iOS Safari[^1]
|
61
60
|
|
62
|
-
[^1]: Fomantic-UI should basically still work in iOS Safari
|
61
|
+
[^1]: Fomantic-UI should basically still work in iOS Safari 11+, Android 7+, but, starting from v2.9.0, we won't support them anymore if anything works different than in recent versions.
|
63
62
|
|
64
63
|
---
|
65
64
|
|
package/changelog-setup.js
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
const semver = require('semver'); // eslint-disable-line import/no-extraneous-dependencies
|
2
2
|
|
3
|
-
let changelogDeps
|
4
|
-
|
5
|
-
|
6
|
-
;
|
3
|
+
let changelogDeps = {};
|
4
|
+
let loopVersion = '';
|
5
|
+
let uniqueCommits = [];
|
6
|
+
let isMajor = false;
|
7
|
+
let isMinor = false;
|
7
8
|
const issueLinks = function (item) {
|
8
9
|
if (typeof loopVersion !== 'string') {
|
9
10
|
return item;
|
@@ -15,6 +16,17 @@ const issueLinks = function (item) {
|
|
15
16
|
};
|
16
17
|
|
17
18
|
module.exports = function (Handlebars) {
|
19
|
+
Handlebars.registerHelper('commit-collector', (merges, commits, major, minor, options) => {
|
20
|
+
const commitsFromMerges = merges.map((merge) => merge.commit);
|
21
|
+
const result = commits.concat(commitsFromMerges);
|
22
|
+
isMajor = major;
|
23
|
+
isMinor = minor;
|
24
|
+
|
25
|
+
return options.fn(result);
|
26
|
+
});
|
27
|
+
|
28
|
+
Handlebars.registerHelper('commit-list-breaking', (context, options) => (isMajor || isMinor ? Handlebars.helpers['commit-list-enhanced'](context, options) : ''));
|
29
|
+
|
18
30
|
Handlebars.registerHelper('commit-list-enhanced', (context, options) => {
|
19
31
|
const {
|
20
32
|
exclude,
|
@@ -113,79 +125,83 @@ module.exports = function (Handlebars) {
|
|
113
125
|
loopVersion = options.data.root.releases[options.data.index].tag;
|
114
126
|
|
115
127
|
changelogDeps = {};
|
116
|
-
const
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
if (semver.gte(depVersionTo, changelogDeps[depPackage].to)) {
|
138
|
-
changelogDeps[depPackage].to = depVersionTo;
|
128
|
+
const depsRegex = /(?:build\(deps[A-Za-z-]*\):|\[Snyk]) (?:\[?[Ss]ecurity]? )?(?:bump|upgrade) ([\w./@-]+) from (\d+\.\d+\.\d+) to (\d+\.\d+\.\d+)/;
|
129
|
+
const detectVersionRange = function (item) {
|
130
|
+
let subjectDetails = item.subject.match(depsRegex);
|
131
|
+
if (!subjectDetails) {
|
132
|
+
return true;
|
133
|
+
}
|
134
|
+
|
135
|
+
let depPackage = subjectDetails[1];
|
136
|
+
let depVersionFrom = subjectDetails[2];
|
137
|
+
let depVersionTo = subjectDetails[3];
|
138
|
+
if (!changelogDeps[depPackage]) {
|
139
|
+
changelogDeps[depPackage] = {
|
140
|
+
from: '999.999.999',
|
141
|
+
to: '0.0.0',
|
142
|
+
};
|
143
|
+
}
|
144
|
+
if (semver.lt(depVersionFrom, changelogDeps[depPackage].from)) {
|
145
|
+
changelogDeps[depPackage].from = depVersionFrom;
|
146
|
+
}
|
147
|
+
if (semver.gte(depVersionTo, changelogDeps[depPackage].to)) {
|
148
|
+
changelogDeps[depPackage].to = depVersionTo;
|
139
149
|
|
140
|
-
|
141
|
-
|
150
|
+
return true;
|
151
|
+
}
|
142
152
|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
+
return false;
|
154
|
+
};
|
155
|
+
uniqueCommits = [];
|
156
|
+
const list = context
|
157
|
+
.filter((item) => {
|
158
|
+
const commit = item.commit || item;
|
159
|
+
if (exclude) {
|
160
|
+
const pattern = new RegExp(exclude, 'm');
|
161
|
+
if (pattern.test(commit.message)) {
|
162
|
+
return false;
|
153
163
|
}
|
154
|
-
|
155
|
-
|
164
|
+
}
|
165
|
+
if (message) {
|
166
|
+
const pattern = new RegExp(message, 'm');
|
156
167
|
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
168
|
+
return pattern.test(commit.message);
|
169
|
+
}
|
170
|
+
if (subject) {
|
171
|
+
const pattern = new RegExp(subject);
|
161
172
|
|
162
|
-
|
163
|
-
|
173
|
+
return pattern.test(commit.subject);
|
174
|
+
}
|
164
175
|
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
.
|
172
|
-
let subjectDetails = item.subject.match(depsRegex);
|
173
|
-
if (!subjectDetails) {
|
174
|
-
return item;
|
175
|
-
}
|
176
|
-
let
|
177
|
-
depPackage = subjectDetails[1],
|
178
|
-
depVersionFrom = subjectDetails[2]
|
179
|
-
;
|
180
|
-
item.subject = item.subject.replace(depVersionFrom, changelogDeps[depPackage].from);
|
176
|
+
return true;
|
177
|
+
})
|
178
|
+
.filter((item) => {
|
179
|
+
if (uniqueCommits.includes(item.subject)) {
|
180
|
+
return false;
|
181
|
+
}
|
182
|
+
uniqueCommits.push(item.subject);
|
181
183
|
|
184
|
+
return true;
|
185
|
+
})
|
186
|
+
.filter(detectVersionRange)
|
187
|
+
// second round as the previous list came unordered from git
|
188
|
+
.filter(detectVersionRange)
|
189
|
+
// adjust from version to create the whole range in one line (linked to the latest commit)
|
190
|
+
.map((item) => {
|
191
|
+
let subjectDetails = item.subject.match(depsRegex);
|
192
|
+
if (!subjectDetails) {
|
182
193
|
return item;
|
183
|
-
}
|
184
|
-
|
185
|
-
|
186
|
-
.
|
187
|
-
|
188
|
-
|
194
|
+
}
|
195
|
+
let depPackage = subjectDetails[1];
|
196
|
+
let depVersionFrom = subjectDetails[2];
|
197
|
+
item.subject = item.subject.replace(depVersionFrom, changelogDeps[depPackage].from);
|
198
|
+
|
199
|
+
return item;
|
200
|
+
})
|
201
|
+
.map(issueLinks)
|
202
|
+
.map((item) => options.fn(item))
|
203
|
+
.sort()
|
204
|
+
.join('');
|
189
205
|
if (!list) {
|
190
206
|
return '';
|
191
207
|
}
|