فهرست منبع

update mdc to the latest version

Nikolay Suslov 7 سال پیش
والد
کامیت
cce149912e

+ 5 - 1
support/client/lib/index.css

@@ -8,6 +8,7 @@ body {
   margin: 0px;
 }
 
+ /* 
 h1, h2, h3, h4, h5, h6 {
   font-family: Verdana, Arial, Helvetica, sans-serif;
 }
@@ -23,11 +24,14 @@ form {
 label {
   font-size: 18px;
 }
+*/
 
+ /* 
 input {
-  font-size: 18px;
+  font-size: inherit;
   padding: 5px;
 }
+*/
 
 .vwf-properties {
   background-color: #DCC;

+ 53 - 30
support/client/lib/vwf/view/editor-new.js

@@ -462,6 +462,7 @@ define([
                     class: "mdc-list-item",
                     role: "option",
                     id: "",
+                    tabindex: "0",
                     applicationpath: "",
                     $components: [
                         {
@@ -490,6 +491,7 @@ define([
                         $type: "li",
                         class: "mdc-list-item",
                         role: "option",
+                        tabindex: "0",
                         id: item.savename,
                         applicationpath: item.applicationpath,
                         $components: [
@@ -505,6 +507,7 @@ define([
                         $type: "li",
                         class: "mdc-list-item",
                         role: "option",
+                        tabindex: "0",
                         id: item.savename,
                         revision: item.revision,
                         applicationpath: item.applicationpath,
@@ -592,12 +595,12 @@ define([
                                                 $text: "Host: "
                                             },
                                             {
-                                                class: "mdc-textfield",
+                                                class: "mdc-text-field",
                                                 $cell: true,
                                                 $type: "span",
                                                 $components: [
                                                     {
-                                                        class: "mdc-textfield__input",
+                                                        class: "mdc-text-field__input prop-text-field-input",
                                                         id: "oscHost",
                                                         $cell: true,
                                                         $type: "input",
@@ -625,12 +628,12 @@ define([
                                                 $text: "Port: "
                                             },
                                             {
-                                                class: "mdc-textfield",
+                                                class: "mdc-text-field",
                                                 $cell: true,
                                                 $type: "span",
                                                 $components: [
                                                     {
-                                                        class: "mdc-textfield__input",
+                                                        class: "mdc-text-field__input prop-text-field-input",
                                                         id: "oscPort",
                                                         $cell: true,
                                                         $type: "input",
@@ -672,6 +675,7 @@ define([
 
 
                 }
+
             let loadSaveSettings =
                 {
                     $cell: true,
@@ -721,12 +725,12 @@ define([
                                             class: "mdc-layout-grid__cell mdc-layout-grid__cell--span-12",
                                             $components: [
                                                 {
-                                                    class: "mdc-textfield",
+                                                    class: "mdc-text-field",
                                                     $cell: true,
                                                     $type: "span",
                                                     $components: [
                                                         {
-                                                            class: "mdc-textfield__input",
+                                                            class: "mdc-text-field__input prop-text-field-input",
                                                             id: "fileName",
                                                             $cell: true,
                                                             $type: "input",
@@ -771,24 +775,49 @@ define([
                                                     $cell: true,
                                                     $type: "div",
                                                     class: "mdc-select",
+                                                    tabindex: "0",
+                                                    role: "listbox",
+                                                    id: "loadselect",
                                                     $init: function () {
+
+                                                        setTimeout(function() {
+                                                           
                                                         var MDCSelect = mdc.select.MDCSelect;
-                                                        const select = new MDCSelect(document.querySelector('.mdc-select'));
-                                                        select.listen('MDCSelect:change', () => {
+                                                        let selector = document.querySelector('#loadselect');
+                                                        let select = new MDCSelect(selector);
+                                                        selector.addEventListener('MDCSelect:change', () => {
                                                             //this._selectedState = select.value;
                                                             document.querySelector('#loadStateButton')._selectedState = select.selectedOptions[0];
                                                             //console.log(select.value);
                                                             //.selectedOptions[0]
                                                         });
 
+                                                          }, 300);
+
+                                                        
+
                                                     },
-                                                    role: "listbox",
                                                     $components: [
-                                                        {
-                                                            $type: "span",
-                                                            class: "mdc-select__selected-text",
-                                                            $text: "Select saved state"
+                                                        {   
+                                                            $type: "div",
+                                                            class: "mdc-select__surface mdc-ripple-upgraded",
+                                                            $components: [
+                                                                {
+                                                                    $type: "div",
+                                                                    class: "mdc-select__label",
+                                                                    $text: "Select..."
+                                                                },
+                                                                {
+                                                                    $type: "div",
+                                                                    class: "mdc-select__selected-text"
+                                                                },
+                                                                {
+                                                                    $type: "div",
+                                                                    class: "mdc-select__bottom-line"
+                                                                }
+                                                            ]
                                                         },
+                                                       
                                                         {
                                                             $type: "div",
                                                             class: "mdc-simple-menu mdc-select__menu",
@@ -797,9 +826,6 @@ define([
                                                                     $type: "ul",
                                                                     class: "mdc-list mdc-simple-menu__items",
                                                                     $components: this._saveStates.map(stateListElement)
-
-
-
                                                                 }
                                                             ]
                                                         }
@@ -874,11 +900,11 @@ define([
                                 class: "mdc-layout-grid__cell mdc-layout-grid__cell--span-7",
                                 $components: [
                                     {
-                                        class: "mdc-textfield",
+                                        class: "mdc-text-field",
                                         $cell: true,
                                         $type: "div",
                                         $components: [{
-                                            class: "mdc-textfield__input",
+                                            class: "mdc-text-field__input prop-text-field-input",
                                             $cell: true,
                                             $type: "input",
                                             type: "text",
@@ -1056,12 +1082,12 @@ define([
                                    sliderComponent,
                                
                                 {
-                                    class: "mdc-textfield",
+                                    class: "mdc-text-field prop-mdc-text-field mdc-ripple-upgraded",
                                     $cell: true,
-                                    $type: "span",
+                                    $type: "div",
                                     $components: [
                                         {
-                                            class: "mdc-textfield__input",
+                                            class: "mdc-text-field__input prop-text-field-input",
                                             id: "prop-" + m.name,
                                             $cell: true,
                                             $type: "input",
@@ -1091,7 +1117,7 @@ define([
                                 {
                                     $cell: true,
                                     $type: "button",
-                                    class: "mdc-button",
+                                    class: "mdc-button mdc-button--compact",
                                     $text: "^", //edit grammar
                                     onclick: function (e) {
                                         var currentNode = document.querySelector('#currentNode')._currentNode;
@@ -1139,9 +1165,6 @@ define([
 
                     ]
                 }
-
-
-
             }
 
 
@@ -2282,11 +2305,11 @@ define([
                                     class: "mdc-layout-grid__cell mdc-layout-grid__cell--span-3",
                                     $components: [
                                         {
-                                            class: "mdc-textfield",
+                                            class: "mdc-text-field",
                                             $cell: true,
                                             $type: "div",
                                             $components: [{
-                                                class: "mdc-textfield__input",
+                                                class: "mdc-text-field__input prop-text-field-input",
                                                 id: "methodName",
                                                 $cell: true,
                                                 $type: "input",
@@ -2313,11 +2336,11 @@ define([
                                     class: "mdc-layout-grid__cell mdc-layout-grid__cell--span-7",
                                     $components: [
                                         {
-                                            class: "mdc-textfield params-textfield-input",
+                                            class: "mdc-text-field params-text-field-input",
                                             $cell: true,
                                             $type: "div",
                                             $components: [{
-                                                class: "mdc-textfield__input",
+                                                class: "mdc-text-field__input prop-text-field-input",
                                                 id: "methodParams",
                                                 $cell: true,
                                                 $type: "input",
@@ -2845,7 +2868,7 @@ define([
                     $components: [
                         {
                             $type: "button",
-                            class: "demo-menu material-icons mdc-toolbar__icon--menu",
+                            class: "demo-menu material-icons mdc-toolbar__menu-icon",
                             $text: "menu"
 
 

+ 21 - 3
support/client/lib/vwf/view/lib/editorLive.css

@@ -122,10 +122,10 @@
         padding-left: 16px;
         overflow-x: hidden;
         overflow-y: auto;
-        background-color: rgba(247, 247, 247, 0.95);
+        background-color: rgba(236, 236, 236, 0.88);
         z-index: 3;
         position: fixed;
-        width: 400px;
+        width: 450px;
         height: 95%;
       }
 
@@ -158,4 +158,22 @@
         background: rgba(0, 0, 0, .4);
       }
 
-      */
+      */
+
+    /*   :root {
+        --mdc-theme-primary: #9E9E9E;
+      }
+      */
+
+      .prop-text-field-input {
+
+        font-size: inherit;
+        padding: 5px;
+
+      }
+
+      .prop-mdc-text-field {
+         /*
+        height: 56px;
+        */
+      }

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 257 - 974
support/client/lib/vwf/view/lib/mdc/dist/material-components-web.css


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 449 - 468
support/client/lib/vwf/view/lib/mdc/dist/material-components-web.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
support/client/lib/vwf/view/lib/mdc/dist/material-components-web.min.css


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
support/client/lib/vwf/view/lib/mdc/dist/material-components-web.min.js


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است