solid-ui 2.4.12-3bba27e0 → 2.4.12-4e6bd47a

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/lib/style.js CHANGED
@@ -19,19 +19,19 @@ var formFieldNameBoxWidth = '8em'; // The fixed amount to get form fields to lin
19
19
  var style = {
20
20
  // styleModule
21
21
  checkboxStyle: 'colour: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;',
22
- checkboxInputStyle: 'font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; margin: 0.1em',
22
+ checkboxInputStyle: 'font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em',
23
23
  fieldLabelStyle: 'color: #3B5998; text-decoration: none;',
24
24
  formSelectSTyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.2em;',
25
25
  textInputStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.2em;',
26
26
  textInputStyleUneditable: // Color difference only
27
- 'background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.2em; ',
27
+ 'background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.2em;',
28
28
  textInputSize: 20,
29
29
  // Default text input size in characters roughly
30
30
  buttonStyle: 'background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;',
31
31
  // 'background-color: #eef;
32
32
  commentStyle: 'padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;',
33
33
  iconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 1em;',
34
- smallButtonStyle: 'margin: 0.2em; width: 1em; height:1em',
34
+ smallButtonStyle: 'margin: 0.2em; width: 1em; height:1em;',
35
35
  classIconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;',
36
36
  // combine with buttonStyle
37
37
  confirmPopupStyle: 'padding: 0.7em; border-radius: 0.2em; border: 0.1em solid orange; background-color: white; box-shadow: 0.5em 0.9em #888;',
package/lib/style.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/style.js"],"names":["formBorderColor","lowProfileLinkColor","formFieldNameBoxWidth","style","checkboxStyle","checkboxInputStyle","fieldLabelStyle","formSelectSTyle","textInputStyle","textInputStyleUneditable","textInputSize","buttonStyle","commentStyle","iconStyle","smallButtonStyle","classIconStyle","confirmPopupStyle","tabBorderRadius","messageBodyStyle","pendingeditModifier","highlightColor","personaBarStyle","searchInputStyle","autocompleteRowStyle","signInButtonStyle","heading1Style","heading2Style","heading3Style","heading4Style","formHeadingColor","formHeadingStyle","formTextInput","formGroupStyle","formFieldLabelStyle","formFieldNameBoxStyle","textInputBackgroundColor","textInputBackgroundColorUneditable","textInputColor","textInputColorPending","multilineTextInputStyle","renderAsDivStyle","imageDivStyle","linkDivStyle","setStyle","ele","styleName","module","exports"],"mappings":";;;;;;AAAA;AACA;AACA;AAEA;AAEA,IAAMA,eAAe,GAAG,SAAxB,C,CAAkC;;AAClC,IAAMC,mBAAmB,GAAG,SAA5B,C,CAAsC;;AACtC,IAAMC,qBAAqB,GAAG,KAA9B,C,CAAoC;AACpC;AACA;;AAEO,IAAMC,KAAK,GAAG;AAAE;AAErBC,EAAAA,aAAa,EAAE,8EAFI;AAGnBC,EAAAA,kBAAkB,EAAE,qFAHD;AAKnBC,EAAAA,eAAe,EAAE,wCALE;AAMnBC,EAAAA,eAAe,EACb,yHAPiB;AAQnBC,EAAAA,cAAc,EACZ,yHATiB;AAUnBC,EAAAA,wBAAwB,EAAE;AACxB,8HAXiB;AAYnBC,EAAAA,aAAa,EAAE,EAZI;AAYA;AACnBC,EAAAA,WAAW,EACP,2HAde;AAc8G;AACjIC,EAAAA,YAAY,EAAE,wEAfK;AAgBnBC,EAAAA,SAAS,EAAE,6DAhBQ;AAiBnBC,EAAAA,gBAAgB,EAAE,uCAjBC;AAkBnBC,EAAAA,cAAc,EAAE,kIAlBG;AAkBiI;AACpJC,EAAAA,iBAAiB,EAAE,0HAnBA;AAoBnBC,EAAAA,eAAe,EAAE,OApBE;AAqBnBC,EAAAA,gBAAgB,EACd,wIAtBiB;AAuBnBC,EAAAA,mBAAmB,EAAE,cAvBF;AAwBnBC,EAAAA,cAAc,EAAE,SAxBG;AAwBQ;AAE3B;AACAC,EAAAA,eAAe,EAAE,2EA3BE;AA4BnBC,EAAAA,gBAAgB,EAAE,mHA5BC;AA6BnBC,EAAAA,oBAAoB,EAAE,4BA7BH;AA+BnB;AACAC,EAAAA,iBAAiB,EAAE,qDAhCA;AAgCuD;AAE1E;AACAC,EAAAA,aAAa,EAAE,yFAnCI;AAmCuF;AAC1GC,EAAAA,aAAa,EAAE,0FApCI;AAoCwF;AAC3GC,EAAAA,aAAa,EAAE,0FArCI;AAqCwF;AAC3GC,EAAAA,aAAa,EAAE,0FAtCI;AAsCwF;AAE3G5B,EAAAA,eAAe,EAAEA,eAxCE;AAwCe;AAClC6B,EAAAA,gBAAgB,EAAE,SAzCC;AAyCU;AAC7BC,EAAAA,gBAAgB,EAAE,2FA1CC;AA0C4F;AAC/GC,EAAAA,aAAa,EAAE,iDA3CI;AA2C+C;AAClEC,EAAAA,cAAc,EAAE,kDAA2ChC,eAA3C,8BAAqF;AAArF,oDAC6BA,eAD7B,+EAE4BA,eAF5B,+EAG4BA,eAH5B,6BAGqE;AAHrE,GA5CG;AAkDnBiC,EAAAA,mBAAmB,oBAAahC,mBAAb,8BAlDA;AAmDnBC,EAAAA,qBAAqB,EAAEA,qBAnDJ;AAoDnBgC,EAAAA,qBAAqB,0DAAmDhC,qBAAnD,MApDF;AAqDnBiC,EAAAA,wBAAwB,EAAE,MArDP;AAsDnBC,EAAAA,kCAAkC,EAAE,MAtDjB;AAuDnBC,EAAAA,cAAc,EAAE,MAvDG;AAwDnBC,EAAAA,qBAAqB,EAAE,MAxDJ;AAyDnBC,EAAAA,uBAAuB,EAAE,mEACzB,kEA1DmB;AA4DnB;AACAC,EAAAA,gBAAgB,EAAE,kGA7DC;AA8DnBC,EAAAA,aAAa,EAAE,4CA9DI;AA+DnBC,EAAAA,YAAY,EAAE;AA/DK,CAAd;;;AAkEPvC,KAAK,CAACwC,QAAN,GAAiB,SAASA,QAAT,CAAmBC,GAAnB,EAAwBC,SAAxB,EAAmC;AAClDD,EAAAA,GAAG,CAACzC,KAAJ,GAAYA,KAAK,CAAC0C,SAAD,CAAjB;AACD,CAFD;;AAIAC,MAAM,CAACC,OAAP,GAAiB5C,KAAjB,C,CAAuB","sourcesContent":["// Common readable consistent stylesheet\n// to avoid using style sheets which are document-global\n// and make programmable style toggling with selection, drag over, etc easier\n\n// These must all end with semicolon so they can be appended to.\n\nconst formBorderColor = '#888888' // Mid-grey\nconst lowProfileLinkColor = '#3B5998' // Grey-blue, e.g., for field labels linking to ontology\nconst formFieldNameBoxWidth = '8em' // The fixed amount to get form fields to line up\n// The latter we put in when switching awy from using tables. Getting allignment between\n// fields in different groups though is hard problem.\n\nexport const style = { // styleModule\n\n checkboxStyle: 'colour: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;',\n checkboxInputStyle: 'font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; margin: 0.1em',\n\n fieldLabelStyle: 'color: #3B5998; text-decoration: none;',\n formSelectSTyle:\n 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.2em;',\n textInputStyle:\n 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.2em;',\n textInputStyleUneditable: // Color difference only\n 'background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.2em; ',\n textInputSize: 20, // Default text input size in characters roughly\n buttonStyle:\n 'background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;', // 'background-color: #eef;\n commentStyle: 'padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;',\n iconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 1em;',\n smallButtonStyle: 'margin: 0.2em; width: 1em; height:1em',\n classIconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;', // combine with buttonStyle\n confirmPopupStyle: 'padding: 0.7em; border-radius: 0.2em; border: 0.1em solid orange; background-color: white; box-shadow: 0.5em 0.9em #888;',\n tabBorderRadius: '0.2em',\n messageBodyStyle:\n 'white-space: pre-wrap; width: 99%; font-size:100%; border: 0.07em solid #eee; border-radius:0.2em; padding: .3em 0.5em; margin: 0.1em;',\n pendingeditModifier: 'color: #bbb;',\n highlightColor: '#7C4DFF', // Solid lavendar https://design.inrupt.com/atomic-core/?cat=Core\n\n // Contacts\n personaBarStyle: 'width: 100%; height: 4em; background-color: #eee; vertical-align: middle;',\n searchInputStyle: 'border: 0.1em solid #444; border-radius: 0.2em; width: 100%; font-size: 100%; padding: 0.1em 0.6em; margin 0.2em;',\n autocompleteRowStyle: 'border: 0.2em solid straw;',\n\n // Login buttons\n signInButtonStyle: 'padding: 1em; border-radius:0.2em; font-size: 100%;', // was 0.5em radius\n\n // Forms\n heading1Style: 'font-size: 180%; font-weight: bold; color: #888888; padding: 0.5em; margin: 0.7em 0.0m;', // originally was brown; now grey\n heading2Style: 'font-size: 130%; font-weight: bold; color: #888888; padding: 0.4em; margin: 0.7em 0.0em;', // originally was brown; now grey\n heading3Style: 'font-size: 120%; font-weight: bold; color: #888888; padding: 0.3em; margin: 0.7em 0.0em;', // For example, in large forms or before a small form\n heading4Style: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;', // Lowest level used by default in small things\n\n formBorderColor: formBorderColor, // originally was brown; now grey\n formHeadingColor: '#888888', // originally was brown; now grey\n formHeadingStyle: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;', // originally was brown; now grey\n formTextInput: 'font-size: 100%; margin: 0.1em; padding: 0.1em;', // originally used this\n formGroupStyle: [`padding-left: 0em; border: 0.0em solid ${formBorderColor}; border-radius: 0.2em;`, // weight 0\n `padding-left: 2em; border: 0.05em solid ${formBorderColor}; border-radius: 0.2em;`,\n `padding-left: 2em; border: 0.1em solid ${formBorderColor}; border-radius: 0.2em;`,\n `padding-left: 2em; border: 0.2em solid ${formBorderColor}; border-radius: 0.2em;` // @@ pink\n ],\n\n formFieldLabelStyle: `'color: ${lowProfileLinkColor}; text-decoration: none;'`,\n formFieldNameBoxWidth: formFieldNameBoxWidth,\n formFieldNameBoxStyle: `padding: 0.3em; vertical-align: middle; width:${formFieldNameBoxWidth};`,\n textInputBackgroundColor: '#eef',\n textInputBackgroundColorUneditable: '#fff',\n textInputColor: '#000',\n textInputColorPending: '#888',\n multilineTextInputStyle: 'font-size:100%; white-space: pre-wrap; background-color: #eef;' +\n ' border: 0.07em solid gray; padding: 1em 0.5em; margin: 1em 1em;',\n\n // Buttons\n renderAsDivStyle: 'display: flex; align-items: center; justify-content: space-between; height: 2.5em; padding: 1em;',\n imageDivStyle: 'width:2.5em; padding:0.5em; height: 2.5em;',\n linkDivStyle: 'width:2em; padding:0.5em; height: 4em;'\n}\n\nstyle.setStyle = function setStyle (ele, styleName) {\n ele.style = style[styleName]\n}\n\nmodule.exports = style // @@ No way to do this in ESM\n"],"file":"style.js"}
1
+ {"version":3,"sources":["../src/style.js"],"names":["formBorderColor","lowProfileLinkColor","formFieldNameBoxWidth","style","checkboxStyle","checkboxInputStyle","fieldLabelStyle","formSelectSTyle","textInputStyle","textInputStyleUneditable","textInputSize","buttonStyle","commentStyle","iconStyle","smallButtonStyle","classIconStyle","confirmPopupStyle","tabBorderRadius","messageBodyStyle","pendingeditModifier","highlightColor","personaBarStyle","searchInputStyle","autocompleteRowStyle","signInButtonStyle","heading1Style","heading2Style","heading3Style","heading4Style","formHeadingColor","formHeadingStyle","formTextInput","formGroupStyle","formFieldLabelStyle","formFieldNameBoxStyle","textInputBackgroundColor","textInputBackgroundColorUneditable","textInputColor","textInputColorPending","multilineTextInputStyle","renderAsDivStyle","imageDivStyle","linkDivStyle","setStyle","ele","styleName","module","exports"],"mappings":";;;;;;AAAA;AACA;AACA;AAEA;AAEA,IAAMA,eAAe,GAAG,SAAxB,C,CAAkC;;AAClC,IAAMC,mBAAmB,GAAG,SAA5B,C,CAAsC;;AACtC,IAAMC,qBAAqB,GAAG,KAA9B,C,CAAoC;AACpC;AACA;;AAEO,IAAMC,KAAK,GAAG;AAAE;AAErBC,EAAAA,aAAa,EAAE,8EAFI;AAGnBC,EAAAA,kBAAkB,EAAE,0GAHD;AAKnBC,EAAAA,eAAe,EAAE,wCALE;AAMnBC,EAAAA,eAAe,EACb,yHAPiB;AAQnBC,EAAAA,cAAc,EACZ,yHATiB;AAUnBC,EAAAA,wBAAwB,EAAE;AACxB,6HAXiB;AAYnBC,EAAAA,aAAa,EAAE,EAZI;AAYA;AACnBC,EAAAA,WAAW,EACP,2HAde;AAc8G;AACjIC,EAAAA,YAAY,EAAE,wEAfK;AAgBnBC,EAAAA,SAAS,EAAE,6DAhBQ;AAiBnBC,EAAAA,gBAAgB,EAAE,wCAjBC;AAkBnBC,EAAAA,cAAc,EAAE,kIAlBG;AAkBiI;AACpJC,EAAAA,iBAAiB,EAAE,0HAnBA;AAoBnBC,EAAAA,eAAe,EAAE,OApBE;AAqBnBC,EAAAA,gBAAgB,EACd,wIAtBiB;AAuBnBC,EAAAA,mBAAmB,EAAE,cAvBF;AAwBnBC,EAAAA,cAAc,EAAE,SAxBG;AAwBQ;AAE3B;AACAC,EAAAA,eAAe,EAAE,2EA3BE;AA4BnBC,EAAAA,gBAAgB,EAAE,mHA5BC;AA6BnBC,EAAAA,oBAAoB,EAAE,4BA7BH;AA+BnB;AACAC,EAAAA,iBAAiB,EAAE,qDAhCA;AAgCuD;AAE1E;AACAC,EAAAA,aAAa,EAAE,yFAnCI;AAmCuF;AAC1GC,EAAAA,aAAa,EAAE,0FApCI;AAoCwF;AAC3GC,EAAAA,aAAa,EAAE,0FArCI;AAqCwF;AAC3GC,EAAAA,aAAa,EAAE,0FAtCI;AAsCwF;AAE3G5B,EAAAA,eAAe,EAAEA,eAxCE;AAwCe;AAClC6B,EAAAA,gBAAgB,EAAE,SAzCC;AAyCU;AAC7BC,EAAAA,gBAAgB,EAAE,2FA1CC;AA0C4F;AAC/GC,EAAAA,aAAa,EAAE,iDA3CI;AA2C+C;AAClEC,EAAAA,cAAc,EAAE,kDAA2ChC,eAA3C,8BAAqF;AAArF,oDAC6BA,eAD7B,+EAE4BA,eAF5B,+EAG4BA,eAH5B,6BAGqE;AAHrE,GA5CG;AAkDnBiC,EAAAA,mBAAmB,oBAAahC,mBAAb,8BAlDA;AAmDnBC,EAAAA,qBAAqB,EAAEA,qBAnDJ;AAoDnBgC,EAAAA,qBAAqB,0DAAmDhC,qBAAnD,MApDF;AAqDnBiC,EAAAA,wBAAwB,EAAE,MArDP;AAsDnBC,EAAAA,kCAAkC,EAAE,MAtDjB;AAuDnBC,EAAAA,cAAc,EAAE,MAvDG;AAwDnBC,EAAAA,qBAAqB,EAAE,MAxDJ;AAyDnBC,EAAAA,uBAAuB,EAAE,mEACzB,kEA1DmB;AA4DnB;AACAC,EAAAA,gBAAgB,EAAE,kGA7DC;AA8DnBC,EAAAA,aAAa,EAAE,4CA9DI;AA+DnBC,EAAAA,YAAY,EAAE;AA/DK,CAAd;;;AAkEPvC,KAAK,CAACwC,QAAN,GAAiB,SAASA,QAAT,CAAmBC,GAAnB,EAAwBC,SAAxB,EAAmC;AAClDD,EAAAA,GAAG,CAACzC,KAAJ,GAAYA,KAAK,CAAC0C,SAAD,CAAjB;AACD,CAFD;;AAIAC,MAAM,CAACC,OAAP,GAAiB5C,KAAjB,C,CAAuB","sourcesContent":["// Common readable consistent stylesheet\n// to avoid using style sheets which are document-global\n// and make programmable style toggling with selection, drag over, etc easier\n\n// These must all end with semicolon so they can be appended to.\n\nconst formBorderColor = '#888888' // Mid-grey\nconst lowProfileLinkColor = '#3B5998' // Grey-blue, e.g., for field labels linking to ontology\nconst formFieldNameBoxWidth = '8em' // The fixed amount to get form fields to line up\n// The latter we put in when switching awy from using tables. Getting allignment between\n// fields in different groups though is hard problem.\n\nexport const style = { // styleModule\n\n checkboxStyle: 'colour: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;',\n checkboxInputStyle: 'font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em',\n\n fieldLabelStyle: 'color: #3B5998; text-decoration: none;',\n formSelectSTyle:\n 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.2em;',\n textInputStyle:\n 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.2em;',\n textInputStyleUneditable: // Color difference only\n 'background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.2em;',\n textInputSize: 20, // Default text input size in characters roughly\n buttonStyle:\n 'background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;', // 'background-color: #eef;\n commentStyle: 'padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;',\n iconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 1em;',\n smallButtonStyle: 'margin: 0.2em; width: 1em; height:1em;',\n classIconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;', // combine with buttonStyle\n confirmPopupStyle: 'padding: 0.7em; border-radius: 0.2em; border: 0.1em solid orange; background-color: white; box-shadow: 0.5em 0.9em #888;',\n tabBorderRadius: '0.2em',\n messageBodyStyle:\n 'white-space: pre-wrap; width: 99%; font-size:100%; border: 0.07em solid #eee; border-radius:0.2em; padding: .3em 0.5em; margin: 0.1em;',\n pendingeditModifier: 'color: #bbb;',\n highlightColor: '#7C4DFF', // Solid lavendar https://design.inrupt.com/atomic-core/?cat=Core\n\n // Contacts\n personaBarStyle: 'width: 100%; height: 4em; background-color: #eee; vertical-align: middle;',\n searchInputStyle: 'border: 0.1em solid #444; border-radius: 0.2em; width: 100%; font-size: 100%; padding: 0.1em 0.6em; margin 0.2em;',\n autocompleteRowStyle: 'border: 0.2em solid straw;',\n\n // Login buttons\n signInButtonStyle: 'padding: 1em; border-radius:0.2em; font-size: 100%;', // was 0.5em radius\n\n // Forms\n heading1Style: 'font-size: 180%; font-weight: bold; color: #888888; padding: 0.5em; margin: 0.7em 0.0m;', // originally was brown; now grey\n heading2Style: 'font-size: 130%; font-weight: bold; color: #888888; padding: 0.4em; margin: 0.7em 0.0em;', // originally was brown; now grey\n heading3Style: 'font-size: 120%; font-weight: bold; color: #888888; padding: 0.3em; margin: 0.7em 0.0em;', // For example, in large forms or before a small form\n heading4Style: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;', // Lowest level used by default in small things\n\n formBorderColor: formBorderColor, // originally was brown; now grey\n formHeadingColor: '#888888', // originally was brown; now grey\n formHeadingStyle: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;', // originally was brown; now grey\n formTextInput: 'font-size: 100%; margin: 0.1em; padding: 0.1em;', // originally used this\n formGroupStyle: [`padding-left: 0em; border: 0.0em solid ${formBorderColor}; border-radius: 0.2em;`, // weight 0\n `padding-left: 2em; border: 0.05em solid ${formBorderColor}; border-radius: 0.2em;`,\n `padding-left: 2em; border: 0.1em solid ${formBorderColor}; border-radius: 0.2em;`,\n `padding-left: 2em; border: 0.2em solid ${formBorderColor}; border-radius: 0.2em;` // @@ pink\n ],\n\n formFieldLabelStyle: `'color: ${lowProfileLinkColor}; text-decoration: none;'`,\n formFieldNameBoxWidth: formFieldNameBoxWidth,\n formFieldNameBoxStyle: `padding: 0.3em; vertical-align: middle; width:${formFieldNameBoxWidth};`,\n textInputBackgroundColor: '#eef',\n textInputBackgroundColorUneditable: '#fff',\n textInputColor: '#000',\n textInputColorPending: '#888',\n multilineTextInputStyle: 'font-size:100%; white-space: pre-wrap; background-color: #eef;' +\n ' border: 0.07em solid gray; padding: 1em 0.5em; margin: 1em 1em;',\n\n // Buttons\n renderAsDivStyle: 'display: flex; align-items: center; justify-content: space-between; height: 2.5em; padding: 1em;',\n imageDivStyle: 'width:2.5em; padding:0.5em; height: 2.5em;',\n linkDivStyle: 'width:2em; padding:0.5em; height: 4em;'\n}\n\nstyle.setStyle = function setStyle (ele, styleName) {\n ele.style = style[styleName]\n}\n\nmodule.exports = style // @@ No way to do this in ESM\n"],"file":"style.js"}
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- buildTime: '2021-11-30T18:04:52Z',
9
- commit: '3bba27e028a58b06553d0ecf1cfda06b6c109ca6',
8
+ buildTime: '2021-12-01T23:13:49Z',
9
+ commit: '4e6bd47aba6260c7eedb2c68aeca3ba8effcef88',
10
10
  npmInfo: {
11
11
  'solid-ui': '2.4.12',
12
12
  npm: '6.14.15',
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/versionInfo.ts"],"names":["buildTime","commit","npmInfo","npm","ares","brotli","cldr","icu","llhttp","modules","napi","nghttp2","node","openssl","tz","unicode","uv","v8","zlib"],"mappings":";;;;;;eAAe;AACbA,EAAAA,SAAS,EAAE,sBADE;AAEbC,EAAAA,MAAM,EAAE,0CAFK;AAGbC,EAAAA,OAAO,EACT;AACE,gBAAY,QADd;AAEEC,IAAAA,GAAG,EAAE,SAFP;AAGEC,IAAAA,IAAI,EAAE,QAHR;AAIEC,IAAAA,MAAM,EAAE,OAJV;AAKEC,IAAAA,IAAI,EAAE,MALR;AAMEC,IAAAA,GAAG,EAAE,MANP;AAOEC,IAAAA,MAAM,EAAE,OAPV;AAQEC,IAAAA,OAAO,EAAE,IARX;AASEC,IAAAA,IAAI,EAAE,GATR;AAUEC,IAAAA,OAAO,EAAE,QAVX;AAWEC,IAAAA,IAAI,EAAE,SAXR;AAYEC,IAAAA,OAAO,EAAE,QAZX;AAaEC,IAAAA,EAAE,EAAE,OAbN;AAcEC,IAAAA,OAAO,EAAE,MAdX;AAeEC,IAAAA,EAAE,EAAE,QAfN;AAgBEC,IAAAA,EAAE,EAAE,oBAhBN;AAiBEC,IAAAA,IAAI,EAAE;AAjBR;AAJe,C","sourcesContent":["export default {\n buildTime: '2021-11-30T18:04:52Z',\n commit: '3bba27e028a58b06553d0ecf1cfda06b6c109ca6',\n npmInfo:\n{\n 'solid-ui': '2.4.12',\n npm: '6.14.15',\n ares: '1.17.2',\n brotli: '1.0.9',\n cldr: '39.0',\n icu: '69.1',\n llhttp: '2.1.4',\n modules: '83',\n napi: '8',\n nghttp2: '1.42.0',\n node: '14.18.1',\n openssl: '1.1.1l',\n tz: '2021a',\n unicode: '13.0',\n uv: '1.42.0',\n v8: '8.4.371.23-node.84',\n zlib: '1.2.11'\n}\n}\n"],"file":"versionInfo.js"}
1
+ {"version":3,"sources":["../src/versionInfo.ts"],"names":["buildTime","commit","npmInfo","npm","ares","brotli","cldr","icu","llhttp","modules","napi","nghttp2","node","openssl","tz","unicode","uv","v8","zlib"],"mappings":";;;;;;eAAe;AACbA,EAAAA,SAAS,EAAE,sBADE;AAEbC,EAAAA,MAAM,EAAE,0CAFK;AAGbC,EAAAA,OAAO,EACT;AACE,gBAAY,QADd;AAEEC,IAAAA,GAAG,EAAE,SAFP;AAGEC,IAAAA,IAAI,EAAE,QAHR;AAIEC,IAAAA,MAAM,EAAE,OAJV;AAKEC,IAAAA,IAAI,EAAE,MALR;AAMEC,IAAAA,GAAG,EAAE,MANP;AAOEC,IAAAA,MAAM,EAAE,OAPV;AAQEC,IAAAA,OAAO,EAAE,IARX;AASEC,IAAAA,IAAI,EAAE,GATR;AAUEC,IAAAA,OAAO,EAAE,QAVX;AAWEC,IAAAA,IAAI,EAAE,SAXR;AAYEC,IAAAA,OAAO,EAAE,QAZX;AAaEC,IAAAA,EAAE,EAAE,OAbN;AAcEC,IAAAA,OAAO,EAAE,MAdX;AAeEC,IAAAA,EAAE,EAAE,QAfN;AAgBEC,IAAAA,EAAE,EAAE,oBAhBN;AAiBEC,IAAAA,IAAI,EAAE;AAjBR;AAJe,C","sourcesContent":["export default {\n buildTime: '2021-12-01T23:13:49Z',\n commit: '4e6bd47aba6260c7eedb2c68aeca3ba8effcef88',\n npmInfo:\n{\n 'solid-ui': '2.4.12',\n npm: '6.14.15',\n ares: '1.17.2',\n brotli: '1.0.9',\n cldr: '39.0',\n icu: '69.1',\n llhttp: '2.1.4',\n modules: '83',\n napi: '8',\n nghttp2: '1.42.0',\n node: '14.18.1',\n openssl: '1.1.1l',\n tz: '2021a',\n unicode: '13.0',\n uv: '1.42.0',\n v8: '8.4.371.23-node.84',\n zlib: '1.2.11'\n}\n}\n"],"file":"versionInfo.js"}
@@ -12439,19 +12439,19 @@ var formFieldNameBoxWidth = '8em'; // The fixed amount to get form fields to lin
12439
12439
  var style = {
12440
12440
  // styleModule
12441
12441
  checkboxStyle: 'colour: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;',
12442
- checkboxInputStyle: 'font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; margin: 0.1em',
12442
+ checkboxInputStyle: 'font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em',
12443
12443
  fieldLabelStyle: 'color: #3B5998; text-decoration: none;',
12444
12444
  formSelectSTyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.2em;',
12445
12445
  textInputStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.2em;',
12446
12446
  textInputStyleUneditable: // Color difference only
12447
- 'background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.2em; ',
12447
+ 'background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.2em;',
12448
12448
  textInputSize: 20,
12449
12449
  // Default text input size in characters roughly
12450
12450
  buttonStyle: 'background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;',
12451
12451
  // 'background-color: #eef;
12452
12452
  commentStyle: 'padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;',
12453
12453
  iconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 1em;',
12454
- smallButtonStyle: 'margin: 0.2em; width: 1em; height:1em',
12454
+ smallButtonStyle: 'margin: 0.2em; width: 1em; height:1em;',
12455
12455
  classIconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;',
12456
12456
  // combine with buttonStyle
12457
12457
  confirmPopupStyle: 'padding: 0.7em; border-radius: 0.2em; border: 0.1em solid orange; background-color: white; box-shadow: 0.5em 0.9em #888;',
@@ -15422,8 +15422,8 @@ Object.defineProperty(exports, "__esModule", {
15422
15422
  });
15423
15423
  exports["default"] = void 0;
15424
15424
  var _default = {
15425
- buildTime: '2021-11-30T18:04:52Z',
15426
- commit: '3bba27e028a58b06553d0ecf1cfda06b6c109ca6',
15425
+ buildTime: '2021-12-01T23:13:49Z',
15426
+ commit: '4e6bd47aba6260c7eedb2c68aeca3ba8effcef88',
15427
15427
  npmInfo: {
15428
15428
  'solid-ui': '2.4.12',
15429
15429
  npm: '6.14.15',
@@ -19075,10 +19075,8 @@ function buildCheckboxForm(dom, kb, lab, del, ins, form, dataDoc, tristate) {
19075
19075
  var rhs = (0, _basic.renderNameValuePair)(dom, kb, box, form);
19076
19076
  var editable = kb.updater.editable(dataDoc.uri);
19077
19077
  var input = dom.createElement('button');
19078
- var colorCarrier = input; // Which element changes color to flag changed/saving/saved?
19079
-
19080
- input.style = style.checkboxInputStyle; // colorCarrier.style = style.checkboxStyle
19081
-
19078
+ var colorCarrier = input;
19079
+ input.style = style.checkboxInputStyle;
19082
19080
  rhs.appendChild(input);
19083
19081
 
19084
19082
  function fix(x) {
@@ -19138,7 +19136,7 @@ function buildCheckboxForm(dom, kb, lab, del, ins, form, dataDoc, tristate) {
19138
19136
  if (!editable) return box;
19139
19137
 
19140
19138
  var boxHandler = function boxHandler(_e) {
19141
- colorCarrier.style.color = '#bbb;'; // grey -- not saved yet
19139
+ colorCarrier.style.color = '#bbb'; // grey -- not saved yet
19142
19140
 
19143
19141
  var toDelete = input.state === true ? ins : input.state === false ? del : [];
19144
19142
  input.newState = input.state === null ? true : input.state === true ? false : tristate ? null : true;
@@ -19155,11 +19153,11 @@ function buildCheckboxForm(dom, kb, lab, del, ins, form, dataDoc, tristate) {
19155
19153
  }
19156
19154
  }
19157
19155
 
19158
- colorCarrier.style.color = 'color: #black;';
19159
- colorCarrier.style.backgroundColor = '#fee;';
19156
+ colorCarrier.style.color = '#000';
19157
+ colorCarrier.style.backgroundColor = '#fee';
19160
19158
  box.appendChild((0, _error.errorMessageBlock)(dom, "Checkbox: Error updating dataDoc from ".concat(input.state, " to ").concat(input.newState, ":\n\n").concat(errorBody)));
19161
19159
  } else {
19162
- colorCarrier.style = 'color: #black;';
19160
+ colorCarrier.style.color = '#000';
19163
19161
  input.state = input.newState;
19164
19162
  input.textContent = {
19165
19163
  "true": checkMarkCharacter,
@@ -21632,33 +21630,22 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
21632
21630
  return box.appendChild((0, _error.errorMessageBlock)(dom, 'Error: No property given for text field: ' + form));
21633
21631
  }
21634
21632
 
21635
- var rhs = renderNameValuePair(dom, kb, box, form);
21636
- /*
21637
- box.style.display = 'flex'
21638
- box.style.flexDirection = 'row'
21639
- const lhs = box.appendChild(dom.createElement('div'))
21640
- lhs.style.width = formFieldNameBoxWidth
21641
- const rhs = box.appendChild(dom.createElement('div'))
21642
- lhs.appendChild(fieldLabel(dom, property as NamedNode, form))
21643
- lhs.setAttribute('class', 'formFieldName')
21644
- lhs.setAttribute('style', formFieldNameBoxStyle)
21645
- rhs.setAttribute('class', 'formFieldValue')
21646
- */
21647
- // It can be cleaner to just remove empty fields if you can't edit them anyway
21633
+ var rhs = renderNameValuePair(dom, kb, box, form); // It can be cleaner to just remove empty fields if you can't edit them anyway
21648
21634
 
21649
21635
  var suppressEmptyUneditable = kb.anyJS(form, ns.ui('suppressEmptyUneditable'), null, formDoc);
21650
21636
  var uri = (0, _fieldFunction.mostSpecificClassURI)(form);
21651
21637
  var params = _fieldParams.fieldParams[uri];
21652
- if (params === undefined) params = {}; // non-bottom field types can do this
21653
-
21654
- var style = params.style || _style.textInputStyle; // box.appendChild(dom.createTextNode(' uri='+uri+', pattern='+ params.pattern))
21638
+ if (params === undefined) params = {
21639
+ style: ''
21640
+ }; // non-bottom field types can do this
21655
21641
 
21642
+ var paramStyle = params.style || '';
21643
+ var style = _style.textInputStyle + paramStyle;
21656
21644
  var field = dom.createElement('input');
21657
- field.style = _style.textInputStyle; // Do we have to override length etc?
21658
-
21645
+ field.style = style;
21659
21646
  rhs.appendChild(field);
21660
21647
  field.setAttribute('type', params.type ? params.type : 'text');
21661
- var size = kb.anyJS(form, ns.ui('size')) || style.textInputSize || 20;
21648
+ var size = kb.anyJS(form, ns.ui('size')) || _style.textInputSize || 20;
21662
21649
  field.setAttribute('size', size);
21663
21650
  var maxLength = kb.any(form, ns.ui('maxLength'));
21664
21651
  field.setAttribute('maxLength', maxLength ? '' + maxLength : '4096');
@@ -21687,7 +21674,7 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
21687
21674
  if (!kb.updater.editable(doc.uri)) {
21688
21675
  field.readOnly = true // was: disabled. readOnly is better
21689
21676
  ;
21690
- field.style = _style.textInputStyleUneditable; // backgroundColor = textInputBackgroundColorUneditable
21677
+ field.style = _style.textInputStyleUneditable + paramStyle; // backgroundColor = textInputBackgroundColorUneditable
21691
21678
 
21692
21679
  if (suppressEmptyUneditable && field.value === '') {
21693
21680
  box.style.display = 'none'; // clutter
@@ -21918,6 +21905,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
21918
21905
  var fieldParams = (_fieldParams = {}, (0, _defineProperty2["default"])(_fieldParams, ns.ui('ColorField').uri, {
21919
21906
  size: 9,
21920
21907
  type: 'color',
21908
+ style: 'height: 3em;',
21909
+ // around 1.5em is padding
21921
21910
  dt: 'color',
21922
21911
  pattern: /^\s*#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]([0-9a-f][0-9a-f])?\s*$/
21923
21912
  }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('DateField').uri, {
@@ -21938,17 +21927,17 @@ var fieldParams = (_fieldParams = {}, (0, _defineProperty2["default"])(_fieldPar
21938
21927
  pattern: /^\s*([0-2]?[0-9]:[0-5][0-9](:[0-5][0-9])?)\s*$/
21939
21928
  }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('IntegerField').uri, {
21940
21929
  size: 12,
21941
- style: 'text-align: right',
21930
+ style: 'text-align: right;',
21942
21931
  dt: 'integer',
21943
21932
  pattern: /^\s*-?[0-9]+\s*$/
21944
21933
  }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('DecimalField').uri, {
21945
21934
  size: 12,
21946
- style: 'text-align: right',
21935
+ style: 'text-align: right;',
21947
21936
  dt: 'decimal',
21948
21937
  pattern: /^\s*-?[0-9]*(\.[0-9]*)?\s*$/
21949
21938
  }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('FloatField').uri, {
21950
21939
  size: 12,
21951
- style: 'text-align: right',
21940
+ style: 'text-align: right;',
21952
21941
  dt: 'float',
21953
21942
  pattern: /^\s*-?[0-9]*(\.[0-9]*)?((e|E)-?[0-9]*)?\s*$/
21954
21943
  }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('SingleLineTextField').uri, {}), (0, _defineProperty2["default"])(_fieldParams, ns.ui('NamedNodeURIField').uri, {