Commit Graph

231 Commits

Author SHA1 Message Date
Samuel Georges 713583c5a4 Move toolbar to UI lib 2015-05-29 21:47:32 +10:00
Samuel Georges 7440529cee Move mustache and modernizr to UI lib 2015-05-29 19:53:16 +10:00
Samuel Georges f9bb2fa238 Break inspector out, clean up flags + icons 2015-05-29 18:55:21 +10:00
Samuel Georges 12c035502c Various clean up + documentation 2015-05-28 20:44:07 +10:00
Samuel Georges 714c19de4a Move tab and tooltip 2015-05-28 20:34:32 +10:00
Samuel Georges c6724961ae Move popup and popover 2015-05-28 20:32:47 +10:00
Samuel Georges 9e8232bae3 Move load indicator out, renamed and merged all as loader.* 2015-05-28 17:44:56 +10:00
Samuel Georges 37e5918e43 Move rowlink + utility classes out 2015-05-26 19:54:35 +10:00
Samuel Georges 3c8f7bec4d Move dropdown out 2015-05-26 19:47:23 +10:00
Samuel Georges b70ba41e17 Move flash messages out 2015-05-26 19:16:09 +10:00
Samuel Georges 5a66dd7fb6 Begin moving backend controls to dedicated UI area 2015-05-26 18:55:39 +10:00
Samuel Georges b40554fd64 Dead reference 2015-05-21 23:03:07 +10:00
Samuel Georges a1291c3716 Restyle Administrator pages 2015-05-21 22:55:08 +10:00
alekseybobkov af2849c9a5 Fixes a problem with sorting new added menu items. Fixes https://github.com/rainlab/pages-plugin/issues/41 2015-05-18 14:03:28 -07:00
Samuel Georges 4d057ba266 Fixes flaw in logic
Recompile JS from #1135
2015-05-16 09:57:40 +10:00
Scott Bedard fdbe7b3e35 Adds option to set chart value by data-value
This allows for more expressive charts by separating the value and the display value. For example, values like these could now be used without breaking the chart.

```
<div class="scoreboard-item control-chart" data-control="chart-pie">
    <ul>
        <li data-value="11024>Foo <span>~11k</span></li>
        <li data-value="1234">Bar<span><?= number_format(1234) ?></span></li>
    </ul>
</div>
```
2015-05-14 13:14:02 -04:00
alekseybobkov 20fb98d9a8 Refactoring and improvements in the back-end client-side memory management. 2015-04-28 20:13:04 -07:00
alekseybobkov 57777c0aad Ace editor updated to the latest version. Implemented the back-end controls utility class. Some back-end UI classes are updated and displsable now. Editor tabs on the CMS page now properly free memory and DOM elements when they're closed. 2015-04-25 22:48:49 -07:00
alekseybobkov 0e4db692af Refactored october.hotkey.js, codeeditor.js, richeditor.js. Minor fix in the rich editor styling. 2015-04-25 14:07:22 -07:00
alekseybobkov 87b34295eb Refactored hotkey plugin for the better memory handling. Added dispose-control event support. 2015-04-24 21:08:07 -07:00
alekseybobkov 35f742c8f5 Further CMS page JS normalization, minor fix in Inspector. 2015-04-21 22:20:55 -07:00
alekseybobkov 5928aded9f CMS page JS code is tested and fixed after refactoring. 2015-04-21 21:30:02 -07:00
alekseybobkov 7fb36588cc Implemented keyboard navigation. Minor fix in the scrollpad class. 2015-04-15 21:48:16 -07:00
alekseybobkov c1740c479c Media Manager: implemented insert link, insert image, and crop and insert features. Minor fixes in October core and third-party JS plugins. 2015-04-11 18:55:02 -07:00
alekseybobkov 790b464679 Merge branch 'develop' into media-manager 2015-04-04 19:01:08 -07:00
alekseybobkov 332d92f538 Implemented image inserting to Redactor. 2015-04-04 18:59:36 -07:00
Samuel Georges 9e9aa97101 Minor clean up, tabs can now define a url (data-tab-url) set using replaceState 2015-04-04 17:26:47 +11:00
alekseybobkov cb0c483857 Fixed a problem with duplicate proxy IDs in the base foundation class. Added a new event to the popup plugin. 2015-03-30 22:34:42 -07:00
alekseybobkov 9ed3d03484 jQuery in the back-end updated to v.2.1.3. Fixed several memory management issues in select2 (an event attached to the mask element is never unbound), framework.js (onunload event attached to window is never unbound and holds references to the Request instances). Added popup adaptive size option. Started media manager popup API. 2015-03-29 18:56:06 -07:00
alekseybobkov 16cb546f30 Tested and fixing the Media Manager dispose() method. Minor fixes in the DragScroll and Toolbar controls (memory management). 2015-03-28 17:18:07 -07:00
alekseybobkov c299e3a7e7 Performance improvements in Media Manager drag-select implementation. 2015-03-28 13:36:01 -07:00
alekseybobkov 9be05a0488 Added comment to the scrollpad script, re-compiled controls LESS. 2015-03-28 12:15:33 -07:00
alekseybobkov f6cf7e9840 Added new back-end control Scrollpad. Added Element and Event utility functions to the Foundation library. Implemented file list scrolling in the Media Manager. Some minor fixes. 2015-03-28 11:42:40 -07:00
Samuel Georges aa7f831a4e Fixes a conflict with triggerapi and popup scripts
The hide event wasn't namespaced and caused the backdrop to hide
2015-03-27 17:36:28 +11:00
alekseybobkov 5731ad0db7 Merge branch 'develop' into media-manager 2015-03-26 18:37:24 -07:00
Samuel Georges 5f9acc2e8d Fixes #358 - Main menu / Tabs no longer use inverted scrolling when horizontal 2015-03-26 22:06:01 +11:00
alekseybobkov ed2ca5308b Implemented (draft) support for touch devices. Minor fixes. Reworked the proxy implementation in the base class. The Media Manager JS class now uses the base class. 2015-03-24 20:47:49 -07:00
alekseybobkov f7d08f1197 Implemented folder creation, fixed a minor issue with selecting items, added a new event to the Popup control. 2015-03-21 23:09:33 -07:00
alekseybobkov 331276c244 Implemented file and folder deletion 2015-03-18 22:20:53 -07:00
alekseybobkov 03c46012dc Merge branch 'develop' into media-manager 2015-03-17 19:30:57 -07:00
Samuel Georges 5648507e0c Adds soft copy directory support, minor fix to loadindicator 2015-03-18 05:38:25 +11:00
alekseybobkov 78ad303236 Merge branch 'develop' into media-manager
Conflicts:
	composer.json
	modules/backend/assets/css/october.css
	modules/backend/assets/less/controls/lists.less
	modules/backend/assets/less/october.less
	modules/backend/widgets/Form.php
	modules/backend/widgets/form/partials/_field.htm
2015-03-15 13:06:50 -07:00
alekseybobkov 18e058ad59 Added the Media tab, minor update in .htaccess to allow temporary public directory to be accessible; implemented the basic UI components and navigation; implemented grid, list and tiles view modes; implemented drag-select interface; implemented Media Library cache refreshing; implemented thumbnail generating for local and remote media files; fixed memory leak in third-party Flot Resize library; minor update in the AJAX framework - AJAX request cancelling is not considered as an error anymore; added back-end UI components for creating panels. 2015-03-15 12:52:03 -07:00
Samuel Georges 9b8e1ce3c1 Improve theme list to allow editing properties 2015-03-14 18:09:54 +11:00
Samuel Georges 3cdd390e38 Merge pull request #991 from ebuster/patch-1
Respect radio-button value in form triggers
2015-03-14 11:14:35 +11:00
Samuel Georges a8389fb1aa Tooltip now auto initializes
initForm can now pass context
Various improvements and bug fixes
2015-03-12 20:50:16 +11:00
ebuster 539705dbdf Respect radio-button value in form triggers
When I tried to use form triggers for radio button I found that this is impossible:

    field1:
        type: radio
        options:
            val1: ...
            val2: ...
    field1:
        type: ...
        trigger:
            action: hide
            field: type
            condition: value[val2]

Propsed fix allows conditions like that.

* and of couse - we need rebuild october-min.js
2015-03-07 23:36:25 +03:00
Samuel Georges ec14cd6bee Updates for new input preset /form field API 2015-03-07 11:20:54 +11:00
Samuel Georges 8ca1f8b7a3 Discovered an undoc feature "data-input-preset-prefix-input"... added to API as "prefixInput" 2015-03-07 11:14:03 +11:00
Samuel Georges f8c3eac9c6 Streamline data-input-preset in to FormField API 2015-03-07 10:45:22 +11:00
Samuel Georges 7e3cf98a75 Adds data-trigger-closest-parent to Trigger API
Test code:

<form id="form1">
    <input
        type="text" name="aa" value="aaa"
        data-trigger-action="show"
        data-trigger="input[name=bb]"
        data-trigger-condition="checked"
        data-trigger-closest-parent="form"
     />

    <input type="checkbox" name="bb" />
</form>

<form id="form2">
    <input
        type="text" name="aa" value="aaa"
        data-trigger-action="show"
        data-trigger="input[name=bb]"
        data-trigger-condition="checked"
        data-trigger-closest-parent="form"
     />

    <input type="checkbox" name="bb" />
</form>
2015-03-07 09:47:44 +11:00
Samuel Georges 690ec1e5db Improvements made to the user menu in the back-end
Clicking your avatar will display a popover with settings links from the mysettings context.
2015-03-06 20:41:14 +11:00
Samuel Georges 2cf8ad8c27 Minor fixes, improvements to full screen rich editor 2015-03-06 18:54:45 +11:00
Samuel Georges 62796e08b6 Finish the dragvalue plugin 2015-03-06 18:53:04 +11:00
Samuel Georges bc317ffbb8 Fixes a weird issue where a fixed sidebar cannot be accessed on small screens 2015-03-06 17:31:54 +11:00
Chris b627bbbefb Added trigger on empty value 2015-03-05 11:03:20 +01:00
Samuel Georges 561e969d2d Extract controls to their own stylesheet
(So they can be used elsewhere; namely documentation)
Add indicator-center and clean up load indicator
Fancy layout should live with the other layouts, it isn't really a control
2015-03-04 18:23:02 +11:00
Samuel Georges 89434928f1 * Build 214 2015-03-03 18:45:37 +11:00
Samuel Georges 0a57f3a111 Fixes console error: The "title" has not been specified! 2015-03-03 18:39:07 +11:00
Samuel Georges e48963b1e9 Improve mode detection for relations by using an event target 2015-02-28 19:33:11 +11:00
Samuel Georges 7145aac457 Prepare for CDN, config rename cms.plugins|themes|uploadsDir -> cms.plugins|themes|uploadsPath
Deprecate data-trigger-type on triggerapi
Fixes ref to Util class
2015-02-17 20:58:38 +11:00
Samuel Georges 7b52e07b65 Overhaul exceptions, rename triggerapi display -> show 2015-02-16 21:16:43 +11:00
Samuel Georges 0a6e14f4d2 Popup control now supports several sizes via `data-size` attribute: giant, huge, large, small, tiny.
Fixes various bugs in RC version
2015-02-11 14:36:00 +11:00
Samuel Georges 37a0a8290e Fixes popup loader appearing for "other" ajax requests 2015-01-29 20:04:47 +11:00
Samuel Georges b313a29e3a Trigger api should fire on render 2015-01-23 20:50:08 +11:00
alekseybobkov d850a795fd Minor updates in the components API and Inspector 2015-01-20 19:38:02 -08:00
alekseybobkov 8ff242c1d0 Fixed default options support in Inspector, minor improvement in the components API. 2015-01-18 19:20:33 -08:00
alekseybobkov b25606ddd1 Merge branch 'develop' of github.com:octobercms/october into develop 2015-01-14 19:41:51 -08:00
alekseybobkov f5aee22110 Improved default checkbox value handling in the Inspector. Imrpovements in the Redactor figure toolbar support. 2015-01-14 19:39:53 -08:00
Samuel Georges dfee19a543 Introduce a delay on the CMS sidepanel tab 2015-01-14 17:34:47 +11:00
Samuel Georges 83cfb52d76 Recompile assets 2015-01-13 17:26:53 +11:00
Samuel Georges c4cef299dd Fixes #828 - php artisan october:util compile assets 2015-01-12 20:08:53 +11:00
alekseybobkov 090264e3b9 Minor fixes in the Inspector and Scrollbar classes. Minor updates in the Table widget. 2015-01-11 20:56:17 -08:00
Samuel Georges f264d73b18 Merge pull request #879 from scottbedard/patch-3
Patch 3
2015-01-10 11:48:19 +11:00
Scott Bedard 4d66734cc3 Update october.inspector.js
Reused validationMessage, and now allowing for string zero
2015-01-09 19:25:01 -05:00
Scott Bedard f628eaf666 Adds "required" component properties
Adds a "required" and "requiredMessage" key to component properties. If a required field does not have a requiredMessage, a default message of "Required fields were left blank." will be used.

Example usage...
```php
public function defineProperties()
{
    return [
        'maxItems' => [
             'title'             => 'Max items',
             'description'       => 'The most amount of todo items allowed',
             'type'              => 'string',
             'required'          => true,
             'requiredMessage'   => 'You must set the maximum todo items allowed!'
        ]
    ];
}
```
2015-01-09 19:12:21 -05:00
alekseybobkov c26545913c Improvements in the table widget, added new events to the CMS core, form styling, added support for the Table widget in in the CMS area. 2015-01-07 22:21:52 -08:00
alekseybobkov 6440b718d8 Updates in the rich editor styling, minor improvements in the Inspector and CMS core. 2015-01-03 16:39:38 -08:00
alekseybobkov 3ac21e3c89 Merge branch 'develop' into table-widget 2014-12-17 22:15:23 -08:00
alekseybobkov 1480303c4f The options can now be set with the PHP configuration. Minor updates in the scrollbar widget. Implemented scrolling. Updated documentation. 2014-12-17 22:07:49 -08:00
Samuel Georges a03d0cc8b4 showExternalParameter -> showExternalParam 2014-12-16 15:16:31 +11:00
Samuel Georges de9f6194a9 Style sweet alert so it matches the backend better 2014-12-15 20:28:04 +11:00
Samuel Georges dfdb6259d8 Implement "sweet alert" for ajax errors and confirmations 2014-12-15 17:50:15 +11:00
Samuel Georges 3d903191ee Framework.js should throw an alert here, no need to do it again 2014-12-15 17:02:50 +11:00
gergo85 2a05c2346f Update jQuery files
Demo theme: v1.10.2 -> v1.11.1
Backend: v2.0.3 -> v2.1.1
Furthermore I renamed the jquery-2.0.3.min.js file because of easy to
update jQuery in future.
2014-12-01 22:35:58 +01:00
Samuel Georges f0cb98e63c Fixes #145 - Plugin details now support "homepage" property 2014-11-27 17:21:30 +11:00
Samuel Georges c6f46d1397 Merge pull request #767 from ImanMh/master
A delay added to CMS side menu tab change event to avoid the annoying tab changes
2014-11-15 15:11:02 +11:00
Iman Mohamadi 0afd8ec5b5 A delay added to CMS side menu tab change event to avoid the annoying unexpected menu changes while moving mouse arround 2014-11-12 13:14:58 +03:30
Sam Georges f458fb7704 Overhaul Form layouts, adds FormTabs.php class for managing tab properties 2014-11-12 07:33:58 +11:00
Sam Georges 2f4603ef58 Close should trigger Hide events 2014-11-07 20:13:16 +11:00
Sam Georges c0dc85eefb Add useAnimation to popover, refactor popup so it behaves more like popover 2014-11-07 19:39:13 +11:00
Sam Georges 5370fff189 Update permissions 2014-11-01 16:27:03 +11:00
alekseybobkov 3a806b7ee0 Improvement in the Inspector external parameters support 2014-10-31 22:01:27 -07:00
Sam Georges afcf50a585 noExternalParameter -> showExternalParameter 2014-10-31 19:57:07 +11:00
Sam Georges 832a92e925 Revert change 2014-10-30 17:39:08 +11:00
alekseybobkov f3ab4595b2 Merge branch 'develop' of github.com:octobercms/october into develop 2014-10-29 23:36:20 -07:00
alekseybobkov 85df6bfb62 Fix in the Inspector 2014-10-29 23:36:07 -07:00
Sam Georges 9c253a7d67 Wording change 2014-10-30 17:24:57 +11:00
alekseybobkov 3deb4ee654 Minor fix in the Inspector code 2014-10-29 23:09:13 -07:00
alekseybobkov 2a771190ea Merge branch 'develop' into dynamic-partials 2014-10-29 22:14:31 -07:00