phcthemes_admin_panel_pack 0.10.0 → 0.11.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.
@@ -1,8 +1,8 @@
1
- //= require common/pace/pace.js
2
- //= require jquery3
3
1
  //= require rails-ujs
4
2
  //= require activestorage
5
- //= require jquery-ui
3
+ //= require common/pace/pace.js
4
+ //= require common/jquery/jquery-3.4.1.js
5
+ //= require common/jquery-ui/jquery-ui.js
6
6
  //= require common/bootstrap/bootstrap.bundle.js
7
7
  //= require common/jquery-slimscroll/jquery.slimscroll.js
8
8
  //= require common/js-cookie/js.cookie.js
@@ -1,4 +1,4 @@
1
1
  //= require rails-ujs
2
2
  //= require activestorage
3
- //= require common/bootstrap-datepicker/bootstrap-datepicker.js
4
3
  //= require themes/metronic/theme/vendors.bundle.js
4
+ //= require themes/metronic/theme/bootstrap-datepicker.js
@@ -0,0 +1,124 @@
1
+ // Class definition
2
+
3
+ var KTBootstrapDatepicker = function () {
4
+
5
+ var arrows;
6
+ if (KTUtil.isRTL()) {
7
+ arrows = {
8
+ leftArrow: '<i class="la la-angle-right"></i>',
9
+ rightArrow: '<i class="la la-angle-left"></i>'
10
+ }
11
+ } else {
12
+ arrows = {
13
+ leftArrow: '<i class="la la-angle-left"></i>',
14
+ rightArrow: '<i class="la la-angle-right"></i>'
15
+ }
16
+ }
17
+
18
+ // Private functions
19
+ var demos = function () {
20
+ // minimum setup
21
+ $('#kt_datepicker_1, #kt_datepicker_1_validate').datepicker({
22
+ rtl: KTUtil.isRTL(),
23
+ todayHighlight: true,
24
+ orientation: "bottom left",
25
+ templates: arrows
26
+ });
27
+
28
+ // minimum setup for modal demo
29
+ $('#kt_datepicker_1_modal').datepicker({
30
+ rtl: KTUtil.isRTL(),
31
+ todayHighlight: true,
32
+ orientation: "bottom left",
33
+ templates: arrows
34
+ });
35
+
36
+ // input group layout
37
+ $('#kt_datepicker_2, #kt_datepicker_2_validate').datepicker({
38
+ rtl: KTUtil.isRTL(),
39
+ todayHighlight: true,
40
+ orientation: "bottom left",
41
+ templates: arrows
42
+ });
43
+
44
+ // input group layout for modal demo
45
+ $('#kt_datepicker_2_modal').datepicker({
46
+ rtl: KTUtil.isRTL(),
47
+ todayHighlight: true,
48
+ orientation: "bottom left",
49
+ templates: arrows
50
+ });
51
+
52
+ // enable clear button
53
+ $('#kt_datepicker_3, #kt_datepicker_3_validate').datepicker({
54
+ rtl: KTUtil.isRTL(),
55
+ todayBtn: "linked",
56
+ clearBtn: true,
57
+ todayHighlight: true,
58
+ templates: arrows
59
+ });
60
+
61
+ // enable clear button for modal demo
62
+ $('#kt_datepicker_3_modal').datepicker({
63
+ rtl: KTUtil.isRTL(),
64
+ todayBtn: "linked",
65
+ clearBtn: true,
66
+ todayHighlight: true,
67
+ templates: arrows
68
+ });
69
+
70
+ // orientation
71
+ $('#kt_datepicker_4_1').datepicker({
72
+ rtl: KTUtil.isRTL(),
73
+ orientation: "top left",
74
+ todayHighlight: true,
75
+ templates: arrows
76
+ });
77
+
78
+ $('#kt_datepicker_4_2').datepicker({
79
+ rtl: KTUtil.isRTL(),
80
+ orientation: "top right",
81
+ todayHighlight: true,
82
+ templates: arrows
83
+ });
84
+
85
+ $('#kt_datepicker_4_3').datepicker({
86
+ rtl: KTUtil.isRTL(),
87
+ orientation: "bottom left",
88
+ todayHighlight: true,
89
+ templates: arrows
90
+ });
91
+
92
+ $('#kt_datepicker_4_4').datepicker({
93
+ rtl: KTUtil.isRTL(),
94
+ orientation: "bottom right",
95
+ todayHighlight: true,
96
+ templates: arrows
97
+ });
98
+
99
+ // range picker
100
+ $('#kt_datepicker_5').datepicker({
101
+ rtl: KTUtil.isRTL(),
102
+ todayHighlight: true,
103
+ templates: arrows
104
+ });
105
+
106
+ // inline picker
107
+ $('#kt_datepicker_6').datepicker({
108
+ rtl: KTUtil.isRTL(),
109
+ todayHighlight: true,
110
+ templates: arrows
111
+ });
112
+ }
113
+
114
+ return {
115
+ // public functions
116
+ init: function() {
117
+ demos();
118
+ }
119
+ };
120
+ }();
121
+
122
+ jQuery(document).ready(function() {
123
+ KTBootstrapDatepicker.init();
124
+ });
@@ -1,10 +1,8 @@
1
- // Load Gem Files
2
- @import "jquery-ui";
3
-
4
1
  // Load Fonts
5
2
  @import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700");
6
3
 
7
4
  // Load Common Files
5
+ @import url("https://cdn.phcnetworks.net/jquery/misc/jquery-ui/version-1.12.1/jquery-ui.css");
8
6
  @import url("https://cdn.phcnetworks.net/frameworks/css/bootstrap/version-3.4.1/css/bootstrap.css");
9
7
  @import url("https://cdn.phcnetworks.net/icons/fonts/fontawesome-pro/version-5.8.2/css/all.css");
10
8
  @import url("https://cdn.phcnetworks.net/css/animations/animate-css/version-3.7.2/animate.css");
@@ -1,11 +1,6 @@
1
1
  module PhcthemesAdminPanelPack
2
2
  class Engine < ::Rails::Engine
3
3
 
4
- # Jquery Dependencies
5
- require 'jquery-rails'
6
- require 'jquery-migrate-rails'
7
- require 'jquery-ui-rails'
8
-
9
4
  # Asset Dependencies
10
5
  require "coffee-rails"
11
6
  require "sassc-rails"
@@ -1,3 +1,3 @@
1
1
  module PhcthemesAdminPanelPack
2
- VERSION = '0.10.0'
2
+ VERSION = '0.11.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcthemes_admin_panel_pack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-04 00:00:00.000000000 Z
11
+ date: 2019-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -24,48 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 6.0.0.rc1
27
- - !ruby/object:Gem::Dependency
28
- name: jquery-rails
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '4.3'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '4.3'
41
- - !ruby/object:Gem::Dependency
42
- name: jquery-migrate-rails
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.2'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.2'
55
- - !ruby/object:Gem::Dependency
56
- name: jquery-ui-rails
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '6.0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '6.0'
69
27
  - !ruby/object:Gem::Dependency
70
28
  name: coffee-rails
71
29
  requirement: !ruby/object:Gem::Requirement
@@ -310,7 +268,9 @@ files:
310
268
  - app/assets/javascripts/common/jquery-placeholder/jquery.placeholder.js
311
269
  - app/assets/javascripts/common/jquery-slimscroll/jquery.slimscroll.js
312
270
  - app/assets/javascripts/common/jquery-sparkline/jquery.sparkline.js
271
+ - app/assets/javascripts/common/jquery-ui/jquery-ui.js
313
272
  - app/assets/javascripts/common/jquery-validation/jquery.validate.js
273
+ - app/assets/javascripts/common/jquery/jquery-3.4.1.js
314
274
  - app/assets/javascripts/common/jqvmap/jquery.vmap.js
315
275
  - app/assets/javascripts/common/jqvmap/jquery.vmap.min.js
316
276
  - app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.africa.js
@@ -393,6 +353,7 @@ files:
393
353
  - app/assets/javascripts/themes/coloradmin/theme/default.js
394
354
  - app/assets/javascripts/themes/inspinia/custom/custom.js
395
355
  - app/assets/javascripts/themes/inspinia/theme/inspinia.js
356
+ - app/assets/javascripts/themes/metronic/theme/bootstrap-datepicker.js
396
357
  - app/assets/javascripts/themes/metronic/theme/scripts.bundle.js
397
358
  - app/assets/javascripts/themes/metronic/theme/vendors.bundle.js
398
359
  - app/assets/stylesheets/common/custom/custom.scss