scu-web-components 0.0.7 → 0.0.8

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,16 +1,16 @@
1
1
  [
2
+ {
3
+ "name": "ScwCard",
4
+ "fileName": "ScwCard.json",
5
+ "tagName": "scw-card",
6
+ "category": "interactive"
7
+ },
2
8
  {
3
9
  "name": "ScwCenterComponent",
4
10
  "fileName": "ScwCenterComponent.json",
5
11
  "tagName": "scw-center-component",
6
12
  "category": "layouts"
7
13
  },
8
- {
9
- "name": "ScwFloatComponent",
10
- "fileName": "ScwFloatComponent.json",
11
- "tagName": "scw-float-component",
12
- "category": "layouts"
13
- },
14
14
  {
15
15
  "name": "ScwElementComponent",
16
16
  "fileName": "ScwElementComponent.json",
@@ -18,28 +18,22 @@
18
18
  "category": "layouts"
19
19
  },
20
20
  {
21
- "name": "ScwComponent",
22
- "fileName": "ScwComponent.json",
23
- "tagName": "scw-component",
24
- "category": "base"
25
- },
26
- {
27
- "name": "ScwForm",
28
- "fileName": "ScwForm.json",
29
- "tagName": "scw-form",
30
- "category": "form"
21
+ "name": "ScwFlexHComponent",
22
+ "fileName": "ScwFlexHComponent.json",
23
+ "tagName": "scw-flex-h-component",
24
+ "category": "layouts"
31
25
  },
32
26
  {
33
- "name": "ScwHeading",
34
- "fileName": "ScwHeading.json",
35
- "tagName": "scw-heading",
36
- "category": "interactive"
27
+ "name": "ScwFlexVComponent",
28
+ "fileName": "ScwFlexVComponent.json",
29
+ "tagName": "scw-flex-v-component",
30
+ "category": "layouts"
37
31
  },
38
32
  {
39
- "name": "ScwCard",
40
- "fileName": "ScwCard.json",
41
- "tagName": "scw-card",
42
- "category": "interactive"
33
+ "name": "ScwFloatComponent",
34
+ "fileName": "ScwFloatComponent.json",
35
+ "tagName": "scw-float-component",
36
+ "category": "layouts"
43
37
  },
44
38
  {
45
39
  "name": "ScwFormComponent",
@@ -48,16 +42,16 @@
48
42
  "category": "base"
49
43
  },
50
44
  {
51
- "name": "ScwFlexVComponent",
52
- "fileName": "ScwFlexVComponent.json",
53
- "tagName": "scw-flex-v-component",
54
- "category": "layouts"
45
+ "name": "ScwComponent",
46
+ "fileName": "ScwComponent.json",
47
+ "tagName": "scw-component",
48
+ "category": "base"
55
49
  },
56
50
  {
57
- "name": "ScwLayoutComponent",
58
- "fileName": "ScwLayoutComponent.json",
59
- "tagName": "scw-layout-component",
60
- "category": "layouts"
51
+ "name": "ScwForm",
52
+ "fileName": "ScwForm.json",
53
+ "tagName": "scw-form",
54
+ "category": "form"
61
55
  },
62
56
  {
63
57
  "name": "ScwIcon",
@@ -66,21 +60,9 @@
66
60
  "category": "interactive"
67
61
  },
68
62
  {
69
- "name": "ScwFlexHComponent",
70
- "fileName": "ScwFlexHComponent.json",
71
- "tagName": "scw-flex-h-component",
72
- "category": "layouts"
73
- },
74
- {
75
- "name": "ScwInput",
76
- "fileName": "ScwInput.json",
77
- "tagName": "scw-input",
78
- "category": "form"
79
- },
80
- {
81
- "name": "ScwLinkBase",
82
- "fileName": "ScwLinkBase.json",
83
- "tagName": "scw-link-base",
63
+ "name": "ScwHeading",
64
+ "fileName": "ScwHeading.json",
65
+ "tagName": "scw-heading",
84
66
  "category": "interactive"
85
67
  },
86
68
  {
@@ -90,9 +72,9 @@
90
72
  "category": "interactive"
91
73
  },
92
74
  {
93
- "name": "ScwInputLayout",
94
- "fileName": "ScwInputLayout.json",
95
- "tagName": "scw-input-layout",
75
+ "name": "ScwInput",
76
+ "fileName": "ScwInput.json",
77
+ "tagName": "scw-input",
96
78
  "category": "form"
97
79
  },
98
80
  {
@@ -102,17 +84,35 @@
102
84
  "category": "form"
103
85
  },
104
86
  {
105
- "name": "ScwLink",
106
- "fileName": "ScwLink.json",
107
- "tagName": "scw-link",
87
+ "name": "ScwInputLayout",
88
+ "fileName": "ScwInputLayout.json",
89
+ "tagName": "scw-input-layout",
90
+ "category": "form"
91
+ },
92
+ {
93
+ "name": "ScwLinkBase",
94
+ "fileName": "ScwLinkBase.json",
95
+ "tagName": "scw-link-base",
108
96
  "category": "interactive"
109
97
  },
110
98
  {
111
- "name": "ScwPaneComponent",
112
- "fileName": "ScwPaneComponent.json",
113
- "tagName": "scw-pane-component",
99
+ "name": "ScwLayoutComponent",
100
+ "fileName": "ScwLayoutComponent.json",
101
+ "tagName": "scw-layout-component",
114
102
  "category": "layouts"
115
103
  },
104
+ {
105
+ "name": "ScwMenu",
106
+ "fileName": "ScwMenu.json",
107
+ "tagName": "scw-menu",
108
+ "category": "interactive"
109
+ },
110
+ {
111
+ "name": "ScwLink",
112
+ "fileName": "ScwLink.json",
113
+ "tagName": "scw-link",
114
+ "category": "interactive"
115
+ },
116
116
  {
117
117
  "name": "ScwPageAlert",
118
118
  "fileName": "ScwPageAlert.json",
@@ -120,10 +120,10 @@
120
120
  "category": "interactive"
121
121
  },
122
122
  {
123
- "name": "ScwMenu",
124
- "fileName": "ScwMenu.json",
125
- "tagName": "scw-menu",
126
- "category": "interactive"
123
+ "name": "ScwPaneComponent",
124
+ "fileName": "ScwPaneComponent.json",
125
+ "tagName": "scw-pane-component",
126
+ "category": "layouts"
127
127
  },
128
128
  {
129
129
  "name": "ScwResponsive",
@@ -131,6 +131,12 @@
131
131
  "tagName": "scw-responsive",
132
132
  "category": "layouts"
133
133
  },
134
+ {
135
+ "name": "ScwSelect",
136
+ "fileName": "ScwSelect.json",
137
+ "tagName": "scw-select",
138
+ "category": "form"
139
+ },
134
140
  {
135
141
  "name": "ScwSingleInput",
136
142
  "fileName": "ScwSingleInput.json",
@@ -138,16 +144,16 @@
138
144
  "category": "form"
139
145
  },
140
146
  {
141
- "name": "ScwSelect",
142
- "fileName": "ScwSelect.json",
143
- "tagName": "scw-select",
147
+ "name": "ScwSingleInputLayout",
148
+ "fileName": "ScwSingleInputLayout.json",
149
+ "tagName": "scw-single-input-layout",
144
150
  "category": "form"
145
151
  },
146
152
  {
147
- "name": "ScwValidation",
148
- "fileName": "ScwValidation.json",
149
- "tagName": "scw-validation",
150
- "category": "form"
153
+ "name": "ScwStackComponent",
154
+ "fileName": "ScwStackComponent.json",
155
+ "tagName": "scw-stack-component",
156
+ "category": "layouts"
151
157
  },
152
158
  {
153
159
  "name": "ScwTextarea",
@@ -155,12 +161,6 @@
155
161
  "tagName": "scw-textarea",
156
162
  "category": "form"
157
163
  },
158
- {
159
- "name": "ScwSingleInputLayout",
160
- "fileName": "ScwSingleInputLayout.json",
161
- "tagName": "scw-single-input-layout",
162
- "category": "form"
163
- },
164
164
  {
165
165
  "name": "ScwValidate",
166
166
  "fileName": "ScwValidate.json",
@@ -168,10 +168,10 @@
168
168
  "category": "form"
169
169
  },
170
170
  {
171
- "name": "ScwStackComponent",
172
- "fileName": "ScwStackComponent.json",
173
- "tagName": "scw-stack-component",
174
- "category": "layouts"
171
+ "name": "ScwValidation",
172
+ "fileName": "ScwValidation.json",
173
+ "tagName": "scw-validation",
174
+ "category": "form"
175
175
  },
176
176
  {
177
177
  "name": "ScwButton",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "title": "Summit Credit Union Web Design System (SCW)",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "navigation": [
5
5
  {
6
6
  "id": "tokens",
@@ -1,6 +1,11 @@
1
1
  <div class="referencePage">
2
2
  <h1 id="release-history">Release History</h1>
3
3
  <ul>
4
+ <li><p>Release v0.0.8 ( 2022-02-15 )</p>
5
+ <ul>
6
+ <li>updates to documentation</li>
7
+ </ul>
8
+ </li>
4
9
  <li><p>Release v0.0.7 ( 2022-02-15 )</p>
5
10
  <ul>
6
11
  <li>updates to documentation</li>
@@ -1,4 +1,4 @@
1
- export default class JsCss{constructor(e){this.prefix="scw",this.buildUUID="b559e0d2-86eb-4da2-b3ec-a407d024cc47",this.generator=!1,this.initialized=!1,this.dbVersion=3,this.lookup,this.cacheBase=this.prefix+"-tokenizer",this.buildUuidCacheId="/build-uuid",this.cssCacheId="/token-css",this.configCacheId="/config",this.lookupCacheId="/css-lookup",this.indexedDBAvailable="indexedDB"in window,this.idb,this.databaseName,this.config=e||{},this.version=this.config.version||!1,this.extraCssPromise=this.config.extraCssPromise||!1,this.assetsUrl=this.config.assetsUrl||!1,this.attributes=this.config.attributes||!0,this.classes=this.config.classes||!0,this.variablesOnly=this.config.variablesOnly||!1,Array.isArray(this.config.breakpoints)?this.breakpoints=e.breakpoints:this.breakpoints=!1,window[""+this.mergeDashed(this.prefix,"styles",this.version)]=this}async getFromCache(e,t){return this.indexedDBAvailable?(await this.establishDBCache(!0),this._getFromCacheWorker(e,t)):null}async saveToCache(e,t){this.indexedDBAvailable&&(await this.establishDBCache(!0),this._saveToCacheWorker(e,t))}async _getFromCacheWorker(e,i,t){let s=this.idb;t&&(s=t);var a=s.transaction(["cache"],"readonly").objectStore("cache");return new Promise(t=>{const s=a.get(e);s.onsuccess=()=>{if(s.result&&s.result.content&&""!==s.result.content.trim()){let e;e="json"===i?JSON.parse(s.result.content):s.result.content,t(e)}t(null)}})}async _saveToCacheWorker(e,t){this.idb.transaction(["cache"],"readwrite").objectStore("cache").put({name:e,content:t})}async _deleteFromCacheWorker(e){this.idb.transaction(["cache"],"readwrite").objectStore("cache").delete(e)}async deleteCache(){var e=this.getDatabaseName();indexedDB.deleteDatabase(e)}async cleanUpOldDatabases(){if(indexedDB.databases){const a=this.getDatabaseName();return indexedDB.databases().then(e=>{e=e.map(i=>new Promise((s,e)=>{if(i.name!==a){const t=indexedDB.open(i.name);t.onsuccess=async e=>{e=e.target.result;if(await this._getFromCacheWorker(this.buildUuidCacheId,"text",e)!==this.buildUUID){const t=indexedDB.deleteDatabase(i.name);t.onsuccess=()=>{s("deleted "+i.name)},t.onerror=e=>{s(`error ${i.name} `+e)}}else s("ignored "+i.name)},t.onerror=e=>{s(`error ${i.name}, `+e)},t.onblocked=()=>{s("blocked "+i.name)}}else s(`ignored ${i.name} (this)`)}));Promise.all(e).then(console.log).catch(console.error)})}}cyrb53(s,e=0){let i=3735928559^e,a=1103547991^e;for(let e=0,t;e<s.length;e++)t=s.charCodeAt(e),i=Math.imul(i^t,2654435761),a=Math.imul(a^t,1597334677);return i=Math.imul(i^i>>>16,2246822507)^Math.imul(a^a>>>13,3266489909),a=Math.imul(a^a>>>16,2246822507)^Math.imul(i^i>>>13,3266489909),4294967296*(2097151&a)+(i>>>0)}getDatabaseName(){if(!this.databaseName){let e="no-config";this.config&&(e=this.cyrb53(JSON.stringify(this.config))),this.databaseName=this.cacheBase+"-"+e}return this.databaseName}async establishDBCache(e){if(this.indexedDBAvailable)return this.idb||new Promise((t,s)=>{var e=this.getDatabaseName(),e=indexedDB.open(e,this.dbVersion);e.onupgradeneeded=e=>{this.idb=e.target.result,this.idb.objectStoreNames.contains("cache")||this.idb.createObjectStore("cache",{keyPath:"name"})},e.onsuccess=async e=>{this.idb=e.target.result;e=await this._getFromCacheWorker(this.buildUuidCacheId);e?e!==this.buildUUID&&(console.log("cache id stale, rebuilding...."),this.cleanUpOldDatabases(),new Date,this._deleteFromCacheWorker(this.cssCacheId),this._deleteFromCacheWorker(this.lookupCacheId),this._saveToCacheWorker(this.buildUuidCacheId,this.buildUUID),this._saveToCacheWorker(this.configCacheId,JSON.stringify(this.config))):(new Date,this._saveToCacheWorker(this.buildUuidCacheId,this.buildUUID),this._saveToCacheWorker(this.configCacheId,JSON.stringify(this.config))),t()},e.onerror=e=>{console.log("onerror!"),console.dir(e),s()}});console.log("This browser does NOT support IDB")}async buildCss(){var e=await this.getFromCache(this.cssCacheId,"text"),t=await this.getFromCache(this.lookupCacheId,"json");let s="not found";if(e&&t)s=`/*
1
+ export default class JsCss{constructor(e){this.prefix="scw",this.buildUUID="b0643b79-9f03-4886-9310-e1a5274c62ba",this.generator=!1,this.initialized=!1,this.dbVersion=3,this.lookup,this.cacheBase=this.prefix+"-tokenizer",this.buildUuidCacheId="/build-uuid",this.cssCacheId="/token-css",this.configCacheId="/config",this.lookupCacheId="/css-lookup",this.indexedDBAvailable="indexedDB"in window,this.idb,this.databaseName,this.config=e||{},this.version=this.config.version||!1,this.extraCssPromise=this.config.extraCssPromise||!1,this.assetsUrl=this.config.assetsUrl||!1,this.attributes=this.config.attributes||!0,this.classes=this.config.classes||!0,this.variablesOnly=this.config.variablesOnly||!1,Array.isArray(this.config.breakpoints)?this.breakpoints=e.breakpoints:this.breakpoints=!1,window[""+this.mergeDashed(this.prefix,"styles",this.version)]=this}async getFromCache(e,t){return this.indexedDBAvailable?(await this.establishDBCache(!0),this._getFromCacheWorker(e,t)):null}async saveToCache(e,t){this.indexedDBAvailable&&(await this.establishDBCache(!0),this._saveToCacheWorker(e,t))}async _getFromCacheWorker(e,i,t){let s=this.idb;t&&(s=t);var a=s.transaction(["cache"],"readonly").objectStore("cache");return new Promise(t=>{const s=a.get(e);s.onsuccess=()=>{if(s.result&&s.result.content&&""!==s.result.content.trim()){let e;e="json"===i?JSON.parse(s.result.content):s.result.content,t(e)}t(null)}})}async _saveToCacheWorker(e,t){this.idb.transaction(["cache"],"readwrite").objectStore("cache").put({name:e,content:t})}async _deleteFromCacheWorker(e){this.idb.transaction(["cache"],"readwrite").objectStore("cache").delete(e)}async deleteCache(){var e=this.getDatabaseName();indexedDB.deleteDatabase(e)}async cleanUpOldDatabases(){if(indexedDB.databases){const a=this.getDatabaseName();return indexedDB.databases().then(e=>{e=e.map(i=>new Promise((s,e)=>{if(i.name!==a){const t=indexedDB.open(i.name);t.onsuccess=async e=>{e=e.target.result;if(await this._getFromCacheWorker(this.buildUuidCacheId,"text",e)!==this.buildUUID){const t=indexedDB.deleteDatabase(i.name);t.onsuccess=()=>{s("deleted "+i.name)},t.onerror=e=>{s(`error ${i.name} `+e)}}else s("ignored "+i.name)},t.onerror=e=>{s(`error ${i.name}, `+e)},t.onblocked=()=>{s("blocked "+i.name)}}else s(`ignored ${i.name} (this)`)}));Promise.all(e).then(console.log).catch(console.error)})}}cyrb53(s,e=0){let i=3735928559^e,a=1103547991^e;for(let e=0,t;e<s.length;e++)t=s.charCodeAt(e),i=Math.imul(i^t,2654435761),a=Math.imul(a^t,1597334677);return i=Math.imul(i^i>>>16,2246822507)^Math.imul(a^a>>>13,3266489909),a=Math.imul(a^a>>>16,2246822507)^Math.imul(i^i>>>13,3266489909),4294967296*(2097151&a)+(i>>>0)}getDatabaseName(){if(!this.databaseName){let e="no-config";this.config&&(e=this.cyrb53(JSON.stringify(this.config))),this.databaseName=this.cacheBase+"-"+e}return this.databaseName}async establishDBCache(e){if(this.indexedDBAvailable)return this.idb||new Promise((t,s)=>{var e=this.getDatabaseName(),e=indexedDB.open(e,this.dbVersion);e.onupgradeneeded=e=>{this.idb=e.target.result,this.idb.objectStoreNames.contains("cache")||this.idb.createObjectStore("cache",{keyPath:"name"})},e.onsuccess=async e=>{this.idb=e.target.result;e=await this._getFromCacheWorker(this.buildUuidCacheId);e?e!==this.buildUUID&&(console.log("cache id stale, rebuilding...."),this.cleanUpOldDatabases(),new Date,this._deleteFromCacheWorker(this.cssCacheId),this._deleteFromCacheWorker(this.lookupCacheId),this._saveToCacheWorker(this.buildUuidCacheId,this.buildUUID),this._saveToCacheWorker(this.configCacheId,JSON.stringify(this.config))):(new Date,this._saveToCacheWorker(this.buildUuidCacheId,this.buildUUID),this._saveToCacheWorker(this.configCacheId,JSON.stringify(this.config))),t()},e.onerror=e=>{console.log("onerror!"),console.dir(e),s()}});console.log("This browser does NOT support IDB")}async buildCss(){var e=await this.getFromCache(this.cssCacheId,"text"),t=await this.getFromCache(this.lookupCacheId,"json");let s="not found";if(e&&t)s=`/*
2
2
  `,s+=`* Cached CSS
3
3
  `,s+=`* CACHE: IndexedDB
4
4
  `,s+=`*/
Binary file