107 |
108 |
109 |
--------------------------------------------------------------------------------
/Mobile App Bootstrap/www/lib/ion-datetime-picker/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ion-datetime-picker",
3 | "version": "0.3.1",
4 | "authors": [
5 | "Kate Miháliková "
6 | ],
7 | "description": "Date and/or time picker for awesome ionic framework",
8 | "main": [
9 | "release/ion-datetime-picker.min.js",
10 | "release/ion-datetime-picker.min.css"
11 | ],
12 | "keywords": [
13 | "ion-datetime-picker",
14 | "ionic",
15 | "date",
16 | "time",
17 | "picker",
18 | "cordova",
19 | "phonegap"
20 | ],
21 | "license": "MIT",
22 | "homepage": "https://github.com/katemihalikova/ionic-datetime-picker",
23 | "ignore": [
24 | "**/.*",
25 | "node_modules"
26 | ],
27 | "dependencies": {
28 | "ionic": "^1.0.0-beta.9"
29 | },
30 | "_release": "0.3.1",
31 | "_resolution": {
32 | "type": "version",
33 | "tag": "v0.3.1",
34 | "commit": "974080cf94df981ae4ab65a39fca71b1545e7d98"
35 | },
36 | "_source": "https://github.com/katemihalikova/ion-datetime-picker.git",
37 | "_target": "^0.3.1",
38 | "_originalSource": "ion-datetime-picker",
39 | "_direct": true
40 | }
--------------------------------------------------------------------------------
/Mobile App Bootstrap/www/lib/ion-datetime-picker/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Kate Miháliková
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/Mobile App Bootstrap/www/lib/ion-datetime-picker/README.md:
--------------------------------------------------------------------------------
1 | # ion-datetime-picker
2 | 
3 | 
4 | 
5 | 
6 | 
7 |
8 | > Date and/or time picker for awesome [Ionic framework](http://ionicframework.com/) v1
9 |
10 | # Introduction
11 |
12 | I made this component because of poor implementation of native datetime picker in Android webview. How funny it was when I discovered that I can only pick a time between 0:00 and 11:59 on my 24-hour clock phone :)
13 |
14 | *Looking for a [picker](http://blog.ionic.io/ionic-2-fixing-date-inputs-for-the-mobile-web/) that works with Ionic framework v2?*
15 |
16 | # Features
17 |
18 | The ion-datetime-picker component has these features:
19 | - Make Date picker, Time picker, Datetime picker
20 | - Choose Sunday or Monday as the first day of the week
21 | - Use 12-hour or 24-hour clock
22 | - Pick time with or without seconds
23 | - Configure popup title and button labels
24 | - Configure i18n to get weekdays and months in your language
25 | - Configure size of a step
26 |
27 | # Demo
28 |
29 | Demo app is available - enter code `8d75a0ec` into [Ionic View](http://view.ionic.io/).
30 | Live demo is available on [Codepen](http://codepen.io/katemihalikova/full/dYvjzP/).
31 |
32 | #Screenshots
33 |
34 |
35 |
36 |
37 |
38 | # Installation
39 |
40 | 1. Use bower to install the new module:
41 |
42 | ```bash
43 | bower install ion-datetime-picker --save
44 | ```
45 |
46 | 2. Import the `ion-datetime-picker` javascript and css file into your HTML file (or use [wiredep](https://github.com/taptapship/wiredep)):
47 |
48 | ```html
49 |
50 |
51 | ```
52 |
53 | 3. Add `ion-datetime-picker` as a dependency on your Ionic app:
54 |
55 | ```javascript
56 | angular.module("myApp", ["ionic", "ion-datetime-picker"]);
57 | ```
58 |
59 | # Usage
60 |
61 | Put the `ion-datetime-picker` directive alongside the `ng-model` wherever you want to tap to show the picker:
62 | ```html
63 |
64 |
65 | {{datetimeValue| date: "yyyy-MM-dd H:mm:ss"}}
66 |
67 |
68 | ```
69 |
70 | ## Configuration attributes
71 |
72 | ### `date` and `time` attributes
73 |
74 | Choose which picker type is used. When neither is set, I assume both and use the datetime picker.
75 |
76 | ### `monday-first` attribute
77 |
78 | Set this if you want to have Monday as the first day of a week.
79 |
80 | ### `seconds` attribute
81 |
82 | By default, in the time picker, I allow to change only hours and minutes. Set this attribute to use also seconds.
83 |
84 | ### `am-pm` attribute
85 |
86 | By default, in the time picker, I use 24-hour clock. Set this attribute to change it to 12-hour clock.
87 |
88 | ### `month-step`, `hour-step`, `minute-step` and `second-step` attributes
89 |
90 | By default, when any caret button is tapped, I add or subtract 1 particular unit. Set these attributes to change it to anything you want.
91 |
92 | ### `title` and `sub-title` attributes
93 |
94 | Configure the title and sub title of the popup with the picker.
95 |
96 | _HINT: Use `data-title` instead of `title` if you are going to use the app in the desktop browser to prevent leaking of the text into a mouseover tooltip._
97 |
98 | ### `button-ok` and `button-cancel` attributes
99 |
100 | Configure the text of buttons at the bottom of the picker.
101 |
102 | ### `only-valid` attribute
103 |
104 | Disable/Enable calendar days according to type and date range specified.
105 |
106 | ```html
107 | only-valid="{'after': '2016-04-09'}"
108 | only-valid="{'after': 'today', 'inclusive': true}"
109 | only-valid="{'outside': {'initial': '2016-04-09', 'final': '2016-06-15'}, 'inclusive': true}"
110 | ```
111 |
112 | Types supported: `'after'`, `'before'`, `'between'` and `'outside'`. If you want to include the day specified, set `'inclusive'` property to `true`.
113 |
114 | ## Internationalization factory
115 |
116 | Simple internationalization option. Inject the `$ionicPickerI18n` factory into your code and set the localized strings.
117 |
118 | ### `weekdays` key
119 |
120 | Array of weekdays abbreviations. `0` is Sunday. If `moment` is installed, I try to get localized data from it, otherwise English ones are used as default.
121 |
122 | ### `months` key
123 |
124 | Array of months names. `0` is January. If `moment` is installed, I try to get localized data from it, otherwise English ones are used as default.
125 |
126 | ### `ok` and `cancel` keys
127 |
128 | Default, global labels of the buttons at the bottom of the picker.
129 |
130 | ```js
131 | angular.module("myApp")
132 | .run(function($ionicPickerI18n) {
133 | $ionicPickerI18n.weekdays = ["Нд", "Lu", "Út", "Mi", "To", "금", "Sá"];
134 | $ionicPickerI18n.months = ["Janvier", "Febrero", "März", "四月", "Maio", "Kesäkuu", "Červenec", "अगस्त", "Вересень", "Październik", "Νοέμβριος", "డిసెంబర్"];
135 | $ionicPickerI18n.ok = "オーケー";
136 | $ionicPickerI18n.cancel = "Cancelar";
137 | });
138 | ```
139 |
140 | ## Daylight saving time
141 |
142 | The datetime picker is using `Date` object with your browser's timezone, including any DST. When you change the date, hour, minute, or second, which sets the time to an invalid value because of moving from 2:00 to 3:00 at the beginning of DST, the time is automatically adjusted to a valid value. On the other hand, when the DST ends, I do NOT take the inserted hour into consideration, but this may be fixed in the future.
143 |
--------------------------------------------------------------------------------
/Mobile App Bootstrap/www/lib/ion-datetime-picker/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ion-datetime-picker",
3 | "version": "0.3.1",
4 | "authors": [
5 | "Kate Miháliková "
6 | ],
7 | "description": "Date and/or time picker for awesome ionic framework",
8 | "main": [
9 | "release/ion-datetime-picker.min.js",
10 | "release/ion-datetime-picker.min.css"
11 | ],
12 | "keywords": [
13 | "ion-datetime-picker",
14 | "ionic",
15 | "date",
16 | "time",
17 | "picker",
18 | "cordova",
19 | "phonegap"
20 | ],
21 | "license": "MIT",
22 | "homepage": "https://github.com/katemihalikova/ionic-datetime-picker",
23 | "ignore": [
24 | "**/.*",
25 | "node_modules"
26 | ],
27 | "dependencies": {
28 | "ionic": "^1.0.0-beta.9"
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Mobile App Bootstrap/www/lib/ion-datetime-picker/gulpfile.js:
--------------------------------------------------------------------------------
1 | var gulp = require("gulp");
2 | var sass = require("gulp-sass");
3 | var minifyHtml = require("gulp-minify-html");
4 | var ngHtml2js = require("gulp-ng-html2js");
5 | var ngAnnotate = require("gulp-ng-annotate");
6 | var iife = require("gulp-iife");
7 | var uglify = require("gulp-uglify");
8 | var concat = require("gulp-concat");
9 |
10 | gulp.task("sass", function() {
11 | return gulp.src("src/picker.scss")
12 | .pipe(concat("ion-datetime-picker.min.scss"))
13 | .pipe(sass({outputStyle: "compressed"}))
14 | .pipe(gulp.dest("release"));
15 | });
16 |
17 | gulp.task("html", function() {
18 | return gulp.src("src/picker-*.html")
19 | .pipe(minifyHtml({
20 | empty: true,
21 | spare: true,
22 | quotes: true
23 | }))
24 | .pipe(ngHtml2js({
25 | moduleName: "ion-datetime-picker",
26 | prefix: "lib/ion-datetime-picker/src/",
27 | declareModule: false
28 | }))
29 | .pipe(concat("ion-datetime-picker.min.js"))
30 | .pipe(gulp.dest("release"));
31 | });
32 |
33 | gulp.task("js", ["html"], function() {
34 | return gulp.src(["src/picker.js", "src/picker-*.js", "release/ion-datetime-picker.min.js"])
35 | .pipe(ngAnnotate())
36 | .pipe(concat("ion-datetime-picker.min.js"))
37 | .pipe(iife())
38 | .pipe(uglify())
39 | .pipe(gulp.dest("release"));
40 | });
41 |
42 | gulp.task("build", ["sass", "js"]);
43 |
44 | gulp.task("default", ["build"]);
45 |
--------------------------------------------------------------------------------
/Mobile App Bootstrap/www/lib/ion-datetime-picker/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ion-datetime-picker",
3 | "version": "0.3.1",
4 | "description": "Date and/or time picker for awesome ionic framework",
5 | "main": [
6 | "release/ion-datetime-picker.js",
7 | "release/ion-datetime-picker.css"
8 | ],
9 | "scripts": {},
10 | "author": "https://github.com/katemihalikova, kate@katemihalikova.cz",
11 | "license": "MIT",
12 | "dependencies": {},
13 | "devDependencies": {
14 | "gulp": "^3.9.0",
15 | "gulp-concat": "^2.6.0",
16 | "gulp-iife": "^0.1.0",
17 | "gulp-minify-html": "^1.0.4",
18 | "gulp-ng-annotate": "^1.1.0",
19 | "gulp-ng-html2js": "^0.2.0",
20 | "gulp-sass": "^2.0.4",
21 | "gulp-uglify": "^1.4.1"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Mobile App Bootstrap/www/lib/ion-datetime-picker/release/ion-datetime-picker.min.css:
--------------------------------------------------------------------------------
1 | .ion-datetime-picker .calendar{text-align:center;font-size:12px}.ion-datetime-picker .calendar .col{padding:0}.ion-datetime-picker .calendar .day,.ion-datetime-picker .calendar .weekday{padding:5px}.ion-datetime-picker .calendar .day:hover,.ion-datetime-picker .calendar .day.activated,.ion-datetime-picker .calendar .day.today:hover,.ion-datetime-picker .calendar .day.today.activated{background-color:#bdf;color:black;cursor:pointer}.ion-datetime-picker .calendar .day.today{background-color:#e4e4e4}.ion-datetime-picker .calendar .day.selected,.ion-datetime-picker .calendar .day.selected:hover,.ion-datetime-picker .calendar .day.selected.activated{background-color:#387ef5;color:white}.ion-datetime-picker .calendar .day.disabled,.ion-datetime-picker .calendar .day.disabled:hover,.ion-datetime-picker .calendar .day.disabled.activated{background-color:#ccc}.ion-datetime-picker .calendar .weekday{font-weight:bold}.ion-datetime-picker .month-year{padding:0;text-align:center}.ion-datetime-picker .month-year select{width:100%}.ion-datetime-picker .month-year .button{padding:0;width:100%;height:25px;min-width:0;min-height:0}.ion-datetime-picker .month-year .item-input{height:25px;padding:0;margin:0}.ion-datetime-picker .month-year .item-input.item-select:after{right:5px}.ion-datetime-picker .month-year .item-input input,.ion-datetime-picker .month-year .item-input select{font-size:12px;width:100%;height:100%;max-width:none;line-height:20px}.ion-datetime-picker .month-year .item-input select{left:0;padding:0 15px 0 1px;direction:ltr}.ion-datetime-picker .month-year .item-input input{text-align:center;padding:0 5px}.ion-datetime-picker .month-year .item-input input.ng-invalid{background-color:#ffe4ea}.ion-datetime-picker .month-year .item-input input::-webkit-outer-spin-button,.ion-datetime-picker .month-year .item-input input::-webkit-inner-spin-button{display:none}.ion-datetime-picker .time-buttons .col{padding:0}.ion-datetime-picker .time-buttons .button{padding:0;width:100%;height:36px;min-width:0;min-height:0}.ion-datetime-picker .time-buttons .button:before{line-height:35px}.ion-datetime-picker .time-buttons:first-child{padding-top:0}.ion-datetime-picker .time-buttons:last-child{padding-bottom:0}.ion-datetime-picker .time .col{padding:0}.ion-datetime-picker .time .colon{color:#999;font-size:16px;padding:0;text-align:center;line-height:32px}.ion-datetime-picker .time .item-input{height:35px;padding:0;margin:0}.ion-datetime-picker .time .item-input input{font-size:16px;width:100%;height:100%;max-width:none;text-align:center;padding:0 5px}.ion-datetime-picker .time .item-input input.ng-invalid{background-color:#ffe4ea}.ion-datetime-picker .time .item-input input::-webkit-outer-spin-button,.ion-datetime-picker .time .item-input input::-webkit-inner-spin-button{display:none}
2 |
--------------------------------------------------------------------------------
/Mobile App Bootstrap/www/lib/ion-datetime-picker/src/picker-i18n.js:
--------------------------------------------------------------------------------
1 | angular.module("ion-datetime-picker")
2 | .factory("$ionicPickerI18n", function($window) {
3 | return {
4 | ok: "OK",
5 | cancel: "Cancel",
6 | weekdays: $window.moment ? $window.moment.weekdaysMin() : ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
7 | months: $window.moment ? $window.moment.months() : ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
8 | };
9 | });
--------------------------------------------------------------------------------
/Mobile App Bootstrap/www/lib/ion-datetime-picker/src/picker-popup.html:
--------------------------------------------------------------------------------
1 |