@mediafly/js-ui 50.5.0 → 51.1.0-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/.node-version +1 -1
- package/.semaphore/promotion-deploy-docs.yml +35 -0
- package/.semaphore/scripts/notify_jira.sh +115 -0
- package/.semaphore/semaphore.yml +91 -0
- package/CHANGELOG.md +25 -346
- package/README.md +7 -4
- package/archive/old-changelog.md +347 -0
- package/lib/checkbox/checkbox.html +2 -0
- package/lib/color-input/spectrum-color-picker.js +1 -2
- package/lib/color-input/spectrum-color-picker.js.map +1 -1
- package/lib/constants/constants.js +0 -1
- package/lib/constants/constants.js.map +1 -1
- package/lib/date-input/date-input.js +2 -3
- package/lib/date-input/date-input.js.map +1 -1
- package/lib/date-input/validate-date.js +1 -2
- package/lib/date-input/validate-date.js.map +1 -1
- package/lib/date-time-zone-picker/date-time-zone-picker.js +1 -2
- package/lib/date-time-zone-picker/date-time-zone-picker.js.map +1 -1
- package/lib/date-time-zone-picker/datepicker.html +17 -18
- package/lib/date-time-zone-picker/timepicker.html +19 -9
- package/lib/first-time-motivator/first-time-motivator.js +3 -4
- package/lib/first-time-motivator/first-time-motivator.js.map +1 -1
- package/lib/fonts.css +1 -1
- package/lib/gesture-handler/gesture-handler.js +14 -6
- package/lib/gesture-handler/gesture-handler.js.map +1 -1
- package/lib/hover-tooltip/hover-tooltip.js +7 -4
- package/lib/hover-tooltip/hover-tooltip.js.map +1 -1
- package/lib/index.d.ts +0 -5
- package/lib/index.js +0 -5
- package/lib/index.js.map +1 -1
- package/lib/jsui.module.css +46 -49
- package/lib/loading-indicator/loading-indicator.component.html +6 -6
- package/lib/metadata-form/metadata-form.component.d.ts +1 -0
- package/lib/metadata-form/metadata-form.component.js +32 -0
- package/lib/metadata-form/metadata-form.component.js.map +1 -1
- package/lib/metadata-form/metadata-form.html +1 -1
- package/lib/rich-text/rich-text.component.d.ts +3 -2
- package/lib/rich-text/rich-text.component.js +8 -0
- package/lib/rich-text/rich-text.component.js.map +1 -1
- package/lib/styles.css +176 -369
- package/lib/time-input/time-input.html +1 -1
- package/lib/time-input/time-input.js +2 -3
- package/lib/time-input/time-input.js.map +1 -1
- package/lib/time-input/validate-time.js +1 -2
- package/lib/time-input/validate-time.js.map +1 -1
- package/lib/tree/tree.js +3 -4
- package/lib/tree/tree.js.map +1 -1
- package/lib/tsconfig.deploy.tsbuildinfo +26 -155
- package/package.json +1 -2
- package/src/components/checkbox/checkbox.html +2 -0
- package/src/components/color-input/spectrum-color-picker.js +2 -3
- package/src/components/constants/constants.js +0 -1
- package/src/components/date-input/date-input.js +2 -3
- package/src/components/date-input/validate-date.js +1 -2
- package/src/components/date-time-zone-picker/date-time-zone-picker.less +20 -19
- package/src/components/date-time-zone-picker/date-time-zone-picker.ts +10 -7
- package/src/components/date-time-zone-picker/datepicker.html +17 -18
- package/src/components/date-time-zone-picker/timepicker.html +19 -9
- package/src/components/feedback/feedback.less +1 -1
- package/src/components/first-time-motivator/first-time-motivator.ts +4 -5
- package/src/components/font-selector/font-selector.less +2 -1
- package/src/components/gesture-handler/{gesture-handler.js → gesture-handler.ts} +18 -6
- package/src/components/hover-tooltip/hover-tooltip.ts +7 -4
- package/src/components/index.less +0 -1
- package/src/components/index.ts +0 -5
- package/src/components/legacy/mediafly-bootstrap.css +0 -5
- package/src/components/less/fonts/mfly-webfont.less +1 -1
- package/src/components/less/objects/buttons.less +12 -63
- package/src/components/less/objects/buttons.module.css +8 -2
- package/src/components/less/objects/containers.less +2 -2
- package/src/components/less/objects/forms.less +31 -245
- package/src/components/less/objects/labels.less +5 -1
- package/src/components/less/objects/radios-checkboxes.less +2 -1
- package/src/components/less/utilities/reset.less +1 -1
- package/src/components/less/utilities/utilities.less +2 -0
- package/src/components/less/variables/colors.less +39 -44
- package/src/components/less/variables/effects.less +3 -7
- package/src/components/less/variables.module.css +37 -46
- package/src/components/less/vendor/pikaday.css +12 -8
- package/src/components/loading-indicator/loading-indicator.component.html +6 -6
- package/src/components/metadata-form/metadata-form.component.ts +39 -0
- package/src/components/metadata-form/metadata-form.html +1 -1
- package/src/components/progress-bar/progress-bar.less +2 -1
- package/src/components/rich-text/rich-text.component.ts +8 -2
- package/src/components/time-input/time-input.html +1 -1
- package/src/components/time-input/time-input.js +3 -3
- package/src/components/time-input/validate-time.js +1 -2
- package/src/components/tree/tree.less +16 -8
- package/src/components/tree/tree.ts +5 -6
- package/src/fonts/mfly-webfont.woff +0 -0
- package/src/index.html +3 -2
- package/src/index.spec.js +0 -6
- package/Dockerfile +0 -42
- package/Jenkinsfile +0 -138
- package/lib/date-time-utilities/date-time-utilities.d.ts +0 -1
- package/lib/date-time-utilities/date-time-utilities.js +0 -79
- package/lib/date-time-utilities/date-time-utilities.js.map +0 -1
- package/lib/date-time-utilities/index.d.ts +0 -1
- package/lib/date-time-utilities/index.js +0 -4
- package/lib/date-time-utilities/index.js.map +0 -1
- package/lib/disable-context-menu/disable-context-menu.d.ts +0 -1
- package/lib/disable-context-menu/disable-context-menu.js +0 -23
- package/lib/disable-context-menu/disable-context-menu.js.map +0 -1
- package/lib/disable-context-menu/index.d.ts +0 -1
- package/lib/disable-context-menu/index.js +0 -4
- package/lib/disable-context-menu/index.js.map +0 -1
- package/lib/show-image-loader/index.d.ts +0 -1
- package/lib/show-image-loader/index.js +0 -4
- package/lib/show-image-loader/index.js.map +0 -1
- package/lib/show-image-loader/show-image-loader.d.ts +0 -1
- package/lib/show-image-loader/show-image-loader.js +0 -23
- package/lib/show-image-loader/show-image-loader.js.map +0 -1
- package/lib/slides/index.d.ts +0 -1
- package/lib/slides/index.js +0 -4
- package/lib/slides/index.js.map +0 -1
- package/lib/slides/slides.d.ts +0 -1
- package/lib/slides/slides.html +0 -17
- package/lib/slides/slides.js +0 -96
- package/lib/slides/slides.js.map +0 -1
- package/lib/time-conversion/index.d.ts +0 -1
- package/lib/time-conversion/index.js +0 -4
- package/lib/time-conversion/index.js.map +0 -1
- package/lib/time-conversion/time-conversion-factory.d.ts +0 -1
- package/lib/time-conversion/time-conversion-factory.js +0 -91
- package/lib/time-conversion/time-conversion-factory.js.map +0 -1
- package/src/components/date-time-utilities/date-time-utilities.js +0 -94
- package/src/components/date-time-utilities/index.ts +0 -1
- package/src/components/disable-context-menu/disable-context-menu.ts +0 -21
- package/src/components/disable-context-menu/index.ts +0 -1
- package/src/components/show-image-loader/index.ts +0 -1
- package/src/components/show-image-loader/show-image-loader.js +0 -22
- package/src/components/slides/index.ts +0 -1
- package/src/components/slides/slides.html +0 -17
- package/src/components/slides/slides.less +0 -155
- package/src/components/slides/slides.ts +0 -101
- package/src/components/time-conversion/index.ts +0 -1
- package/src/components/time-conversion/time-conversion-factory.ts +0 -114
- package/tsconfig.tsbuildinfo +0 -7221
package/archive/old-changelog.md
CHANGED
|
@@ -1,5 +1,352 @@
|
|
|
1
1
|
## JS-UI Changelog
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
**38.0.0**
|
|
5
|
+
|
|
6
|
+
* **Breaking:** Updating the font stack and colors for JSUI and all consuming applications.
|
|
7
|
+
|
|
8
|
+
37.2.7
|
|
9
|
+
|
|
10
|
+
* Change default error message to be friendlier and localized
|
|
11
|
+
|
|
12
|
+
37.2.6
|
|
13
|
+
|
|
14
|
+
* Modal: throw if modal doesn't compile when opened via service
|
|
15
|
+
* Modal: improve cleanup process and make sure we don't leave stray classes behind
|
|
16
|
+
|
|
17
|
+
37.2.5
|
|
18
|
+
|
|
19
|
+
* Actionable Empty state bullets optional
|
|
20
|
+
|
|
21
|
+
37.2.3
|
|
22
|
+
|
|
23
|
+
* Add icon kinds for sheets, slides and docs to be used for Google items
|
|
24
|
+
|
|
25
|
+
37.2.2
|
|
26
|
+
|
|
27
|
+
* Improve click handling/element wrappers for form controls and metadata-form, with
|
|
28
|
+
an aim of fixing focus on metadata-forms where ng-aria is in effect.
|
|
29
|
+
|
|
30
|
+
37.2.0
|
|
31
|
+
|
|
32
|
+
* Bump FontAwesome to 5.13.0
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
37.1.0
|
|
36
|
+
|
|
37
|
+
* Add inline-text-input component
|
|
38
|
+
|
|
39
|
+
37.0.4
|
|
40
|
+
|
|
41
|
+
* Add `padding: 0` to `.o-link` class
|
|
42
|
+
|
|
43
|
+
37.0.3
|
|
44
|
+
|
|
45
|
+
* Change 'Diagnostics' link in footer to read 'Status Check'
|
|
46
|
+
|
|
47
|
+
37.0.2
|
|
48
|
+
|
|
49
|
+
* Display Actionable empty state button if text is supplied
|
|
50
|
+
|
|
51
|
+
37.0.1
|
|
52
|
+
|
|
53
|
+
* Merging hotfix branch 36.3.14
|
|
54
|
+
* That fixes a bug created with the 36.3.8 branch, where the required text validation is missing.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
**37.0.0**
|
|
58
|
+
|
|
59
|
+
* **Breaking:** Remove a bunch of mediafly-bootstrap.css, most notably styles on the `a` tag
|
|
60
|
+
* Fix modal top positioning (change from % to vh units)
|
|
61
|
+
|
|
62
|
+
36.3.12
|
|
63
|
+
|
|
64
|
+
* Update feedback component for safari
|
|
65
|
+
|
|
66
|
+
36.3.11
|
|
67
|
+
|
|
68
|
+
* Update form icon
|
|
69
|
+
|
|
70
|
+
36.3.10
|
|
71
|
+
|
|
72
|
+
* Add new lesson icon
|
|
73
|
+
|
|
74
|
+
36.3.9
|
|
75
|
+
|
|
76
|
+
* Add link to rich text toolbuilder
|
|
77
|
+
|
|
78
|
+
36.3.8
|
|
79
|
+
|
|
80
|
+
* Utilize ngDirty to hold required validation errors until form is dirty.
|
|
81
|
+
|
|
82
|
+
36.3.7
|
|
83
|
+
|
|
84
|
+
* Add manual background color for modal close button (browser consistency)
|
|
85
|
+
|
|
86
|
+
36.3.6
|
|
87
|
+
|
|
88
|
+
* Update themeService to assign default color values when undefined
|
|
89
|
+
|
|
90
|
+
36.3.5
|
|
91
|
+
|
|
92
|
+
* Fix feedback message wrapping on small viewports.
|
|
93
|
+
|
|
94
|
+
36.3.4
|
|
95
|
+
|
|
96
|
+
* Fix $log injection in logErrorHandler
|
|
97
|
+
|
|
98
|
+
36.3.3
|
|
99
|
+
|
|
100
|
+
* Add childlist to the observer
|
|
101
|
+
* Add role attribute to loading div
|
|
102
|
+
|
|
103
|
+
36.3.2
|
|
104
|
+
|
|
105
|
+
* Accessibility: Add observer for Tree Picker loading in modals for focus trap.
|
|
106
|
+
|
|
107
|
+
36.3.2
|
|
108
|
+
|
|
109
|
+
* Add keyboard and VO functionality to Tree Picker.
|
|
110
|
+
|
|
111
|
+
36.3.1
|
|
112
|
+
|
|
113
|
+
* Add mfly-webfont to standalone css bundle
|
|
114
|
+
|
|
115
|
+
36.2.0
|
|
116
|
+
|
|
117
|
+
* Removing light grey background color in airship, fixing focus-trap in disabled button situations, & improving focus UI
|
|
118
|
+
|
|
119
|
+
36.1.3
|
|
120
|
+
|
|
121
|
+
* handle either data.message or data.Message for error message because Airship uses Message
|
|
122
|
+
|
|
123
|
+
36.1.2
|
|
124
|
+
|
|
125
|
+
* Accessibility Modal
|
|
126
|
+
* Adding modal focus trap improvement for disabled buttons
|
|
127
|
+
|
|
128
|
+
36.1.1
|
|
129
|
+
|
|
130
|
+
* Release failed, releasing again to ensure it's out.
|
|
131
|
+
|
|
132
|
+
36.1.0
|
|
133
|
+
|
|
134
|
+
* Accessibility * css removing grey background color on body. Repositories must declare a body color independently or inherit white.
|
|
135
|
+
|
|
136
|
+
36.0.4
|
|
137
|
+
|
|
138
|
+
* Accessibility Modal & Focus Changes. Setting focus trap when modal is open.
|
|
139
|
+
|
|
140
|
+
36.0.3
|
|
141
|
+
|
|
142
|
+
* Bugfix for password input types in the metadata form
|
|
143
|
+
|
|
144
|
+
36.0.2
|
|
145
|
+
|
|
146
|
+
* Update .o-link to style buttons too.
|
|
147
|
+
|
|
148
|
+
**36.0.0**
|
|
149
|
+
|
|
150
|
+
* **Breaking:** Update auto-focus.service to set focus on a element after
|
|
151
|
+
page has been rendered or an element is currently not in view.
|
|
152
|
+
|
|
153
|
+
35.3.8
|
|
154
|
+
|
|
155
|
+
* in feedbackErrorHandler, actually inject all dependencies (and remove unused lodash)
|
|
156
|
+
|
|
157
|
+
35.3.7
|
|
158
|
+
|
|
159
|
+
* actually Inject the Injectable errorResponseService into feedbackErrorHandler
|
|
160
|
+
|
|
161
|
+
35.3.6
|
|
162
|
+
|
|
163
|
+
* Accessibility: Close dropdown menu after keypress on action.
|
|
164
|
+
|
|
165
|
+
35.3.5
|
|
166
|
+
|
|
167
|
+
* Update tslint-config version and define peerDependencies
|
|
168
|
+
|
|
169
|
+
35.3.4
|
|
170
|
+
|
|
171
|
+
* Accessibility Improvement: Shows/hides focus ring when pressing tab or mousedown
|
|
172
|
+
|
|
173
|
+
35.3.3
|
|
174
|
+
|
|
175
|
+
* Added 7 services/handlers to centralize them into JSUI: themeService, colorUtilsService, apiSuccessHandler, errorResponseService, feedbackErrorHandler, logErrorHandler, and urlModificationService (formerly known as urlService)
|
|
176
|
+
|
|
177
|
+
35.3.2
|
|
178
|
+
|
|
179
|
+
* Add keypress on dropdown menu for accessibility
|
|
180
|
+
|
|
181
|
+
35.3.0
|
|
182
|
+
|
|
183
|
+
* Updating text colors for accessibility
|
|
184
|
+
|
|
185
|
+
35.2.1
|
|
186
|
+
|
|
187
|
+
* Added callback funtion on close X in "full page" modals
|
|
188
|
+
|
|
189
|
+
35.2.0
|
|
190
|
+
|
|
191
|
+
* Add new "full page" display option for modals
|
|
192
|
+
|
|
193
|
+
35.1.3
|
|
194
|
+
|
|
195
|
+
* Add description to metadata form
|
|
196
|
+
|
|
197
|
+
35.1.2
|
|
198
|
+
|
|
199
|
+
* Add Form Icon to Form Component
|
|
200
|
+
|
|
201
|
+
35.1.1
|
|
202
|
+
|
|
203
|
+
* Fix form label CSS
|
|
204
|
+
|
|
205
|
+
35.1.0
|
|
206
|
+
|
|
207
|
+
* Add `elvis` glyph to mfly-webfont
|
|
208
|
+
|
|
209
|
+
**35.0.0**
|
|
210
|
+
|
|
211
|
+
* **Breaking**: Auto add "Copy again" when auto copying to clipboard
|
|
212
|
+
* Support colored text in text sections
|
|
213
|
+
|
|
214
|
+
34.8.0
|
|
215
|
+
|
|
216
|
+
* Remove autofill from date picker by adding autocomplete=off
|
|
217
|
+
|
|
218
|
+
34.7.0
|
|
219
|
+
|
|
220
|
+
* Support color & background color in the rich text editor.
|
|
221
|
+
|
|
222
|
+
34.5.4
|
|
223
|
+
|
|
224
|
+
* Add the font styles to the standalone bundle
|
|
225
|
+
|
|
226
|
+
34.5.3
|
|
227
|
+
|
|
228
|
+
* Adding new binding decorator for Input('=?')
|
|
229
|
+
|
|
230
|
+
34.5.2
|
|
231
|
+
|
|
232
|
+
* Revert Lodash upgrade, it was breaking consuming apps
|
|
233
|
+
|
|
234
|
+
34.5.1
|
|
235
|
+
|
|
236
|
+
* Add .git folder to .npmignore
|
|
237
|
+
|
|
238
|
+
34.5.0
|
|
239
|
+
|
|
240
|
+
* Add page header styles
|
|
241
|
+
* Add small button styles
|
|
242
|
+
* Improve focus outlines for all buttons
|
|
243
|
+
* Remove modernizr & bump Lodash to 4.17.11
|
|
244
|
+
|
|
245
|
+
34.4.5
|
|
246
|
+
|
|
247
|
+
* Add hourglass to progress circle
|
|
248
|
+
|
|
249
|
+
34.4.4
|
|
250
|
+
|
|
251
|
+
* Add class for disabled label
|
|
252
|
+
|
|
253
|
+
34.4.3
|
|
254
|
+
|
|
255
|
+
* Fix validation of number inputs in metadata-form
|
|
256
|
+
|
|
257
|
+
34.4.2
|
|
258
|
+
|
|
259
|
+
* Update Actionable Empty State documentation.
|
|
260
|
+
|
|
261
|
+
34.4.1
|
|
262
|
+
|
|
263
|
+
* Fixes Actionable Empty State button bug.
|
|
264
|
+
|
|
265
|
+
34.4.0
|
|
266
|
+
|
|
267
|
+
* Added Actionable Empty State component
|
|
268
|
+
|
|
269
|
+
34.3.0
|
|
270
|
+
|
|
271
|
+
* Updated Input, Button, and Table css to lighter weight `Next` styling.
|
|
272
|
+
|
|
273
|
+
34.2.0
|
|
274
|
+
|
|
275
|
+
* Added a standalone CSS file in `lib/styles.css`.
|
|
276
|
+
|
|
277
|
+
34.1.0
|
|
278
|
+
|
|
279
|
+
* Added Google Drive file type icons to mfly-webfont.
|
|
280
|
+
|
|
281
|
+
34.0.11
|
|
282
|
+
|
|
283
|
+
* Fix dropdown arrow appearance in IE11.
|
|
284
|
+
|
|
285
|
+
34.0.10
|
|
286
|
+
|
|
287
|
+
* Add icon radio buttons.
|
|
288
|
+
|
|
289
|
+
34.0.9
|
|
290
|
+
|
|
291
|
+
* Improved fix for hover tooltips on touch devices.
|
|
292
|
+
|
|
293
|
+
34.0.8
|
|
294
|
+
|
|
295
|
+
* Add cypress to `.npmignore`.
|
|
296
|
+
|
|
297
|
+
34.0.7
|
|
298
|
+
|
|
299
|
+
* Fix tab hover states.
|
|
300
|
+
|
|
301
|
+
34.0.6
|
|
302
|
+
|
|
303
|
+
* Only show hover tooltips if a hover interaction is available (via media query).
|
|
304
|
+
* Tweak dropdown select CSS in dark theme.
|
|
305
|
+
|
|
306
|
+
34.0.5
|
|
307
|
+
|
|
308
|
+
* Define tapered visual styles for h1-3.
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
34.0.3
|
|
312
|
+
|
|
313
|
+
* Fix babelify in package-lock.json.
|
|
314
|
+
|
|
315
|
+
34.0.2
|
|
316
|
+
|
|
317
|
+
* Fix for h1 headers that are getting cut-off when set to overflow-hidden.
|
|
318
|
+
|
|
319
|
+
34.0.1
|
|
320
|
+
|
|
321
|
+
* Fix vertical scrolling when Viewer is loaded in the Mediafly Outlook app Add-in on iOS.
|
|
322
|
+
|
|
323
|
+
**34.0.0**
|
|
324
|
+
|
|
325
|
+
* **Breaking:** Tabs: Removed `hide-tab` attribute as it prevented tabs from being loaded (rather than dynamically adding them). For tabs that should not be loaded, perhaps because of a permission violation, set `load-tab` to false (`load-tab` is true if not provided). If you wish to dynmically hide a tab (which will keep it in the DOM) use the `is-hidden` attribute -* which is also introduced in this release.
|
|
326
|
+
|
|
327
|
+
33.0.1
|
|
328
|
+
|
|
329
|
+
* Tabs: Fix auto selecting tab 1 bug. Changed `active-border-bottom-color` property to `active-tab-color` and converted to a simple string.
|
|
330
|
+
|
|
331
|
+
**33.0.0**
|
|
332
|
+
|
|
333
|
+
* **Breaking:** Tabs: Tab group now requires tab-id on each tab. Using tab-title as an id is no longer supported
|
|
334
|
+
* Tabs: isDisabled is now available on the individual tabs to prevent them from being activated.
|
|
335
|
+
* Tabs: Visual style of tabs has changed.
|
|
336
|
+
* Modals: Modal header now has an available css property (modalHeaderClass)
|
|
337
|
+
|
|
338
|
+
32.1.0
|
|
339
|
+
|
|
340
|
+
* Rich text editor: Add alignment controls to the toolbar.
|
|
341
|
+
|
|
342
|
+
32.0.1
|
|
343
|
+
|
|
344
|
+
* Feedback: Add `trustAsHtml` option.
|
|
345
|
+
|
|
346
|
+
**32.0.0**
|
|
347
|
+
|
|
348
|
+
* **Breaking:** FontAwesome: Update to font awesome pro. All calling applications should move to far or fal classes. See fontawesome website for additional details
|
|
349
|
+
|
|
3
350
|
31.0.8
|
|
4
351
|
- Changes to dropdown-menu-contents: allow optional containerHeight and combine positioning adjustment into one function
|
|
5
352
|
|
|
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const angular_1 = __importDefault(require("angular"));
|
|
7
|
-
const is_js_1 = __importDefault(require("is_js"));
|
|
8
7
|
require("spectrum-colorpicker");
|
|
9
8
|
angular_1.default.module('app').directive('mflySpectrumColorPicker', function mflySpectrumColorPicker() {
|
|
10
9
|
return {
|
|
@@ -21,7 +20,7 @@ angular_1.default.module('app').directive('mflySpectrumColorPicker', function mf
|
|
|
21
20
|
element.spectrum({
|
|
22
21
|
color: $scope.colorPickerModel,
|
|
23
22
|
change: function (color) {
|
|
24
|
-
var hexColor =
|
|
23
|
+
var hexColor = !!color ? color.toHexString() : '';
|
|
25
24
|
$scope.onPickerChange({ newColor: hexColor });
|
|
26
25
|
},
|
|
27
26
|
// Use the existing show callback to store the color when the picker is opened
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spectrum-color-picker.js","sourceRoot":"","sources":["../../src/components/color-input/spectrum-color-picker.js"],"names":[],"mappings":";;;;;AAAA,sDAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"spectrum-color-picker.js","sourceRoot":"","sources":["../../src/components/color-input/spectrum-color-picker.js"],"names":[],"mappings":";;;;;AAAA,sDAA6B;AAC7B,gCAA6B;AAE7B,iBAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,yBAAyB,EAAE,SAAS,uBAAuB;IAE1F,OAAO;QACN,QAAQ,EAAE,GAAG;QACb,KAAK,EAAE;YACN,gBAAgB,EAAE,GAAG;YACrB,UAAU,EAAE,GAAG;YACf,UAAU,EAAE,GAAG;YACf,cAAc,EAAE,GAAG;SACnB;QACD,IAAI,EAAE,UAAS,MAAM,EAAE,OAAO;YAC7B,IAAI,gBAAgB,GAAG,CAAC,MAAM,CAAC,UAAU,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA;YACpE,IAAI,WAAW,CAAA;YAEf,OAAO,CAAC,QAAQ,CAAC;gBAChB,KAAK,EAAE,MAAM,CAAC,gBAAgB;gBAC9B,MAAM,EAAE,UAAS,KAAK;oBACrB,IAAI,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;oBACjD,MAAM,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAA;gBAC9C,CAAC;gBACD,8EAA8E;gBAC9E,IAAI,EAAE;oBACL,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;gBACtC,CAAC;gBACD,UAAU,EAAE,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,QAAQ;gBAC5C,IAAI,QAAQ,EAAC;oBACZ,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAA;iBAC3B;qBAAM;oBACN,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;iBAC1B;YACF,CAAC,CAAC,CAAA;QACH,CAAC;KACD,CAAA;AACF,CAAC,CAAC,CAAA"}
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const angular_1 = __importDefault(require("angular"));
|
|
7
7
|
angular_1.default.module('app')
|
|
8
8
|
.constant('_', require('lodash'))
|
|
9
|
-
.constant('is', require('is_js'))
|
|
10
9
|
.constant('$moment', require('moment'))
|
|
11
10
|
.constant('Pikaday', require('pikaday'))
|
|
12
11
|
.constant('PREFIX', '/components/');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/components/constants/constants.js"],"names":[],"mappings":";;;;;AAAA,sDAA6B;AAE7B,iBAAO,CAAC,MAAM,CAAC,KAAK,CAAC;KACnB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;KAChC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/components/constants/constants.js"],"names":[],"mappings":";;;;;AAAA,sDAA6B;AAE7B,iBAAO,CAAC,MAAM,CAAC,KAAK,CAAC;KACnB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;KAChC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;KACtC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;KACvC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC"}
|
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const angular_1 = __importDefault(require("angular"));
|
|
7
7
|
const date_input_html_1 = __importDefault(require("./date-input.html"));
|
|
8
|
-
const is_js_1 = __importDefault(require("is_js"));
|
|
9
8
|
const moment_1 = __importDefault(require("moment"));
|
|
10
9
|
const pikaday_1 = __importDefault(require("pikaday"));
|
|
11
10
|
angular_1.default.module('app').directive('mflyDateInput', ['translateFactory', function mflyDateInput(translateFactory) {
|
|
@@ -34,7 +33,7 @@ angular_1.default.module('app').directive('mflyDateInput', ['translateFactory',
|
|
|
34
33
|
// Format the ng-model value as a date string.
|
|
35
34
|
// The result of this function is assigned to `ngModelCtrl.$viewValue`.
|
|
36
35
|
ngModelCtrl.$formatters.push(function (nativeDate) {
|
|
37
|
-
if (
|
|
36
|
+
if (!nativeDate) {
|
|
38
37
|
return '';
|
|
39
38
|
}
|
|
40
39
|
return moment_1.default(nativeDate).format('DD-MMM-YYYY');
|
|
@@ -49,7 +48,7 @@ angular_1.default.module('app').directive('mflyDateInput', ['translateFactory',
|
|
|
49
48
|
ngModelCtrl.$parsers.push(function (viewValue) {
|
|
50
49
|
// If the user backspaced the date we will get an empty string as the
|
|
51
50
|
// viewValue, in which case we want a null date on the model.
|
|
52
|
-
if (
|
|
51
|
+
if (viewValue === '') {
|
|
53
52
|
$scope.onChange({ value: null });
|
|
54
53
|
return null;
|
|
55
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-input.js","sourceRoot":"","sources":["../../src/components/date-input/date-input.js"],"names":[],"mappings":";;;;;AAAA,sDAA6B;AAC7B,wEAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"date-input.js","sourceRoot":"","sources":["../../src/components/date-input/date-input.js"],"names":[],"mappings":";;;;;AAAA,sDAA6B;AAC7B,wEAAwC;AACxC,oDAA2B;AAC3B,sDAA6B;AAE7B,iBAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC,kBAAkB,EAAE,SAAS,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CAAC;oBACV,cAAc,CAAC,WAAW,GAAG,gBAAM,CAAC,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,MAAM,EAAE,CAAA,CAAC,wBAAwB;oBACpG,OAAO,GAAG,IAAI,iBAAO,CAAC,cAAc,CAAC,CAAA;gBACtC,CAAC,EAAE,CAAC,CAAC,CAAA;gBAEL,MAAM,CAAC,YAAY,GAAG,gBAAgB,CAAC,OAAO,CAAC,eAAe,CAAC,CAAA;gBAC/D,MAAM,CAAC,eAAe,GAAG,gBAAgB,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAA;YACvE,CAAC;SACD,CAAA;IACF,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const angular_1 = __importDefault(require("angular"));
|
|
7
|
-
const is_js_1 = __importDefault(require("is_js"));
|
|
8
7
|
const moment_1 = __importDefault(require("moment"));
|
|
9
8
|
angular_1.default.module('app').directive('mflyValidateDate', function mflyValidateDate() {
|
|
10
9
|
function link($scope, $element, $attrs, $ctrl) {
|
|
@@ -18,7 +17,7 @@ angular_1.default.module('app').directive('mflyValidateDate', function mflyValid
|
|
|
18
17
|
'M-D-YY', 'M/D/YY'
|
|
19
18
|
];
|
|
20
19
|
// Empty models shouldn't be "invalid" - that's covered by "required".
|
|
21
|
-
if (
|
|
20
|
+
if (viewValue === '') {
|
|
22
21
|
return true;
|
|
23
22
|
}
|
|
24
23
|
return moment_1.default(viewValue, validDateFormats, true).isValid();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate-date.js","sourceRoot":"","sources":["../../src/components/date-input/validate-date.js"],"names":[],"mappings":";;;;;AAAA,sDAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"validate-date.js","sourceRoot":"","sources":["../../src/components/date-input/validate-date.js"],"names":[],"mappings":";;;;;AAAA,sDAA6B;AAC7B,oDAA2B;AAE3B,iBAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,kBAAkB,EAAE,SAAS,gBAAgB;IAE5E,SAAS,IAAI,CAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK;QAE7C,KAAK,CAAC,WAAW,CAAC,UAAU,GAAG,UAAU,UAAU,EAAE,SAAS;YAE7D,IAAI,gBAAgB,GAAG;gBACtB,YAAY,EAAE,YAAY;gBAC1B,aAAa,EAAE,aAAa;gBAC5B,YAAY,EAAE,YAAY;gBAC1B,UAAU,EAAE,UAAU;gBACtB,UAAU,EAAE,UAAU;gBACtB,QAAQ,EAAE,QAAQ;aAClB,CAAC;YAEF,sEAAsE;YACtE,IAAI,SAAS,KAAK,EAAE,EAAE;gBACrB,OAAO,IAAI,CAAC;aACZ;YAED,OAAO,gBAAM,CAAC,SAAS,EAAE,gBAAgB,EAAE,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;QAC5D,CAAC,CAAC;IACH,CAAC;IAED,OAAO;QACN,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;KACV,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const angular_1 = __importDefault(require("angular"));
|
|
7
|
-
const is_js_1 = __importDefault(require("is_js"));
|
|
8
7
|
const moment_1 = __importDefault(require("moment"));
|
|
9
8
|
angular_1.default.module('app').directive('mflyDateTimeZonePicker', ['dateTimeZoneFactory', function mflyDateTimeZonePicker(dateTimeZoneFactory) {
|
|
10
9
|
return {
|
|
@@ -57,7 +56,7 @@ angular_1.default.module('app').directive('mflyDateTimeZonePicker', ['dateTimeZo
|
|
|
57
56
|
// Formatter runs when incoming values come from the model - this is
|
|
58
57
|
// where we initialize our moment.
|
|
59
58
|
ngModelCtrl.$formatters.push(function (modelValue) {
|
|
60
|
-
if (
|
|
59
|
+
if (modelValue) {
|
|
61
60
|
initParentMomentFromAPI(modelValue);
|
|
62
61
|
}
|
|
63
62
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-time-zone-picker.js","sourceRoot":"","sources":["../../src/components/date-time-zone-picker/date-time-zone-picker.ts"],"names":[],"mappings":";;;;;AAAA,sDAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"date-time-zone-picker.js","sourceRoot":"","sources":["../../src/components/date-time-zone-picker/date-time-zone-picker.ts"],"names":[],"mappings":";;;;;AAAA,sDAA6B;AAC7B,oDAA2B;AAQ3B,iBAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,wBAAwB,EAAE,CAAC,qBAAqB,EAAE,SAAS,sBAAsB,CAAC,mBAAmB;QAEpI,OAAO;YACN,QAAQ,EAAE,GAAG;YACb,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE;gBACN,MAAM,EAAE,GAAG;gBACX,OAAO,EAAE,GAAG;gBACZ,UAAU,EAAE,GAAG;gBACf,UAAU,EAAE,GAAG;gBACf,MAAM,EAAE,GAAG;gBACX,IAAI,EAAE,GAAG;aACT;YACD,QAAQ,EAAE,OAAO,CAAC,8BAA8B,CAAC;YACjD,IAAI,CAAC,MAAyB,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAqC;gBAErF,6EAA6E;gBAC7E,qEAAqE;gBACrE,uDAAuD;gBACvD,yEAAyE;gBACzE,kCAAkC;gBAClC,yEAAyE;gBACzE,yCAAyC;gBACzC,qEAAqE;gBACrE,SAAS,uBAAuB,CAAC,KAAK;oBAErC,kEAAkE;oBAClE,MAAM,CAAC,YAAY,GAAG,gBAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;oBAE7C,MAAM,CAAC,UAAU,GAAG,gBAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC,IAA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="o-form-control"
|
|
5
8
|
id="{{ inputId }}"
|
|
6
9
|
mfly-datepicker="momentDate"
|
|
@@ -12,21 +15,17 @@
|
|
|
12
15
|
ng-keydown="inputKeyDown($event)"
|
|
13
16
|
ng-model="dateInputValue.date"
|
|
14
17
|
ng-required="isRequired === 'true'"
|
|
15
|
-
type="text"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
'o-input-group__add-on--disabled': isDisabled
|
|
28
|
-
}">
|
|
29
|
-
<span class="far fa-calendar-alt"></span>
|
|
30
|
-
</div>
|
|
18
|
+
type="text"
|
|
19
|
+
/>
|
|
20
|
+
|
|
21
|
+
<span
|
|
22
|
+
ng-show="form.validation.mflyDatepicker.$error.required"
|
|
23
|
+
class="o-text-validation o-text-validation--warning">{{ requiredText }}</span>
|
|
24
|
+
<span
|
|
25
|
+
ng-show="form.validation.mflyDatepicker.$error.invalidDate"
|
|
26
|
+
class="o-text-validation o-text-validation--warning">{{ invalidDateText }}</span>
|
|
27
|
+
|
|
28
|
+
<span class="far fa-calendar-alt c-date-input__date-icon"></span>
|
|
29
|
+
|
|
31
30
|
</div>
|
|
32
31
|
</ng-form>
|
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
<ng-form name="form.validation">
|
|
2
|
+
|
|
2
3
|
<mfly:dropdown-menu pins-to="right" class="c-timepicker-dropdown">
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
<div
|
|
6
|
+
class="c-timepicker-input c-timepicker-dropdown__input"
|
|
7
|
+
mfly-dropdown-menu-toggle>
|
|
8
|
+
|
|
9
|
+
<input
|
|
10
|
+
name="mflyTimepicker"
|
|
5
11
|
id="{{inputId}}"
|
|
6
12
|
type="text"
|
|
7
|
-
class="o-form-control"
|
|
13
|
+
class="o-form-control c-time-input__box"
|
|
8
14
|
ng-model="timeValue.time"
|
|
9
15
|
ng-change="validateTime()"
|
|
10
16
|
ng-focus="focusAddOn = true"
|
|
11
|
-
ng-blur="focusAddOn = false"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
ng-blur="focusAddOn = false"
|
|
18
|
+
/>
|
|
19
|
+
|
|
20
|
+
<span
|
|
21
|
+
ng-show="form.validation.$error.invalidTime"
|
|
22
|
+
class="o-text-validation o-text-validation--warning">{{ invalidTimeText }}</span>
|
|
23
|
+
|
|
24
|
+
<span class="far fa-clock c-timepicker-input__time-icon"></span>
|
|
17
25
|
</div>
|
|
26
|
+
|
|
18
27
|
<mfly:dropdown-menu-contents class="c-timepicker-dropdown__contents">
|
|
19
28
|
<mfly:dropdown-menu-action action="itemClicked(item)" ng-repeat="item in dropdownItems">{{ item }}</mfly:dropdown-menu-action>
|
|
20
29
|
</mfly:dropdown-menu-contents>
|
|
30
|
+
|
|
21
31
|
</mfly:dropdown-menu>
|
|
22
32
|
</ng-form>
|
|
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const angular_1 = __importDefault(require("angular"));
|
|
7
|
-
const is_js_1 = __importDefault(require("is_js"));
|
|
8
7
|
const jquery_1 = __importDefault(require("jquery"));
|
|
9
8
|
const lodash_1 = __importDefault(require("lodash"));
|
|
10
9
|
const first_time_motivator_transclude_html_1 = __importDefault(require("./first-time-motivator-transclude.html"));
|
|
@@ -35,7 +34,7 @@ angular_1.default.module('app').directive('mflyFirstTimeMotivator', [
|
|
|
35
34
|
// To independently maintain when the ftm is ready to be positioned in view
|
|
36
35
|
let ftmIsCompiled = false;
|
|
37
36
|
// assume we are positioned to the top if a position is not provided
|
|
38
|
-
if (
|
|
37
|
+
if (!$scope.position) {
|
|
39
38
|
$scope.position = 'top';
|
|
40
39
|
}
|
|
41
40
|
this.setTargetVisibility = (newValue) => {
|
|
@@ -190,13 +189,13 @@ angular_1.default.module('app').directive('mflyFirstTimeMotivator', [
|
|
|
190
189
|
let beforeOffsetStr;
|
|
191
190
|
let afterOffsetStr;
|
|
192
191
|
// Syntax adjusting for calc() css function
|
|
193
|
-
if (
|
|
192
|
+
if (Number.isFinite(beforeOffset) && beforeOffset < 0) {
|
|
194
193
|
beforeOffsetStr = '- ' + lodash_1.default.trimStart(beforeOffset.toString(), '-');
|
|
195
194
|
}
|
|
196
195
|
else {
|
|
197
196
|
beforeOffsetStr = '+ ' + beforeOffset.toString();
|
|
198
197
|
}
|
|
199
|
-
if (
|
|
198
|
+
if (Number.isFinite(afterOffset) && afterOffset < 0) {
|
|
200
199
|
afterOffsetStr = '- ' + lodash_1.default.trimStart(afterOffset.toString(), '-');
|
|
201
200
|
}
|
|
202
201
|
else {
|