Skip to content

Commit 241e4c5

Browse files
committed
Merge master into release branch (2.0.13)
2 parents 9a679ff + 13dab79 commit 241e4c5

File tree

93 files changed

+1992
-945
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+1992
-945
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ src/pat/toggle/toggle.css
5454
src/pat/tooltip/tooltip.css
5555
src/pat/validate/validate.css
5656
src/pat/zoom/zoom.css
57+
/paternslib.sublime-project
58+
/paternslib.sublime-workspace

.travis.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
language: node_js
22
node_js:
3-
- 0.8
4-
notifications:
5-
irc:
6-
channels:
7-
- "irc.freenode.org#patterns"
8-
on_success: change
9-
on_failure: always
10-
template:
11-
- "%{branch}/%{commit} %{author} %{message}"
12-
- "Build details: %{build_url}"
3+
- 0.10
4+
before_script: make stamp-bower
5+
script: make check
6+
sudo: false

Makefile

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ clean::
4646
########################################################################
4747
## Tests
4848

49-
check:: jshint
5049
jshint: stamp-npm
5150
$(JSHINT) --config jshintrc $(CHECKSOURCES)
5251
$(JSHINT) --config jshintrc-tests $(TESTSOURCES)
5352

5453

55-
check:: stamp-npm
54+
.PHONY: check
55+
check:: stamp-bower jshint
5656
$(PHANTOMJS) node_modules/phantom-jasmine/lib/run_jasmine_test.coffee tests.html
5757

5858

@@ -73,50 +73,50 @@ clean::
7373

7474
all_css:: css
7575
@echo "Hang tight!"
76-
@$(SASS) src/pat/auto-scale/_auto-scale.scss src/pat/auto-scale/auto-scale.css
77-
@$(SASS) src/pat/auto-submit/_auto-submit.scss src/pat/auto-submit/auto-submit.css
78-
@$(SASS) src/pat/auto-suggest/_auto-suggest.scss src/pat/auto-suggest/auto-suggest.css
79-
@$(SASS) src/pat/autofocus/_autofocus.scss src/pat/autofocus/autofocus.css
80-
@$(SASS) src/pat/bumper/_bumper.scss src/pat/bumper/bumper.css
81-
@$(SASS) src/pat/calendar/_calendar.scss src/pat/calendar/calendar.css
82-
@$(SASS) src/pat/carousel/_carousel.scss src/pat/carousel/carousel.css
83-
@$(SASS) src/pat/checked-flag/_checked-flag.scss src/pat/checked-flag/checked-flag.css
84-
@$(SASS) src/pat/checklist/_checklist.scss src/pat/checklist/checklist.css
85-
@$(SASS) src/pat/clone/_clone.scss src/pat/clone/clone.css
86-
@$(SASS) src/pat/collapsible/_collapsible.scss src/pat/collapsible/collapsible.css
87-
@$(SASS) src/pat/date-picker/_date-picker.scss src/pat/date-picker/date-picker.css
88-
@$(SASS) src/pat/depends/_depends.scss src/pat/depends/depends.css
89-
@$(SASS) src/pat/edit-tinymce/_edit-tinymce.scss src/pat/edit-tinymce/edit-tinymce.css
90-
@$(SASS) src/pat/equaliser/_equaliser.scss src/pat/equaliser/equaliser.css
91-
@$(SASS) src/pat/expandable-tree/_expandable-tree.scss src/pat/expandable-tree/expandable-tree.css
92-
@$(SASS) src/pat/focus/_focus.scss src/pat/focus/focus.css
76+
@$(SASS) -I . -I _sass src/pat/auto-scale/_auto-scale.scss src/pat/auto-scale/auto-scale.css
77+
@$(SASS) -I . -I _sass src/pat/auto-submit/_auto-submit.scss src/pat/auto-submit/auto-submit.css
78+
@$(SASS) -I . -I _sass src/pat/auto-suggest/_auto-suggest.scss src/pat/auto-suggest/auto-suggest.css
79+
@$(SASS) -I . -I _sass src/pat/autofocus/_autofocus.scss src/pat/autofocus/autofocus.css
80+
@$(SASS) -I . -I _sass src/pat/bumper/_bumper.scss src/pat/bumper/bumper.css
81+
@$(SASS) -I . -I _sass src/pat/calendar/_calendar.scss src/pat/calendar/calendar.css
82+
@$(SASS) -I . -I _sass src/pat/carousel/_carousel.scss src/pat/carousel/carousel.css
83+
@$(SASS) -I . -I _sass src/pat/checked-flag/_checked-flag.scss src/pat/checked-flag/checked-flag.css
84+
@$(SASS) -I . -I _sass src/pat/checklist/_checklist.scss src/pat/checklist/checklist.css
85+
@$(SASS) -I . -I _sass src/pat/clone/_clone.scss src/pat/clone/clone.css
86+
@$(SASS) -I . -I _sass src/pat/collapsible/_collapsible.scss src/pat/collapsible/collapsible.css
87+
@$(SASS) -I . -I _sass src/pat/date-picker/_date-picker.scss src/pat/date-picker/date-picker.css
88+
@$(SASS) -I . -I _sass src/pat/depends/_depends.scss src/pat/depends/depends.css
89+
@$(SASS) -I . -I _sass src/pat/edit-tinymce/_edit-tinymce.scss src/pat/edit-tinymce/edit-tinymce.css
90+
@$(SASS) -I . -I _sass src/pat/equaliser/_equaliser.scss src/pat/equaliser/equaliser.css
91+
@$(SASS) -I . -I _sass src/pat/expandable-tree/_expandable-tree.scss src/pat/expandable-tree/expandable-tree.css
92+
@$(SASS) -I . -I _sass src/pat/focus/_focus.scss src/pat/focus/focus.css
9393
@echo "Almost there, don't give up!"
94-
@$(SASS) src/pat/forward/_forward.scss src/pat/forward/forward.css
95-
@$(SASS) src/pat/gallery/_gallery.scss src/pat/gallery/gallery.css
96-
@$(SASS) src/pat/grid/_grid.scss src/pat/grid/grid.css
97-
@$(SASS) src/pat/image-crop/_image-crop.scss src/pat/image-crop/image-crop.css
98-
@$(SASS) src/pat/inject-history/_inject-history.scss src/pat/inject-history/inject-history.css
99-
@$(SASS) src/pat/inject/_inject.scss src/pat/inject/inject.css
100-
@$(SASS) src/pat/markdown/_markdown.scss src/pat/markdown/markdown.css
101-
@$(SASS) src/pat/masonry/_masonry.scss src/pat/masonry/masonry.css
102-
@$(SASS) src/pat/modal/_modal.scss src/pat/modal/modal.css
103-
@$(SASS) src/pat/navigation/_navigation.scss src/pat/navigation/navigation.css
104-
@$(SASS) src/pat/notification/_notification.scss src/pat/notification/notification.css
105-
@$(SASS) src/pat/slideshow-builder/_slideshow-builder.scss src/pat/slideshow-builder/slideshow-builder.css
106-
@$(SASS) src/pat/sortable/_sortable.scss src/pat/sortable/sortable.css
107-
@$(SASS) src/pat/stacks/_stacks.scss src/pat/stacks/stacks.css
108-
@$(SASS) src/pat/switch/_switch.scss src/pat/switch/switch.css
109-
@$(SASS) src/pat/toggle/_toggle.scss src/pat/toggle/toggle.css
110-
@$(SASS) src/pat/tooltip/_tooltip.scss src/pat/tooltip/tooltip.css
111-
@$(SASS) src/pat/validate/_validate.scss src/pat/validate/validate.css
112-
@$(SASS) src/pat/zoom/_zoom.scss src/pat/zoom/zoom.css
94+
@$(SASS) -I . -I _sass src/pat/forward/_forward.scss src/pat/forward/forward.css
95+
@$(SASS) -I . -I _sass src/pat/gallery/_gallery.scss src/pat/gallery/gallery.css
96+
@$(SASS) -I . -I _sass src/pat/grid/_grid.scss src/pat/grid/grid.css
97+
@$(SASS) -I . -I _sass src/pat/image-crop/_image-crop.scss src/pat/image-crop/image-crop.css
98+
@$(SASS) -I . -I _sass src/pat/inject-history/_inject-history.scss src/pat/inject-history/inject-history.css
99+
@$(SASS) -I . -I _sass src/pat/inject/_inject.scss src/pat/inject/inject.css
100+
@$(SASS) -I . -I _sass src/pat/markdown/_markdown.scss src/pat/markdown/markdown.css
101+
@$(SASS) -I . -I _sass src/pat/masonry/_masonry.scss src/pat/masonry/masonry.css
102+
@$(SASS) -I . -I _sass src/pat/modal/_modal.scss src/pat/modal/modal.css
103+
@$(SASS) -I . -I _sass src/pat/navigation/_navigation.scss src/pat/navigation/navigation.css
104+
@$(SASS) -I . -I _sass src/pat/notification/_notification.scss src/pat/notification/notification.css
105+
@$(SASS) -I . -I _sass src/pat/slideshow-builder/_slideshow-builder.scss src/pat/slideshow-builder/slideshow-builder.css
106+
@$(SASS) -I . -I _sass src/pat/sortable/_sortable.scss src/pat/sortable/sortable.css
107+
@$(SASS) -I . -I _sass src/pat/stacks/_stacks.scss src/pat/stacks/stacks.css
108+
@$(SASS) -I . -I _sass src/pat/switch/_switch.scss src/pat/switch/switch.css
109+
@$(SASS) -I . -I _sass src/pat/toggle/_toggle.scss src/pat/toggle/toggle.css
110+
@$(SASS) -I . -I _sass src/pat/tooltip/_tooltip.scss src/pat/tooltip/tooltip.css
111+
@$(SASS) -I . -I _sass src/pat/validate/_validate.scss src/pat/validate/validate.css
112+
@$(SASS) -I . -I _sass src/pat/zoom/_zoom.scss src/pat/zoom/zoom.css
113113
@echo "Done. Each pattern now has a CSS file."
114114

115-
css::
116-
@$(SASS) -I style -I . _sass/_patterns.scss style/patterns.css
115+
css:: stamp-bundler
116+
@$(SASS) -I style -I _sass -I . _sass/_patterns.scss style/patterns.css
117117

118118
watch::
119-
$(SASS) --watch -I style -I . _sass/_patterns.scss:style/patterns.css
119+
$(SASS) --watch -I style -I . -I _sass _sass/_patterns.scss:style/patterns.css
120120

121121
########################################################################
122122

@@ -126,4 +126,4 @@ serve:: all
126126

127127
designerhappy:: serve
128128

129-
.PHONY: all bundle clean check jshint tests
129+
.PHONY: all bundle clean jshint tests

README.md

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Patterns
22

3+
[![Build Status](https://travis-ci.org/Patternslib/Patterns.png?branch=master)](https://travis-ci.org/Patternslib/Patterns)
4+
35
Patterns is a toolkit that enables designers to build rich
46
interactive prototypes without the need for writing any JavaScript. All events
57
are triggered by classes and other attributes in the HTML, without abusing the
@@ -27,34 +29,38 @@ Other browser version may work too, but are not actively tested against.
2729
This will generate a `bundle.js` file which contains Patterns and all its
2830
dependencies.
2931

32+
Alternatively, you can [download a bundle at patternslib.com](http://patternslib.com/download.html).
33+
3034
## Layout
3135

32-
The individual patterns are located in their own folders in ./src/pat.
36+
The individual patterns are located in their own folders in `./src/pat/`.
3337

3438
Each pattern folder contains some or all of the following files:
3539

36-
- *index.html* which contains markup that shows a demonstration of the pattern.
37-
- *documentation.md* which is a Markdown file that documents each pattern's purpose,
38-
how to use it and how to configure it.
40+
- *index.html* which contains HTML markup that shows a demonstration of the pattern.
41+
- *documentation.md* which is a Markdown file that documents the pattern's purpose, how to use it and how to configure it.
3942
- A javascript file which implements the pattern's functionality.
40-
- A Sass (.scss) file which provides CSS associated with the pattern.
43+
- A Sass (.scss) file which provides the CSS associated with the pattern.
4144

4245
To generate CSS files from the pattern's included Sass files, type ``make all_css``
4346
and the css files will be generated in the same location as the Sass files.
4447

45-
You'll need to has a Sass compiler installed.
48+
You'll need to have a Sass compiler installed.
4649

4750
## How to demo patterns
4851

4952
To demo the patterns, simply type ``make serve`` to install the necessary
5053
dependencies and to start a simple Node.js HTTP server.
5154

52-
You can then visit http://localhost:4001 to see the demo site.
55+
You can then visit http://localhost:4001 to see a site with demos.
56+
57+
Alternatively, patterns can also be demoed through the
58+
[Patternslib.com](http://patternslib.com) website, which is open-source. The
59+
code and setup instructions are [here](https://github.com/patternslib/Patterns-site).
5360

5461
## Contributing fixes
5562

56-
To develop on Patterns, clone the repository and set it's push-url to
57-
your fork:
63+
To develop on Patterns, clone the repository and set it's push-url to your fork:
5864

5965
git remote set-url --push origin <url_to_your_fork>
6066

@@ -72,3 +78,16 @@ The simplest way to run the tests are to use make:
7278
make check
7379

7480
This will install all required npm and bower packages and run the tests.
81+
82+
### Organisations and projects which use Patternslib
83+
84+
- [Overstroom ik?](http://www.overstroomik.nl), a website which informs Dutch citizens of their risk of flooding. It was introduced and highly praised by the Dutch minister of infrastructure and environment, Melanie Schultz.
85+
- [OiRA](https://client.oiraproject.eu/), an online risk assessment tool, created for the Occupational Health and Safety Agency (OSHA) of the European Union.
86+
- [Staralliance](http://www.staralliance.com) uses Patternslib in their intranet.
87+
- [Plone](http://plone.com) CMS and [Plone Intranet project](http://ploneintranet.com) both use Patternslib.
88+
89+
### Interactive HTML/CSS prototypes made with Patternslib
90+
91+
- [The Plone Intranet prototype](http://prototype.ploneintranet.net/dashboard.html)
92+
- The [Patternslib.com](http://patternslib.com) website uses Patternslib and is based upon a prototype, which can be found [here](https://github.com/patternslib/Patterns-site).
93+

RELEASE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Making a release
22

3-
Firstly, update the version number in bower.json, package.json and add the date to changes.md
3+
First, update the version number in bower.json, package.json, VERSION.txt and add the date to changes.md
4+
(remove the -dev from the version number in VERSION.txt)
45

56
## Merge master into the "release" branch
67

@@ -25,3 +26,5 @@ Firstly, update the version number in bower.json, package.json and add the date
2526

2627
git tag 2.0.0
2728
git push && git push --tags
29+
30+
## update VERSION.txt to the next logical version number and append '-dev' to it.

VERSION.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Patternslib 2.0.13
2+

_sass/_mixins.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,4 @@
224224
background-color: $colour-warning;
225225
color: white;
226226
}
227-
}
227+
}

bower.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "patternslib",
3-
"version": "2.0.12",
3+
"version": "2.0.13",
44
"main": "bundle.js",
55
"devDependencies": {
66
"jasmine": "https://github.com/jcbrand/jasmine.git#1_3_x"
@@ -13,7 +13,6 @@
1313
"requirejs": "",
1414
"requirejs-tpl-jcbrand": "*",
1515
"requirejs-text": "~2.0.12",
16-
"klass": "",
1716
"jcrop": "0.9.12",
1817
"AnythingSlider": "1.8.17",
1918
"chosen": "https://github.com/syslabcom/chosen.git#4371e8fdabe16d4e8aaa3734421edc367e32a296",

build.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
name: "almond",
66
mainConfigFile: 'main.js',
77
wrap: {
8+
startFile: "VERSION.txt",
89
endFile: "src/wrap-end.js"
910
},
1011
optimize: "none",

changes.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
11
# Changelog
22

3+
## 2.0.13 - Apr. 27, 2016
4+
5+
- New property for sortable pattern, `drag-class`, the CSS class to apply to item being dragged. Is `"dragged"` by default.
6+
- New property for sortable pattern, `drop`, a Javascript callback function to be called when an item is dropped.
7+
- Form with pat-autosubmit doesn't get notified when injected inputs change.
8+
- Inject pattern with `autoload-visible` injected erroneously based upon old autoload element no longer in DOM.
9+
- Add the class `modal-active` to the `body` element whenever a modal is in the DOM.
10+
- New pattern: `pat-tabs`. See the relevant documentation.
11+
- Bugfix: `pat-validation` still validates removed clones from `pat-clone`.
12+
- Let the next-href option of pat-inject work as advertised.
13+
- Parser fix: don't treat `&amp;` as a separator
14+
- #436 Remove `pat-bumper` restriction that scroll container must be the direct parent.
15+
- pat-masonry fix: the `containerStyle` value must be an object.
16+
317
## 2.0.12 - Oct. 9, 2015
418

5-
- New argument for the inject pattern: `loading-class`.
19+
- New property for the inject pattern: `loading-class`.
620
Specifies a class to appear on the injection target while the injected content is still loading.
721
Previously this was hardcoded to `injecting`, this is still set to the default value.
8-
- New arguments for the inject pattern: `confirm` and `confirm-message`.
22+
- New propertys for the inject pattern: `confirm` and `confirm-message`.
923
Allows you to specify whether a confirmation message should be shown before
1024
injecting, as well as the text of that message.
11-
- New argument for tooltip pattern: `mark-inactive`.
25+
- New property for tooltip pattern: `mark-inactive`.
1226
A boolean value, used to specify whether the class 'inactive' should be added
1327
to the tooltip trigger. Previously this behavior was hardcoded, now it's
1428
optional with a default of `true`.

0 commit comments

Comments
 (0)