diff --git a/packages/components/assets/codicons/codicon.css b/packages/components/assets/codicons/codicon.css index 7a161449ab..739be06ee4 100644 --- a/packages/components/assets/codicons/codicon.css +++ b/packages/components/assets/codicons/codicon.css @@ -6,7 +6,7 @@ @font-face { font-family: "codicon"; font-display: block; - src: url("./codicon.ttf?2ab61cbaefbdf4c7c5589068100bee0c") format("truetype"); + src: url("./codicon.ttf?be64b7213e352cd7f91ef58198e71237") format("truetype"); } .codicon[class*='codicon-'] { @@ -72,6 +72,7 @@ .codicon-record-keys:before { content: "\ea65" } .codicon-keyboard:before { content: "\ea65" } .codicon-tag:before { content: "\ea66" } +.codicon-git-pull-request-label:before { content: "\ea66" } .codicon-tag-add:before { content: "\ea66" } .codicon-tag-remove:before { content: "\ea66" } .codicon-person:before { content: "\ea67" } @@ -264,6 +265,7 @@ .codicon-diff-removed:before { content: "\eadf" } .codicon-diff-renamed:before { content: "\eae0" } .codicon-diff:before { content: "\eae1" } +.codicon-diff-sidebyside:before { content: "\eae1" } .codicon-discard:before { content: "\eae2" } .codicon-editor-layout:before { content: "\eae3" } .codicon-empty-window:before { content: "\eae4" } @@ -327,6 +329,7 @@ .codicon-megaphone:before { content: "\eb1e" } .codicon-mention:before { content: "\eb1f" } .codicon-milestone:before { content: "\eb20" } +.codicon-git-pull-request-milestone:before { content: "\eb20" } .codicon-mortar-board:before { content: "\eb21" } .codicon-move:before { content: "\eb22" } .codicon-multiple-windows:before { content: "\eb23" } @@ -452,9 +455,11 @@ .codicon-menu:before { content: "\eb94" } .codicon-expand-all:before { content: "\eb95" } .codicon-feedback:before { content: "\eb96" } +.codicon-git-pull-request-reviewer:before { content: "\eb96" } .codicon-group-by-ref-type:before { content: "\eb97" } .codicon-ungroup-by-ref-type:before { content: "\eb98" } .codicon-account:before { content: "\eb99" } +.codicon-git-pull-request-assignee:before { content: "\eb99" } .codicon-bell-dot:before { content: "\eb9a" } .codicon-debug-console:before { content: "\eb9b" } .codicon-library:before { content: "\eb9c" } @@ -568,7 +573,11 @@ .codicon-blank:before { content: "\ec03" } .codicon-heart-filled:before { content: "\ec04" } .codicon-map:before { content: "\ec05" } +.codicon-map-horizontal:before { content: "\ec05" } +.codicon-fold-horizontal:before { content: "\ec05" } .codicon-map-filled:before { content: "\ec06" } +.codicon-map-horizontal-filled:before { content: "\ec06" } +.codicon-fold-horizontal-filled:before { content: "\ec06" } .codicon-circle-small:before { content: "\ec07" } .codicon-bell-slash:before { content: "\ec08" } .codicon-bell-slash-dot:before { content: "\ec09" } @@ -580,3 +589,47 @@ .codicon-send:before { content: "\ec0f" } .codicon-sparkle:before { content: "\ec10" } .codicon-insert:before { content: "\ec11" } +.codicon-mic:before { content: "\ec12" } +.codicon-thumbsdown-filled:before { content: "\ec13" } +.codicon-thumbsup-filled:before { content: "\ec14" } +.codicon-coffee:before { content: "\ec15" } +.codicon-snake:before { content: "\ec16" } +.codicon-game:before { content: "\ec17" } +.codicon-vr:before { content: "\ec18" } +.codicon-chip:before { content: "\ec19" } +.codicon-piano:before { content: "\ec1a" } +.codicon-music:before { content: "\ec1b" } +.codicon-mic-filled:before { content: "\ec1c" } +.codicon-repo-fetch:before { content: "\ec1d" } +.codicon-copilot:before { content: "\ec1e" } +.codicon-lightbulb-sparkle:before { content: "\ec1f" } +.codicon-robot:before { content: "\ec20" } +.codicon-sparkle-filled:before { content: "\ec21" } +.codicon-diff-single:before { content: "\ec22" } +.codicon-diff-multiple:before { content: "\ec23" } +.codicon-surround-with:before { content: "\ec24" } +.codicon-share:before { content: "\ec25" } +.codicon-git-stash:before { content: "\ec26" } +.codicon-git-stash-apply:before { content: "\ec27" } +.codicon-git-stash-pop:before { content: "\ec28" } +.codicon-vscode:before { content: "\ec29" } +.codicon-vscode-insiders:before { content: "\ec2a" } +.codicon-code-oss:before { content: "\ec2b" } +.codicon-run-coverage:before { content: "\ec2c" } +.codicon-run-all-coverage:before { content: "\ec2d" } +.codicon-coverage:before { content: "\ec2e" } +.codicon-github-project:before { content: "\ec2f" } +.codicon-map-vertical:before { content: "\ec30" } +.codicon-fold-vertical:before { content: "\ec30" } +.codicon-map-vertical-filled:before { content: "\ec31" } +.codicon-fold-vertical-filled:before { content: "\ec31" } +.codicon-go-to-search:before { content: "\ec32" } +.codicon-percentage:before { content: "\ec33" } +.codicon-sort-percentage:before { content: "\ec33" } +.codicon-attach:before { content: "\ec34" } +.codicon-go-to-editing-session:before { content: "\ec35" } +.codicon-edit-session:before { content: "\ec36" } +.codicon-code-review:before { content: "\ec37" } +.codicon-copilot-warning:before { content: "\ec38" } +.codicon-python:before { content: "\ec39" } +.codicon-git-fetch:before { content: "\f101" } diff --git a/packages/components/assets/codicons/codicon.csv b/packages/components/assets/codicons/codicon.csv index 1c8600cc0c..9ff6867799 100644 --- a/packages/components/assets/codicons/codicon.csv +++ b/packages/components/assets/codicons/codicon.csv @@ -17,6 +17,7 @@ arrow-small-right,,EA9F arrow-small-up,,EAA0 arrow-swap,,EBCB arrow-up,,EAA1 +attach,,EC34 azure-devops,,EBE8 azure,,EBD8 beaker-stop,,EBE1 @@ -46,6 +47,7 @@ chevron-down,,EAB4 chevron-left,,EAB5 chevron-right,,EAB6 chevron-up,,EAB7 +chip,,EC19 chrome-close,,EAB8 chrome-maximize,,EAB9 chrome-minimize,,EABA @@ -65,7 +67,10 @@ close,,EA76 cloud-download,,EAC2 cloud-upload,,EAC3 cloud,,EBAA +code-oss,,EC2B +code-review,,EC37 code,,EAC4 +coffee,,EC15 collapse-all,,EAC5 color-mode,,EAC6 combine,,EBB6 @@ -76,7 +81,10 @@ comment,,EA6B compass-active,,EBD7 compass-dot,,EBD6 compass,,EBD5 +copilot-warning,,EC38 +copilot,,EC1E copy,,EBCC +coverage,,EC2E credit-card,,EAC9 dash,,EACC dashboard,,EACD @@ -120,10 +128,13 @@ device-mobile,,EADB diff-added,,EADC diff-ignored,,EADD diff-modified,,EADE +diff-multiple,,EC23 diff-removed,,EADF diff-renamed,,EAE0 +diff-single,,EC22 diff,,EAE1 discard,,EAE2 +edit-session,,EC36 edit,,EA73 editor-layout,,EAE3 ellipsis,,EA7C @@ -157,11 +168,13 @@ folder-active,,EAF6 folder-library,,EBDF folder-opened,,EAF7 folder,,EA83 +game,,EC17 gear,,EAF8 gift,,EAF9 gist-secret,,EAFA git-commit,,EAFC git-compare,,EAFD +git-fetch,,F101 git-merge,,EAFE git-pull-request-closed,,EBDA git-pull-request-create,,EBBC @@ -169,12 +182,18 @@ git-pull-request-draft,,EBDB git-pull-request-go-to-changes,,EC0B git-pull-request-new-changes,,EC0C git-pull-request,,EA64 +git-stash-apply,,EC27 +git-stash-pop,,EC28 +git-stash,,EC26 github-action,,EAFF github-alt,,EB00 github-inverted,,EBA1 +github-project,,EC2F github,,EA84 globe,,EB01 +go-to-editing-session,,EC35 go-to-file,,EA94 +go-to-search,,EC32 grabber,,EB02 graph-left,,EBAD graph-line,,EBE2 @@ -223,6 +242,7 @@ layout-statusbar,,EBF5 layout,,EBEB library,,EB9C lightbulb-autofix,,EB13 +lightbulb-sparkle,,EC1F lightbulb,,EA61 link-external,,EB14 link,,EB15 @@ -241,17 +261,22 @@ magnet,,EBAE mail-read,,EB1B mail,,EB1C map-filled,,EC06 +map-vertical-filled,,EC31 +map-vertical,,EC30 map,,EC05 markdown,,EB1D megaphone,,EB1E mention,,EB1F menu,,EB94 merge,,EBAB +mic-filled,,EC1C +mic,,EC12 milestone,,EB20 mirror,,EA69 mortar-board,,EB21 move,,EB22 multiple-windows,,EB23 +music,,EC1B mute,,EB24 new-file,,EA7F new-folder,,EA80 @@ -268,8 +293,10 @@ package,,EB29 paintcan,,EB2A pass-filled,,EBB3 pass,,EBA4 +percentage,,EC33 person-add,,EBCD person,,EA67 +piano,,EC1A pie-chart,,EBE4 pin,,EB2B pinned-dirty,,EBB2 @@ -282,6 +309,7 @@ preview,,EB2F primitive-square,,EA72 project,,EB30 pulse,,EB31 +python,,EC39 question,,EB32 quote,,EB33 radio-tower,,EB34 @@ -300,6 +328,7 @@ replace-all,,EB3C replace,,EB3D reply,,EA7D repo-clone,,EB3E +repo-fetch,,EC1D repo-force-push,,EB3F repo-forked,,EA63 repo-pull,,EB40 @@ -307,14 +336,17 @@ repo-push,,EB41 repo,,EA62 report,,EB42 request-changes,,EB43 +robot,,EC20 rocket,,EB44 root-folder-opened,,EB45 root-folder,,EB46 rss,,EB47 ruby,,EB48 run-above,,EBBD +run-all-coverage,,EC2D run-all,,EB9E run-below,,EBBE +run-coverage,,EC2C run-errors,,EBDE save-all,,EB49 save-as,,EB4A @@ -330,12 +362,15 @@ server-process,,EBA2 server,,EB50 settings-gear,,EB51 settings,,EB52 +share,,EC25 shield,,EB53 sign-in,,EA6F sign-out,,EA6E smiley,,EB54 +snake,,EC16 sort-precedence,,EB55 source-control,,EA68 +sparkle-filled,,EC21 sparkle,,EC10 split-horizontal,,EB56 split-vertical,,EB57 @@ -344,6 +379,7 @@ star-empty,,EA6A star-full,,EB59 star-half,,EB5A stop-circle,,EBA5 +surround-with,,EC24 symbol-array,,EA8A symbol-boolean,,EA8F symbol-class,,EB5B @@ -386,7 +422,9 @@ terminal-ubuntu,,EBC9 terminal,,EA85 text-size,,EB69 three-bars,,EB6A +thumbsdown-filled,,EC13 thumbsdown,,EB6B +thumbsup-filled,,EC14 thumbsup,,EB6C tools,,EB6D trash,,EA81 @@ -412,6 +450,9 @@ vm-connect,,EBA9 vm-outline,,EB7A vm-running,,EB7B vm,,EA7A +vr,,EC18 +vscode-insiders,,EC2A +vscode,,EC29 wand,,EBCF warning,,EA6C watch,,EB7C diff --git a/packages/components/assets/codicons/codicon.html b/packages/components/assets/codicons/codicon.html index 609529d134..d883dd2483 100644 --- a/packages/components/assets/codicons/codicon.html +++ b/packages/components/assets/codicons/codicon.html @@ -297,6 +297,14 @@

codicon

arrow-up +
+ + + +
+ attach + +
@@ -529,6 +537,14 @@

codicon

chevron-up
+
+ + + +
+ chip + +
@@ -681,6 +697,22 @@

codicon

cloud
+
+ + + +
+ code-oss + +
+
+ + + +
+ code-review + +
@@ -689,6 +721,14 @@

codicon

code
+
+ + + +
+ coffee + +
@@ -769,6 +809,22 @@

codicon

compass
+
+ + + +
+ copilot-warning + +
+
+ + + +
+ copilot + +
@@ -777,6 +833,14 @@

codicon

copy
+
+ + + +
+ coverage + +
@@ -1121,6 +1185,14 @@

codicon

diff-modified
+
+ + + +
+ diff-multiple + +
@@ -1137,6 +1209,14 @@

codicon

diff-renamed
+
+ + + +
+ diff-single + +
@@ -1153,6 +1233,14 @@

codicon

discard
+
+ + + +
+ edit-session + +
@@ -1417,6 +1505,14 @@

codicon

folder
+
+ + + +
+ game + +
@@ -1465,6 +1561,14 @@

codicon

git-compare
+
+ + + +
+ git-fetch + +
@@ -1521,6 +1625,30 @@

codicon

git-pull-request
+
+ + + +
+ git-stash-apply + +
+
+ + + +
+ git-stash-pop + +
+
+ + + +
+ git-stash + +
@@ -1545,6 +1673,14 @@

codicon

github-inverted
+
+ + + +
+ github-project + +
@@ -1561,6 +1697,14 @@

codicon

globe
+
+ + + +
+ go-to-editing-session + +
@@ -1569,6 +1713,14 @@

codicon

go-to-file
+
+ + + +
+ go-to-search + +
@@ -1953,6 +2105,14 @@

codicon

lightbulb-autofix
+
+ + + +
+ lightbulb-sparkle + +
@@ -2097,6 +2257,22 @@

codicon

map-filled
+
+ + + +
+ map-vertical-filled + +
+
+ + + +
+ map-vertical + +
@@ -2145,6 +2321,22 @@

codicon

merge
+
+ + + +
+ mic-filled + +
+
+ + + +
+ mic + +
@@ -2185,6 +2377,14 @@

codicon

multiple-windows
+
+ + + +
+ music + +
@@ -2313,6 +2513,14 @@

codicon

pass
+
+ + + +
+ percentage + +
@@ -2329,6 +2537,14 @@

codicon

person
+
+ + + +
+ piano + +
@@ -2425,6 +2641,14 @@

codicon

pulse
+
+ + + +
+ python + +
@@ -2569,6 +2793,14 @@

codicon

repo-clone
+
+ + + +
+ repo-fetch + +
@@ -2625,6 +2857,14 @@

codicon

request-changes
+
+ + + +
+ robot + +
@@ -2673,6 +2913,14 @@

codicon

run-above
+
+ + + +
+ run-all-coverage + +
@@ -2689,6 +2937,14 @@

codicon

run-below
+
+ + + +
+ run-coverage + +
@@ -2809,6 +3065,14 @@

codicon

settings
+
+ + + +
+ share + +
@@ -2841,6 +3105,14 @@

codicon

smiley
+
+ + + +
+ snake + +
@@ -2857,6 +3129,14 @@

codicon

source-control
+
+ + + +
+ sparkle-filled + +
@@ -2921,6 +3201,14 @@

codicon

stop-circle
+
+ + + +
+ surround-with + +
@@ -3257,6 +3545,14 @@

codicon

three-bars
+
+ + + +
+ thumbsdown-filled + +
@@ -3265,6 +3561,14 @@

codicon

thumbsdown
+
+ + + +
+ thumbsup-filled + +
@@ -3465,6 +3769,30 @@

codicon

vm
+
+ + + +
+ vr + +
+
+ + + +
+ vscode-insiders + +
+
+ + + +
+ vscode + +
diff --git a/packages/components/assets/codicons/codicon.svg b/packages/components/assets/codicons/codicon.svg index 7f1b6ec25a..141bbdd3ae 100644 --- a/packages/components/assets/codicons/codicon.svg +++ b/packages/components/assets/codicons/codicon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/components/assets/codicons/codicon.ttf b/packages/components/assets/codicons/codicon.ttf index ea2309d11d..4a4d15cc2d 100644 Binary files a/packages/components/assets/codicons/codicon.ttf and b/packages/components/assets/codicons/codicon.ttf differ diff --git a/packages/components/src/assets/@leanup/forms/bundle.js b/packages/components/src/assets/@leanup/forms/bundle.js deleted file mode 100644 index 75f3c4eae4..0000000000 --- a/packages/components/src/assets/@leanup/forms/bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(n,w){typeof exports=="object"&&typeof module!="undefined"?w(exports):typeof define=="function"&&define.amd?define(["exports"],w):(n=typeof globalThis!="undefined"?globalThis:n||self,w(n.LeanUpForm={}))})(this,function(n){"use strict";var w=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},f={exports:{}};(function(r){(function(e,t){r.exports?r.exports=t():e.log=t()})(w,function(){var e=function(){},t="undefined",s=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"];function E(a,d){var h=a[d];if(typeof h.bind=="function")return h.bind(a);try{return Function.prototype.bind.call(h,a)}catch(l){return function(){return Function.prototype.apply.apply(h,[a,arguments])}}}function te(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function re(a){return a==="debug"&&(a="log"),typeof console===t?!1:a==="trace"&&s?te:console[a]!==void 0?E(console,a):console.log!==void 0?E(console,"log"):e}function k(a,d){for(var h=0;h=0&&i<=l.levels.SILENT){if(B=i,m!==!1&&oe(i),k.call(l,i,a),typeof console===t&&i=t}static isObject(e){return typeof e=="object"&&e!==null&&this.isArray(e)===!1}static isString(e,t=0){return typeof e=="string"&&e.length>=t}}const O=[];function W(){return"$$NODE_ENV$$"}class g{constructor(){}static log(e,t){switch(y.isObject(t.refObject)&&typeof t.refObject.constructor=="function"&&y.isString(t.refObject.constructor.name)&&(t.className=`[${t.refObject.constructor.name}]:`),O.push({date:new Date().toUTCString(),level:e,message:t}),e){case"trace":f.exports.trace(t);break;case"debug":f.exports.debug(t);break;case"info":f.exports.info(t);break;case"warn":f.exports.warn(t);break;case"error":f.exports.error(t)}}static trace(e,t){return this.log("trace",{messageText:e,refObject:t}),this}static debug(e,t){return this.log("debug",{messageText:e,refObject:t}),this}static info(e,t){return this.log("info",{messageText:e,refObject:t}),this}static warn(e,t){return this.log("warn",{messageText:e,refObject:t}),this}static error(e,t){return this.log("error",{messageText:e,refObject:t}),this}static get cache(){return[].concat(O)}}switch(g._instance=null,W()){case"development":f.exports.setDefaultLevel("trace");break;case"test":f.exports.setDefaultLevel("warn");break;case"production":f.exports.setDefaultLevel("error")}function Z(r,e){return y.isArray(r)?r.find(t=>e instanceof t)!==void 0:!1}function R(r){return r instanceof b?r.get():Array.isArray(r)?r:[r]}class b{constructor(e){this._instancesOf=[],this._items=[],this._protectedItems=[],this._instancesOf=Array.isArray(e)?e:[e]}get empty(){return this._items.length===0}get first(){return this._items.length>0?this._items[0]:null}forEach(e){this._items.forEach(e)}filter(e){return this._items.filter(e)}find(e){return this._items.find(e)}get last(){return this._items.length>0?this._items[this._items.length-1]:null}get length(){return this._items.length}add(e,t=!1){return R(e).filter(s=>{let o=!1;return this.contains(s)===!1?Z(this._instancesOf,s)?(t&&this._protectedItems.push(s),this._items.push(s),o=!0):g.debug("The item does not have a valid instance type.",this):g.debug("The item is already in the list.",this),o}).length>0}remove(e){return R(e).filter(t=>{let s=!1,o=this._protectedItems.indexOf(t);return o===-1?(o=this._items.indexOf(t),o>=0?(this._items.splice(o,1),s=!0):g.debug("The item is not in the list.",this)):g.debug("The item is protected and cannot be removed.",this),s}).length>0}set(e,t=!1){const s=this.clear(),o=this.add(e,t);return s||o}get(e){return isNaN(e)===!1&&typeof e=="number"?this._items.slice(0,e):this._items}clear(){const e=this._items.length;return this._items=this._items.filter(t=>this._protectedItems.indexOf(t)>=0),e!==this._items.length}contains(e){return this._items.indexOf(e)>-1}}class V{}class N{constructor(){this.formatters=new b(V)}format(e){return this.formatters.forEach(t=>{e=t.format(e)}),e}parse(e){return this.formatters.forEach(t=>{e=t.parse(e)}),e}}class v{constructor(e){this.state={message:"Ein unbekannter Fehler ist aufgetreten."},this.message=e}set message(e){y.isString(e,1)?this.state.message=e:g.debug("")}get message(){return this.state.message}}class S{constructor(){this.validators=new b(v)}validate(e,t=!1){const s=[];try{this.validators.forEach(o=>{if(o.isValid(e)===!1&&(s.push(o.message),t===!0))throw new Error("Only one error is enough. Be quick and stop the execution of other validation functions.")})}catch(o){}return s}}class F{constructor(e){this.changeListeners=new b(Function),this._errors=new Set,this._parentForms=[],this._name="unnamed",this._validationHandler=new S,this._notifyTimeout=setTimeout(()=>{},0),this.name=e}get name(){return this._name}set name(e){if(typeof e=="string")if(e.length>0)this._name=e;else throw new Error("The name of a control must have a min-length of 1.");else throw new Error("The name of a control must be a string.")}get error(){return this._errors.size>0?this._errors.values().next().value:null}getErrors(){return this._errors}get id(){let e=this.name;return this._parentForms.length>0&&(e=`${this._parentForms[0].id}_${e}`),e}get valid(){return this._errors.size===0}es5isValid(){return this._errors.size===0}findMeInParentForm(e){if(this===e)return!0;if(e instanceof p){const t=[];return this._parentForms.forEach(s=>{s.findMeInParentForm(e)===!0&&t.push(s)}),t.length>0}else return!1}addParentForm(e){if(this._parentForms.includes(e)===!1)if(e.findMeInParentForm(this)===!1)this._parentForms.push(e);else throw new Error(`The same form control (${e.name}) leads to a form control loop.`);else throw new Error(`An form control with the name '${e.name}' already exists.`)}removeParentForm(e){const t=this._parentForms.indexOf(e);if(t>=0)this._parentForms.splice(t,1);else throw new Error(`An form control with the name '${e.name}' does not exists.`)}setValidationHandler(e,t=null){this._validationHandler=e,this.validate(t)}validate(e){this._errors.clear(),this._validationHandler.validate(e).forEach(s=>{this._errors.add(s)}),this._parentForms.forEach(s=>{s.validate(e)})}notify(){this._notifyTimeout&&clearTimeout(this._notifyTimeout),this._notifyTimeout=setTimeout(()=>{this.changeListeners.forEach(e=>{e()})},0)}}n.InputControlTypes=void 0,function(r){r.checkbox="checkbox",r.date="date",r.email="email",r.number="number",r.password="password",r.radio="radio",r.select="select",r.slider="slider",r.text="text"}(n.InputControlTypes||(n.InputControlTypes={}));class T extends F{constructor(e,t){super(e);this._disabled=!1,this._info="",this._label="",this._mandatory=!1,this._placeholder="",this._readonly=!1,this._type="text",this._value=null,this._oldValue=null,this._valueTimeout=setTimeout(()=>{},0),this._formatHandler=new N,t&&(this.info=t.info?t.info:"",this.label=t.label?t.label:"",this.disabled=t.disabled?t.disabled:!1,this.mandatory=t.mandatory?t.mandatory:!1,this.readonly=t.readonly?t.readonly:!1,this.placeholder=t.placeholder?t.placeholder:"",this.type=t.type?t.type:"text",this.value=t.value?t.value:null)}get info(){return this._info}set info(e){if(typeof e=="string")this._info=e,this.notify();else throw new Error("The info of a input control must be a string.")}get disabled(){return this._disabled}set disabled(e){if(typeof e=="boolean")this._disabled=e,this.notify();else throw new Error("The disabled flag of a input control must be a string.")}get mandatory(){return this._mandatory}set mandatory(e){if(typeof e=="boolean")this._mandatory=e,this.notify();else throw new Error("The mandatory flag of a input control must be a string.")}get readonly(){return this._readonly}set readonly(e){if(typeof e=="boolean")this._readonly=e,this.notify();else throw new Error("The readonly flag of a input control must be a string.")}get label(){return this._label}set label(e){if(typeof e=="string")this._label=e,this.notify();else throw new Error("The label of a input control must be a string.")}get placeholder(){return this._placeholder}set placeholder(e){if(typeof e=="string")this._placeholder=e,this.notify();else throw new Error("The placeholder of a input control must be a string.")}get type(){return this._type.toString()}set type(e){if(typeof e=="string")switch(e){case"checkbox":case"date":case"email":case"number":case"password":case"radio":case"select":case"slider":case"text":this._type=e,this.notify();break;default:throw new Error("The type of a input control must be a of the following types: ???.")}else throw new Error("The type of a input control must be a string.")}get oldValue(){return this._oldValue}get value(){return this._value}set value(e){this._valueTimeout&&clearTimeout(this._valueTimeout),this._valueTimeout=setTimeout(()=>{this.validate(e),this._oldValue=this._value,this._value=e,this.notify()},0)}get modelValue(){return this.value}set modelValue(e){this.value=e}get viewValue(){return this._formatHandler.format(this.modelValue)}set viewValue(e){this.modelValue=this._formatHandler.parse(e)}setValidationHandler(e){super.setValidationHandler(e,this.value)}setFormatHandler(e){this._formatHandler=e}}class p extends F{constructor(){super(...arguments);this.controls=new b([p,T])}get disabled(){return this.controls.filter(e=>e.disabled===!1).length===0}set disabled(e){this.controls.forEach(t=>{t.disabled=e})}get readonly(){return this.controls.filter(e=>e.readonly===!1).length===0}set readonly(e){this.controls.forEach(t=>{t.readonly=e})}get valid(){return this.es5isValid()&&this.controls.filter(e=>e.valid===!1).length===0}addConrol(e){if(this.controls.contains(e)===!1)e.addParentForm(this),this.controls.add(e);else throw new Error(`A control with the same name '${e.name}' already exists.`)}removeControl(e){if(this.controls.contains(e)===!0)e instanceof F&&(e.removeParentForm(this),this.controls.remove(e));else throw new Error(`A control with the name '${e.name}' does not exists.`)}getControls(){return this.controls.get()}getControl(e){return this.controls.find(t=>t.name===e)}setData(e){console.log("FormControl.setData is currently not implemented.")}getData(){const e={};return this.controls.forEach(t=>{if(t instanceof p)e[t.name]=t.getData();else if(t instanceof T)e[t.name]=t.value;else throw new Error("The control is neither an instance of FormControl or InputControl.")}),e}setValidationHandler(e){super.setValidationHandler(e)}}class I{static createForm(e,t){const s=new p(e);for(const o in t)if(t.hasOwnProperty(o))if(typeof t[o]=="object"&&t[o]!==null)s.addConrol(I.createForm(o,t[o]));else{const E=new T(o);E.value=t[o],s.addConrol(E)}return s}}class C extends V{constructor(){super(...arguments);this.regExp=/([A-Z0-9]{1,4})/gi}format(e){if(typeof e=="string"){const t=e.match(this.regExp);if(Array.isArray(t))return t==null?void 0:t.join(" ")}return e}parse(e){return typeof e=="string"?e.replace(/ /g,""):e}}const q=new C;class M extends v{constructor(e="Bitte tragen Sie einen Wert ein."){super(e)}isValid(e){return e!=null&&e.toString().length>0}}const P=new M;class _ extends v{isValid(e){return P.isValid(e)===!1||this.validate(e)}}class A extends _{constructor(e,t="Bitte tragen Sie einen g\xFCltigen Wert ein."){super(t);this._regExp=/^/g,this.regExp=e}set regExp(e){e instanceof RegExp?this._regExp=e:g.debug("The regExp of the pattern validator should be type of RegExp.")}get regExp(){return this._regExp}validate(e){return this.regExp.test(e)}}class j extends A{validate(e){return super.validate(e)===!1}}const H=/^\d+$/;class U extends A{constructor(e="Der Wert ist keine Zahl."){super(H,e)}}const X=new U,$=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;class Q extends A{constructor(e="Die E-Mail-Adresse hat nicht das richtige Format."){super($,e)}}class K extends _{constructor(e="Bitte best\xE4tigen Sie."){super(e)}validate(e){return e===!0}}class Y extends _{constructor(e,t=`Die Eingabe darf nicht l\xE4nger als ${e} Zeichen sein.`){super(t);this.maxLength=e}validate(e){return y.isString(e)&&e.length<=this.maxLength}}class J extends _{constructor(e,t=`Die Eingabe darf nicht k\xFCrzer als ${e} Zeichen sein.`){super(t);this.minLength=e}validate(e){return y.isString(e)&&e.length>=this.minLength}}class ee extends _{constructor(e,t){super(t);this.validator=e}validate(e){return this.validator.isValid(e)===!1}}n.AbstractFormatter=V,n.AbstractValidator=v,n.DEFAULT_DIGITS_VALIDATOR=X,n.DEFAULT_IBAN_FORMATTER=q,n.DEFAULT_REQUIRED_VALIDATOR=P,n.DIGITS_VALIDATION_REGEXP=H,n.DigitsValidator=U,n.EMAIL_VALIDATION_REGEXP=$,n.EmailValidator=Q,n.FormControl=p,n.FormFactory=I,n.FormatHandler=N,n.IbanFormatter=C,n.InputControl=T,n.IsTrueValidator=K,n.MaxLengthValidator=Y,n.MinLengthValidator=J,n.NonRequiredValidator=_,n.NotPatternValidator=j,n.NotValidator=ee,n.PatternValidator=A,n.RequiredValidator=M,n.ValidationHandler=S,Object.defineProperty(n,"__esModule",{value:!0})}); -//# sourceMappingURL=bundle.js.map diff --git a/packages/components/src/assets/@leanup/forms/bundle.js.map b/packages/components/src/assets/@leanup/forms/bundle.js.map deleted file mode 100644 index 019524a029..0000000000 --- a/packages/components/src/assets/@leanup/forms/bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bundle.js","sources":["../node_modules/loglevel/lib/loglevel.js","../node_modules/@leanup/lib/helpers/validator.js","../node_modules/@leanup/lib/helpers/log.js","../node_modules/@leanup/lib/pattern/list-of.js","../src/handlers/formatters/abstract.formatter.ts","../src/handlers/format.handler.ts","../src/handlers/validators/abstract.validator.ts","../src/handlers/validation.handler.ts","../src/controls/controls.ts","../src/handlers/formatters/iban.formatter.ts","../src/handlers/validators/required.validator.ts","../src/handlers/validators/non-required.validator.ts","../src/handlers/validators/pattern.validator.ts","../src/handlers/validators/digits.validator.ts","../src/handlers/validators/email.validator.ts","../src/handlers/validators/is-true.validator.ts","../src/handlers/validators/max-length.validator.ts","../src/handlers/validators/min-length.validator.ts","../src/handlers/validators/not.validator.ts"],"sourcesContent":["/*\n* loglevel - https://github.com/pimterry/loglevel\n*\n* Copyright (c) 2013 Tim Perry\n* Licensed under the MIT license.\n*/\n(function (root, definition) {\n \"use strict\";\n if (typeof define === 'function' && define.amd) {\n define(definition);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = definition();\n } else {\n root.log = definition();\n }\n}(this, function () {\n \"use strict\";\n\n // Slightly dubious tricks to cut down minimized file size\n var noop = function() {};\n var undefinedType = \"undefined\";\n var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (\n /Trident\\/|MSIE /.test(window.navigator.userAgent)\n );\n\n var logMethods = [\n \"trace\",\n \"debug\",\n \"info\",\n \"warn\",\n \"error\"\n ];\n\n // Cross-browser bind equivalent that works at least back to IE6\n function bindMethod(obj, methodName) {\n var method = obj[methodName];\n if (typeof method.bind === 'function') {\n return method.bind(obj);\n } else {\n try {\n return Function.prototype.bind.call(method, obj);\n } catch (e) {\n // Missing bind shim or IE8 + Modernizr, fallback to wrapping\n return function() {\n return Function.prototype.apply.apply(method, [obj, arguments]);\n };\n }\n }\n }\n\n // Trace() doesn't print the message in IE, so for that case we need to wrap it\n function traceForIE() {\n if (console.log) {\n if (console.log.apply) {\n console.log.apply(console, arguments);\n } else {\n // In old IE, native console methods themselves don't have apply().\n Function.prototype.apply.apply(console.log, [console, arguments]);\n }\n }\n if (console.trace) console.trace();\n }\n\n // Build the best logging method possible for this env\n // Wherever possible we want to bind, not wrap, to preserve stack traces\n function realMethod(methodName) {\n if (methodName === 'debug') {\n methodName = 'log';\n }\n\n if (typeof console === undefinedType) {\n return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives\n } else if (methodName === 'trace' && isIE) {\n return traceForIE;\n } else if (console[methodName] !== undefined) {\n return bindMethod(console, methodName);\n } else if (console.log !== undefined) {\n return bindMethod(console, 'log');\n } else {\n return noop;\n }\n }\n\n // These private functions always need `this` to be set properly\n\n function replaceLoggingMethods(level, loggerName) {\n /*jshint validthis:true */\n for (var i = 0; i < logMethods.length; i++) {\n var methodName = logMethods[i];\n this[methodName] = (i < level) ?\n noop :\n this.methodFactory(methodName, level, loggerName);\n }\n\n // Define log.log as an alias for log.debug\n this.log = this.debug;\n }\n\n // In old IE versions, the console isn't present until you first open it.\n // We build realMethod() replacements here that regenerate logging methods\n function enableLoggingWhenConsoleArrives(methodName, level, loggerName) {\n return function () {\n if (typeof console !== undefinedType) {\n replaceLoggingMethods.call(this, level, loggerName);\n this[methodName].apply(this, arguments);\n }\n };\n }\n\n // By default, we use closely bound real methods wherever possible, and\n // otherwise we wait for a console to appear, and then try again.\n function defaultMethodFactory(methodName, level, loggerName) {\n /*jshint validthis:true */\n return realMethod(methodName) ||\n enableLoggingWhenConsoleArrives.apply(this, arguments);\n }\n\n function Logger(name, defaultLevel, factory) {\n var self = this;\n var currentLevel;\n\n var storageKey = \"loglevel\";\n if (typeof name === \"string\") {\n storageKey += \":\" + name;\n } else if (typeof name === \"symbol\") {\n storageKey = undefined;\n }\n\n function persistLevelIfPossible(levelNum) {\n var levelName = (logMethods[levelNum] || 'silent').toUpperCase();\n\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage[storageKey] = levelName;\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=\" + levelName + \";\";\n } catch (ignore) {}\n }\n\n function getPersistedLevel() {\n var storedLevel;\n\n if (typeof window === undefinedType || !storageKey) return;\n\n try {\n storedLevel = window.localStorage[storageKey];\n } catch (ignore) {}\n\n // Fallback to cookies if local storage gives us nothing\n if (typeof storedLevel === undefinedType) {\n try {\n var cookie = window.document.cookie;\n var location = cookie.indexOf(\n encodeURIComponent(storageKey) + \"=\");\n if (location !== -1) {\n storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1];\n }\n } catch (ignore) {}\n }\n\n // If the stored level is not valid, treat it as if nothing was stored.\n if (self.levels[storedLevel] === undefined) {\n storedLevel = undefined;\n }\n\n return storedLevel;\n }\n\n /*\n *\n * Public logger API - see https://github.com/pimterry/loglevel for details\n *\n */\n\n self.name = name;\n\n self.levels = { \"TRACE\": 0, \"DEBUG\": 1, \"INFO\": 2, \"WARN\": 3,\n \"ERROR\": 4, \"SILENT\": 5};\n\n self.methodFactory = factory || defaultMethodFactory;\n\n self.getLevel = function () {\n return currentLevel;\n };\n\n self.setLevel = function (level, persist) {\n if (typeof level === \"string\" && self.levels[level.toUpperCase()] !== undefined) {\n level = self.levels[level.toUpperCase()];\n }\n if (typeof level === \"number\" && level >= 0 && level <= self.levels.SILENT) {\n currentLevel = level;\n if (persist !== false) { // defaults to true\n persistLevelIfPossible(level);\n }\n replaceLoggingMethods.call(self, level, name);\n if (typeof console === undefinedType && level < self.levels.SILENT) {\n return \"No console available for logging\";\n }\n } else {\n throw \"log.setLevel() called with invalid level: \" + level;\n }\n };\n\n self.setDefaultLevel = function (level) {\n if (!getPersistedLevel()) {\n self.setLevel(level, false);\n }\n };\n\n self.enableAll = function(persist) {\n self.setLevel(self.levels.TRACE, persist);\n };\n\n self.disableAll = function(persist) {\n self.setLevel(self.levels.SILENT, persist);\n };\n\n // Initialize with the right level\n var initialLevel = getPersistedLevel();\n if (initialLevel == null) {\n initialLevel = defaultLevel == null ? \"WARN\" : defaultLevel;\n }\n self.setLevel(initialLevel, false);\n }\n\n /*\n *\n * Top-level API\n *\n */\n\n var defaultLogger = new Logger();\n\n var _loggersByName = {};\n defaultLogger.getLogger = function getLogger(name) {\n if ((typeof name !== \"symbol\" && typeof name !== \"string\") || name === \"\") {\n throw new TypeError(\"You must supply a name when creating a logger.\");\n }\n\n var logger = _loggersByName[name];\n if (!logger) {\n logger = _loggersByName[name] = new Logger(\n name, defaultLogger.getLevel(), defaultLogger.methodFactory);\n }\n return logger;\n };\n\n // Grab the current global log variable in case of overwrite\n var _log = (typeof window !== undefinedType) ? window.log : undefined;\n defaultLogger.noConflict = function() {\n if (typeof window !== undefinedType &&\n window.log === defaultLogger) {\n window.log = _log;\n }\n\n return defaultLogger;\n };\n\n defaultLogger.getLoggers = function getLoggers() {\n return _loggersByName;\n };\n\n // ES6 default export, for compatibility\n defaultLogger['default'] = defaultLogger;\n\n return defaultLogger;\n}));\n","export class Validator {\n constructor() { }\n static isNumber(any) {\n return isNaN(any) === false && typeof any === 'number';\n }\n static isArray(any, minLength = 0) {\n return Array.isArray(any) && any.length >= minLength;\n }\n static isObject(any) {\n return typeof any === 'object' && any !== null && this.isArray(any) === false;\n }\n static isString(any, minLength = 0) {\n return typeof any === 'string' && any.length >= minLength;\n }\n}\n//# sourceMappingURL=validator.js.map","import * as log from 'loglevel';\nimport { Validator } from './validator';\nconst LOG_CACHE = [];\nfunction getEnvironment() {\n return '$$NODE_ENV$$';\n}\nexport class Log {\n constructor() { }\n static log(level, message) {\n if (Validator.isObject(message.refObject) &&\n typeof message.refObject.constructor === 'function' &&\n Validator.isString(message.refObject.constructor.name)) {\n message.className = `[${message.refObject.constructor.name}]:`;\n }\n LOG_CACHE.push({\n date: new Date().toUTCString(),\n level,\n message,\n });\n switch (level) {\n case 'trace':\n log.trace(message);\n break;\n case 'debug':\n log.debug(message);\n break;\n case 'info':\n log.info(message);\n break;\n case 'warn':\n log.warn(message);\n break;\n case 'error':\n log.error(message);\n }\n if (getEnvironment() === 'development' && level === 'error') {\n throw new Error(`Execution in development mode was canceled. See the error log above.`);\n }\n }\n static trace(messageText, refObject) {\n this.log('trace', { messageText, refObject });\n return this;\n }\n static debug(messageText, refObject) {\n this.log('debug', { messageText, refObject });\n return this;\n }\n static info(messageText, refObject) {\n this.log('info', { messageText, refObject });\n return this;\n }\n static warn(messageText, refObject) {\n this.log('warn', { messageText, refObject });\n return this;\n }\n static error(messageText, refObject) {\n this.log('error', { messageText, refObject });\n return this;\n }\n static get cache() {\n return [].concat(LOG_CACHE);\n }\n}\nLog._instance = null;\nswitch (getEnvironment()) {\n case 'development':\n log.setDefaultLevel('trace');\n break;\n case 'test':\n log.setDefaultLevel('warn');\n break;\n case 'production':\n log.setDefaultLevel('error');\n}\n//# sourceMappingURL=log.js.map","import { Log } from '../helpers/log';\nimport { Validator } from '../helpers/validator';\nfunction isInstanceOf(instancesOf, item) {\n if (Validator.isArray(instancesOf)) {\n return (instancesOf.find((instanceOf) => {\n return item instanceof instanceOf;\n }) !== undefined);\n }\n return false;\n}\nfunction normalizeListOfItems(items) {\n return (items instanceof ListOf ? items.get() : Array.isArray(items) ? items : [items]);\n}\nexport class ListOf {\n constructor(instancesOf) {\n this._instancesOf = [];\n this._items = [];\n this._protectedItems = [];\n this._instancesOf = (Array.isArray(instancesOf) ? instancesOf : [instancesOf]);\n }\n get empty() {\n return this._items.length === 0;\n }\n get first() {\n if (this._items.length > 0) {\n return this._items[0];\n }\n else {\n return null;\n }\n }\n forEach(action) {\n this._items.forEach(action);\n }\n filter(action) {\n return this._items.filter(action);\n }\n find(action) {\n return this._items.find(action);\n }\n get last() {\n if (this._items.length > 0) {\n return this._items[this._items.length - 1];\n }\n else {\n return null;\n }\n }\n get length() {\n return this._items.length;\n }\n add(items, protect = false) {\n return (normalizeListOfItems(items).filter((item) => {\n let changed = false;\n if (this.contains(item) === false) {\n if (isInstanceOf(this._instancesOf, item)) {\n if (protect) {\n this._protectedItems.push(item);\n }\n this._items.push(item);\n changed = true;\n }\n else {\n Log.debug(`The item does not have a valid instance type.`, this);\n }\n }\n else {\n Log.debug(`The item is already in the list.`, this);\n }\n return changed;\n }).length > 0);\n }\n remove(items) {\n return (normalizeListOfItems(items).filter((item) => {\n let changed = false;\n let index = this._protectedItems.indexOf(item);\n if (index === -1) {\n index = this._items.indexOf(item);\n if (index >= 0) {\n this._items.splice(index, 1);\n changed = true;\n }\n else {\n Log.debug(`The item is not in the list.`, this);\n }\n }\n else {\n Log.debug(`The item is protected and cannot be removed.`, this);\n }\n return changed;\n }).length > 0);\n }\n set(items, protect = false) {\n const cleared = this.clear();\n const added = this.add(items, protect);\n return cleared || added;\n }\n get(length) {\n return isNaN(length) === false && typeof length === 'number' ? this._items.slice(0, length) : this._items;\n }\n clear() {\n const length = this._items.length;\n this._items = this._items.filter((item) => {\n return this._protectedItems.indexOf(item) >= 0;\n });\n return length !== this._items.length;\n }\n contains(item) {\n return this._items.indexOf(item) > -1;\n }\n}\n//# sourceMappingURL=list-of.js.map","export abstract class AbstractFormatter {\r\n abstract format(value: unknown): unknown;\r\n abstract parse(value: unknown): unknown;\r\n}\r\n","import { ListOf } from '@leanup/lib/pattern/list-of';\n\nimport { AbstractFormatter } from './formatters/abstract.formatter';\n\nexport class FormatHandler {\n public readonly formatters: ListOf = new ListOf(AbstractFormatter);\n\n public format(value: unknown): unknown {\n this.formatters.forEach((formatter: AbstractFormatter) => {\n value = formatter.format(value);\n });\n return value;\n }\n public parse(value: unknown): unknown {\n this.formatters.forEach((formatter: AbstractFormatter) => {\n value = formatter.parse(value);\n });\n return value;\n }\n}\n","import { Log } from '@leanup/lib/helpers/log';\r\nimport { Validator } from '@leanup/lib/helpers/validator';\r\n\r\nexport abstract class AbstractValidator {\r\n private readonly state = {\r\n message: `Ein unbekannter Fehler ist aufgetreten.`,\r\n };\r\n\r\n constructor(message: string) {\r\n this.message = message;\r\n }\r\n\r\n set message(message: string) {\r\n if (Validator.isString(message, 1)) {\r\n this.state.message = message;\r\n } else {\r\n Log.debug(``);\r\n }\r\n }\r\n get message(): string {\r\n return this.state.message;\r\n }\r\n\r\n abstract isValid(value: any): boolean;\r\n}\r\n","import { ListOf } from '@leanup/lib/pattern/list-of';\n\nimport { AbstractValidator } from './validators/abstract.validator';\n\nexport class ValidationHandler {\n public readonly validators: ListOf = new ListOf(AbstractValidator);\n\n public validate(value: unknown, fast = false): string[] {\n const errors: string[] = [];\n try {\n this.validators.forEach((validator: AbstractValidator) => {\n if (validator.isValid(value) === false) {\n errors.push(validator.message);\n if (fast === true) {\n throw new Error(`Only one error is enough. Be quick and stop the execution of other validation functions.`);\n }\n }\n });\n } catch (error) {\n // be fast\n }\n return errors;\n }\n}\n","import { ListOf } from '@leanup/lib/pattern/list-of';\n\nimport { FormatHandler } from '../handlers/format.handler';\nimport { ValidationHandler } from '../handlers/validation.handler';\n\nabstract class AbstractControl {\n public readonly changeListeners: ListOf = new ListOf(Function);\n\n private readonly _errors: Set = new Set();\n private readonly _parentForms: FormControl[] = [];\n private _name = 'unnamed';\n private _validationHandler: ValidationHandler = new ValidationHandler();\n private _notifyTimeout: NodeJS.Timeout = setTimeout(() => {}, 0);\n\n constructor(name: string) {\n this.name = name;\n }\n\n get name(): string {\n return this._name;\n }\n set name(value: string) {\n if (typeof value === 'string') {\n if (value.length > 0) {\n this._name = value;\n } else {\n throw new Error('The name of a control must have a min-length of 1.');\n }\n } else {\n throw new Error('The name of a control must be a string.');\n }\n }\n\n get error(): string | null {\n if (this._errors.size > 0) {\n return this._errors.values().next().value;\n } else {\n return null;\n }\n }\n\n protected getErrors() {\n return this._errors;\n }\n\n get id(): string {\n let id = this.name;\n if (this._parentForms.length > 0) {\n id = `${this._parentForms[0].id}_${id}`;\n }\n return id;\n }\n\n get valid(): boolean {\n return this._errors.size === 0;\n }\n\n // ES5\n protected es5isValid(): boolean {\n return this._errors.size === 0;\n }\n\n public findMeInParentForm(control: AbstractControl): boolean {\n if (this === control) {\n return true;\n }\n if (control instanceof FormControl) {\n const findings: FormControl[] = [];\n this._parentForms.forEach((formControl: FormControl) => {\n if (formControl.findMeInParentForm(control) === true) {\n findings.push(formControl);\n }\n });\n return findings.length > 0;\n } else {\n return false;\n }\n }\n\n public addParentForm(form: FormControl) {\n if (this._parentForms.includes(form) === false) {\n if (form.findMeInParentForm(this) === false) {\n this._parentForms.push(form);\n } else {\n throw new Error(`The same form control (${form.name}) leads to a form control loop.`);\n }\n } else {\n throw new Error(`An form control with the name '${form.name}' already exists.`);\n }\n }\n\n public removeParentForm(form: FormControl) {\n const index = this._parentForms.indexOf(form);\n if (index >= 0) {\n this._parentForms.splice(index, 1);\n } else {\n throw new Error(`An form control with the name '${form.name}' does not exists.`);\n }\n }\n\n protected setValidationHandler(validationHandler: ValidationHandler, value: unknown = null) {\n this._validationHandler = validationHandler;\n this.validate(value);\n // this.notify(); redundant?!\n }\n\n protected validate(value: unknown) {\n this._errors.clear();\n const errors = this._validationHandler.validate(value);\n errors.forEach((error: string) => {\n this._errors.add(error);\n });\n this._parentForms.forEach((formControl: FormControl) => {\n formControl.validate(value);\n });\n }\n\n protected notify() {\n if (this._notifyTimeout) {\n clearTimeout(this._notifyTimeout);\n }\n this._notifyTimeout = setTimeout(() => {\n this.changeListeners.forEach((changeListener: Function) => {\n changeListener();\n });\n }, 0);\n }\n}\n\nexport enum InputControlTypes {\n checkbox = 'checkbox',\n date = 'date',\n email = 'email',\n number = 'number',\n password = 'password',\n radio = 'radio',\n select = 'select',\n slider = 'slider',\n text = 'text',\n}\nexport interface InputControlProps {\n info?: string;\n label?: string;\n disabled?: boolean;\n mandatory?: boolean;\n readonly?: boolean;\n placeholder?: string;\n type?: string;\n value?: unknown;\n}\n\nexport class InputControl extends AbstractControl implements InputControlProps {\n private _disabled = false;\n private _info = '';\n private _label = '';\n private _mandatory = false;\n private _placeholder = '';\n private _readonly = false;\n private _type = 'text';\n private _value: unknown = null;\n private _oldValue: unknown = null;\n private _valueTimeout: NodeJS.Timeout = setTimeout(() => {}, 0);\n private _formatHandler: FormatHandler = new FormatHandler();\n\n constructor(name: string, properties?: InputControlProps) {\n super(name);\n if (properties) {\n this.info = properties.info ? properties.info : '';\n this.label = properties.label ? properties.label : '';\n this.disabled = properties.disabled ? properties.disabled : false;\n this.mandatory = properties.mandatory ? properties.mandatory : false;\n this.readonly = properties.readonly ? properties.readonly : false;\n this.placeholder = properties.placeholder ? properties.placeholder : '';\n this.type = properties.type ? properties.type : 'text';\n this.value = properties.value ? properties.value : null;\n }\n }\n\n get info(): string {\n return this._info;\n }\n set info(value: string) {\n if (typeof value === 'string') {\n this._info = value;\n this.notify();\n } else {\n throw new Error('The info of a input control must be a string.');\n }\n }\n\n get disabled(): boolean {\n return this._disabled;\n }\n set disabled(value: boolean) {\n if (typeof value === 'boolean') {\n this._disabled = value;\n this.notify();\n } else {\n throw new Error('The disabled flag of a input control must be a string.');\n }\n }\n\n get mandatory(): boolean {\n return this._mandatory;\n }\n set mandatory(value: boolean) {\n if (typeof value === 'boolean') {\n this._mandatory = value;\n this.notify();\n } else {\n throw new Error('The mandatory flag of a input control must be a string.');\n }\n }\n\n get readonly(): boolean {\n return this._readonly;\n }\n set readonly(value: boolean) {\n if (typeof value === 'boolean') {\n this._readonly = value;\n this.notify();\n } else {\n throw new Error('The readonly flag of a input control must be a string.');\n }\n }\n\n get label(): string {\n return this._label;\n }\n set label(value: string) {\n if (typeof value === 'string') {\n this._label = value;\n this.notify();\n } else {\n throw new Error('The label of a input control must be a string.');\n }\n }\n\n get placeholder(): string {\n return this._placeholder;\n }\n set placeholder(value: string) {\n if (typeof value === 'string') {\n this._placeholder = value;\n this.notify();\n } else {\n throw new Error('The placeholder of a input control must be a string.');\n }\n }\n\n get type(): string {\n return this._type.toString();\n }\n set type(value: string) {\n if (typeof value === 'string') {\n // https://developer.mozilla.org/de/docs/Web/HTML/Element/Input#Arten_des_%3Cinput%3E-Elements\n switch (value) {\n case 'checkbox':\n case 'date':\n case 'email':\n case 'number':\n case 'password':\n case 'radio':\n case 'select':\n case 'slider':\n case 'text':\n this._type = value;\n this.notify();\n break;\n default:\n throw new Error('The type of a input control must be a of the following types: ???.');\n }\n } else {\n throw new Error('The type of a input control must be a string.');\n }\n }\n\n get oldValue(): unknown {\n return this._oldValue;\n }\n\n get value(): unknown {\n return this._value;\n }\n set value(value: unknown) {\n if (this._valueTimeout) {\n clearTimeout(this._valueTimeout);\n }\n this._valueTimeout = setTimeout(() => {\n this.validate(value); // execution?!\n this._oldValue = this._value;\n this._value = value;\n this.notify();\n }, 0);\n }\n\n get modelValue(): unknown {\n return this.value;\n }\n set modelValue(value: unknown) {\n this.value = value;\n }\n\n get viewValue(): unknown {\n return this._formatHandler.format(this.modelValue);\n }\n set viewValue(value: unknown) {\n this.modelValue = this._formatHandler.parse(value);\n }\n\n public setValidationHandler(validationHandler: ValidationHandler) {\n super.setValidationHandler(validationHandler, this.value);\n }\n\n public setFormatHandler(formatHandler: FormatHandler) {\n this._formatHandler = formatHandler;\n }\n}\n\nexport class FormControl extends AbstractControl {\n private readonly controls: ListOf = new ListOf([FormControl, InputControl]);\n\n get disabled(): boolean {\n return (\n this.controls.filter((control: FormControl | InputControl) => {\n return control.disabled === false;\n }).length === 0\n );\n }\n set disabled(value: boolean) {\n this.controls.forEach((control: FormControl | InputControl) => {\n control.disabled = value;\n });\n }\n\n get readonly(): boolean {\n return (\n this.controls.filter((control: FormControl | InputControl) => {\n return control.readonly === false;\n }).length === 0\n );\n }\n set readonly(value: boolean) {\n this.controls.forEach((control: FormControl | InputControl) => {\n control.readonly = value;\n });\n }\n\n get valid(): boolean {\n return (\n this.es5isValid() && // ES5\n this.controls.filter((control: FormControl | InputControl) => {\n return control.valid === false;\n }).length === 0\n );\n }\n\n public addConrol(control: FormControl | InputControl): void {\n if (this.controls.contains(control) === false) {\n control.addParentForm(this);\n this.controls.add(control);\n } else {\n throw new Error(`A control with the same name '${control.name}' already exists.`);\n }\n }\n\n public removeControl(control: FormControl | InputControl): void {\n if (this.controls.contains(control) === true) {\n if (control instanceof AbstractControl) {\n control.removeParentForm(this);\n this.controls.remove(control);\n }\n } else {\n throw new Error(`A control with the name '${control.name}' does not exists.`);\n }\n }\n\n public getControls(): Array {\n return >this.controls.get();\n }\n\n public getControl(name: string): FormControl | InputControl {\n return this.controls.find((control: FormControl | InputControl) => {\n return control.name === name;\n });\n }\n\n public setData(_data: Object) {\n console.log('FormControl.setData is currently not implemented.');\n }\n\n public getData(): Object {\n const data: Record = {};\n this.controls.forEach((control: FormControl | InputControl) => {\n if (control instanceof FormControl) {\n data[control.name] = control.getData();\n } else if (control instanceof InputControl) {\n data[control.name] = control.value;\n } else {\n throw new Error(`The control is neither an instance of FormControl or InputControl.`);\n }\n });\n return data;\n }\n\n public setValidationHandler(validationHandler: ValidationHandler) {\n super.setValidationHandler(validationHandler);\n }\n}\n\nexport class FormFactory {\n static createForm(name: string, json: Record): FormControl {\n const form = new FormControl(name);\n for (const name in json) {\n if (json.hasOwnProperty(name)) {\n if (typeof json[name] === 'object' && json[name] !== null) {\n form.addConrol(FormFactory.createForm(name, json[name]));\n } else {\n const input = new InputControl(name);\n input.value = json[name];\n form.addConrol(input);\n }\n }\n }\n return form;\n }\n}\n","import { AbstractFormatter } from './abstract.formatter';\r\n\r\nexport class IbanFormatter extends AbstractFormatter {\r\n private regExp: RegExp = /([A-Z0-9]{1,4})/gi;\r\n\r\n public format(value: unknown): unknown {\r\n if (typeof value === 'string') {\r\n const matches: string[] | null = value.match(this.regExp);\r\n if (Array.isArray(matches)) {\r\n return matches?.join(' ');\r\n }\r\n }\r\n return value;\r\n }\r\n\r\n public parse(value: unknown): unknown {\r\n if (typeof value === 'string') {\r\n return value.replace(/ /g, '');\r\n }\r\n return value;\r\n }\r\n}\r\n\r\nexport const DEFAULT_IBAN_FORMATTER = new IbanFormatter();\r\n","import { AbstractValidator } from './abstract.validator';\r\n\r\nexport class RequiredValidator extends AbstractValidator {\r\n constructor(message: string = 'Bitte tragen Sie einen Wert ein.') {\r\n super(message);\r\n }\r\n\r\n public isValid(value: any): boolean {\r\n return value !== undefined && value !== null && value.toString().length > 0;\r\n }\r\n}\r\n\r\nexport const DEFAULT_REQUIRED_VALIDATOR: RequiredValidator = new RequiredValidator();\r\n","import { AbstractValidator } from './abstract.validator';\r\nimport { DEFAULT_REQUIRED_VALIDATOR } from './required.validator';\r\n\r\nexport abstract class NonRequiredValidator extends AbstractValidator {\r\n public isValid(value: any): boolean {\r\n return DEFAULT_REQUIRED_VALIDATOR.isValid(value) === false || this.validate(value);\r\n }\r\n\r\n abstract validate(value: any): boolean;\r\n}\r\n","import { Log } from '@leanup/lib/helpers/log';\r\n\r\nimport { NonRequiredValidator } from './non-required.validator';\r\n\r\nexport class PatternValidator extends NonRequiredValidator {\r\n public _regExp: RegExp = /^/g;\r\n\r\n constructor(regExp: RegExp, message: string = 'Bitte tragen Sie einen gültigen Wert ein.') {\r\n super(message);\r\n this.regExp = regExp;\r\n }\r\n\r\n set regExp(regExp: RegExp) {\r\n if (regExp instanceof RegExp) {\r\n this._regExp = regExp;\r\n } else {\r\n Log.debug(`The regExp of the pattern validator should be type of RegExp.`);\r\n }\r\n }\r\n\r\n get regExp(): RegExp {\r\n return this._regExp;\r\n }\r\n\r\n public validate(value: any): boolean {\r\n return this.regExp.test(value);\r\n }\r\n}\r\n\r\nexport class NotPatternValidator extends PatternValidator {\r\n public validate(value: any): boolean {\r\n return super.validate(value) === false;\r\n }\r\n}\r\n","import { PatternValidator } from './pattern.validator';\r\n\r\nexport const DIGITS_VALIDATION_REGEXP: RegExp = /^\\d+$/;\r\n\r\nexport class DigitsValidator extends PatternValidator {\r\n constructor(message: string = 'Der Wert ist keine Zahl.') {\r\n super(DIGITS_VALIDATION_REGEXP, message);\r\n }\r\n}\r\n\r\nexport const DEFAULT_DIGITS_VALIDATOR = new DigitsValidator();\r\n","import { PatternValidator } from './pattern.validator';\r\n\r\nexport const EMAIL_VALIDATION_REGEXP: RegExp =\r\n /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n\r\nexport class EmailValidator extends PatternValidator {\r\n constructor(message: string = 'Die E-Mail-Adresse hat nicht das richtige Format.') {\r\n super(EMAIL_VALIDATION_REGEXP, message);\r\n }\r\n}\r\n","import { NonRequiredValidator } from './non-required.validator';\r\n\r\nexport class IsTrueValidator extends NonRequiredValidator {\r\n constructor(message: string = 'Bitte bestätigen Sie.') {\r\n super(message);\r\n }\r\n\r\n public validate(value: any): boolean {\r\n return value === true;\r\n }\r\n}\r\n","import { Validator } from '@leanup/lib/helpers/validator';\r\n\r\nimport { NonRequiredValidator } from './non-required.validator';\r\n\r\nexport class MaxLengthValidator extends NonRequiredValidator {\r\n // --- Properties ---\r\n public maxLength: number;\r\n\r\n constructor(maxLength: number, message: string = `Die Eingabe darf nicht länger als ${maxLength} Zeichen sein.`) {\r\n super(message);\r\n this.maxLength = maxLength;\r\n }\r\n\r\n public validate(value: any): boolean {\r\n return Validator.isString(value) && value.length <= this.maxLength;\r\n }\r\n}\r\n","import { Validator } from '@leanup/lib/helpers/validator';\r\n\r\nimport { NonRequiredValidator } from './non-required.validator';\r\n\r\nexport class MinLengthValidator extends NonRequiredValidator {\r\n // --- Properties ---\r\n public minLength: number;\r\n\r\n constructor(minLength: number, message: string = `Die Eingabe darf nicht kürzer als ${minLength} Zeichen sein.`) {\r\n super(message);\r\n this.minLength = minLength;\r\n }\r\n\r\n public validate(value: any): boolean {\r\n return Validator.isString(value) && value.length >= this.minLength;\r\n }\r\n}\r\n","import { AbstractValidator } from './abstract.validator';\r\nimport { NonRequiredValidator } from './non-required.validator';\r\n\r\nexport class NotValidator extends NonRequiredValidator {\r\n // --- Properties ---\r\n public validator: AbstractValidator;\r\n\r\n constructor(validator: AbstractValidator, message: string) {\r\n super(message);\r\n this.validator = validator;\r\n }\r\n\r\n public validate(value: any): boolean {\r\n return this.validator.isValid(value) === false;\r\n }\r\n}\r\n"],"names":["this","log.trace","log.debug","log.info","log.warn","log.error","log.setDefaultLevel","InputControlTypes"],"mappings":"qaAMA,AAAC,UAAU,EAAM,EAAY,CAIlB,AAAkC,EAAO,QAC5C,UAAiB,IAEjB,EAAK,IAAM,MAEjBA,EAAM,UAAY,CAIhB,GAAI,GAAO,UAAW,GAClB,EAAgB,YAChB,EAAQ,MAAO,UAAW,GAAmB,MAAO,QAAO,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AGD,QAAQ,EAAqB,OAC3B,AAAuB,IAAU,MAAQ,EAAM,WAAW,OAAS,QAIjE,GAAgD,GAAI,kBCTd,EAAkB,CAC5D,QAAQ,EAAqB,OAC3B,GAA2B,QAAQ,KAAW,IAAS,KAAK,SAAS,mBCD1C,EAAqB,CAGzD,YAAY,EAAgB,EAAkB,+CAA6C,OACnF,gBAHiB,UAIlB,OAAS,KAGZ,QAAO,EAAgB,CACrB,YAAkB,aACf,QAAU,IAEX,MAAM,oEAIV,SAAiB,OACZ,MAAK,QAGP,SAAS,EAAqB,OAC5B,MAAK,OAAO,KAAK,mBAIa,EAAiB,CACjD,SAAS,EAAqB,OAC5B,OAAM,SAAS,KAAW,SC7BxB,GAAmC,uBAEX,EAAiB,CACpD,YAAY,EAAkB,2BAA4B,OAClD,EAA0B,SAIvB,GAA2B,GAAI,GCR/B,EACX,sKAEkC,EAAiB,CACnD,YAAY,EAAkB,oDAAqD,OAC3E,EAAyB,mBCLE,EAAqB,CACxD,YAAY,EAAkB,2BAAyB,OAC/C,GAGD,SAAS,EAAqB,OAC5B,KAAU,mBCJmB,EAAqB,CAI3D,YAAY,EAAmB,EAAkB,wCAAqC,kBAA2B,OACzG,QACD,UAAY,EAGZ,SAAS,EAAqB,OAC5B,GAAU,SAAS,IAAU,EAAM,QAAU,KAAK,0BCVrB,EAAqB,CAI3D,YAAY,EAAmB,EAAkB,wCAAqC,kBAA2B,OACzG,QACD,UAAY,EAGZ,SAAS,EAAqB,OAC5B,GAAU,SAAS,IAAU,EAAM,QAAU,KAAK,2BCX3B,EAAqB,CAIrD,YAAY,EAA8B,EAAiB,OACnD,QACD,UAAY,EAGZ,SAAS,EAAqB,OAC5B,MAAK,UAAU,QAAQ,KAAW"} \ No newline at end of file diff --git a/packages/components/src/assets/@leanup/forms/index.js b/packages/components/src/assets/@leanup/forms/index.js deleted file mode 100644 index e72cd776c1..0000000000 --- a/packages/components/src/assets/@leanup/forms/index.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@leanup/lib")):"function"==typeof define&&define.amd?define(["exports","@leanup/lib"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).LeanUpForm={},t.LeanUpLib)}(this,(function(t,e){"use strict";class r{}class s extends e.SetOf{constructor(){super(r),this.formatters=this}format(t){return this.formatters.forEach((e=>{t=e.format(t)})),t}parse(t){return this.formatters.forEach((e=>{t=e.parse(t)})),t}}class a{constructor(t){this.state={message:"An unknown validation error occurred."},this.message=t}set message(t){"string"==typeof t&&t.length>0?this.state.message=t:e.Log.error("The message of the validator should be type of string with a min-length of 1.")}get message(){return this.state.message}}class o extends e.SetOf{constructor(){super(a),this.validators=this,this.validators=this}validate(t,e=!1){const r=[];try{this.validators.forEach((s=>{if(!1===s.valid(t)&&(r.push(s.message),!0===e))throw new Error("Only one error is enough. Be quick and stop the execution of other validation functions.")}))}catch(t){}return r}}class n{constructor(t){this.changeListeners=new e.SetOf(Function),this._errors=new Set,this._parentForms=new Set,this._name="unnamed",this._validationHandler=new o,this.name=t}get name(){return this._name}set name(t){if("string"!=typeof t)throw new Error("The name of a control must be a string.");if(!(t.length>0))throw new Error("The name of a control must have a min-length of 1.");this._name=t}get error(){return this._errors.size>0?this._errors.values().next().value:null}getErrors(){return this._errors}get id(){let t=this.name;return this._parentForms.size>0&&(t=`${this._parentForms.values().next().value.id}_${t}`),t}get valid(){return 0===this._errors.size}findMeInParentForm(t){if(this===t)return!0;if(t instanceof h){const e=[];return this._parentForms.forEach((r=>{!0===r.findMeInParentForm(t)&&e.push(r)})),e.length>0}return!1}addParentForm(t){if(!1!==this._parentForms.has(t))throw new Error(`An form control with the name '${t.name}' already exists.`);if(!1!==t.findMeInParentForm(this))throw new Error(`The same form control (${t.name}) leads to a form control loop.`);this._parentForms.add(t)}removeParentForm(t){if(!0!==this._parentForms.has(t))throw new Error(`An form control with the name '${t.name}' does not exists.`);this._parentForms.delete(t)}setValidationHandler(t,e=null){this._validationHandler=t,this.validate(e),this.notify()}validate(t){this._errors.clear();this._validationHandler.validate(t).forEach((t=>{this._errors.add(t)})),this._parentForms.forEach((t=>{t.validate(t.getData())}))}notify(...t){this.changeListeners.forEach((e=>{e(...t)})),this._parentForms.forEach((t=>{t.notify(t.getData())}))}}var i;t.InputControlTypes=void 0,(i=t.InputControlTypes||(t.InputControlTypes={})).checkbox="checkbox",i.date="date",i.email="email",i.number="number",i.password="password",i.radio="radio",i.select="select",i.slider="slider",i.text="text";class l extends n{constructor(t,e){super(t),this._disabled=!1,this._label="",this._mandatory=!1,this._placeholder="",this._readonly=!1,this._type="text",this._value=null,this._oldValue=null,this._formatHandler=new s,"object"==typeof e&&null!==e&&(this.disabled=!0===e.disabled,this.label="string"==typeof e.label?e.label:"",this.mandatory=!0===e.mandatory,this.placeholder="string"==typeof e.placeholder?e.placeholder:"",this.readonly=!0===e.disabled,this.type="string"==typeof e.type?e.type:"text",this.value=void 0!==e.value?e.value:null)}get disabled(){return this._disabled}set disabled(t){if("boolean"!=typeof t)throw new Error("The disabled flag of a input control must be a string.");this._disabled=t,this.notify()}get mandatory(){return this._mandatory}set mandatory(t){if("boolean"!=typeof t)throw new Error("The mandatory flag of a input control must be a string.");this._mandatory=t,this.notify()}get readonly(){return this._readonly}set readonly(t){if("boolean"!=typeof t)throw new Error("The readonly flag of a input control must be a string.");this._readonly=t,this.notify()}get label(){return this._label}set label(t){if("string"!=typeof t)throw new Error("The label of a input control must be a string.");this._label=t,this.notify()}get placeholder(){return this._placeholder}set placeholder(t){if("string"!=typeof t)throw new Error("The placeholder of a input control must be a string.");this._placeholder=t,this.notify()}get type(){return this._type.toString()}set type(t){if("string"!=typeof t)throw new Error("The type of a input control must be a string.");switch(t){case"checkbox":case"date":case"email":case"number":case"password":case"radio":case"select":case"slider":case"text":this._type=t,this.notify();break;default:throw new Error("The type of a input control must be a of the following types: ???.")}}get oldValue(){return this._oldValue}get value(){return this._value}set value(t){this._oldValue=this._value,this._value=t,this.validate(t),this.notify()}get modelValue(){return this.value}set modelValue(t){this.value=t}get viewValue(){return this._formatHandler.format(this.modelValue)}set viewValue(t){this.modelValue=this._formatHandler.parse(t)}notify(){super.notify(this._value,this._oldValue)}setValidationHandler(t){super.setValidationHandler(t,this.value)}setFormatHandler(t){this._formatHandler=t}}class h extends n{constructor(){super(...arguments),this.controls=new Set}get disabled(){return 0===Array.from(this.controls).filter((t=>!1===t.disabled)).length}set disabled(t){this.controls.forEach((e=>{e.disabled=t}))}get readonly(){return 0===Array.from(this.controls).filter((t=>!1===t.readonly)).length}set readonly(t){this.controls.forEach((e=>{e.readonly=t}))}get valid(){return super.valid&&0===Array.from(this.controls).filter((t=>!1===t.valid)).length}addControl(t){if(!1!==this.controls.has(t))throw new Error(`A control with the same name '${t.name}' already exists.`);t.addParentForm(this),this.controls.add(t)}removeControl(t){if(!0!==this.controls.has(t))throw new Error(`A control with the name '${t.name}' does not exists.`);t instanceof n&&(t.removeParentForm(this),this.controls.delete(t))}getControls(){return Array.from(this.controls)}getControl(t){return Array.from(this.controls).find((e=>e.name===t))}getForms(){return Array.from(this.controls).filter((t=>t instanceof h))}getForm(t){return Array.from(this.getForms()).find((e=>e.name===t))}getInputs(){return Array.from(this.controls).filter((t=>t instanceof l))}getInput(t){return Array.from(this.getInputs()).find((e=>e.name===t))}setData(t){this.controls.forEach((e=>{if(void 0!==t[e.name])if(e instanceof h)e.setData(t[e.name]);else{if(!(e instanceof l))throw new Error("The control is neither an instance of FormControl or InputControl.");e.value=t[e.name]}}))}getData(){const t={};return this.controls.forEach((e=>{if(e instanceof h)t[e.name]=e.getData();else{if(!(e instanceof l))throw new Error("The control is neither an instance of FormControl or InputControl.");t[e.name]=e.value}})),t}setValidationHandler(t){super.setValidationHandler(t)}}class d{static createForm(t,e){const r=new h(t);for(const t in e)if(e.hasOwnProperty(t))if("object"==typeof e[t]&&null!==e[t])r.addControl(d.createForm(t,e[t]));else{const s=new l(t,{value:e[t]});r.addControl(s)}return r}}class u extends r{constructor(){super(...arguments),this.regExp=/([A-Z0-9]{1,4})/gi}format(t){if("string"==typeof t){const e=t.match(this.regExp);if(Array.isArray(e))return null==e?void 0:e.join(" ")}return t}parse(t){return"string"==typeof t?t.replace(/ /g,""):t}}const c=new u;class f extends a{constructor(t="Please enter a value."){super(t)}valid(t){return null!=t&&t.toString().length>0}}const m=new f;class p extends a{valid(t){return!1===m.valid(t)||this.validate(t)}}class g extends p{constructor(t,e="Please enter a valid value."){super(e),this._regExp=/^/g,this.regExp=t}set regExp(t){t instanceof RegExp?this._regExp=t:e.Log.debug("The regExp of the pattern validator should be type of RegExp.")}get regExp(){return this._regExp}validate(t){return this.regExp.test(t)}}const y=/^\d+$/;class v extends g{constructor(t="Please enter a number."){super(y,t)}}const _=new v,w=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;t.AbstractFormatter=r,t.AbstractValidator=a,t.DEFAULT_DIGITS_VALIDATOR=_,t.DEFAULT_IBAN_FORMATTER=c,t.DEFAULT_REQUIRED_VALIDATOR=m,t.DIGITS_VALIDATION_REGEXP=y,t.DigitsValidator=v,t.EMAIL_VALIDATION_REGEXP=w,t.EmailValidator=class extends g{constructor(t="The email address has not the correct format."){super(w,t)}},t.FormControl=h,t.FormFactory=d,t.FormatHandler=s,t.IbanFormatter=u,t.InputControl=l,t.IsTrueValidator=class extends p{constructor(t="Please confirm the note."){super(t)}validate(t){return!0===t}},t.MaxLengthValidator=class extends p{constructor(t,e=`The entry must not be longer than ${t} characters.`){super(e),this.maxLength=t}validate(t){return"string"==typeof t&&t.length<=this.maxLength}},t.MinLengthValidator=class extends p{constructor(t,e=`The entry must not be shorter than ${t} characters.`){super(e),this.minLength=t}validate(t){return"string"==typeof t&&t.length>=this.minLength}},t.NonRequiredValidator=p,t.NotPatternValidator=class extends g{validate(t){return!1===super.validate(t)}},t.NotValidator=class extends p{constructor(t,e){super(e),this.validator=t}validate(t){return!1===this.validator.valid(t)}},t.PatternValidator=g,t.RequiredValidator=f,t.ValidationHandler=o,Object.defineProperty(t,"__esModule",{value:!0})})); -//# sourceMappingURL=index.js.map diff --git a/packages/components/src/assets/@leanup/forms/index.js.map b/packages/components/src/assets/@leanup/forms/index.js.map deleted file mode 100644 index 425f6be95c..0000000000 --- a/packages/components/src/assets/@leanup/forms/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sources":["../src/handlers/formatters/abstract.formatter.ts","../src/handlers/format.handler.ts","../src/handlers/validators/abstract.validator.ts","../src/handlers/validation.handler.ts","../src/controls/controls.ts","../src/handlers/formatters/iban.formatter.ts","../src/handlers/validators/required.validator.ts","../src/handlers/validators/non-required.validator.ts","../src/handlers/validators/pattern.validator.ts","../src/handlers/validators/digits.validator.ts","../src/handlers/validators/email.validator.ts","../src/handlers/validators/is-true.validator.ts","../src/handlers/validators/max-length.validator.ts","../src/handlers/validators/min-length.validator.ts","../src/handlers/validators/not.validator.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["AbstractFormatter","FormatHandler","SetOf","constructor","super","this","formatters","format","value","forEach","formatter","parse","AbstractValidator","message","state","length","Log","error","ValidationHandler","validators","validate","fast","errors","validator","valid","push","Error","AbstractControl","name","changeListeners","Function","_errors","Set","_parentForms","_name","_validationHandler","size","values","next","getErrors","id","findMeInParentForm","control","FormControl","findings","formControl","addParentForm","form","has","add","removeParentForm","delete","setValidationHandler","validationHandler","notify","clear","getData","args","changeListener","InputControlTypes","exports","InputControl","properties","_disabled","_label","_mandatory","_placeholder","_readonly","_type","_value","_oldValue","_formatHandler","disabled","label","mandatory","placeholder","readonly","type","undefined","toString","oldValue","modelValue","viewValue","setFormatHandler","formatHandler","controls","Array","from","filter","addControl","removeControl","getControls","getControl","find","getForms","getForm","getInputs","getInput","setData","data","FormFactory","static","json","hasOwnProperty","createForm","input","IbanFormatter","regExp","matches","match","isArray","join","replace","DEFAULT_IBAN_FORMATTER","RequiredValidator","DEFAULT_REQUIRED_VALIDATOR","NonRequiredValidator","PatternValidator","_regExp","RegExp","debug","test","DIGITS_VALIDATION_REGEXP","DigitsValidator","DEFAULT_DIGITS_VALIDATOR","EMAIL_VALIDATION_REGEXP","maxLength","minLength"],"mappings":"2SAAsBA,GCIhB,MAAOC,UAAsBC,EAAAA,MAGjCC,cACEC,MAAMJ,GACNK,KAAKC,WAAaD,KAGbE,OAAOC,GAIZ,OAHAH,KAAKC,WAAWG,SAASC,IACvBF,EAAQE,EAAUH,OAAOC,MAEpBA,EAEFG,MAAMH,GAIX,OAHAH,KAAKC,WAAWG,SAASC,IACvBF,EAAQE,EAAUC,MAAMH,MAEnBA,SCpBWI,EAKpBT,YAAYU,GAJKR,KAAAS,MAAQ,CACvBD,QAAS,yCAITR,KAAKQ,QAAUA,EAGbA,YAAQA,GACa,iBAAZA,GAAwBA,EAAQE,OAAS,EAClDV,KAAKS,MAAMD,QAAUA,EAErBG,EAAAA,IAAIC,MAAM,iFAGVJ,cACF,OAAOR,KAAKS,MAAMD,SCfhB,MAAOK,UAA0BhB,EAAAA,MAGrCC,cACEC,MAAMQ,GAHQP,KAAUc,WAA6Bd,KAIrDA,KAAKc,WAAad,KAGbe,SAASZ,EAAgBa,GAAO,GACrC,MAAMC,EAAmB,GACzB,IACEjB,KAAKc,WAAWV,SAASc,IACvB,IAA+B,IAA3BA,EAAUC,MAAMhB,KAClBc,EAAOG,KAAKF,EAAUV,UACT,IAATQ,GACF,MAAM,IAAIK,MAAM,+FAItB,MAAOT,IAGT,OAAOK,GCrBX,MAAeK,EAQbxB,YAAYyB,GAPIvB,KAAAwB,gBAAmC,IAAI3B,EAAKA,MAAC4B,UAE5CzB,KAAA0B,QAAuB,IAAIC,IAC3B3B,KAAA4B,aAAiC,IAAID,IAC9C3B,KAAK6B,MAAG,UACR7B,KAAA8B,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EAAmBjH,EAAkB,qCAAqCiH,iBACpF1H,MAAMS,GACNR,KAAKyH,UAAYA,EAGZ1G,SAASZ,GACd,MAAwB,iBAAVA,GAAsBA,EAAMO,QAAUV,KAAKyH,iCCVvD,cAAkCV,EAItCjH,YAAY4H,EAAmBlH,EAAkB,sCAAsCkH,iBACrF3H,MAAMS,GACNR,KAAK0H,UAAYA,EAGZ3G,SAASZ,GACd,MAAwB,iBAAVA,GAAsBA,EAAMO,QAAUV,KAAK0H,2DLiBvD,cAAmCV,EAChCjG,SAASZ,GACd,OAAiC,IAA1BJ,MAAMgB,SAASZ,oBM5BpB,cAA4B4G,EAIhCjH,YAAYoB,EAA8BV,GACxCT,MAAMS,GACNR,KAAKkB,UAAYA,EAGZH,SAASZ,GACd,OAAuC,IAAhCH,KAAKkB,UAAUC,MAAMhB"} \ No newline at end of file diff --git a/packages/components/src/assets/@leanup/lib/bundle.js b/packages/components/src/assets/@leanup/lib/bundle.js deleted file mode 100644 index 0033da6e20..0000000000 --- a/packages/components/src/assets/@leanup/lib/bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(a,p){typeof exports=="object"&&typeof module!="undefined"?p(exports):typeof define=="function"&&define.amd?define(["exports"],p):(a=typeof globalThis!="undefined"?globalThis:a||self,p(a.LeanUpLib={}))})(this,function(a){"use strict";class p{constructor(){this.services=new Map}register(e,t){if(typeof e=="string"&&this.services.has(e)===!1)return this.services.set(e,t),this;throw new Error(`The service '${e}' is allready registered!`)}get(e){if(typeof e=="string"&&this.services.has(e)===!0)return this.services.get(e);throw new Error(`The service '${e}' is not registered!`)}}const D=new p;var R=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},g={exports:{}};(function(s){(function(e,t){s.exports?s.exports=t():e.log=t()})(R,function(){var e=function(){},t="undefined",f=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),c=["trace","debug","info","warn","error"];function T(n,l){var o=n[l];if(typeof o.bind=="function")return o.bind(n);try{return Function.prototype.bind.call(o,n)}catch(i){return function(){return Function.prototype.apply.apply(o,[n,arguments])}}}function j(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function k(n){return n==="debug"&&(n="log"),typeof console===t?!1:n==="trace"&&f?j:console[n]!==void 0?T(console,n):console.log!==void 0?T(console,"log"):e}function I(n,l){for(var o=0;o=0&&r<=i.levels.SILENT){if(A=r,h!==!1&&V(r),I.call(i,r,n),typeof console===t&&r=t}static isObject(e){return typeof e=="object"&&e!==null&&this.isArray(e)===!1}static isString(e,t=0){return typeof e=="string"&&e.length>=t}}const _=[];function x(){return"$$NODE_ENV$$"}class y{constructor(){}static log(e,t){switch(w.isObject(t.refObject)&&typeof t.refObject.constructor=="function"&&w.isString(t.refObject.constructor.name)&&(t.className=`[${t.refObject.constructor.name}]:`),_.push({date:new Date().toUTCString(),level:e,message:t}),e){case"trace":g.exports.trace(t);break;case"debug":g.exports.debug(t);break;case"info":g.exports.info(t);break;case"warn":g.exports.warn(t);break;case"error":g.exports.error(t)}}static trace(e,t){return this.log("trace",{messageText:e,refObject:t}),this}static debug(e,t){return this.log("debug",{messageText:e,refObject:t}),this}static info(e,t){return this.log("info",{messageText:e,refObject:t}),this}static warn(e,t){return this.log("warn",{messageText:e,refObject:t}),this}static error(e,t){return this.log("error",{messageText:e,refObject:t}),this}static get cache(){return[].concat(_)}}switch(y._instance=null,x()){case"development":g.exports.setDefaultLevel("trace");break;case"test":g.exports.setDefaultLevel("warn");break;case"production":g.exports.setDefaultLevel("error")}function F(s,e){return w.isArray(s)?s.find(t=>e instanceof t)!==void 0:!1}function L(s){return s instanceof E?s.get():Array.isArray(s)?s:[s]}class E{constructor(e){this._instancesOf=[],this._items=[],this._protectedItems=[],this._instancesOf=Array.isArray(e)?e:[e]}get empty(){return this._items.length===0}get first(){return this._items.length>0?this._items[0]:null}forEach(e){this._items.forEach(e)}filter(e){return this._items.filter(e)}find(e){return this._items.find(e)}get last(){return this._items.length>0?this._items[this._items.length-1]:null}get length(){return this._items.length}add(e,t=!1){return L(e).filter(f=>{let c=!1;return this.contains(f)===!1?F(this._instancesOf,f)?(t&&this._protectedItems.push(f),this._items.push(f),c=!0):y.debug("The item does not have a valid instance type.",this):y.debug("The item is already in the list.",this),c}).length>0}remove(e){return L(e).filter(t=>{let f=!1,c=this._protectedItems.indexOf(t);return c===-1?(c=this._items.indexOf(t),c>=0?(this._items.splice(c,1),f=!0):y.debug("The item is not in the list.",this)):y.debug("The item is protected and cannot be removed.",this),f}).length>0}set(e,t=!1){const f=this.clear(),c=this.add(e,t);return f||c}get(e){return isNaN(e)===!1&&typeof e=="number"?this._items.slice(0,e):this._items}clear(){const e=this._items.length;return this._items=this._items.filter(t=>this._protectedItems.indexOf(t)>=0),e!==this._items.length}contains(e){return this._items.indexOf(e)>-1}}const C=new Intl.NumberFormat("de-DE",{currency:"EUR",maximumFractionDigits:2,minimumFractionDigits:2});function M(s){return isNaN(s)===!1&&typeof s=="number"?C.format(s):""}const S=new Intl.DateTimeFormat("de-DE");function U(s){return s instanceof Date?S.format(s):""}a.DI=D,a.Injector=p,a.ListOf=E,a.Log=y,a.Validator=w,a.currency=M,a.date=U,Object.defineProperty(a,"__esModule",{value:!0})}); -//# sourceMappingURL=bundle.js.map diff --git a/packages/components/src/assets/@leanup/lib/bundle.js.map b/packages/components/src/assets/@leanup/lib/bundle.js.map deleted file mode 100644 index 8678bd7a2f..0000000000 --- a/packages/components/src/assets/@leanup/lib/bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bundle.js","sources":["../src/helpers/injector.ts","../node_modules/loglevel/lib/loglevel.js","../src/helpers/validator.ts","../src/helpers/log.ts","../src/pattern/list-of.ts","../src/shares/filters.ts"],"sourcesContent":["export class Injector {\n private readonly services: Map = new Map();\n\n public register(identifier: string, service: T): Injector {\n if (\n typeof identifier === \"string\" &&\n this.services.has(identifier) === false\n ) {\n this.services.set(identifier, service);\n return this;\n } else {\n throw new Error(`The service '${identifier}' is allready registered!`);\n }\n }\n\n public get(identifier: string): T {\n if (\n typeof identifier === \"string\" &&\n this.services.has(identifier) === true\n ) {\n return this.services.get(identifier);\n } else {\n throw new Error(`The service '${identifier}' is not registered!`);\n }\n }\n}\n\nexport const DI: Injector = new Injector();\n","/*\n* loglevel - https://github.com/pimterry/loglevel\n*\n* Copyright (c) 2013 Tim Perry\n* Licensed under the MIT license.\n*/\n(function (root, definition) {\n \"use strict\";\n if (typeof define === 'function' && define.amd) {\n define(definition);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = definition();\n } else {\n root.log = definition();\n }\n}(this, function () {\n \"use strict\";\n\n // Slightly dubious tricks to cut down minimized file size\n var noop = function() {};\n var undefinedType = \"undefined\";\n var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (\n /Trident\\/|MSIE /.test(window.navigator.userAgent)\n );\n\n var logMethods = [\n \"trace\",\n \"debug\",\n \"info\",\n \"warn\",\n \"error\"\n ];\n\n // Cross-browser bind equivalent that works at least back to IE6\n function bindMethod(obj, methodName) {\n var method = obj[methodName];\n if (typeof method.bind === 'function') {\n return method.bind(obj);\n } else {\n try {\n return Function.prototype.bind.call(method, obj);\n } catch (e) {\n // Missing bind shim or IE8 + Modernizr, fallback to wrapping\n return function() {\n return Function.prototype.apply.apply(method, [obj, arguments]);\n };\n }\n }\n }\n\n // Trace() doesn't print the message in IE, so for that case we need to wrap it\n function traceForIE() {\n if (console.log) {\n if (console.log.apply) {\n console.log.apply(console, arguments);\n } else {\n // In old IE, native console methods themselves don't have apply().\n Function.prototype.apply.apply(console.log, [console, arguments]);\n }\n }\n if (console.trace) console.trace();\n }\n\n // Build the best logging method possible for this env\n // Wherever possible we want to bind, not wrap, to preserve stack traces\n function realMethod(methodName) {\n if (methodName === 'debug') {\n methodName = 'log';\n }\n\n if (typeof console === undefinedType) {\n return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives\n } else if (methodName === 'trace' && isIE) {\n return traceForIE;\n } else if (console[methodName] !== undefined) {\n return bindMethod(console, methodName);\n } else if (console.log !== undefined) {\n return bindMethod(console, 'log');\n } else {\n return noop;\n }\n }\n\n // These private functions always need `this` to be set properly\n\n function replaceLoggingMethods(level, loggerName) {\n /*jshint validthis:true */\n for (var i = 0; i < logMethods.length; i++) {\n var methodName = logMethods[i];\n this[methodName] = (i < level) ?\n noop :\n this.methodFactory(methodName, level, loggerName);\n }\n\n // Define log.log as an alias for log.debug\n this.log = this.debug;\n }\n\n // In old IE versions, the console isn't present until you first open it.\n // We build realMethod() replacements here that regenerate logging methods\n function enableLoggingWhenConsoleArrives(methodName, level, loggerName) {\n return function () {\n if (typeof console !== undefinedType) {\n replaceLoggingMethods.call(this, level, loggerName);\n this[methodName].apply(this, arguments);\n }\n };\n }\n\n // By default, we use closely bound real methods wherever possible, and\n // otherwise we wait for a console to appear, and then try again.\n function defaultMethodFactory(methodName, level, loggerName) {\n /*jshint validthis:true */\n return realMethod(methodName) ||\n enableLoggingWhenConsoleArrives.apply(this, arguments);\n }\n\n function Logger(name, defaultLevel, factory) {\n var self = this;\n var currentLevel;\n\n var storageKey = \"loglevel\";\n if (typeof name === \"string\") {\n storageKey += \":\" + name;\n } else if (typeof name === \"symbol\") {\n storageKey = undefined;\n }\n\n function persistLevelIfPossible(levelNum) {\n var levelName = (logMethods[levelNum] || 'silent').toUpperCase();\n\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage[storageKey] = levelName;\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=\" + levelName + \";\";\n } catch (ignore) {}\n }\n\n function getPersistedLevel() {\n var storedLevel;\n\n if (typeof window === undefinedType || !storageKey) return;\n\n try {\n storedLevel = window.localStorage[storageKey];\n } catch (ignore) {}\n\n // Fallback to cookies if local storage gives us nothing\n if (typeof storedLevel === undefinedType) {\n try {\n var cookie = window.document.cookie;\n var location = cookie.indexOf(\n encodeURIComponent(storageKey) + \"=\");\n if (location !== -1) {\n storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1];\n }\n } catch (ignore) {}\n }\n\n // If the stored level is not valid, treat it as if nothing was stored.\n if (self.levels[storedLevel] === undefined) {\n storedLevel = undefined;\n }\n\n return storedLevel;\n }\n\n /*\n *\n * Public logger API - see https://github.com/pimterry/loglevel for details\n *\n */\n\n self.name = name;\n\n self.levels = { \"TRACE\": 0, \"DEBUG\": 1, \"INFO\": 2, \"WARN\": 3,\n \"ERROR\": 4, \"SILENT\": 5};\n\n self.methodFactory = factory || defaultMethodFactory;\n\n self.getLevel = function () {\n return currentLevel;\n };\n\n self.setLevel = function (level, persist) {\n if (typeof level === \"string\" && self.levels[level.toUpperCase()] !== undefined) {\n level = self.levels[level.toUpperCase()];\n }\n if (typeof level === \"number\" && level >= 0 && level <= self.levels.SILENT) {\n currentLevel = level;\n if (persist !== false) { // defaults to true\n persistLevelIfPossible(level);\n }\n replaceLoggingMethods.call(self, level, name);\n if (typeof console === undefinedType && level < self.levels.SILENT) {\n return \"No console available for logging\";\n }\n } else {\n throw \"log.setLevel() called with invalid level: \" + level;\n }\n };\n\n self.setDefaultLevel = function (level) {\n if (!getPersistedLevel()) {\n self.setLevel(level, false);\n }\n };\n\n self.enableAll = function(persist) {\n self.setLevel(self.levels.TRACE, persist);\n };\n\n self.disableAll = function(persist) {\n self.setLevel(self.levels.SILENT, persist);\n };\n\n // Initialize with the right level\n var initialLevel = getPersistedLevel();\n if (initialLevel == null) {\n initialLevel = defaultLevel == null ? \"WARN\" : defaultLevel;\n }\n self.setLevel(initialLevel, false);\n }\n\n /*\n *\n * Top-level API\n *\n */\n\n var defaultLogger = new Logger();\n\n var _loggersByName = {};\n defaultLogger.getLogger = function getLogger(name) {\n if ((typeof name !== \"symbol\" && typeof name !== \"string\") || name === \"\") {\n throw new TypeError(\"You must supply a name when creating a logger.\");\n }\n\n var logger = _loggersByName[name];\n if (!logger) {\n logger = _loggersByName[name] = new Logger(\n name, defaultLogger.getLevel(), defaultLogger.methodFactory);\n }\n return logger;\n };\n\n // Grab the current global log variable in case of overwrite\n var _log = (typeof window !== undefinedType) ? window.log : undefined;\n defaultLogger.noConflict = function() {\n if (typeof window !== undefinedType &&\n window.log === defaultLogger) {\n window.log = _log;\n }\n\n return defaultLogger;\n };\n\n defaultLogger.getLoggers = function getLoggers() {\n return _loggersByName;\n };\n\n // ES6 default export, for compatibility\n defaultLogger['default'] = defaultLogger;\n\n return defaultLogger;\n}));\n","export class Validator {\n private constructor() {}\n\n public static isNumber(any: any): boolean {\n return isNaN(any) === false && typeof any === 'number';\n }\n\n public static isArray(any: any, minLength = 0): boolean {\n return Array.isArray(any) && any.length >= minLength;\n }\n\n public static isObject(any: any): boolean {\n return typeof any === 'object' && any !== null && this.isArray(any) === false;\n }\n\n public static isString(any: any, minLength = 0): boolean {\n return typeof any === 'string' && any.length >= minLength;\n }\n}\n","/* eslint-disable @typescript-eslint/no-unsafe-member-access */\r\nimport * as log from 'loglevel';\r\n\r\nimport { Validator } from './validator';\r\n\r\nconst LOG_CACHE: Object[] = [];\r\n\r\n/**\r\n * Tiny hack\r\n */\r\nfunction getEnvironment(): string {\r\n return '$$NODE_ENV$$';\r\n}\r\n\r\ninterface LogMessage {\r\n className?: string;\r\n messageText: string;\r\n refObject?: unknown;\r\n}\r\n\r\nexport class Log {\r\n private static _instance: Log = null;\r\n\r\n private constructor() {}\r\n\r\n private static log(level: string, message: LogMessage): void {\r\n if (\r\n Validator.isObject(message.refObject) &&\r\n typeof message.refObject.constructor === 'function' &&\r\n Validator.isString(message.refObject.constructor.name)\r\n ) {\r\n // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\r\n message.className = `[${message.refObject.constructor.name}]:`;\r\n }\r\n\r\n LOG_CACHE.push({\r\n date: new Date().toUTCString(),\r\n level,\r\n message,\r\n });\r\n\r\n switch (level) {\r\n case 'trace':\r\n log.trace(message);\r\n break;\r\n case 'debug':\r\n log.debug(message);\r\n break;\r\n case 'info':\r\n log.info(message);\r\n break;\r\n case 'warn':\r\n log.warn(message);\r\n break;\r\n case 'error':\r\n log.error(message);\r\n }\r\n if (getEnvironment() === 'development' && level === 'error') {\r\n throw new Error(`Execution in development mode was canceled. See the error log above.`);\r\n }\r\n }\r\n\r\n public static trace(messageText: string, refObject?: Object): Log {\r\n this.log('trace', { messageText, refObject });\r\n return this;\r\n }\r\n public static debug(messageText: string, refObject?: Object): Log {\r\n this.log('debug', { messageText, refObject });\r\n return this;\r\n }\r\n public static info(messageText: string, refObject?: Object): Log {\r\n this.log('info', { messageText, refObject });\r\n return this;\r\n }\r\n public static warn(messageText: string, refObject?: Object): Log {\r\n this.log('warn', { messageText, refObject });\r\n return this;\r\n }\r\n public static error(messageText: string, refObject?: Object): Log {\r\n this.log('error', { messageText, refObject });\r\n return this;\r\n }\r\n\r\n public static get cache(): Object[] {\r\n return [].concat(LOG_CACHE);\r\n }\r\n}\r\n\r\nswitch (getEnvironment()) {\r\n case 'development':\r\n log.setDefaultLevel('trace');\r\n break;\r\n case 'test':\r\n log.setDefaultLevel('warn');\r\n break;\r\n case 'production':\r\n log.setDefaultLevel('error');\r\n}\r\n","import { Log } from '../helpers/log';\r\nimport { Validator } from '../helpers/validator';\r\n\r\nfunction isInstanceOf(instancesOf: any[], item: any): boolean {\r\n if (Validator.isArray(instancesOf)) {\r\n return (\r\n instancesOf.find((instanceOf: any): boolean => {\r\n return item instanceof instanceOf;\r\n }) !== undefined\r\n );\r\n }\r\n return false;\r\n}\r\n\r\nfunction normalizeListOfItems(items: unknown | unknown[] | ListOf): unknown[] {\r\n return (items instanceof ListOf ? items.get() : Array.isArray(items) ? items : [items]);\r\n}\r\n\r\nexport class ListOf {\r\n private _instancesOf: unknown[] = [];\r\n private _items: T[] = [];\r\n private _protectedItems: unknown[] = [];\r\n\r\n constructor(instancesOf: unknown | unknown[]) {\r\n this._instancesOf = (Array.isArray(instancesOf) ? instancesOf : [instancesOf]);\r\n }\r\n\r\n get empty(): boolean {\r\n return this._items.length === 0;\r\n }\r\n\r\n get first(): T | null {\r\n if (this._items.length > 0) {\r\n return this._items[0];\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n public forEach(action: Function | any): void {\r\n this._items.forEach(action);\r\n }\r\n\r\n public filter(action: Function | any): T[] {\r\n return this._items.filter(action);\r\n }\r\n\r\n public find(action: Function | any): T {\r\n return this._items.find(action);\r\n }\r\n\r\n get last(): any {\r\n if (this._items.length > 0) {\r\n return this._items[this._items.length - 1];\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n get length(): number {\r\n return this._items.length;\r\n }\r\n\r\n public add(items: T | T[] | ListOf, protect = false): boolean {\r\n return (\r\n normalizeListOfItems(items).filter((item: T): boolean => {\r\n let changed = false;\r\n if (this.contains(item) === false) {\r\n if (isInstanceOf(this._instancesOf, item)) {\r\n if (protect) {\r\n this._protectedItems.push(item);\r\n }\r\n this._items.push(item);\r\n changed = true;\r\n } else {\r\n Log.debug(`The item does not have a valid instance type.`, this);\r\n }\r\n } else {\r\n Log.debug(`The item is already in the list.`, this);\r\n }\r\n return changed;\r\n }).length > 0\r\n );\r\n }\r\n\r\n public remove(items: T | T[] | ListOf): boolean {\r\n return (\r\n normalizeListOfItems(items).filter((item: any): boolean => {\r\n let changed = false;\r\n let index: number = this._protectedItems.indexOf(item);\r\n if (index === -1) {\r\n index = this._items.indexOf(item);\r\n if (index >= 0) {\r\n this._items.splice(index, 1);\r\n changed = true;\r\n } else {\r\n Log.debug(`The item is not in the list.`, this);\r\n }\r\n } else {\r\n Log.debug(`The item is protected and cannot be removed.`, this);\r\n }\r\n return changed;\r\n }).length > 0\r\n );\r\n }\r\n\r\n public set(items: T | T[] | ListOf, protect = false): any | boolean {\r\n const cleared: boolean = this.clear();\r\n const added: boolean = this.add(items, protect);\r\n return cleared || added;\r\n }\r\n\r\n public get(length?: number): T[] {\r\n return isNaN(length) === false && typeof length === 'number' ? this._items.slice(0, length) : this._items;\r\n }\r\n\r\n public clear(): boolean {\r\n const length: number = this._items.length;\r\n this._items = this._items.filter((item: T): boolean => {\r\n return this._protectedItems.indexOf(item) >= 0;\r\n });\r\n return length !== this._items.length;\r\n }\r\n\r\n public contains(item: T): boolean {\r\n return this._items.indexOf(item) > -1;\r\n }\r\n}\r\n","const CURRENCY_FORMATTER: Intl.NumberFormat = new Intl.NumberFormat('de-DE', {\n currency: 'EUR',\n maximumFractionDigits: 2,\n minimumFractionDigits: 2,\n});\n\nexport function currency(value: number): string {\n if (isNaN(value) === false && typeof value === 'number') {\n return CURRENCY_FORMATTER.format(value);\n } else {\n return '';\n }\n}\n\n/**\n * https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n *\n * Missing config for leading 0's 1.1.1970 instead of 01.01.1970\n */\nconst DATE_FORMATTER: Intl.DateTimeFormat = new Intl.DateTimeFormat('de-DE');\n\nexport function date(value: Date): string {\n if (value instanceof Date) {\n return DATE_FORMATTER.format(value);\n } else {\n return '';\n }\n}\n"],"names":["this"],"mappings":"0PAAsB,CAAf,aAAP,eACoD,GAAI,KAE/C,SAAY,EAAoB,EAAsB,IAEzD,MAAO,IAAe,UACtB,KAAK,SAAS,IAAI,KAAgB,eAE7B,SAAS,IAAI,EAAY,GACvB,UAED,IAAI,OAAM,gBAAgB,8BAI7B,IAAO,EAAuB,IAEjC,MAAO,IAAe,UACtB,KAAK,SAAS,IAAI,KAAgB,SAExB,MAAK,SAAS,IAAI,QAEtB,IAAI,OAAM,gBAAgB,+BAKzB,GAAe,GAAI,oLCrBhC,AAAC,UAAU,EAAM,EAAY,CAIlB,AAAkC,EAAO,QAC5C,UAAiB,IAEjB,EAAK,IAAM,MAEjBA,EAAM,UAAY,CAIhB,GAAI,GAAO,UAAW,GAClB,EAAgB,YAChB,EAAQ,MAAO,UAAW,GAAmB,MAAO,QAAO,YAAc,GACzE,kBAAkB,KAAK,OAAO,UAAU,WAG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OAAO,EAAqC,OAE/C,GAAqB,GAAO,OAAO,AAAC,GAAuB,IACrD,GAAU,GACV,EAAgB,KAAK,gBAAgB,QAAQ,SAC7C,KAAU,MACJ,KAAK,OAAO,QAAQ,GACxB,GAAS,QACN,OAAO,OAAO,EAAO,KAChB,MAEN,MAAM,+BAAgC,SAGxC,MAAM,+CAAgD,MAErD,IACN,OAAS,EAIT,IAAI,EAA4B,EAAU,GAAsB,MAC/D,GAAmB,KAAK,QACxB,EAAiB,KAAK,IAAI,EAAO,SAChC,IAAW,EAGb,IAAI,EAAsB,OACxB,OAAM,KAAY,IAAS,MAAO,IAAW,SAAW,KAAK,OAAO,MAAM,EAAG,GAAU,KAAK,OAG9F,OAAiB,MAChB,GAAiB,KAAK,OAAO,mBAC9B,OAAS,KAAK,OAAO,OAAO,AAAC,GACzB,KAAK,gBAAgB,QAAQ,IAAS,GAExC,IAAW,KAAK,OAAO,OAGzB,SAAS,EAAkB,OACzB,MAAK,OAAO,QAAQ,GAAQ,IC7HvC,KAAM,GAAwC,GAAI,MAAK,aAAa,QAAS,CAC3E,SAAU,MACV,sBAAuB,EACvB,sBAAuB,eAGA,EAAuB,OAC1C,OAAM,KAAW,IAAS,MAAO,IAAU,SACtC,EAAmB,OAAO,GAE1B,GASX,KAAM,GAAsC,GAAI,MAAK,eAAe,oBAE/C,EAAqB,OACpC,aAAiB,MACZ,EAAe,OAAO,GAEtB"} \ No newline at end of file diff --git a/packages/components/src/assets/@leanup/lib/index.js b/packages/components/src/assets/@leanup/lib/index.js deleted file mode 100644 index d97df3f8f6..0000000000 --- a/packages/components/src/assets/@leanup/lib/index.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LeanUpLib={})}(this,(function(e){"use strict";class t extends HTMLElement{constructor(){super(),this.dom=this}render(){}connectedCallback(){this.render()}}class o{constructor(){this.services=new Map,this.lazyLoaders=new Set}register(e,t,o={lazy:!1}){if("string"==typeof e&&!1===this.services.has(e))return this.services.set(e,t),!0===(null==o?void 0:o.lazy)&&this.lazyLoaders.add(e),this;throw new Error(`The service '${e}' is allready registered!`)}get(e){if(this.lazyLoaders.has(e)&&(this.services.set(e,this.services.get(e)()),this.lazyLoaders.delete(e)),"string"==typeof e&&!0===this.services.has(e))return this.services.get(e);throw new Error(`The service '${e}' is not registered!`)}}const i=new o;var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s={exports:{}};!function(e){var t,o;t=r,o=function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"];function r(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function n(i){return"debug"===i&&(i="log"),typeof console!==t&&("trace"===i&&o?s:void 0!==console[i]?r(console,i):void 0!==console.log?r(console,"log"):e)}function l(t,o){for(var r=0;r=0&&o<=n.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(s=o,!1!==r&&function(e){var o=(i[e]||"silent").toUpperCase();if(typeof window!==t&&a){try{return void(window.localStorage[a]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"="+o+";"}catch(e){}}}(o),l.call(n,o,e),typeof console===t&&o0?t.shieldStyle:"color: white; background: #666; font-weight: bold; font-size: 10px; padding: 2px 6px; border-radius: 3px; border: 1px solid #000"]}static getInstance(e,t={}){if("string"==typeof e&&e.length>0)return!1===l.instances.has(e)&&l.instances.set(e,new l(e)),l.instances.get(e);throw new Error("The identifier of the Logger must be a string with a min length of 1.")}log(e,t){switch("object"==typeof t.refObject&&null!==t.refObject&&"function"==typeof t.refObject.constructor&&"string"==typeof t.refObject.constructor.name&&(t.className=`[${t.refObject.constructor.name}]:`),n.push({date:(new Date).toUTCString(),level:e,message:t}),e){case"trace":s.exports.trace(...this.shield,t);break;case"debug":s.exports.debug(...this.shield,t);break;case"info":s.exports.info(...this.shield,t);break;case"warn":s.exports.warn(...this.shield,t);break;default:if(s.exports.error(...this.shield,t),"error"===e)throw new Error("↑ Execution in development mode was canceled. See the error log above.")}}trace(e,t){return this.log("trace",{messageText:e,refObject:t}),this}debug(e,t){return this.log("debug",{messageText:e,refObject:t}),this}info(e,t){return this.log("info",{messageText:e,refObject:t}),this}warn(e,t){return this.log("warn",{messageText:e,refObject:t}),this}error(e,t){return this.log("error",{messageText:e,refObject:t}),this}static get cache(){return[].concat(n)}}l.instances=new Map,s.exports.setDefaultLevel("trace");const a=l.getInstance("leanup");function c(e){return e instanceof d?e.get():Array.isArray(e)?e:[e]}class d{constructor(e){this.items=new Set,this.protectedItems=new Set,this.instancesOf=Array.isArray(e)?e:[e]}get empty(){return 0===this.items.size}get first(){return this.items.size>0?Array.from(this.items)[0]:null}forEach(e){this.items.forEach(e)}filter(e){return Array.from(this.items).filter(e)}find(e){return Array.from(this.items).find(e)}get last(){return this.items.size>0?Array.from(this.items)[this.items.size-1]:null}get length(){return a.debug("The attribute ListOf.length is deprecated - please use ListOf.size instead."),this.size}get size(){return this.items.size}add(e,t=!1){return c(e).filter((e=>{let o=!1;return!1===this.has(e)?!function(e,t){return!!Array.isArray(e)&&void 0!==e.find((e=>t instanceof e))}(this.instancesOf,e)?a.debug("The item does not have a valid instance type.",this):(t&&this.protectedItems.add(e),this.items.add(e),o=!0):a.debug("The item is already in the list.",this),o})).length>0}remove(e){return a.debug("The method ListOf.remove() is deprecated - please use ListOf.delete() instead."),this.delete(e)}delete(e){return c(e).filter((e=>{let t=!1;return!1===this.protectedItems.has(e)?this.items.has(e)?(this.items.delete(e),t=!0):a.debug("The item is not in the list.",this):a.debug("The item is protected and cannot be removed.",this),t})).length>0}set(e,t=!1){const o=this.clear(),i=this.add(e,t);return o||i}get(e){return!1===isNaN(e)&&"number"==typeof e?Array.from(this.items).slice(0,e):Array.from(this.items)}clear(){const e=this.items.size;return this.items.forEach((e=>{!1===this.protectedItems.has(e)&&this.items.delete(e)})),e!==this.items.size}contains(e){return a.debug("The method ListOf.contains() is deprecated - please use ListOf.has() instead."),this.items.has(e)}has(e){return this.items.has(e)}}const h=new Intl.NumberFormat("de-DE",{currency:"EUR",maximumFractionDigits:2,minimumFractionDigits:2});const u=new Intl.DateTimeFormat("de-DE");e.AbstractController=class{constructor(e){this.couple=e}doDistroy(){var e,t,o,i;"function"==typeof(null===(t=null===(e=this.couple)||void 0===e?void 0:e.hooks)||void 0===t?void 0:t.doDistroy)&&(null===(i=null===(o=this.couple)||void 0===o?void 0:o.hooks)||void 0===i||i.doDistroy())}doRender(){var e,t;"function"==typeof(null===(t=null===(e=this.couple)||void 0===e?void 0:e.hooks)||void 0===t?void 0:t.doRender)&&(clearTimeout(this.doRenderTimeout),this.doRenderTimeout=setTimeout((()=>{var e,t;null===(t=null===(e=this.couple)||void 0===e?void 0:e.hooks)||void 0===t||t.doRender()}),50))}},e.ArchController=()=>()=>{},e.ArchModel=()=>()=>{},e.ArchService=()=>()=>{},e.ArchView=()=>()=>{},e.DI=i,e.Injector=o,e.Log=a,e.Logger=l,e.SetOf=d,e.VanillaComponent=t,e.currency=function(e){return!1===isNaN(e)&&"number"==typeof e?h.format(e):""},e.date=function(e){return e instanceof Date?u.format(e):""},Object.defineProperty(e,"__esModule",{value:!0})})); -//# sourceMappingURL=index.js.map diff --git a/packages/components/src/assets/@leanup/lib/index.js.map b/packages/components/src/assets/@leanup/lib/index.js.map deleted file mode 100644 index 42a5b43699..0000000000 --- a/packages/components/src/assets/@leanup/lib/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sources":["../src/components/vanilla.ts","../src/helpers/injector.ts","../node_modules/loglevel/lib/loglevel.js","../src/helpers/log.ts","../src/pattern/list-of.ts","../src/shares/filters.ts","../src/architecture/controller.ts","../src/architecture/decorators.ts"],"sourcesContent":[null,null,"/*\n* loglevel - https://github.com/pimterry/loglevel\n*\n* Copyright (c) 2013 Tim Perry\n* Licensed under the MIT license.\n*/\n(function (root, definition) {\n \"use strict\";\n if (typeof define === 'function' && define.amd) {\n define(definition);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = definition();\n } else {\n root.log = definition();\n }\n}(this, function () {\n \"use strict\";\n\n // Slightly dubious tricks to cut down minimized file size\n var noop = function() {};\n var undefinedType = \"undefined\";\n var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (\n /Trident\\/|MSIE /.test(window.navigator.userAgent)\n );\n\n var logMethods = [\n \"trace\",\n \"debug\",\n \"info\",\n \"warn\",\n \"error\"\n ];\n\n // Cross-browser bind equivalent that works at least back to IE6\n function bindMethod(obj, methodName) {\n var method = obj[methodName];\n if (typeof method.bind === 'function') {\n return method.bind(obj);\n } else {\n try {\n return Function.prototype.bind.call(method, obj);\n } catch (e) {\n // Missing bind shim or IE8 + Modernizr, fallback to wrapping\n return function() {\n return Function.prototype.apply.apply(method, [obj, arguments]);\n };\n }\n }\n }\n\n // Trace() doesn't print the message in IE, so for that case we need to wrap it\n function traceForIE() {\n if (console.log) {\n if (console.log.apply) {\n console.log.apply(console, arguments);\n } else {\n // In old IE, native console methods themselves don't have apply().\n Function.prototype.apply.apply(console.log, [console, arguments]);\n }\n }\n if (console.trace) console.trace();\n }\n\n // Build the best logging method possible for this env\n // Wherever possible we want to bind, not wrap, to preserve stack traces\n function realMethod(methodName) {\n if (methodName === 'debug') {\n methodName = 'log';\n }\n\n if (typeof console === undefinedType) {\n return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives\n } else if (methodName === 'trace' && isIE) {\n return traceForIE;\n } else if (console[methodName] !== undefined) {\n return bindMethod(console, methodName);\n } else if (console.log !== undefined) {\n return bindMethod(console, 'log');\n } else {\n return noop;\n }\n }\n\n // These private functions always need `this` to be set properly\n\n function replaceLoggingMethods(level, loggerName) {\n /*jshint validthis:true */\n for (var i = 0; i < logMethods.length; i++) {\n var methodName = logMethods[i];\n this[methodName] = (i < level) ?\n noop :\n this.methodFactory(methodName, level, loggerName);\n }\n\n // Define log.log as an alias for log.debug\n this.log = this.debug;\n }\n\n // In old IE versions, the console isn't present until you first open it.\n // We build realMethod() replacements here that regenerate logging methods\n function enableLoggingWhenConsoleArrives(methodName, level, loggerName) {\n return function () {\n if (typeof console !== undefinedType) {\n replaceLoggingMethods.call(this, level, loggerName);\n this[methodName].apply(this, arguments);\n }\n };\n }\n\n // By default, we use closely bound real methods wherever possible, and\n // otherwise we wait for a console to appear, and then try again.\n function defaultMethodFactory(methodName, level, loggerName) {\n /*jshint validthis:true */\n return realMethod(methodName) ||\n enableLoggingWhenConsoleArrives.apply(this, arguments);\n }\n\n function Logger(name, defaultLevel, factory) {\n var self = this;\n var currentLevel;\n defaultLevel = defaultLevel == null ? \"WARN\" : defaultLevel;\n\n var storageKey = \"loglevel\";\n if (typeof name === \"string\") {\n storageKey += \":\" + name;\n } else if (typeof name === \"symbol\") {\n storageKey = undefined;\n }\n\n function persistLevelIfPossible(levelNum) {\n var levelName = (logMethods[levelNum] || 'silent').toUpperCase();\n\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage[storageKey] = levelName;\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=\" + levelName + \";\";\n } catch (ignore) {}\n }\n\n function getPersistedLevel() {\n var storedLevel;\n\n if (typeof window === undefinedType || !storageKey) return;\n\n try {\n storedLevel = window.localStorage[storageKey];\n } catch (ignore) {}\n\n // Fallback to cookies if local storage gives us nothing\n if (typeof storedLevel === undefinedType) {\n try {\n var cookie = window.document.cookie;\n var location = cookie.indexOf(\n encodeURIComponent(storageKey) + \"=\");\n if (location !== -1) {\n storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1];\n }\n } catch (ignore) {}\n }\n\n // If the stored level is not valid, treat it as if nothing was stored.\n if (self.levels[storedLevel] === undefined) {\n storedLevel = undefined;\n }\n\n return storedLevel;\n }\n\n function clearPersistedLevel() {\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage.removeItem(storageKey);\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=; expires=Thu, 01 Jan 1970 00:00:00 UTC\";\n } catch (ignore) {}\n }\n\n /*\n *\n * Public logger API - see https://github.com/pimterry/loglevel for details\n *\n */\n\n self.name = name;\n\n self.levels = { \"TRACE\": 0, \"DEBUG\": 1, \"INFO\": 2, \"WARN\": 3,\n \"ERROR\": 4, \"SILENT\": 5};\n\n self.methodFactory = factory || defaultMethodFactory;\n\n self.getLevel = function () {\n return currentLevel;\n };\n\n self.setLevel = function (level, persist) {\n if (typeof level === \"string\" && self.levels[level.toUpperCase()] !== undefined) {\n level = self.levels[level.toUpperCase()];\n }\n if (typeof level === \"number\" && level >= 0 && level <= self.levels.SILENT) {\n currentLevel = level;\n if (persist !== false) { // defaults to true\n persistLevelIfPossible(level);\n }\n replaceLoggingMethods.call(self, level, name);\n if (typeof console === undefinedType && level < self.levels.SILENT) {\n return \"No console available for logging\";\n }\n } else {\n throw \"log.setLevel() called with invalid level: \" + level;\n }\n };\n\n self.setDefaultLevel = function (level) {\n defaultLevel = level;\n if (!getPersistedLevel()) {\n self.setLevel(level, false);\n }\n };\n\n self.resetLevel = function () {\n self.setLevel(defaultLevel, false);\n clearPersistedLevel();\n };\n\n self.enableAll = function(persist) {\n self.setLevel(self.levels.TRACE, persist);\n };\n\n self.disableAll = function(persist) {\n self.setLevel(self.levels.SILENT, persist);\n };\n\n // Initialize with the right level\n var initialLevel = getPersistedLevel();\n if (initialLevel == null) {\n initialLevel = defaultLevel;\n }\n self.setLevel(initialLevel, false);\n }\n\n /*\n *\n * Top-level API\n *\n */\n\n var defaultLogger = new Logger();\n\n var _loggersByName = {};\n defaultLogger.getLogger = function getLogger(name) {\n if ((typeof name !== \"symbol\" && typeof name !== \"string\") || name === \"\") {\n throw new TypeError(\"You must supply a name when creating a logger.\");\n }\n\n var logger = _loggersByName[name];\n if (!logger) {\n logger = _loggersByName[name] = new Logger(\n name, defaultLogger.getLevel(), defaultLogger.methodFactory);\n }\n return logger;\n };\n\n // Grab the current global log variable in case of overwrite\n var _log = (typeof window !== undefinedType) ? window.log : undefined;\n defaultLogger.noConflict = function() {\n if (typeof window !== undefinedType &&\n window.log === defaultLogger) {\n window.log = _log;\n }\n\n return defaultLogger;\n };\n\n defaultLogger.getLoggers = function getLoggers() {\n return _loggersByName;\n };\n\n // ES6 default export, for compatibility\n defaultLogger['default'] = defaultLogger;\n\n return defaultLogger;\n}));\n",null,null,null,null,null],"names":["VanillaComponent","HTMLElement","constructor","super","this","dom","render","connectedCallback","Injector","services","Map","lazyLoaders","Set","register","identifier","lazyLoaderOrService","options","lazy","has","set","add","Error","get","delete","DI","root","definition","noop","undefinedType","isIE","window","navigator","test","userAgent","logMethods","bindMethod","obj","methodName","method","bind","Function","prototype","call","e","apply","arguments","traceForIE","console","log","trace","realMethod","undefined","replaceLoggingMethods","level","loggerName","i","length","methodFactory","debug","enableLoggingWhenConsoleArrives","defaultMethodFactory","Logger","name","defaultLevel","factory","currentLevel","self","storageKey","getPersistedLevel","storedLevel","localStorage","ignore","cookie","document","location","indexOf","encodeURIComponent","exec","slice","levels","TRACE","DEBUG","INFO","WARN","ERROR","SILENT","getLevel","setLevel","persist","toUpperCase","levelNum","levelName","persistLevelIfPossible","setDefaultLevel","resetLevel","removeItem","clearPersistedLevel","enableAll","disableAll","initialLevel","defaultLogger","_loggersByName","getLogger","TypeError","logger","_log","noConflict","getLoggers","module","exports","LOG_CACHE","shield","shieldStyle","static","instances","message","refObject","className","push","date","Date","toUTCString","loglevel.trace","loglevel.debug","loglevel.info","loglevel.warn","loglevel.error","messageText","info","warn","error","cache","concat","loglevel.setDefaultLevel","Log","getInstance","normalizeSetOfItems","items","SetOf","Array","isArray","instancesOf","protectedItems","empty","size","first","from","forEach","action","filter","find","last","protect","item","changed","instanceOf","isInstanceOf","remove","cleared","clear","added","isNaN","contains","CURRENCY_FORMATTER","Intl","NumberFormat","currency","maximumFractionDigits","minimumFractionDigits","DATE_FORMATTER","DateTimeFormat","couple","doDistroy","_b","_a","hooks","_d","_c","doRender","clearTimeout","doRenderTimeout","setTimeout","value","format"],"mappings":"iPAAM,MAAOA,UAAyBC,YAGpCC,cACEC,QACAC,KAAKC,IAAMD,KAMHE,UAEHC,oBACLH,KAAKE,gBCRIE,EAAbN,cACmBE,KAAAK,SAAW,IAAIC,IACfN,KAAAO,YAAc,IAAIC,IAE5BC,SACLC,EACAC,EACAC,EAA2B,CACzBC,MAAM,IAGR,GAA0B,iBAAfH,IAA6D,IAAlCV,KAAKK,SAASS,IAAIJ,GAKtD,OAJAV,KAAKK,SAASU,IAAIL,EAAYC,IACR,KAAlBC,MAAAA,OAAO,EAAPA,EAASC,OACXb,KAAKO,YAAYS,IAAIN,GAEhBV,KAEP,MAAM,IAAIiB,MAAM,gBAAgBP,8BAI7BQ,IAAOR,GAKZ,GAJIV,KAAKO,YAAYO,IAAIJ,KACvBV,KAAKK,SAASU,IAAIL,EAA4BV,KAAKK,SAASa,IAAIR,EAAlBV,IAC9CA,KAAKO,YAAYY,OAAOT,IAEA,iBAAfA,IAA6D,IAAlCV,KAAKK,SAASS,IAAIJ,GACtD,OAAUV,KAAKK,SAASa,IAAIR,GAE5B,MAAM,IAAIO,MAAM,gBAAgBP,0BAKzB,MAAAU,EAAe,IAAIhB,mLCnC/B,IAAUiB,EAAMC,EAAND,EASTrB,EATesB,EAST,WAIJ,IAAIC,EAAO,aACPC,EAAgB,YAChBC,SAAeC,SAAWF,UAA0BE,OAAOC,YAAcH,GACzE,kBAAkBI,KAAKF,OAAOC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EAAI5E,MAAM,iFACHtD,KAAKqI,MAAMvH,IAAIuI,GAGjBvI,IAAIuI,GACT,OAAOrJ,KAAKqI,MAAMvH,IAAIuI,IC7I1B,MAAMU,EAAwC,IAAIC,KAAKC,aAAa,QAAS,CAC3EC,SAAU,MACVC,sBAAuB,EACvBC,sBAAuB,IAgBzB,MAAMC,EAAsC,IAAIL,KAAKM,eAAe,oCCblExK,YAAmByK,GACjBvK,KAAKuK,OAASA,EAGNC,wBACqC,mBAAd,QAApBC,EAAa,QAAbC,EAAA1K,KAAKuK,cAAQ,IAAAG,OAAA,EAAAA,EAAAC,aAAO,IAAAF,OAAA,EAAAA,EAAAD,aACX,QAAlBI,UAAAC,EAAA7K,KAAKuK,6BAAQI,aAAK,IAAAC,GAAAA,EAAEJ,aAIdM,mBACoC,mBAAb,QAApBL,EAAa,QAAbC,EAAA1K,KAAKuK,cAAQ,IAAAG,OAAA,EAAAA,EAAAC,aAAO,IAAAF,OAAA,EAAAA,EAAAK,YAC7BC,aAAa/K,KAAKgL,iBAClBhL,KAAKgL,gBAAkBC,YAAW,aACd,QAAlBR,UAAAC,EAAA1K,KAAKuK,6BAAQI,aAAK,IAAAF,GAAAA,EAAEK,aACnB,wBCrBqB,IACrB,mBAEgB,IAChB,qBAEkB,IAClB,kBAEe,IACf,wFFJH,SAAmBI,GACvB,OAAqB,IAAjBrB,MAAMqB,IAAqC,iBAAVA,EAC5BnB,EAAmBoB,OAAOD,GAE1B,WAWL,SAAeA,GACnB,OAAIA,aAAiB9D,KACZiD,EAAec,OAAOD,GAEtB"} \ No newline at end of file diff --git a/packages/components/src/assets/codicons/LICENSE b/packages/components/src/assets/codicons/LICENSE index a2c95fc155..085c3ca0c4 100644 --- a/packages/components/src/assets/codicons/LICENSE +++ b/packages/components/src/assets/codicons/LICENSE @@ -1,395 +1,395 @@ -Attribution 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution 4.0 International Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution 4.0 International Public License ("Public License"). To the -extent this Public License may be interpreted as a contract, You are -granted the Licensed Rights in consideration of Your acceptance of -these terms and conditions, and the Licensor grants You such rights in -consideration of benefits the Licensor receives from making the -Licensed Material available under these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - d. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - e. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - f. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - g. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - h. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - i. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - j. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - k. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part; and - - b. produce, reproduce, and Share Adapted Material. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - 4. If You Share Adapted Material You produce, the Adapter's - License You apply must not prevent recipients of the Adapted - Material from complying with this Public License. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material; and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - - -======================================================================= - -Creative Commons is not a party to its public -licenses. Notwithstanding, Creative Commons may elect to apply one of -its public licenses to material it publishes and in those instances -will be considered the “Licensor.” The text of the Creative Commons -public licenses is dedicated to the public domain under the CC0 Public -Domain Dedication. Except for the limited purpose of indicating that -material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the -public licenses. - +Attribution 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More_considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution 4.0 International Public License ("Public License"). To the +extent this Public License may be interpreted as a contract, You are +granted the Licensed Rights in consideration of Your acceptance of +these terms and conditions, and the Licensor grants You such rights in +consideration of benefits the Licensor receives from making the +Licensed Material available under these terms and conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + d. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + e. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + f. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + g. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + h. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + i. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + j. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + k. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part; and + + b. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + 4. If You Share Adapted Material You produce, the Adapter's + License You apply must not prevent recipients of the Adapted + Material from complying with this Public License. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material; and + + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + Creative Commons may be contacted at creativecommons.org. \ No newline at end of file diff --git a/packages/components/src/assets/codicons/LICENSE-CODE b/packages/components/src/assets/codicons/LICENSE-CODE index 9e841e7a26..3d8b93bc79 100644 --- a/packages/components/src/assets/codicons/LICENSE-CODE +++ b/packages/components/src/assets/codicons/LICENSE-CODE @@ -1,21 +1,21 @@ - MIT License - - Copyright (c) Microsoft Corporation. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/packages/components/src/assets/codicons/codicon.css b/packages/components/src/assets/codicons/codicon.css index 404f5e1031..739be06ee4 100644 --- a/packages/components/src/assets/codicons/codicon.css +++ b/packages/components/src/assets/codicons/codicon.css @@ -6,7 +6,7 @@ @font-face { font-family: "codicon"; font-display: block; - src: url("./codicon.ttf?0e5b0adf625a37fbcd638d31f0fe72aa") format("truetype"); + src: url("./codicon.ttf?be64b7213e352cd7f91ef58198e71237") format("truetype"); } .codicon[class*='codicon-'] { @@ -72,6 +72,7 @@ .codicon-record-keys:before { content: "\ea65" } .codicon-keyboard:before { content: "\ea65" } .codicon-tag:before { content: "\ea66" } +.codicon-git-pull-request-label:before { content: "\ea66" } .codicon-tag-add:before { content: "\ea66" } .codicon-tag-remove:before { content: "\ea66" } .codicon-person:before { content: "\ea67" } @@ -107,6 +108,7 @@ .codicon-debug-breakpoint:before { content: "\ea71" } .codicon-debug-breakpoint-disabled:before { content: "\ea71" } .codicon-debug-hint:before { content: "\ea71" } +.codicon-terminal-decoration-success:before { content: "\ea71" } .codicon-primitive-square:before { content: "\ea72" } .codicon-edit:before { content: "\ea73" } .codicon-pencil:before { content: "\ea73" } @@ -226,7 +228,9 @@ .codicon-chrome-minimize:before { content: "\eaba" } .codicon-chrome-restore:before { content: "\eabb" } .codicon-circle-outline:before { content: "\eabc" } +.codicon-circle:before { content: "\eabc" } .codicon-debug-breakpoint-unverified:before { content: "\eabc" } +.codicon-terminal-decoration-incomplete:before { content: "\eabc" } .codicon-circle-slash:before { content: "\eabd" } .codicon-circuit-board:before { content: "\eabe" } .codicon-clear-all:before { content: "\eabf" } @@ -261,6 +265,7 @@ .codicon-diff-removed:before { content: "\eadf" } .codicon-diff-renamed:before { content: "\eae0" } .codicon-diff:before { content: "\eae1" } +.codicon-diff-sidebyside:before { content: "\eae1" } .codicon-discard:before { content: "\eae2" } .codicon-editor-layout:before { content: "\eae3" } .codicon-empty-window:before { content: "\eae4" } @@ -324,6 +329,7 @@ .codicon-megaphone:before { content: "\eb1e" } .codicon-mention:before { content: "\eb1f" } .codicon-milestone:before { content: "\eb20" } +.codicon-git-pull-request-milestone:before { content: "\eb20" } .codicon-mortar-board:before { content: "\eb21" } .codicon-move:before { content: "\eb22" } .codicon-multiple-windows:before { content: "\eb23" } @@ -435,6 +441,7 @@ .codicon-debug-stackframe-active:before { content: "\eb89" } .codicon-circle-small-filled:before { content: "\eb8a" } .codicon-debug-stackframe-dot:before { content: "\eb8a" } +.codicon-terminal-decoration-mark:before { content: "\eb8a" } .codicon-debug-stackframe:before { content: "\eb8b" } .codicon-debug-stackframe-focused:before { content: "\eb8b" } .codicon-debug-breakpoint-unsupported:before { content: "\eb8c" } @@ -448,9 +455,11 @@ .codicon-menu:before { content: "\eb94" } .codicon-expand-all:before { content: "\eb95" } .codicon-feedback:before { content: "\eb96" } +.codicon-git-pull-request-reviewer:before { content: "\eb96" } .codicon-group-by-ref-type:before { content: "\eb97" } .codicon-ungroup-by-ref-type:before { content: "\eb98" } .codicon-account:before { content: "\eb99" } +.codicon-git-pull-request-assignee:before { content: "\eb99" } .codicon-bell-dot:before { content: "\eb9a" } .codicon-debug-console:before { content: "\eb9b" } .codicon-library:before { content: "\eb9c" } @@ -479,6 +488,7 @@ .codicon-pinned-dirty:before { content: "\ebb2" } .codicon-pass-filled:before { content: "\ebb3" } .codicon-circle-large-filled:before { content: "\ebb4" } +.codicon-circle-large:before { content: "\ebb5" } .codicon-circle-large-outline:before { content: "\ebb5" } .codicon-combine:before { content: "\ebb6" } .codicon-gather:before { content: "\ebb6" } @@ -552,6 +562,7 @@ .codicon-indent:before { content: "\ebf9" } .codicon-record-small:before { content: "\ebfa" } .codicon-error-small:before { content: "\ebfb" } +.codicon-terminal-decoration-error:before { content: "\ebfb" } .codicon-arrow-circle-down:before { content: "\ebfc" } .codicon-arrow-circle-left:before { content: "\ebfd" } .codicon-arrow-circle-right:before { content: "\ebfe" } @@ -562,10 +573,63 @@ .codicon-blank:before { content: "\ec03" } .codicon-heart-filled:before { content: "\ec04" } .codicon-map:before { content: "\ec05" } +.codicon-map-horizontal:before { content: "\ec05" } +.codicon-fold-horizontal:before { content: "\ec05" } .codicon-map-filled:before { content: "\ec06" } +.codicon-map-horizontal-filled:before { content: "\ec06" } +.codicon-fold-horizontal-filled:before { content: "\ec06" } .codicon-circle-small:before { content: "\ec07" } .codicon-bell-slash:before { content: "\ec08" } .codicon-bell-slash-dot:before { content: "\ec09" } .codicon-comment-unresolved:before { content: "\ec0a" } .codicon-git-pull-request-go-to-changes:before { content: "\ec0b" } .codicon-git-pull-request-new-changes:before { content: "\ec0c" } +.codicon-search-fuzzy:before { content: "\ec0d" } +.codicon-comment-draft:before { content: "\ec0e" } +.codicon-send:before { content: "\ec0f" } +.codicon-sparkle:before { content: "\ec10" } +.codicon-insert:before { content: "\ec11" } +.codicon-mic:before { content: "\ec12" } +.codicon-thumbsdown-filled:before { content: "\ec13" } +.codicon-thumbsup-filled:before { content: "\ec14" } +.codicon-coffee:before { content: "\ec15" } +.codicon-snake:before { content: "\ec16" } +.codicon-game:before { content: "\ec17" } +.codicon-vr:before { content: "\ec18" } +.codicon-chip:before { content: "\ec19" } +.codicon-piano:before { content: "\ec1a" } +.codicon-music:before { content: "\ec1b" } +.codicon-mic-filled:before { content: "\ec1c" } +.codicon-repo-fetch:before { content: "\ec1d" } +.codicon-copilot:before { content: "\ec1e" } +.codicon-lightbulb-sparkle:before { content: "\ec1f" } +.codicon-robot:before { content: "\ec20" } +.codicon-sparkle-filled:before { content: "\ec21" } +.codicon-diff-single:before { content: "\ec22" } +.codicon-diff-multiple:before { content: "\ec23" } +.codicon-surround-with:before { content: "\ec24" } +.codicon-share:before { content: "\ec25" } +.codicon-git-stash:before { content: "\ec26" } +.codicon-git-stash-apply:before { content: "\ec27" } +.codicon-git-stash-pop:before { content: "\ec28" } +.codicon-vscode:before { content: "\ec29" } +.codicon-vscode-insiders:before { content: "\ec2a" } +.codicon-code-oss:before { content: "\ec2b" } +.codicon-run-coverage:before { content: "\ec2c" } +.codicon-run-all-coverage:before { content: "\ec2d" } +.codicon-coverage:before { content: "\ec2e" } +.codicon-github-project:before { content: "\ec2f" } +.codicon-map-vertical:before { content: "\ec30" } +.codicon-fold-vertical:before { content: "\ec30" } +.codicon-map-vertical-filled:before { content: "\ec31" } +.codicon-fold-vertical-filled:before { content: "\ec31" } +.codicon-go-to-search:before { content: "\ec32" } +.codicon-percentage:before { content: "\ec33" } +.codicon-sort-percentage:before { content: "\ec33" } +.codicon-attach:before { content: "\ec34" } +.codicon-go-to-editing-session:before { content: "\ec35" } +.codicon-edit-session:before { content: "\ec36" } +.codicon-code-review:before { content: "\ec37" } +.codicon-copilot-warning:before { content: "\ec38" } +.codicon-python:before { content: "\ec39" } +.codicon-git-fetch:before { content: "\f101" } diff --git a/packages/components/src/assets/codicons/codicon.csv b/packages/components/src/assets/codicons/codicon.csv index 0fd7d656ad..9ff6867799 100644 --- a/packages/components/src/assets/codicons/codicon.csv +++ b/packages/components/src/assets/codicons/codicon.csv @@ -17,6 +17,7 @@ arrow-small-right,,EA9F arrow-small-up,,EAA0 arrow-swap,,EBCB arrow-up,,EAA1 +attach,,EC34 azure-devops,,EBE8 azure,,EBD8 beaker-stop,,EBE1 @@ -46,17 +47,18 @@ chevron-down,,EAB4 chevron-left,,EAB5 chevron-right,,EAB6 chevron-up,,EAB7 +chip,,EC19 chrome-close,,EAB8 chrome-maximize,,EAB9 chrome-minimize,,EABA chrome-restore,,EABB circle-filled,,EA71 circle-large-filled,,EBB4 -circle-large-outline,,EBB5 -circle-outline,,EABC +circle-large,,EBB5 circle-slash,,EABD circle-small-filled,,EB8A circle-small,,EC07 +circle,,EABC circuit-board,,EABE clear-all,,EABF clippy,,EAC0 @@ -65,17 +67,24 @@ close,,EA76 cloud-download,,EAC2 cloud-upload,,EAC3 cloud,,EBAA +code-oss,,EC2B +code-review,,EC37 code,,EAC4 +coffee,,EC15 collapse-all,,EAC5 color-mode,,EAC6 combine,,EBB6 comment-discussion,,EAC7 +comment-draft,,EC0E comment-unresolved,,EC0A comment,,EA6B compass-active,,EBD7 compass-dot,,EBD6 compass,,EBD5 +copilot-warning,,EC38 +copilot,,EC1E copy,,EBCC +coverage,,EC2E credit-card,,EAC9 dash,,EACC dashboard,,EACD @@ -119,10 +128,13 @@ device-mobile,,EADB diff-added,,EADC diff-ignored,,EADD diff-modified,,EADE +diff-multiple,,EC23 diff-removed,,EADF diff-renamed,,EAE0 +diff-single,,EC22 diff,,EAE1 discard,,EAE2 +edit-session,,EC36 edit,,EA73 editor-layout,,EAE3 ellipsis,,EA7C @@ -156,11 +168,13 @@ folder-active,,EAF6 folder-library,,EBDF folder-opened,,EAF7 folder,,EA83 +game,,EC17 gear,,EAF8 gift,,EAF9 gist-secret,,EAFA git-commit,,EAFC git-compare,,EAFD +git-fetch,,F101 git-merge,,EAFE git-pull-request-closed,,EBDA git-pull-request-create,,EBBC @@ -168,12 +182,18 @@ git-pull-request-draft,,EBDB git-pull-request-go-to-changes,,EC0B git-pull-request-new-changes,,EC0C git-pull-request,,EA64 +git-stash-apply,,EC27 +git-stash-pop,,EC28 +git-stash,,EC26 github-action,,EAFF github-alt,,EB00 github-inverted,,EBA1 +github-project,,EC2F github,,EA84 globe,,EB01 +go-to-editing-session,,EC35 go-to-file,,EA94 +go-to-search,,EC32 grabber,,EB02 graph-left,,EBAD graph-line,,EBE2 @@ -190,6 +210,7 @@ hubot,,EB08 inbox,,EB09 indent,,EBF9 info,,EA74 +insert,,EC11 inspect,,EBD1 issue-draft,,EBD9 issue-reopened,,EB0B @@ -221,6 +242,7 @@ layout-statusbar,,EBF5 layout,,EBEB library,,EB9C lightbulb-autofix,,EB13 +lightbulb-sparkle,,EC1F lightbulb,,EA61 link-external,,EB14 link,,EB15 @@ -239,17 +261,22 @@ magnet,,EBAE mail-read,,EB1B mail,,EB1C map-filled,,EC06 +map-vertical-filled,,EC31 +map-vertical,,EC30 map,,EC05 markdown,,EB1D megaphone,,EB1E mention,,EB1F menu,,EB94 merge,,EBAB +mic-filled,,EC1C +mic,,EC12 milestone,,EB20 mirror,,EA69 mortar-board,,EB21 move,,EB22 multiple-windows,,EB23 +music,,EC1B mute,,EB24 new-file,,EA7F new-folder,,EA80 @@ -266,8 +293,10 @@ package,,EB29 paintcan,,EB2A pass-filled,,EBB3 pass,,EBA4 +percentage,,EC33 person-add,,EBCD person,,EA67 +piano,,EC1A pie-chart,,EBE4 pin,,EB2B pinned-dirty,,EBB2 @@ -280,6 +309,7 @@ preview,,EB2F primitive-square,,EA72 project,,EB30 pulse,,EB31 +python,,EC39 question,,EB32 quote,,EB33 radio-tower,,EB34 @@ -298,6 +328,7 @@ replace-all,,EB3C replace,,EB3D reply,,EA7D repo-clone,,EB3E +repo-fetch,,EC1D repo-force-push,,EB3F repo-forked,,EA63 repo-pull,,EB40 @@ -305,33 +336,42 @@ repo-push,,EB41 repo,,EA62 report,,EB42 request-changes,,EB43 +robot,,EC20 rocket,,EB44 root-folder-opened,,EB45 root-folder,,EB46 rss,,EB47 ruby,,EB48 run-above,,EBBD +run-all-coverage,,EC2D run-all,,EB9E run-below,,EBBE +run-coverage,,EC2C run-errors,,EBDE save-all,,EB49 save-as,,EB4A save,,EB4B screen-full,,EB4C screen-normal,,EB4D +search-fuzzy,,EC0D search-stop,,EB4E search,,EA6D +send,,EC0F server-environment,,EBA3 server-process,,EBA2 server,,EB50 settings-gear,,EB51 settings,,EB52 +share,,EC25 shield,,EB53 sign-in,,EA6F sign-out,,EA6E smiley,,EB54 +snake,,EC16 sort-precedence,,EB55 source-control,,EA68 +sparkle-filled,,EC21 +sparkle,,EC10 split-horizontal,,EB56 split-vertical,,EB57 squirrel,,EB58 @@ -339,6 +379,7 @@ star-empty,,EA6A star-full,,EB59 star-half,,EB5A stop-circle,,EBA5 +surround-with,,EC24 symbol-array,,EA8A symbol-boolean,,EA8F symbol-class,,EB5B @@ -381,7 +422,9 @@ terminal-ubuntu,,EBC9 terminal,,EA85 text-size,,EB69 three-bars,,EB6A +thumbsdown-filled,,EC13 thumbsdown,,EB6B +thumbsup-filled,,EC14 thumbsup,,EB6C tools,,EB6D trash,,EA81 @@ -407,6 +450,9 @@ vm-connect,,EBA9 vm-outline,,EB7A vm-running,,EB7B vm,,EA7A +vr,,EC18 +vscode-insiders,,EC2A +vscode,,EC29 wand,,EBCF warning,,EA6C watch,,EB7C diff --git a/packages/components/src/assets/codicons/codicon.html b/packages/components/src/assets/codicons/codicon.html index ec8a322495..d883dd2483 100644 --- a/packages/components/src/assets/codicons/codicon.html +++ b/packages/components/src/assets/codicons/codicon.html @@ -297,6 +297,14 @@

codicon

arrow-up
+
+ + + +
+ attach + +
@@ -529,6 +537,14 @@

codicon

chevron-up
+
+ + + +
+ chip + +
@@ -577,20 +593,12 @@

codicon

circle-large-filled
-
- - - -
- circle-large-outline - -
-
+
- +
- circle-outline + circle-large
@@ -617,6 +625,14 @@

codicon

circle-small
+
+ + + +
+ circle + +
@@ -681,6 +697,22 @@

codicon

cloud
+
+ + + +
+ code-oss + +
+
+ + + +
+ code-review + +
@@ -689,6 +721,14 @@

codicon

code
+
+ + + +
+ coffee + +
@@ -721,6 +761,14 @@

codicon

comment-discussion
+
+ + + +
+ comment-draft + +
@@ -761,6 +809,22 @@

codicon

compass
+
+ + + +
+ copilot-warning + +
+
+ + + +
+ copilot + +
@@ -769,6 +833,14 @@

codicon

copy
+
+ + + +
+ coverage + +
@@ -1113,6 +1185,14 @@

codicon

diff-modified
+
+ + + +
+ diff-multiple + +
@@ -1129,6 +1209,14 @@

codicon

diff-renamed
+
+ + + +
+ diff-single + +
@@ -1145,6 +1233,14 @@

codicon

discard
+
+ + + +
+ edit-session + +
@@ -1409,6 +1505,14 @@

codicon

folder
+
+ + + +
+ game + +
@@ -1457,6 +1561,14 @@

codicon

git-compare
+
+ + + +
+ git-fetch + +
@@ -1513,6 +1625,30 @@

codicon

git-pull-request
+
+ + + +
+ git-stash-apply + +
+
+ + + +
+ git-stash-pop + +
+
+ + + +
+ git-stash + +
@@ -1537,6 +1673,14 @@

codicon

github-inverted
+
+ + + +
+ github-project + +
@@ -1553,6 +1697,14 @@

codicon

globe
+
+ + + +
+ go-to-editing-session + +
@@ -1561,6 +1713,14 @@

codicon

go-to-file
+
+ + + +
+ go-to-search + +
@@ -1689,6 +1849,14 @@

codicon

info
+
+ + + +
+ insert + +
@@ -1937,6 +2105,14 @@

codicon

lightbulb-autofix
+
+ + + +
+ lightbulb-sparkle + +
@@ -2081,6 +2257,22 @@

codicon

map-filled
+
+ + + +
+ map-vertical-filled + +
+
+ + + +
+ map-vertical + +
@@ -2129,6 +2321,22 @@

codicon

merge
+
+ + + +
+ mic-filled + +
+
+ + + +
+ mic + +
@@ -2169,6 +2377,14 @@

codicon

multiple-windows
+
+ + + +
+ music + +
@@ -2297,6 +2513,14 @@

codicon

pass
+
+ + + +
+ percentage + +
@@ -2313,6 +2537,14 @@

codicon

person
+
+ + + +
+ piano + +
@@ -2409,6 +2641,14 @@

codicon

pulse
+
+ + + +
+ python + +
@@ -2553,6 +2793,14 @@

codicon

repo-clone
+
+ + + +
+ repo-fetch + +
@@ -2609,6 +2857,14 @@

codicon

request-changes
+
+ + + +
+ robot + +
@@ -2657,6 +2913,14 @@

codicon

run-above
+
+ + + +
+ run-all-coverage + +
@@ -2673,6 +2937,14 @@

codicon

run-below
+
+ + + +
+ run-coverage + +
@@ -2721,6 +2993,14 @@

codicon

screen-normal
+
+ + + +
+ search-fuzzy + +
@@ -2737,6 +3017,14 @@

codicon

search
+
+ + + +
+ send + +
@@ -2777,6 +3065,14 @@

codicon

settings
+
+ + + +
+ share + +
@@ -2809,6 +3105,14 @@

codicon

smiley
+
+ + + +
+ snake + +
@@ -2825,6 +3129,22 @@

codicon

source-control
+
+ + + +
+ sparkle-filled + +
+
+ + + +
+ sparkle + +
@@ -2881,6 +3201,14 @@

codicon

stop-circle
+
+ + + +
+ surround-with + +
@@ -3217,6 +3545,14 @@

codicon

three-bars
+
+ + + +
+ thumbsdown-filled + +
@@ -3225,6 +3561,14 @@

codicon

thumbsdown
+
+ + + +
+ thumbsup-filled + +
@@ -3425,6 +3769,30 @@

codicon

vm
+
+ + + +
+ vr + +
+
+ + + +
+ vscode-insiders + +
+
+ + + +
+ vscode + +
@@ -3663,11 +4031,11 @@

codicon

description: 'dot round bullet' }, { - name: 'circle-large-outline', + name: 'circle-large', description: 'dot round bullet' }, { - name: 'circle-outline', + name: 'circle', description: 'dot round small bullet unverified breakpoint' }, { diff --git a/packages/components/src/assets/codicons/codicon.svg b/packages/components/src/assets/codicons/codicon.svg index 7689b4d9f5..141bbdd3ae 100644 --- a/packages/components/src/assets/codicons/codicon.svg +++ b/packages/components/src/assets/codicons/codicon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/components/src/assets/codicons/codicon.ttf b/packages/components/src/assets/codicons/codicon.ttf index 5abfa748fb..4a4d15cc2d 100644 Binary files a/packages/components/src/assets/codicons/codicon.ttf and b/packages/components/src/assets/codicons/codicon.ttf differ diff --git a/packages/components/src/assets/favicon.ico b/packages/components/src/assets/favicon.ico deleted file mode 100644 index 760963b074..0000000000 Binary files a/packages/components/src/assets/favicon.ico and /dev/null differ diff --git a/packages/components/src/assets/images/abgrenzung.jpg b/packages/components/src/assets/images/abgrenzung.jpg deleted file mode 100644 index 9006ccaa7e..0000000000 Binary files a/packages/components/src/assets/images/abgrenzung.jpg and /dev/null differ diff --git a/packages/components/src/assets/itzbund.logo.svg b/packages/components/src/assets/itzbund.logo.svg deleted file mode 100644 index 46b1351947..0000000000 --- a/packages/components/src/assets/itzbund.logo.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/packages/components/src/assets/kolibri.ico b/packages/components/src/assets/kolibri.ico new file mode 100644 index 0000000000..77859ee3f9 Binary files /dev/null and b/packages/components/src/assets/kolibri.ico differ diff --git a/packages/components/src/assets/kolibri.logo.svg b/packages/components/src/assets/kolibri.logo.svg deleted file mode 100644 index 03faf0fe40..0000000000 --- a/packages/components/src/assets/kolibri.logo.svg +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/packages/components/src/assets/loader.css b/packages/components/src/assets/loader.css deleted file mode 100644 index 767570d6e5..0000000000 --- a/packages/components/src/assets/loader.css +++ /dev/null @@ -1,46 +0,0 @@ -/* https://github.com/vineethtrv/css-loader */ -.loader { - width: 48px; - height: 48px; - border: 3px dotted #3d3d3d; - border-style: solid solid dotted dotted; - border-radius: 50%; - display: inline-block; - position: relative; - box-sizing: border-box; - animation: rotation 4s linear infinite; -} -.loader::after { - content: ''; - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - margin: auto; - border: 3px dotted #ff3d00; - border-style: solid solid dotted; - width: 24px; - height: 24px; - border-radius: 50%; - animation: rotationBack 2s linear infinite; - transform-origin: center center; -} - -@keyframes rotation { - 0% { - transform: rotate(0deg); - } - 100% { - transform: rotate(360deg); - } -} -@keyframes rotationBack { - 0% { - transform: rotate(0deg); - } - 100% { - transform: rotate(-360deg); - } -} diff --git a/packages/components/src/assets/logo.kolibri.invert.svg b/packages/components/src/assets/logo.kolibri.invert.svg deleted file mode 100644 index 956c447e34..0000000000 --- a/packages/components/src/assets/logo.kolibri.invert.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - diff --git a/packages/components/src/assets/logo.kolibri.svg b/packages/components/src/assets/logo.kolibri.svg deleted file mode 100644 index e07240132a..0000000000 --- a/packages/components/src/assets/logo.kolibri.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - diff --git a/packages/components/src/assets/logo.kolibri.text.invert.svg b/packages/components/src/assets/logo.kolibri.text.invert.svg deleted file mode 100644 index 150d009baa..0000000000 --- a/packages/components/src/assets/logo.kolibri.text.invert.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - KoliBri - diff --git a/packages/components/src/assets/logo.kolibri.text.svg b/packages/components/src/assets/logo.kolibri.text.svg deleted file mode 100644 index c526919e60..0000000000 --- a/packages/components/src/assets/logo.kolibri.text.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - KoliBri - diff --git a/packages/components/src/assets/simulations/alert-simulation.js b/packages/components/src/assets/simulations/alert-simulation.js deleted file mode 100644 index 5578828d82..0000000000 --- a/packages/components/src/assets/simulations/alert-simulation.js +++ /dev/null @@ -1,11 +0,0 @@ -const on = { - onClose: console.log, -}; -const timeout = setTimeout(() => { - document.querySelectorAll('kol-alert').forEach((alert) => { - if (Math.random() > 0.5) { - alert._on = on; - alert.setAttribute('_has-closer', ''); - } - }); -}, 2500); diff --git a/packages/components/src/assets/simulations/button-simulation.js b/packages/components/src/assets/simulations/button-simulation.js deleted file mode 100644 index 4b2245fcf9..0000000000 --- a/packages/components/src/assets/simulations/button-simulation.js +++ /dev/null @@ -1,8 +0,0 @@ -var buttons = document.querySelectorAll('kol-button.not-used'); -buttons.forEach((button) => { - button._on = { - onClick: () => { - alert(`Button "${button._label}" wurde geklickt.`); - }, - }; -}); diff --git a/packages/components/src/assets/simulations/form-simulation.js b/packages/components/src/assets/simulations/form-simulation.js deleted file mode 100644 index 3c869e266f..0000000000 --- a/packages/components/src/assets/simulations/form-simulation.js +++ /dev/null @@ -1,989 +0,0 @@ -const FORMULAR_FORM = LeanUpForm.FormFactory.createForm('anschrift', { - anschrift: { - anrede: { - ansprache: 'Frau', - vorname: 'Elke', - nachname: 'Mustermann', - }, - adresse: { - strasse: 'Musterstraße', - hausnummer: '1a', - ort: 'Musterstadt', - plz: '54321', - }, - }, - email: '', - text: '', - datum: '2000-12-24', - password: 'Passwort', - betrag: 45, - status: 0, - agb: null, - datenschutz: null, -}); - -console.log(FORMULAR_FORM); - -const ANSCHRIFT_FORM = FORMULAR_FORM.getControl('anschrift'); -const ANREDE_FORM = ANSCHRIFT_FORM.getControl('anrede'); -const ANREDE_ANSPRACHE_INPUT = ANREDE_FORM.getControl('ansprache'); -const ANREDE_VORNAME_INPUT = ANREDE_FORM.getControl('vorname'); -const ANREDE_NACHNAME_INPUT = ANREDE_FORM.getControl('nachname'); - -ANREDE_ANSPRACHE_INPUT.label = 'Anrede'; -ANREDE_ANSPRACHE_INPUT.mandatory = true; -ANREDE_VORNAME_INPUT.label = 'Vorname'; -ANREDE_VORNAME_INPUT.mandatory = true; -ANREDE_VORNAME_INPUT.info = 'Bitte geben Sie einen schönen Vorname ein.'; -ANREDE_NACHNAME_INPUT.label = 'Nachname'; - -ANREDE_VORNAME_INPUT.changeListeners.add((...args) => { - console.log(...args); -}); - -class DemoFehler extends LeanUpForm.AbstractValidator { - constructor() { - super('Test'); - } - isValid(value) { - if ((typeof value === 'string' && value.length > 5) || (typeof value === 'boolean' && value === false)) { - return false; - } - return true; - } -} - -class DemoFormatter extends LeanUpForm.AbstractFormatter { - format(value) { - return value.toLocaleUpperCase(); - } - parse(value) { - return value; - } -} - -class Demo4SignSepFormatter extends LeanUpForm.AbstractFormatter { - format(value) { - const words = value.match(/(.{1,4})/g); - return Array.isArray(words) ? words.join(' ') : value; - } - parse(value) { - return value.replace(/ +/g, ''); - } -} - -class DemoMaxLength extends LeanUpForm.AbstractFormatter { - format(value) { - return value; - } - parse(value) { - return value.substring(0, 6); - } -} - -const VALIDATION_HANDLER = new LeanUpForm.ValidationHandler(); -VALIDATION_HANDLER.validators.add(new DemoFehler()); -ANREDE_VORNAME_INPUT.setValidationHandler(VALIDATION_HANDLER); -ANREDE_NACHNAME_INPUT.setValidationHandler(VALIDATION_HANDLER); - -const FORMAT_HANDLER = new LeanUpForm.FormatHandler(); -FORMAT_HANDLER.formatters.add([new DemoFormatter(), new Demo4SignSepFormatter(), new DemoMaxLength()]); -ANREDE_VORNAME_INPUT.setFormatHandler(FORMAT_HANDLER); - -document.querySelector('#kol-input-text')._control = ANREDE_VORNAME_INPUT; - -// console.log(VALIDATION_HANDLER); -// console.log(ANREDE_VORNAME_INPUT); -// console.log(ANREDE_NACHNAME_INPUT); - -const ADRESSE_FORM = ANSCHRIFT_FORM.getControl('adresse'); -const ADRESSE_STRASSE_INPUT = ADRESSE_FORM.getControl('strasse'); -const ADRESSE_HAUSNUMMER_INPUT = ADRESSE_FORM.getControl('hausnummer'); -const ADRESSE_PLZ_INPUT = ADRESSE_FORM.getControl('plz'); -const ADRESSE_ORT_INPUT = ADRESSE_FORM.getControl('ort'); - -ADRESSE_STRASSE_INPUT.label = 'Straße'; -ADRESSE_HAUSNUMMER_INPUT.label = 'Hausnummer'; -ADRESSE_PLZ_INPUT.label = 'Postleitzahl'; -ADRESSE_ORT_INPUT.label = 'Ort'; - -const STATUS_INPUT = FORMULAR_FORM.getControl('status'); -const EMAIL_INPUT = FORMULAR_FORM.getControl('email'); -const TEXT_INPUT = FORMULAR_FORM.getControl('text'); -const BETRAG_INPUT = FORMULAR_FORM.getControl('betrag'); -const AGB_INPUT = FORMULAR_FORM.getControl('agb'); -const DATENSCHUTZ_INPUT = FORMULAR_FORM.getControl('datenschutz'); - -STATUS_INPUT.label = 'Status'; -EMAIL_INPUT.label = 'E-Mail-Adresse'; -// EMAIL_INPUT.mandatory = true; -EMAIL_INPUT.info = 'Bitte geben Sie hier eine E-Mail-Adresse ein.'; -TEXT_INPUT.label = 'Text'; -TEXT_INPUT.mandatory = true; -TEXT_INPUT.setValidationHandler(VALIDATION_HANDLER); -BETRAG_INPUT.label = 'Betrag'; -BETRAG_INPUT.mandatory = true; -BETRAG_INPUT.setValidationHandler(VALIDATION_HANDLER); -AGB_INPUT.label = 'Ich akzeptiere die Allgemeinen Geschäftsbedingungen.'; -AGB_INPUT.mandatory = true; -AGB_INPUT.setValidationHandler(VALIDATION_HANDLER); -DATENSCHUTZ_INPUT.label = 'Ich akzeptiere die Datenschutzerklärung.'; - -const PASSWORD_INPUT = FORMULAR_FORM.getControl('password'); -const DATUM_INPUT = FORMULAR_FORM.getControl('datum'); -PASSWORD_INPUT.label = 'Passwort'; -DATUM_INPUT.label = 'Datum'; - -ANREDE_ANSPRACHE_INPUT.readonly = true; -ANREDE_ANSPRACHE_INPUT.changeListeners.add((value) => { - ANREDE_VORNAME_INPUT.disabled = !ANREDE_VORNAME_INPUT.disabled; - ANREDE_NACHNAME_INPUT.readonly = !ANREDE_NACHNAME_INPUT.readonly; - AGB_INPUT.readonly = !AGB_INPUT.readonly; - DATENSCHUTZ_INPUT.disabled = !DATENSCHUTZ_INPUT.disabled; -}); -ANREDE_VORNAME_INPUT.changeListeners.add(() => { - // document.querySelector('#vorname').setAttribute('_error', ANREDE_VORNAME_INPUT.error); -}); -ANREDE_NACHNAME_INPUT.changeListeners.add(() => { - document.querySelector('#nachname').setAttribute('_readonly', ANREDE_NACHNAME_INPUT.readonly); -}); -// EMAIL_INPUT.changeListeners.add(() => { -// document.querySelector('#email').setAttribute('_error', EMAIL_INPUT.error); -// document.querySelector('#email').setAttribute('_disabled', EMAIL_INPUT.disabled); -// }); -// AGB_INPUT.changeListeners.add((value) => { -// ANREDE_ANSPRACHE_INPUT.disabled = !ANREDE_ANSPRACHE_INPUT.disabled; -// }); - -function domReady() { - document.querySelector('#anrede-adapter')._control = ANREDE_ANSPRACHE_INPUT; - const ANREDE_ANSPRACHE_OPTIONS = [ - { - label: 'Herr', - value: 'Herr', - }, - { - label: 'Frau', - value: 'Frau', - }, - ]; - document.querySelectorAll('kol-input-radido').forEach((inputRadio) => { - inputRadio._list = ANREDE_ANSPRACHE_OPTIONS; - inputRadio._on = { - onChange: console.log, - }; - }); - - // document.querySelector('#vorname')._control = ANREDE_VORNAME_INPUT; - // document.querySelector('#nachname')._control = ANREDE_NACHNAME_INPUT; - - document.querySelector('kol-form').addEventListener('submit', (event) => { - event.stopPropagation(); - console.log(event, ANREDE_FORM.getData()); - }); - // document.querySelector('#strasse')._control = ADRESSE_STRASSE_INPUT; - // document.querySelector('#hausnummer')._control = ADRESSE_HAUSNUMMER_INPUT; - // document.querySelector('#plz')._control = ADRESSE_PLZ_INPUT; - // document.querySelector('#ort')._control = ADRESSE_ORT_INPUT; - - // document.querySelector('#status')._control = STATUS_INPUT; - const STATUS_OPTIONS = [ - { - value: null, - label: '- keine Auswahl -', - }, - { - label: 'Optgroup 1', - options: [ - { - value: 'a1', - label: 'A1', - }, - { - disabled: true, - value: 'b1', - label: 'B1', - }, - { - label: 'Optgroup 2', - options: [ - { - value: 'a2', - label: 'A2', - }, - { - value: 'b2', - label: 'B2', - }, - ], - }, - { - value: 'c1', - label: 'C1', - }, - ], - }, - { - value: '1', - label: 'Gute Laune', - }, - { - value: '2', - label: 'Geht so', - }, - { - value: '3', - label: 'Schlechte Laune', - }, - { - value: '4', - label: 'ich_bin_ein_echt_langes_zusammengesetztes_Worte_und_versuche_das_Layout_zu_brechen', - }, - ]; - // document.querySelector('#status')._options = STATUS_OPTIONS; - - // document.querySelector('#email')._control = EMAIL_INPUT; - // document.querySelector('#email').setAttribute('_mandatory', EMAIL_INPUT.mandatory); - // document.querySelector('#email').setAttribute('_info', EMAIL_INPUT.info); - - // document.querySelector('#texteingabe')._control = TEXT_INPUT; - // document.querySelector('#slider')._control = BETRAG_INPUT; - - document.querySelectorAll('.datenschutz-checkbox').forEach((input) => { - input._control = AGB_INPUT; - }); - document.querySelector('#new-input-checkbox')._control = AGB_INPUT; - document.querySelector('#new-input-checkbox-leanup')._control = AGB_INPUT; - document.querySelectorAll('kol-input-radio.herr-frau').forEach((input) => { - input._list = ANREDE_ANSPRACHE_OPTIONS; - }); - - document.querySelector('#kol-input-text')._control = ANREDE_VORNAME_INPUT; - document.querySelector('kol-input-text.vorname')._list = NAMEN; - - document.querySelector('#new-input-email')._control = EMAIL_INPUT; - document.querySelector('#new-input-color')._control = new LeanUpForm.InputControl('color', { - label: 'Farbe', - value: '#ff0000', - }); - document.querySelector('#new-input-file')._control = new LeanUpForm.InputControl('file', { - label: 'Datei(en) hochladen', - }); - document.querySelector('#new-input-range')._control = BETRAG_INPUT; - - document.querySelector('#new-textarea')._control = TEXT_INPUT; - const interval = setInterval(() => { - TEXT_INPUT.value = `${TEXT_INPUT.value}A`; - document.querySelector('kol-textarea[_hide-label=""]')._value = TEXT_INPUT.value; - }, 1000); - const timeout = setTimeout(() => { - clearInterval(interval); - clearTimeout(timeout); - }, 10); - STATUS_INPUT.value = `['c1','2']`; - document.querySelectorAll('kol-select').forEach((select) => { - select._on = { - onChange: console.log, - }; - }); - document.querySelectorAll('kol-select.list4value').forEach((select) => { - select._list = - "[{'value':null,'label':'- keine Auswahl -'},{'label':'Optgroup 1','options':[{'value':'a1','label':'A1'},{'disabled':true,'value':'b1','label':'B1'},{'label':'Optgroup 2','options':[{'value':'a2','label':'A2'},{'value':'b2','label':'B2'}]},{'value':'c1','label':'C1'}]},{'value':'1','label':'Gute Laune'},{'value':'2','label':'Geht so'},{'value':'3','label':'Schlechte Laune'},{'value':'4','label':'ich_bin_ein_echt_langes_zusammengesetztes_Worte_und_versuche_das_Layout_zu_brechen'}]"; - }); - document.querySelectorAll('kol-select.value4list').forEach((select) => { - select._value = STATUS_INPUT.value; - }); - setTimeout(() => { - document.querySelectorAll('kol-select.value4list').forEach((select) => { - select._list = - "[{'value':null,'label':'- keine Auswahl -'},{'label':'Optgroup 1','options':[{'value':'a1','label':'A1'},{'disabled':true,'value':'b1','label':'B1'},{'label':'Optgroup 2','options':[{'value':'a2','label':'A2'},{'value':'b2','label':'B2'}]},{'value':'c1','label':'C1'}]},{'value':'1','label':'Gute Laune'},{'value':'2','label':'Geht so'},{'value':'3','label':'Schlechte Laune'},{'value':'4','label':'ich_bin_ein_echt_langes_zusammengesetztes_Worte_und_versuche_das_Layout_zu_brechen'}]"; - }); - document.querySelectorAll('.select-adapter').forEach((select) => { - select._control = STATUS_INPUT; - }); - document.querySelectorAll('kol-select.list4value').forEach((select) => { - select._value = STATUS_INPUT.value; - }); - }, 5000); - - document.querySelector('#new-input-date')._control = DATUM_INPUT; - - document.querySelector('#filter-table')._data = DATA; - document.querySelector('#filter-input')._on = { - onChange: (event) => { - console.log(event.target.value); - document.querySelector('#filter-table')._data = DATA.filter((tupel) => { - const regExp = new RegExp(event.target.value, 'i'); - return ( - regExp.test(tupel.montag) || regExp.test(tupel.dienstag) || regExp.test(tupel.mittwoch) || regExp.test(tupel.donnerstag) || regExp.test(tupel.freitag) - ); - }); - }, - }; - - var fixSelect = document.querySelector('#fix-select-multi'); - if (fixSelect instanceof HTMLElement) { - fixSelect._list = [ - { label: 'Baum', value: Date.now() }, - { label: 'Baum', value: Date.now() }, - ]; - fixSelect._on = { - // onClick: (...args) => { - // console.log('onClick', args); - // }, - onChange: (...args) => { - console.log('onChange', args); - setTimeout(() => { - fixSelect._list = [{ label: 'Baum', value: Date.now() }].concat(fixSelect._list); - setTimeout(() => { - console.log(fixSelect._value); - }, 100); - }, 100); - }, - }; - } -} - -document.onreadystatechange = function () { - if (document.readyState == 'complete') { - setTimeout(domReady, 1000); - } -}; - -const DATA = [ - { montag: 'Alex', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Helena', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Marcus' }, - { montag: 'Fabian', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Alex', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Helena', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Marcus' }, - { montag: 'Fabian', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Alex', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Helena', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Marcus' }, - { montag: 'Fabian', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Alex', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Helena', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Marcus' }, - { montag: 'Fabian', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Alex', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Helena', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Marcus' }, - { montag: 'Fabian', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Alex', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Helena', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Marcus' }, - { montag: 'Fabian', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Alex', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Helena', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Marcus' }, - { montag: 'Fabian', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Alex', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Helena', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Marcus' }, - { montag: 'Fabian', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Alex', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Helena', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Marcus' }, - { montag: 'Fabian', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Hong', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, -]; - -const NAMEN = [ - 'Lucy', - 'Lukas', - 'Ella', - 'Konstantin', - 'Amy', - 'Ben', - 'Emely', - 'Jonas', - 'Finja', - 'Elias', - 'Amelie', - 'Niklas', - 'Luise', - 'David', - 'Frieda', - 'Oskar', - 'Katharina', - 'Philipp', - 'Romy', - 'Leon', - 'Juna', - 'Noah', - 'Theresa', - 'Luis', - 'Eva', - 'Paul', - 'Julia', - 'Finn', - 'Anna', - 'Felix', - 'Carla', - 'Julian', - 'Paulina', - 'Maximilian', - 'Elisabeth', - 'Henry', - 'Rosa', - 'Tim', - 'Mia', - 'Karl', - 'Maya', - 'Friedrich', - 'Selma', - 'Peter', - 'Edda', - 'Quirin', - 'Flora', - 'Liam', - 'Berenike', - 'Linus', - 'Simone', - 'Quentin', - 'Elena', - 'Paul', - 'Meike', - 'Johannes', - 'Susanne', - 'Alexander', - 'Annika', - 'Anton', - 'Augusta', - 'Aras', - 'Alba', - 'Asis', - 'Wilma', - 'Adrian', - 'Annegret', - 'Arthur', - 'Aglaia', - 'Adam', - 'Aaliyah', - 'Arian', - 'Annabelle', - 'Amos', - 'Alma', - 'Arik', - 'Alicia', - 'Ake', - 'Anette', - 'Altfried', - 'Astrid', - 'Ari', - 'Anisha', - 'Andreas', - 'Antke', - 'Allessandro', - 'Abigail', - 'Achim', - 'Aideen', - 'Ben', - 'Aini', - 'Bela', - 'Aida', - 'Baldur', - 'Aamenah', - 'Benedikt', - 'Ariane', - 'Beat', - 'Adriana', - 'Bernd', - 'Alexandra', - 'Bertram', - 'Ava', - 'Blue', - 'Arielle', - 'Badi', - 'Allissa', - 'Batiste', - 'Aamu', - 'Bastian', - 'Arzu', - 'Caleb', - 'Anouk', - 'Caspar', - 'Andrea', - 'Calvin', - 'Bianca', - 'Cadmus', - 'Blanka', - 'Christoph', - 'Benita', - 'Cedrik', - 'Bettina', - 'Camern', - 'Bamika', - 'Carsten', - 'Bente', - 'Cainan', - 'Barbara', - 'Cem', - 'Berit', - 'Carl', - 'Bentje', - 'Cyranus', - 'Birte', - 'Curt', - 'Brigitte', - 'Daniel', - 'Christiane', - 'Dominik', - 'Charlotte', - 'Darius', - 'Catherina', - 'Dario', - 'Caroline', - 'Dag', - 'Caren', - 'Diminic', - 'Caecilia', - 'Damian', - 'Celine', - 'Diego', - 'Coco', - 'Dieter', - 'Chaya', - 'Demian', - 'Dalia', - 'Dewis', - 'Deenah', - 'Dirk', - 'Daphne', - 'Donald', - 'Delia', - 'Enzo', - 'Dari', - 'Emil', - 'Doerte', - 'Erik', - 'Djamila', - 'Edwin', - 'Dominique', - 'Eliah', - 'Doerte', - 'Ethan', - 'Dorothee', - 'Erwin', - 'Emira', - 'Eliot', - 'Emily', - 'Enes', - 'Elif', - 'Emilio', - 'Ellen', - 'Ebbo', - 'Enna', - 'Eberhard', - 'Ebba', - 'Edgar', - 'Eleni', - 'Fabrizius', - 'Freya', - 'Finn', - 'Fiona', - 'Fabian', - 'Franziska', - 'Fabio', - 'Luzia', - 'Finjas', - 'Fabienne', - 'Franz', - 'Mädchen', - 'Jungen', - 'Fiona', - 'Falko', - 'Felina', - 'Fatih', - 'Felicitas', - 'Fynn', - 'Fabia', - 'Flavio', - 'Fabiola', - 'Fady', - 'Fabrizia', - 'Fritz', - 'Filomae', - 'Falko', - 'Floris', - 'Gabriel', - 'Fae', - 'Gustav', - 'Fanny', - 'Guiseppe', - 'Fritzi', - 'Günter', - 'Greta', - 'Gerhard', - 'Gabrielle', - 'Georg', - 'Grit', - 'Gel', - 'Gwen', - 'Gerald', - 'Gabi', - 'Geoffrey', - 'Gila', - 'Gismund', - 'Giorgina', - 'Giulio', - 'Gisele', - 'Godo', - 'Heike', - 'Henri', - 'Hanna', - 'Hannes', - 'Helena', - 'Henry', - 'Haima', - 'Henrik', - 'Heike', - 'Hendrik', - 'Helen', - 'Heiko', - 'Isabell', - 'Haku', - 'Ida', - 'Hanno', - 'Ilona', - 'Hugo', - 'Ingrid', - 'Henryk', - 'Iris', - 'Hardy', - 'Ira', - 'Hagar', - 'Iara', - 'Hafiz', - 'Ivette', - 'Haile', - 'Irma', - 'Hakan', - 'Jardis', - 'Hasso', - 'Juni', - 'Harry', - 'Juna', - 'Hauke', - 'Josephine', - 'Harun', - 'Jella', - 'Hayo', - 'Jill', - 'Idil', - 'Jennifer', - 'Ian', - 'Jakobine', - 'Izzy', - 'Jessika', - 'Ibrahim', - 'Julie', - 'Igor', - 'Jasmin', - 'Jack', - 'Joana', - 'Jules', - 'Jaqueline', - 'Julian', - 'Jonna', - 'Jan', - 'Jean', - 'Jakob', - 'Janis', - 'Jaap', - 'Jodi', - 'Jonathan', - 'Jen', - 'Jannik', - 'Justyna', - 'Jona', - 'Jutta', - 'Jannis', - 'Kathleen', - 'Joel', - 'Kayra', - 'Jonte', - 'Klara', - 'Jarin', - 'Kiara', - 'Jörn', - 'Kathrin', - 'Jari', - 'Catrin', - 'Jannik', - 'Kiki', - 'Jukka', - 'Judith', - 'Samo', - 'Celia', - 'Jaakov', - 'Kaaria', - 'Jeremy', - 'Kerstin', - 'Jarne', - 'Kim', - 'Kilian', - 'Kader', - 'Kai', - 'Kaisa', - 'Kylan', - 'Liv', - 'Kristian', - 'Livia', - 'Kasper', - 'Louisa', - 'Kadmos', - 'Lucy', - 'Klaus', - 'Lina', - 'Kaarle', - 'Lena', - 'Kevin', - 'Leonie', - 'Kadir', - 'Lea', - 'Konrad', - 'Leni', - 'Lukas', - 'Lotta', - 'Leon', - 'Laura', - 'Leopold', - 'Lara', - 'Luca', - 'Lia', - 'Linas', - 'Lisa', - 'Roland', - 'Luna', - 'Leo', - 'Linda', - 'Lennard', - 'Laureen', - 'Luke', - 'Liv', - 'Lenny', - 'Liz', - 'Lasse', - 'Mona', - 'Lion', - 'Mareen', - 'Luca', - 'Mathilda', - 'Lutz', - 'Marlene', - 'Levi', - 'Marianne', - 'Matthias', - 'Mara', - 'Moritz', - 'Mina', - 'Meteo', - 'Magdalena', - 'Mats', - 'Miriam', - 'Matthis', - 'Marianne', - 'Mattes', - 'Martje', - 'Milo', - 'Maeve', - 'Mika', - 'Mae', - 'Maxim', - 'Mädchen', - 'Jungen', - 'Nadja', - 'Marlon', - 'Nadine', - 'Mark', - 'Nele', - 'Matti', - 'Nora', - 'Max', - 'Nina', - 'Morris', - 'Nada', - 'Miran', - 'Nadeshda', - 'Miro', - 'Nancy', - 'Niklas', - 'Nova', - 'Nika', - 'Nika', - 'Niko', - 'Nike', - 'Nabil', - 'Oda', - 'Noel', - 'Odilie', - 'Nils', - 'Okka', - 'Nick', - 'Olea', - 'Neo', - 'Odett', - 'Nadeem', - 'Olivia', - 'Namo', - 'Odilia', - 'Nepomuk', - 'Oana', - 'Oscar', - 'Pia', - 'Ole', - 'Paula', - 'Oliver', - 'Phlomena', - 'Olivier', - 'Paloma', - 'Onur', - 'Paris', - 'Owen', - 'Paola', - 'Obbo', - 'Poppy', - 'Idil', - 'Panja', - 'Otto', - 'Pardis', - 'Oswald', - 'Quirine', - 'Paul', - 'Quinta', - 'Phil', - 'Qara', - 'Patrick', - 'Ria', - 'Paavo', - 'Rita', - 'Pamir', - 'Raina', - 'Pascal', - 'Rabea', - 'Peter', - 'Radost', - 'Quinn', - 'Rabi', - 'Quazim', - 'Ronina', - 'Kasimir', - 'Rae', - 'René', - 'Radia', - 'Riko', - 'Svea', - 'Robin', - 'Smila', - 'Raphael', - 'Sofia', - 'Rudi', - 'Sonja', - 'Remigius', - 'Sophie', - 'Richard', - 'Stella', - 'Radi', - 'Sarah', - 'Rainer', - 'Silvie', - 'Rasmus', - 'Silke', - 'Ruben', - 'Sila', - 'Samuel', - 'Siri', - 'Stefan', - 'Sarah', - 'Sascha', - 'Saara', - 'Serkan', - 'Svenja', - 'Marco', - 'Sabine', - 'Manuel', - 'Sandra', - 'Tom', - 'Tiffanie', - 'Tim', - 'Thea', - 'Theo', - 'Tilda', - 'Theodor', - 'Tardis', - 'Thilo', - 'Tamina', - 'Till', - 'Tamy', - 'Timo', - 'Trudi', - 'Tino', - 'Tea', - 'Tiny', - 'Tima', - 'Taylor', - 'Tabia', - 'Titus', - 'Tassja', - 'Tristan', - 'Tilla', - 'Tizian', - 'Tabita', - 'Todd', - 'Tahua', - 'Thomas', - 'Uli', - 'Taavi', - 'Ulrike', - 'Tillmann', - 'Ute', - 'Uwe', - 'Uda', - 'Udo', - 'Ulla', - 'Ugor', - 'Ulrika', - 'Ulrich', - 'Ulva', - 'Uli', - 'Ulvi', - 'Ulas', - 'Uma', - 'Ulf', - 'Violeta', - 'Volker', - 'Victoria', - 'Vinzent', - 'Vanessa', - 'Valentin', - 'Valentine', - 'Vitus', - 'Valeska', - 'Volker', - 'Wandy', - 'Valentin', - 'Waris', - 'Vidu', - 'Walli', - 'Valerio', - 'Waltraud', - 'Wilhelm', - 'Wanda', - 'William', - 'Xenia', - 'Will', - 'Xani', - 'Walter', - 'Xanthe', - 'Wanja', - 'Yvonne', - 'Wadi', - 'Yu', - 'Walid', - 'Yla', - 'Xaver', - 'Zoe', - 'Yannis', - 'Zilla', - 'Yannik', - 'Zuri', - 'Yoshi', - 'Zamira', - 'Yunus', -]; - -document.querySelector('kol-input-text.vorname')._list = NAMEN; diff --git a/packages/components/src/assets/simulations/form-simulation.textarea.js b/packages/components/src/assets/simulations/form-simulation.textarea.js deleted file mode 100644 index 8b8bc45ec4..0000000000 --- a/packages/components/src/assets/simulations/form-simulation.textarea.js +++ /dev/null @@ -1,18 +0,0 @@ -const textAreas = document.querySelectorAll('off-kol-textarea'); -let timeout; - -if (textAreas) { - textAreas.forEach((textarea) => { - window.textarea = textarea; - textarea._value = ''; - textarea._on = { - onChange: (event) => { - clearTimeout(timeout); - setTimeout(() => { - console.log(event, textarea); - textarea._value = ''; - }, 1000); - }, - }; - }); -} diff --git a/packages/components/src/assets/simulations/form-simulation.weitere-cases.js b/packages/components/src/assets/simulations/form-simulation.weitere-cases.js deleted file mode 100644 index 22871b826e..0000000000 --- a/packages/components/src/assets/simulations/form-simulation.weitere-cases.js +++ /dev/null @@ -1,33 +0,0 @@ -const CHECKBOX2 = new LeanUpForm.InputControl('checkbox'); -CHECKBOX2.changeListeners.add(console.log); - -document.querySelectorAll('#change-checkbox').forEach((checkbox) => { - checkbox._control = CHECKBOX2; - checkbox._on = { - onChange: console.warn, - }; -}); - -function outlineLogs(event) { - event.preventDefault(); - const data = new FormData(event.target); - console.log([...data.entries()]); -} -function onNativeSubmit(event) { - console.log('native form', event); - outlineLogs(event); -} -function onKoliBriSubmit(event) { - console.log('kolibri form', event); - outlineLogs(event); -} - -document.querySelectorAll('form').forEach((form) => { - form.onsubmit = onNativeSubmit; -}); - -document.querySelectorAll('kol-form').forEach((kolForm) => { - kolForm._on = { - onSubmit: onKoliBriSubmit, - }; -}); diff --git a/packages/components/src/assets/simulations/modal-simulation.js b/packages/components/src/assets/simulations/modal-simulation.js deleted file mode 100644 index ae89b8f7c2..0000000000 --- a/packages/components/src/assets/simulations/modal-simulation.js +++ /dev/null @@ -1,31 +0,0 @@ -function openModal(modal, trigger) { - modal._activeElement = trigger; -} -function closeModal(modal) { - modal._activeElement = null; -} - -function setModalFunctions(triggerSelector, modalSelector, closeSelector) { - const trigger = document.querySelector(triggerSelector); - const modal = document.querySelector(modalSelector); - const close = document.querySelector(closeSelector); - if (modal) { - if (trigger) { - trigger._on = { - onClick: openModal(modal, trigger), - }; - } - modal._on = { - onClose: closeModal(modal), - }; - } - if (close) { - close._on = { - onClick: closeModal(modal), - }; - } -} - -setModalFunctions('#modal-open-1', '#modal-1'); -setModalFunctions('#modal-open-2', '#modal-2'); -setModalFunctions('#tooltip_button', '#overviewModal'); diff --git a/packages/components/src/assets/simulations/nav-simulation.js b/packages/components/src/assets/simulations/nav-simulation.js deleted file mode 100644 index 1e662deee2..0000000000 --- a/packages/components/src/assets/simulations/nav-simulation.js +++ /dev/null @@ -1,163 +0,0 @@ -const navTest = document.querySelector('#nav-test'); -if (navTest) { - navTest._links = [ - { - _label: '1 Navigationspunkt mit sehr langem Link-Test', - _href: '#asdf', - _icons: 'codicon codicon-flame', - }, - { - _label: '2 Navigationspunkt und ich_bin_ein_echt_langes_zusammengesetztes_Worte_und_versuche_das_Layout_zu_brechen', - _on: { - onClick: () => { - alert('hallo'); - }, - }, - _icons: 'codicon codicon-flame', - }, - { - _label: '3 Navigationspunkt mit viel Text zu was testen', - _href: '#abc', - _icons: 'codicon codicon-flame', - _children: [ - { _label: '3.1 Navigationspunkt', _href: '#abc', _icons: 'codicon codicon-flame' }, - { _label: '3.2 Navigationspunkt', _href: '#abc', _icons: 'codicon codicon-flame', _target: 'asdasd' }, - { - _icons: 'codicon codicon-flame', - _label: '3.3 Navigationspunkt', - _href: '#abc3.3', - _children: [ - { _icons: 'codicon codicon-flame', _label: '3.3.1 Navigationspunkt', _href: '#abc' }, - { _icons: 'codicon codicon-flame', _label: '3.3.2 Navigationspunkt', _href: '#abc' }, - ], - }, - { - _icons: 'codicon codicon-flame', - _label: '3.4 Navigationspunkt', - _href: '#abc3.4', - _children: [ - { _icons: 'codicon codicon-flame', _label: '3.4.1 Navigationspunkt', _href: '#abc' }, - { _icons: 'codicon codicon-flame', _label: '3.4.2 Navigationspunkt', _href: '#abc' }, - ], - }, - { _icons: 'codicon codicon-flame', _label: '3.5 Navigationspunkt', _href: '#abc' }, - ], - }, - { - _label: '4 Navigationspunkt mit viel Text zu was testen', - _icons: 'codicon codicon-flame', - _children: [ - { _label: '4.1 Navigationspunkt', _href: '#abc', _icons: 'codicon codicon-flame' }, - { _label: '4.2 Navigationspunkt', _href: '#abc', _icons: 'codicon codicon-flame', _target: 'asdasd' }, - { - _icons: 'codicon codicon-flame', - _label: '4.3 Navigationspunkt', - _href: '#abc', - _children: [ - { _icons: 'codicon codicon-flame', _label: '4.3.1 Navigationspunkt', _href: '#abc' }, - { _icons: 'codicon codicon-flame', _label: '4.3.2 Navigationspunkt', _href: '#abc' }, - ], - }, - { - _icons: 'codicon codicon-flame', - _label: '4.4 Navigationspunkt', - _href: '#abc', - _children: [ - { _icons: 'codicon codicon-flame', _label: '4.4.1 Navigationspunkt', _href: '#abc' }, - { _icons: 'codicon codicon-flame', _label: '4.4.2 Navigationspunkt', _href: '#abc' }, - ], - }, - { _icons: 'codicon codicon-flame', _label: '4.5 Navigationspunkt', _href: '#abc' }, - ], - }, - ]; -} - -const clickNav = document.querySelector('#click-nav'); -if (clickNav) { - clickNav._links = [ - { - _label: '1 Navigationspunkt mit sehr langem Link-Test', - _on: { - onClick: () => { - alert('hallo'); - }, - }, - _icons: 'icofont-woodpecker', - }, - { - _label: '2 Navigationspunkt und ich_bin_ein_echt_langes_zusammengesetztes_Worte_und_versuche_das_Layout_zu_brechen', - _on: { - onClick: () => { - alert('hallo'); - }, - }, - _icons: 'icofont-woodpecker', - }, - { - _active: true, - _label: '3 Navigationspunkt', - _href: '#abc', - _icons: 'icofont-woodpecker', - _children: [ - { _label: '3.1 Navigationspunkt', _href: '#abc', _icons: 'icofont-woodpecker' }, - { _label: '3.2 Navigationspunkt', _href: '#abc', _icons: 'icofont-woodpecker', _target: 'asdasd' }, - { - _active: true, - _label: '3.3 Navigationspunkt', - _href: '#abc', - _children: [ - { _active: true, _label: '3.3.1 Navigationspunkt (aktiv)', _href: '#abc' }, - { _label: '3.3.2 Navigationspunkt', _href: '#abc' }, - ], - }, - { - _label: '3.4 Navigationspunkt', - _href: '#abc', - _children: [ - { _label: '3.4.1 Navigationspunkt', _href: '#abc' }, - { _label: '3.4.2 Navigationspunkt', _href: '#abc' }, - ], - }, - { _label: '3.5 Navigationspunkt', _href: '#abc' }, - ], - }, - { _label: '4 Navigationspunkt', _href: '#abc' }, - ]; -} - -setTimeout(() => { - const mainNav = document.querySelector('#main-nav'); - const mainNavElements = document.querySelectorAll('main > kol-accordion'); - const numberOfChildren = 6; - if (mainNav && mainNavElements?.length > 0) { - populateNavFromElements(mainNav, mainNavElements, numberOfChildren); - } -}, 1000); - -function createEntry(c) { - return { - _label: c.getAttribute('_heading'), - _href: `#${c.id}`, - _icons: 'codicon codicon-flame', - }; -} - -function populateNavFromElements(nav, elements, numberOfChildren) { - const result = []; - let counter = 0; - let parentCount = 0; - let currentParent = null; - elements.forEach((c) => { - if (counter >= numberOfChildren) counter = 0; - if (counter === 0) { - const n = parentCount * numberOfChildren; - currentParent = { _label: `Komponente ${n + 1} bis ${n + numberOfChildren}`, _icons: 'codicon codicon-flame', _children: [] }; - result.push(currentParent); - parentCount++; - } - currentParent._children.push(createEntry(c)); - counter++; - }); - nav._links = result; -} diff --git a/packages/components/src/assets/simulations/pagination-simulation.js b/packages/components/src/assets/simulations/pagination-simulation.js deleted file mode 100644 index cced95e9ea..0000000000 --- a/packages/components/src/assets/simulations/pagination-simulation.js +++ /dev/null @@ -1,8 +0,0 @@ -var buttons = document.querySelectorAll('kol-pagination'); -buttons.forEach((button) => { - button._on = { - onClick: (event, page) => { - alert(`Pagination "${page}" wurde geklickt.`); - }, - }; -}); diff --git a/packages/components/src/assets/simulations/popover-simulation.js b/packages/components/src/assets/simulations/popover-simulation.js deleted file mode 100644 index 6bbe1bf22d..0000000000 --- a/packages/components/src/assets/simulations/popover-simulation.js +++ /dev/null @@ -1,27 +0,0 @@ -const buttonTop = document.querySelector('#popover-button-top'); -const buttonRight = document.querySelector('#popover-button-right'); -const buttonBottom = document.querySelector('#popover-button-bottom'); -const buttonLeft = document.querySelector('#popover-button-left'); -const buttonLogin = document.querySelector('#popover-button-login'); - -const popoverTop = document.querySelector('#popover-top'); -const popoverRight = document.querySelector('#popover-right'); -const popoverBottom = document.querySelector('#popover-bottom'); -const popoverLeft = document.querySelector('#popover-left'); -const popoverLogin = document.querySelector('#popover-login'); - -if (buttonTop && popoverTop) { - buttonTop._on = { onClick: () => popoverTop.setAttribute('_show', '') }; -} -if (buttonRight && popoverRight) { - buttonRight._on = { onClick: () => popoverRight.setAttribute('_show', '') }; -} -if (buttonBottom && popoverBottom) { - buttonBottom._on = { onClick: () => popoverBottom.setAttribute('_show', '') }; -} -if (buttonLeft && popoverLeft) { - buttonLeft._on = { onClick: () => popoverLeft.setAttribute('_show', '') }; -} -if (buttonLogin && popoverLogin) { - buttonLogin._on = { onClick: () => popoverLogin.setAttribute('_show', '') }; -} diff --git a/packages/components/src/assets/simulations/progress-simulation.js b/packages/components/src/assets/simulations/progress-simulation.js deleted file mode 100644 index 31a1ea653b..0000000000 --- a/packages/components/src/assets/simulations/progress-simulation.js +++ /dev/null @@ -1,33 +0,0 @@ -const simButtons = document.querySelectorAll('kol-button[class*="progress"]'); -const progressBars = document.querySelectorAll('kol-progress[class*="progress"]'); - -function runProcess(index) { - let percent = 0; - console.log(simButtons[index], index); - simButtons[index].setAttribute('_disabled', 'true'); - const interval = setInterval(() => { - if (percent <= 100) { - progressBars[index].setAttribute('_value', percent); - percent += 1; - } else { - clearInterval(interval); - simButtons[index].removeAttribute('_disabled'); - } - }, 50); -} - -simButtons.forEach((button, index) => { - button._on = { - onClick: () => { - runProcess(index); - }, - }; -}); - -const schnitzelWert = document.querySelector('[_id="schnitzelwert"]'); -const progressOut = document.querySelector('[_id="schnitzelfortschritt"]'); -if (schnitzelWert && progressOut) schnitzelWert._on = { onChange: onSchnitzelChange }; - -function onSchnitzelChange(e, value) { - progressOut.setAttribute('_value', value); -} diff --git a/packages/components/src/assets/simulations/smart-button-simulation.js b/packages/components/src/assets/simulations/smart-button-simulation.js deleted file mode 100644 index 60557fb144..0000000000 --- a/packages/components/src/assets/simulations/smart-button-simulation.js +++ /dev/null @@ -1,35 +0,0 @@ -setTimeout(() => { - const smartButtons = document.querySelectorAll('.smart-button'); - smartButtons.forEach((smartButton) => { - smartButton._smartButton = { - _label: 'Password einblenden', - _icons: { left: { icon: 'icofont-eye' } }, - _hideLabel: true, - _tooltipAlign: 'left', - _on: { - onClick: () => { - smartButton._smartButton = { - ...smartButton._smartButton, - _icons: { - left: { - icon: smartButton._smartButton._icon.left.icon === 'icofont-eye' ? 'icofont-eye-blocked' : 'icofont-eye', - }, - }, - _label: smartButton._smartButton._icon.left.icon === 'icofont-eye' ? 'Password ausblenden' : 'Password einblenden', - }; - }, - }, - }; - }); -}, 2500); - -document.querySelector('#input-text')._smartButton = { - _customClass: 'bg-purple', - _disabled: false, - _icons: { left: { icon: 'codicon codicon-home' } }, - _id: 'text_smartbutton', - _label: 'aria-label', - _on: { onclick: console.log }, - _tooltipAlign: 'top', - _variant: 'danger', -}; diff --git a/packages/components/src/assets/simulations/spin-simulation.js b/packages/components/src/assets/simulations/spin-simulation.js deleted file mode 100644 index 01ece31711..0000000000 --- a/packages/components/src/assets/simulations/spin-simulation.js +++ /dev/null @@ -1,21 +0,0 @@ -let button = document.querySelector('kol-button[_label="Aktion ausführen"]'); - -if (button) { - button._on = { - onClick: () => { - button.setAttribute('_disabled', 'true'); - var spins = document.querySelectorAll('kol-spin'); - spins.forEach((spin) => { - spin.removeAttribute('style'); - spin.setAttribute('_show', 'true'); - }); - let timeout = setTimeout(() => { - clearTimeout(timeout); - spins.forEach((spin) => { - spin.removeAttribute('_show'); - }); - button.removeAttribute('_disabled'); - }, 7500); - }, - }; -} diff --git a/packages/components/src/assets/simulations/table-simulation.js b/packages/components/src/assets/simulations/table-simulation.js deleted file mode 100644 index bfc7047748..0000000000 --- a/packages/components/src/assets/simulations/table-simulation.js +++ /dev/null @@ -1,875 +0,0 @@ -const TABLE_HEADERS_H = { - horizontal: [ - [ - { - label: 'Werktage', - colSpan: 5, - }, - { - label: 'Wochenende', - colSpan: 2, - }, - ], - [ - { - key: 'montag', - label: 'Montag', - render: (el, data) => { - const button = document.createElement('kol-button'); - button.setAttribute('_label', data.label); - button.setAttribute('data-theme', 'default'); - button.setAttribute('style', 'font-size: 75%'); - button.setAttribute('exportparts', 'button,normal'); - button._on = { onClick: console.log }; - el.innerHTML = ''; - el.appendChild(button); - }, - compareFn: (first, second) => { - if (first.montag < second.montag) { - return -1; - } - if (first.montag > second.montag) { - return 1; - } - return 0; - }, - sort: (data) => { - return data.sort((first, second) => { - if (first.montag < second.montag) { - return -1; - } - if (first.montag > second.montag) { - return 1; - } - return 0; - }); - }, - sortDirection: 'ASC', - textAlign: 'right', - }, - { - key: 'dienstag', - label: 'Dienstag', - render: (el, data) => (el.innerHTML = ``), - compareFn: (first, second) => { - if (first.dienstag < second.dienstag) { - return -1; - } - if (first.dienstag > second.dienstag) { - return 1; - } - return 0; - }, - sortDirection: 'DESC', - }, - { - key: 'mittwoch', - label: 'Mittwoch', - compareFn: (first, second) => { - if (first.mittwoch < second.mittwoch) { - return -1; - } - if (first.mittwoch > second.mittwoch) { - return 1; - } - return 0; - }, - sortDirection: 'NOC', - render: (el, data) => (el.innerHTML = ``), - }, - { - key: 'donnerstag', - label: 'Donnerstag', - render: (el, data) => (el.innerHTML = ``), - }, - { - key: 'freitag', - label: 'Freitag', - render: (el, data) => (el.innerHTML = ``), - }, - { - key: 'samstag', - label: 'Samstag', - render: (el, data) => (el.innerHTML = ``), - }, - { - key: 'sonntag', - label: 'Sonntag', - render: (el, data) => (el.innerHTML = ``), - }, - ], - ], -}; -const TABLE_HEADERS_V = { - vertical: [ - [ - { - label: 'Früh', - }, - { - label: 'Mittag', - }, - { - label: 'Abend', - }, - { - label: 'Nacht', - }, - ], - ], -}; -const TABLE_HEADERS_H_V = { - horizontal: [ - [ - { - label: '', - rowSpan: 2, - asTd: true, - }, - ...TABLE_HEADERS_H.horizontal[0], - ], - [...TABLE_HEADERS_H.horizontal[1]], - ], - ...TABLE_HEADERS_V, -}; -const TABLE_2_HEADERS = { - horizontal: [ - [ - { - asTd: true, - colSpan: 2, - }, - ].concat(TABLE_HEADERS_V), - ], - vertical: [ - [ - { - ...TABLE_HEADERS_H.horizontal[0][0], - rowSpan: TABLE_HEADERS_H.horizontal[0][0].colSpan, - colSpan: undefined, - }, - { - ...TABLE_HEADERS_H.horizontal[0][1], - rowSpan: TABLE_HEADERS_H.horizontal[0][1].colSpan, - colSpan: undefined, - }, - ], - ].concat([TABLE_HEADERS_H.horizontal[1]]), -}; -const TABLE_NVDA_HEADERS = { - horizontal: [ - [ - { label: 'Juni', key: 'juni', sort: (data) => data.sort((a, b) => sortTable(a, b, 'juni', 'number')) }, - { label: 'April', key: 'april', sort: (data) => data.sort((a, b) => sortTable(a, b, 'april', 'number')) }, - { label: 'Mai', key: 'mai', sort: (data) => data.sort((a, b) => sortTable(a, b, 'mai', 'number')) }, - { label: 'Juli', key: 'juli', sort: (data) => data.sort((a, b) => sortTable(a, b, 'juli', 'number')) }, - { label: 'August', key: 'august', sort: (data) => data.sort((a, b) => sortTable(a, b, 'august', 'number')) }, - { label: 'September', key: 'september', sort: (data) => data.sort((a, b) => sortTable(a, b, 'september', 'number')) }, - ], - ], -}; - -const TABLE_DATA = [ - { - montag: 'Alex', - dienstag: 'Hong', - mittwoch: 'Kevin', - donnerstag: 'Fabian', - freitag: 'Alex', - samstag: 'Kevin', - sonntag: 'Hong', - }, - { - montag: 'Helena', - dienstag: 'Fabian', - mittwoch: 'Marie', - donnerstag: 'Ben', - freitag: 'Marcus', - samstag: 'Alex', - sonntag: 'Marcus', - }, - { - montag: 'Fabian', - dienstag: 'Helena', - mittwoch: 'Fabian', - donnerstag: 'Maya', - freitag: 'Ben', - samstag: 'Alex', - sonntag: 'Helena', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, -]; -const TABLE_DATA_SHORT = TABLE_DATA.slice(0, -1); -const TABLE_PAGED_DATA = [ - { - montag: 'Alex', - dienstag: 'Anna', - mittwoch: 'Amalia', - donnerstag: 'Arthur', - freitag: 'Alex', - samstag: 'Andrea', - sonntag: 'Arnold', - }, - { - montag: 'Helena', - dienstag: 'Fabian', - mittwoch: 'Marie', - donnerstag: 'Ben', - freitag: 'Marcus', - samstag: 'Alex', - sonntag: 'Marcus', - }, - { - montag: 'Fabian', - dienstag: 'Helena', - mittwoch: 'Fabian', - donnerstag: 'Maya', - freitag: 'Ben', - samstag: 'Alex', - sonntag: 'Helena', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Samuel', - dienstag: 'Selena', - mittwoch: 'Sandra', - donnerstag: 'Salim', - freitag: 'Robert', - samstag: 'Richard', - sonntag: 'Pamela', - }, - { - montag: 'Samuel', - dienstag: 'Selena', - mittwoch: 'Sandra', - donnerstag: 'Salim', - freitag: 'Robert', - samstag: 'Richard', - sonntag: 'Pamela', - }, - { - montag: 'Finn', - dienstag: 'Roger', - mittwoch: 'Christian', - donnerstag: 'Caspar', - freitag: 'David', - samstag: 'Bernard', - sonntag: 'Anna', - }, - { - montag: 'Alex', - dienstag: 'Anna', - mittwoch: 'Amalia', - donnerstag: 'Arthur', - freitag: 'Alex', - samstag: 'Andrea', - sonntag: 'Arnold', - }, - { - montag: 'Helena', - dienstag: 'Fabian', - mittwoch: 'Marie', - donnerstag: 'Ben', - freitag: 'Marcus', - samstag: 'Alex', - sonntag: 'Marcus', - }, - { - montag: 'Fabian', - dienstag: 'Helena', - mittwoch: 'Fabian', - donnerstag: 'Maya', - freitag: 'Ben', - samstag: 'Alex', - sonntag: 'Helena', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Samuel', - dienstag: 'Selena', - mittwoch: 'Sandra', - donnerstag: 'Salim', - freitag: 'Robert', - samstag: 'Richard', - sonntag: 'Pamela', - }, - { - montag: 'Samuel', - dienstag: 'Selena', - mittwoch: 'Sandra', - donnerstag: 'Salim', - freitag: 'Robert', - samstag: 'Richard', - sonntag: 'Pamela', - }, - { - montag: 'Finn', - dienstag: 'Roger', - mittwoch: 'Christian', - donnerstag: 'Caspar', - freitag: 'David', - samstag: 'Bernard', - sonntag: 'Anna', - }, - { - montag: 'Alex', - dienstag: 'Anna', - mittwoch: 'Amalia', - donnerstag: 'Arthur', - freitag: 'Alex', - samstag: 'Andrea', - sonntag: 'Arnold', - }, - { - montag: 'Helena', - dienstag: 'Fabian', - mittwoch: 'Marie', - donnerstag: 'Ben', - freitag: 'Marcus', - samstag: 'Alex', - sonntag: 'Marcus', - }, - { - montag: 'Fabian', - dienstag: 'Helena', - mittwoch: 'Fabian', - donnerstag: 'Maya', - freitag: 'Ben', - samstag: 'Alex', - sonntag: 'Helena', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Samuel', - dienstag: 'Selena', - mittwoch: 'Sandra', - donnerstag: 'Salim', - freitag: 'Robert', - samstag: 'Richard', - sonntag: 'Pamela', - }, - { - montag: 'Samuel', - dienstag: 'Selena', - mittwoch: 'Sandra', - donnerstag: 'Salim', - freitag: 'Robert', - samstag: 'Richard', - sonntag: 'Pamela', - }, - { - montag: 'Finn', - dienstag: 'Roger', - mittwoch: 'Christian', - donnerstag: 'Caspar', - freitag: 'David', - samstag: 'Bernard', - sonntag: 'Anna', - }, - { - montag: 'Alex', - dienstag: 'Anna', - mittwoch: 'Amalia', - donnerstag: 'Arthur', - freitag: 'Alex', - samstag: 'Andrea', - sonntag: 'Arnold', - }, - { - montag: 'Helena', - dienstag: 'Fabian', - mittwoch: 'Marie', - donnerstag: 'Ben', - freitag: 'Marcus', - samstag: 'Alex', - sonntag: 'Marcus', - }, - { - montag: 'Fabian', - dienstag: 'Helena', - mittwoch: 'Fabian', - donnerstag: 'Maya', - freitag: 'Ben', - samstag: 'Alex', - sonntag: 'Helena', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Samuel', - dienstag: 'Selena', - mittwoch: 'Sandra', - donnerstag: 'Salim', - freitag: 'Robert', - samstag: 'Richard', - sonntag: 'Pamela', - }, - { - montag: 'Samuel', - dienstag: 'Selena', - mittwoch: 'Sandra', - donnerstag: 'Salim', - freitag: 'Robert', - samstag: 'Richard', - sonntag: 'Pamela', - }, - { - montag: 'Finn', - dienstag: 'Roger', - mittwoch: 'Christian', - donnerstag: 'Caspar', - freitag: 'David', - samstag: 'Bernard', - sonntag: 'Anna', - }, - { - montag: 'Alex', - dienstag: 'Anna', - mittwoch: 'Amalia', - donnerstag: 'Arthur', - freitag: 'Alex', - samstag: 'Andrea', - sonntag: 'Arnold', - }, - { - montag: 'Helena', - dienstag: 'Fabian', - mittwoch: 'Marie', - donnerstag: 'Ben', - freitag: 'Marcus', - samstag: 'Alex', - sonntag: 'Marcus', - }, - { - montag: 'Fabian', - dienstag: 'Helena', - mittwoch: 'Fabian', - donnerstag: 'Maya', - freitag: 'Ben', - samstag: 'Alex', - sonntag: 'Helena', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Hong', - dienstag: 'Alex', - mittwoch: 'Kevin', - donnerstag: 'Maya', - freitag: 'Fabian', - samstag: 'Helena', - sonntag: 'Alex', - }, - { - montag: 'Samuel', - dienstag: 'Selena', - mittwoch: 'Sandra', - donnerstag: 'Salim', - freitag: 'Robert', - samstag: 'Richard', - sonntag: 'Pamela', - }, - { - montag: 'Samuel', - dienstag: 'Selena', - mittwoch: 'Sandra', - donnerstag: 'Salim', - freitag: 'Robert', - samstag: 'Richard', - sonntag: 'Pamela', - }, - { - montag: 'Finn', - dienstag: 'Roger', - mittwoch: 'Christian', - donnerstag: 'Caspar', - freitag: 'David', - samstag: 'Bernard', - sonntag: 'Anna', - }, -]; -const TABLE_2_DATA = [ - { montag: 'Alex', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Helena', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Marcus' }, - { montag: 'Fabian', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, - { montag: 'Hong', dienstag: 'Marie', mittwoch: 'Kevin', donnerstag: 'Maya', freitag: 'Ben' }, -]; -const TABLE_NVDA_DATA = [ - { april: '97', mai: '99', juni: '100', juli: '101', august: '102', september: '105' }, - { april: '11', mai: '13', juni: '13', juli: '13', august: '12', september: '12' }, - { april: '86', mai: '85', juni: '87', juli: '88', august: '87', september: '90' }, - { april: '11', mai: '12', juni: '12', juli: '11', august: '12', september: '12' }, - { april: '42', mai: '41', juni: '42', juli: '43', august: '39', september: '42' }, - { april: '100', mai: '99', juni: '98', juli: '99', august: '102', september: '109' }, -]; - -const TABLE_FOOT_DATA = [ - { - montag: '1', - dienstag: '2', - mittwoch: '3', - donnerstag: '4', - freitag: '5', - samstag: '6', - sonntag: '7', - }, -]; - -const PAGINATION_1 = { - _boundaryCount: 0, - _page: 3, - _pageSize: 20, - _pageSizeOptions: [5, 10, 20, 50, 100], - _on: { - onClick: console.log, - onChangePage: console.log, - onChangePageSize: console.log, - }, -}; -const PAGINATION_2 = { - _boundaryCount: 0, - _page: 3, - _pageSize: 10, - _pageSizeOptions: [5, 10, 20, 50, 100], - _on: { - onClick: console.log, - onChangePage: console.log, - onChangePageSize: console.log, - }, -}; - -function setTableData(tableID, caption, data, header, footer) { - setTimeout(() => { - const table = document.querySelector(tableID); - if (table) { - table._label = caption; - table._data = data; - if (header) table._headers = header; - if (footer) table._dataFoot = footer; - } - }, 500); -} -function setMultipleTableData(tableClass, caption, data, header, footer) { - setTimeout(() => { - const tables = document.querySelectorAll(tableClass); - tables.forEach((table) => { - table._label = caption; - table._data = data; - if (header) table._headers = header; - if (footer) table._dataFoot = footer; - }); - }, 500); -} - -function sortTable(a, b, key, type) { - if (!type) type = 'string'; - switch (type) { - case 'number': - return parseFloat(a[key]) - parseFloat(b[key]); - case 'string': - return a[key].localeCompare(b[key]); - } -} - -setTableData('#table-1a', 'header: h/v, data: short, foot', TABLE_DATA_SHORT, TABLE_HEADERS_H_V, TABLE_FOOT_DATA); -setTableData('#table-1b', 'header: h, data: short, foot', TABLE_DATA_SHORT, TABLE_HEADERS_H, TABLE_FOOT_DATA); -setTableData('#table-1c', 'header: h, data: short', TABLE_DATA_SHORT, TABLE_HEADERS_H); -setTableData('#table-1d', 'header: h/v, data: default', TABLE_DATA, TABLE_HEADERS_H_V); - -setTableData('#table-2', '2 Header, Daten Vertikal, Sort and Render', TABLE_2_DATA, TABLE_2_HEADERS); - -setTableData('#table-3a', 'header: h, data: paged', TABLE_PAGED_DATA, TABLE_HEADERS_H); -setTableData('#table-3b', 'header: h, data: paged, pagination-1', TABLE_PAGED_DATA, TABLE_HEADERS_H, undefined, PAGINATION_1); - -setTableData('#table-4', 'header: h, data: paged, pagination-2', TABLE_PAGED_DATA, TABLE_HEADERS_H, undefined, PAGINATION_2); - -setTableData('#nvda', 'Sortiertest NVDA', TABLE_NVDA_DATA, TABLE_NVDA_HEADERS); - -const dayTableHeaders = { - horizontal: [ - [ - { label: '', colSpan: 1, rowSpan: 1, asTd: true }, - { label: 'Tag', key: 'day' }, - { label: 'Info', key: 'info' }, - ], - ], - vertical: [ - [ - { label: '1', key: '1' }, - { label: '2', key: '2' }, - { label: '3', key: '3' }, - { label: '4', key: '4' }, - { label: '5', key: '5' }, - ], - ], -}; -const dayTableData = [ - { day: 'Montag', info: 'Herr Mohn' }, - { day: 'Dienstag', info: 'Dienst' }, - { day: 'Mittwoch', info: 'Mitte der Woche' }, - { day: 'Donnerstag', info: 'Donner' }, - { day: 'Freitag', info: 'frei' }, -]; -setTableData('day_table', 'DayTable', dayTableData, dayTableHeaders); diff --git a/packages/components/src/assets/simulations/tabs-simulation.js b/packages/components/src/assets/simulations/tabs-simulation.js deleted file mode 100644 index a2f641d855..0000000000 --- a/packages/components/src/assets/simulations/tabs-simulation.js +++ /dev/null @@ -1,43 +0,0 @@ -setTimeout(() => { - const callback = (name) => { - return (event, index) => { - console.log(name, event, index); - }; - }; - let tabs = document.querySelector('#tabs-with-events'); - if (tabs) { - tabs._on = { - onCreate: { - label: 'Neu Text anpassbar', - callback: callback('onCreate'), - }, - onSelect: callback('onSelect'), - }; - tabs._tabs = [ - { _label: 'Tab 1', _icons: 'fa-solid fa-house' }, - { _label: 'Tab 2', _cta: 'primary' }, - { _label: 'Tab 3', _disabled: true }, - { - _label: 'Tab 4', - _on: { - onClose: callback('onClose'), - }, - }, - { - _label: 'Tab 5', - _on: { - onClose: true, - }, - }, - { _label: 'Tab 6' }, - { _label: 'Tab 7' }, - { _label: 'Tab 8' }, - ]; - } - tabs = document.querySelector('#tabs-with-create'); - if (tabs) { - tabs._on = { - onCreate: callback('onCreate'), - }; - } -}, 2500); diff --git a/packages/components/src/assets/simulations/toast-simulation.js b/packages/components/src/assets/simulations/toast-simulation.js deleted file mode 100644 index 89dbf2fa0d..0000000000 --- a/packages/components/src/assets/simulations/toast-simulation.js +++ /dev/null @@ -1,17 +0,0 @@ -var toastButtons = document.querySelectorAll('kol-button[_label="Toast starten"]'); - -toastButtons.forEach((button) => { - button._on = { - onClick: createAndShowToast, - }; -}); - -function createAndShowToast() { - const toast = document.createElement('kol-toast'); - toast.setAttribute('_label', 'Ich bin ein Toast!'); - toast.setAttribute('_level', '3'); - toast.setAttribute('_show-duration', '10000'); - toast.setAttribute('_type', 'info'); - toast.innerText = `Ich werde in 10 Sekunden automatisch wieder ausgeblendet.`; - document.body.appendChild(toast); -} diff --git a/packages/components/src/assets/style.css b/packages/components/src/assets/style.css deleted file mode 100644 index 5466656312..0000000000 --- a/packages/components/src/assets/style.css +++ /dev/null @@ -1,139 +0,0 @@ -body, -* { - margin: 0; -} - -* { - box-sizing: border-box; -} - -.container { - display: grid; - gap: 1.5rem; - margin-inline: auto; - padding-inline: 2rem; -} - -.font-80 { - font-size: 80%; -} -.font-60 { - font-size: 60%; -} - -.gap { - gap: 0.5rem; -} - -.grid { - display: grid; -} - -.kol-accordion p, -.kol-card p { - padding: 0; - text-align: justify; - margin: 0; -} - -.divide-y > :not([hidden]) ~ :not([hidden]) { - --tw-divide-y-reverse: 0; - border: 0; - border-style: solid; - border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse))); - border-bottom-width: calc(1px * var(--tw-divide-y-reverse)); -} - -.kol-accordion div[slot='content'], -.kol-accordion div[slot='header'] { - padding: 0.5rem; -} - -.kol-logo { - width: 18%; -} - -.kol-badge[_icon='ui-rating'], -.kol-badge[_label='Und ich!'] { - font-weight: 600; -} - -.kol-button.min-width { - display: inline-block; - margin-bottom: 0.1rem; - margin-right: 0.1rem; - width: 8rem; -} - -.kol-logo { - display: block; - width: 175px; -} - -.bordered { - border: 1px solid var(--kolibri-border-color); - border-radius: var(--kolibri-border-radius); -} - -.bg-black { - background-color: black; -} -.bg-blueviolet { - background-color: blueviolet; -} - -.p-b { - padding-block: 0.5rem; -} -.p-i { - padding-inline: 1rem; -} - -.row { - background-color: white; - border: 1px solid #bbb; - border-radius: 5px; - box-shadow: 5px 5px 5px #eee; - padding: 0.5rem 0; - margin: 0.5rem 0; -} - -.col-12 { - overflow: hidden; - padding-block: 0.25rem; -} - -hr { - background-color: #850550; - margin: 0; -} -div.hr { - text-align: center; - font-weight: 600; - color: white; - margin: 0; - padding: 0.5rem; - background-color: #850550; -} - -.kol-card[_level='5'], -.kol-card[_level='6'] { - display: block; -} - -.kol-icon[_icon='codicon codicon-home'], -.kol-icon[_icon='fa-solid fa-house'], -.kol-icon[_icon='icofont-home'], -.kol-icon[_icon='ti ti-home'] { - color: #00646b; - font-size: 500%; -} - -.kol-logo { - margin: 0.25rem; -} - -.kol-nav.max-width { - display: block; - max-width: 20em; -} diff --git a/packages/themes/.gitignore b/packages/themes/.gitignore index d87e487235..c1974021ce 100644 --- a/packages/themes/.gitignore +++ b/packages/themes/.gitignore @@ -1,2 +1,3 @@ -.reports/ +assets/codicons/ +assets/kolibri.ico test-results/ diff --git a/packages/themes/assets/README.md b/packages/themes/assets/README.md new file mode 100644 index 0000000000..6547204bf3 --- /dev/null +++ b/packages/themes/assets/README.md @@ -0,0 +1 @@ +The assets folder typically contains all the static files that your project needs to function, that are not directly related to the codebase. These can include images, stylesheets (CSS files), scripts (JavaScript files), fonts, and other multimedia content. These files are often served directly to the user by the server, and are essential for the correct visual presentation and functionality of your application. diff --git a/packages/themes/assets/codicons/codicon.css b/packages/themes/assets/codicons/codicon.css index 7a161449ab..739be06ee4 100644 --- a/packages/themes/assets/codicons/codicon.css +++ b/packages/themes/assets/codicons/codicon.css @@ -6,7 +6,7 @@ @font-face { font-family: "codicon"; font-display: block; - src: url("./codicon.ttf?2ab61cbaefbdf4c7c5589068100bee0c") format("truetype"); + src: url("./codicon.ttf?be64b7213e352cd7f91ef58198e71237") format("truetype"); } .codicon[class*='codicon-'] { @@ -72,6 +72,7 @@ .codicon-record-keys:before { content: "\ea65" } .codicon-keyboard:before { content: "\ea65" } .codicon-tag:before { content: "\ea66" } +.codicon-git-pull-request-label:before { content: "\ea66" } .codicon-tag-add:before { content: "\ea66" } .codicon-tag-remove:before { content: "\ea66" } .codicon-person:before { content: "\ea67" } @@ -264,6 +265,7 @@ .codicon-diff-removed:before { content: "\eadf" } .codicon-diff-renamed:before { content: "\eae0" } .codicon-diff:before { content: "\eae1" } +.codicon-diff-sidebyside:before { content: "\eae1" } .codicon-discard:before { content: "\eae2" } .codicon-editor-layout:before { content: "\eae3" } .codicon-empty-window:before { content: "\eae4" } @@ -327,6 +329,7 @@ .codicon-megaphone:before { content: "\eb1e" } .codicon-mention:before { content: "\eb1f" } .codicon-milestone:before { content: "\eb20" } +.codicon-git-pull-request-milestone:before { content: "\eb20" } .codicon-mortar-board:before { content: "\eb21" } .codicon-move:before { content: "\eb22" } .codicon-multiple-windows:before { content: "\eb23" } @@ -452,9 +455,11 @@ .codicon-menu:before { content: "\eb94" } .codicon-expand-all:before { content: "\eb95" } .codicon-feedback:before { content: "\eb96" } +.codicon-git-pull-request-reviewer:before { content: "\eb96" } .codicon-group-by-ref-type:before { content: "\eb97" } .codicon-ungroup-by-ref-type:before { content: "\eb98" } .codicon-account:before { content: "\eb99" } +.codicon-git-pull-request-assignee:before { content: "\eb99" } .codicon-bell-dot:before { content: "\eb9a" } .codicon-debug-console:before { content: "\eb9b" } .codicon-library:before { content: "\eb9c" } @@ -568,7 +573,11 @@ .codicon-blank:before { content: "\ec03" } .codicon-heart-filled:before { content: "\ec04" } .codicon-map:before { content: "\ec05" } +.codicon-map-horizontal:before { content: "\ec05" } +.codicon-fold-horizontal:before { content: "\ec05" } .codicon-map-filled:before { content: "\ec06" } +.codicon-map-horizontal-filled:before { content: "\ec06" } +.codicon-fold-horizontal-filled:before { content: "\ec06" } .codicon-circle-small:before { content: "\ec07" } .codicon-bell-slash:before { content: "\ec08" } .codicon-bell-slash-dot:before { content: "\ec09" } @@ -580,3 +589,47 @@ .codicon-send:before { content: "\ec0f" } .codicon-sparkle:before { content: "\ec10" } .codicon-insert:before { content: "\ec11" } +.codicon-mic:before { content: "\ec12" } +.codicon-thumbsdown-filled:before { content: "\ec13" } +.codicon-thumbsup-filled:before { content: "\ec14" } +.codicon-coffee:before { content: "\ec15" } +.codicon-snake:before { content: "\ec16" } +.codicon-game:before { content: "\ec17" } +.codicon-vr:before { content: "\ec18" } +.codicon-chip:before { content: "\ec19" } +.codicon-piano:before { content: "\ec1a" } +.codicon-music:before { content: "\ec1b" } +.codicon-mic-filled:before { content: "\ec1c" } +.codicon-repo-fetch:before { content: "\ec1d" } +.codicon-copilot:before { content: "\ec1e" } +.codicon-lightbulb-sparkle:before { content: "\ec1f" } +.codicon-robot:before { content: "\ec20" } +.codicon-sparkle-filled:before { content: "\ec21" } +.codicon-diff-single:before { content: "\ec22" } +.codicon-diff-multiple:before { content: "\ec23" } +.codicon-surround-with:before { content: "\ec24" } +.codicon-share:before { content: "\ec25" } +.codicon-git-stash:before { content: "\ec26" } +.codicon-git-stash-apply:before { content: "\ec27" } +.codicon-git-stash-pop:before { content: "\ec28" } +.codicon-vscode:before { content: "\ec29" } +.codicon-vscode-insiders:before { content: "\ec2a" } +.codicon-code-oss:before { content: "\ec2b" } +.codicon-run-coverage:before { content: "\ec2c" } +.codicon-run-all-coverage:before { content: "\ec2d" } +.codicon-coverage:before { content: "\ec2e" } +.codicon-github-project:before { content: "\ec2f" } +.codicon-map-vertical:before { content: "\ec30" } +.codicon-fold-vertical:before { content: "\ec30" } +.codicon-map-vertical-filled:before { content: "\ec31" } +.codicon-fold-vertical-filled:before { content: "\ec31" } +.codicon-go-to-search:before { content: "\ec32" } +.codicon-percentage:before { content: "\ec33" } +.codicon-sort-percentage:before { content: "\ec33" } +.codicon-attach:before { content: "\ec34" } +.codicon-go-to-editing-session:before { content: "\ec35" } +.codicon-edit-session:before { content: "\ec36" } +.codicon-code-review:before { content: "\ec37" } +.codicon-copilot-warning:before { content: "\ec38" } +.codicon-python:before { content: "\ec39" } +.codicon-git-fetch:before { content: "\f101" } diff --git a/packages/themes/assets/codicons/codicon.csv b/packages/themes/assets/codicons/codicon.csv index 1c8600cc0c..9ff6867799 100644 --- a/packages/themes/assets/codicons/codicon.csv +++ b/packages/themes/assets/codicons/codicon.csv @@ -17,6 +17,7 @@ arrow-small-right,,EA9F arrow-small-up,,EAA0 arrow-swap,,EBCB arrow-up,,EAA1 +attach,,EC34 azure-devops,,EBE8 azure,,EBD8 beaker-stop,,EBE1 @@ -46,6 +47,7 @@ chevron-down,,EAB4 chevron-left,,EAB5 chevron-right,,EAB6 chevron-up,,EAB7 +chip,,EC19 chrome-close,,EAB8 chrome-maximize,,EAB9 chrome-minimize,,EABA @@ -65,7 +67,10 @@ close,,EA76 cloud-download,,EAC2 cloud-upload,,EAC3 cloud,,EBAA +code-oss,,EC2B +code-review,,EC37 code,,EAC4 +coffee,,EC15 collapse-all,,EAC5 color-mode,,EAC6 combine,,EBB6 @@ -76,7 +81,10 @@ comment,,EA6B compass-active,,EBD7 compass-dot,,EBD6 compass,,EBD5 +copilot-warning,,EC38 +copilot,,EC1E copy,,EBCC +coverage,,EC2E credit-card,,EAC9 dash,,EACC dashboard,,EACD @@ -120,10 +128,13 @@ device-mobile,,EADB diff-added,,EADC diff-ignored,,EADD diff-modified,,EADE +diff-multiple,,EC23 diff-removed,,EADF diff-renamed,,EAE0 +diff-single,,EC22 diff,,EAE1 discard,,EAE2 +edit-session,,EC36 edit,,EA73 editor-layout,,EAE3 ellipsis,,EA7C @@ -157,11 +168,13 @@ folder-active,,EAF6 folder-library,,EBDF folder-opened,,EAF7 folder,,EA83 +game,,EC17 gear,,EAF8 gift,,EAF9 gist-secret,,EAFA git-commit,,EAFC git-compare,,EAFD +git-fetch,,F101 git-merge,,EAFE git-pull-request-closed,,EBDA git-pull-request-create,,EBBC @@ -169,12 +182,18 @@ git-pull-request-draft,,EBDB git-pull-request-go-to-changes,,EC0B git-pull-request-new-changes,,EC0C git-pull-request,,EA64 +git-stash-apply,,EC27 +git-stash-pop,,EC28 +git-stash,,EC26 github-action,,EAFF github-alt,,EB00 github-inverted,,EBA1 +github-project,,EC2F github,,EA84 globe,,EB01 +go-to-editing-session,,EC35 go-to-file,,EA94 +go-to-search,,EC32 grabber,,EB02 graph-left,,EBAD graph-line,,EBE2 @@ -223,6 +242,7 @@ layout-statusbar,,EBF5 layout,,EBEB library,,EB9C lightbulb-autofix,,EB13 +lightbulb-sparkle,,EC1F lightbulb,,EA61 link-external,,EB14 link,,EB15 @@ -241,17 +261,22 @@ magnet,,EBAE mail-read,,EB1B mail,,EB1C map-filled,,EC06 +map-vertical-filled,,EC31 +map-vertical,,EC30 map,,EC05 markdown,,EB1D megaphone,,EB1E mention,,EB1F menu,,EB94 merge,,EBAB +mic-filled,,EC1C +mic,,EC12 milestone,,EB20 mirror,,EA69 mortar-board,,EB21 move,,EB22 multiple-windows,,EB23 +music,,EC1B mute,,EB24 new-file,,EA7F new-folder,,EA80 @@ -268,8 +293,10 @@ package,,EB29 paintcan,,EB2A pass-filled,,EBB3 pass,,EBA4 +percentage,,EC33 person-add,,EBCD person,,EA67 +piano,,EC1A pie-chart,,EBE4 pin,,EB2B pinned-dirty,,EBB2 @@ -282,6 +309,7 @@ preview,,EB2F primitive-square,,EA72 project,,EB30 pulse,,EB31 +python,,EC39 question,,EB32 quote,,EB33 radio-tower,,EB34 @@ -300,6 +328,7 @@ replace-all,,EB3C replace,,EB3D reply,,EA7D repo-clone,,EB3E +repo-fetch,,EC1D repo-force-push,,EB3F repo-forked,,EA63 repo-pull,,EB40 @@ -307,14 +336,17 @@ repo-push,,EB41 repo,,EA62 report,,EB42 request-changes,,EB43 +robot,,EC20 rocket,,EB44 root-folder-opened,,EB45 root-folder,,EB46 rss,,EB47 ruby,,EB48 run-above,,EBBD +run-all-coverage,,EC2D run-all,,EB9E run-below,,EBBE +run-coverage,,EC2C run-errors,,EBDE save-all,,EB49 save-as,,EB4A @@ -330,12 +362,15 @@ server-process,,EBA2 server,,EB50 settings-gear,,EB51 settings,,EB52 +share,,EC25 shield,,EB53 sign-in,,EA6F sign-out,,EA6E smiley,,EB54 +snake,,EC16 sort-precedence,,EB55 source-control,,EA68 +sparkle-filled,,EC21 sparkle,,EC10 split-horizontal,,EB56 split-vertical,,EB57 @@ -344,6 +379,7 @@ star-empty,,EA6A star-full,,EB59 star-half,,EB5A stop-circle,,EBA5 +surround-with,,EC24 symbol-array,,EA8A symbol-boolean,,EA8F symbol-class,,EB5B @@ -386,7 +422,9 @@ terminal-ubuntu,,EBC9 terminal,,EA85 text-size,,EB69 three-bars,,EB6A +thumbsdown-filled,,EC13 thumbsdown,,EB6B +thumbsup-filled,,EC14 thumbsup,,EB6C tools,,EB6D trash,,EA81 @@ -412,6 +450,9 @@ vm-connect,,EBA9 vm-outline,,EB7A vm-running,,EB7B vm,,EA7A +vr,,EC18 +vscode-insiders,,EC2A +vscode,,EC29 wand,,EBCF warning,,EA6C watch,,EB7C diff --git a/packages/themes/assets/codicons/codicon.html b/packages/themes/assets/codicons/codicon.html index 609529d134..d883dd2483 100644 --- a/packages/themes/assets/codicons/codicon.html +++ b/packages/themes/assets/codicons/codicon.html @@ -297,6 +297,14 @@

codicon

arrow-up
+
+ + + +
+ attach + +
@@ -529,6 +537,14 @@

codicon

chevron-up
+
+ + + +
+ chip + +
@@ -681,6 +697,22 @@

codicon

cloud
+
+ + + +
+ code-oss + +
+
+ + + +
+ code-review + +
@@ -689,6 +721,14 @@

codicon

code
+
+ + + +
+ coffee + +
@@ -769,6 +809,22 @@

codicon

compass
+
+ + + +
+ copilot-warning + +
+
+ + + +
+ copilot + +
@@ -777,6 +833,14 @@

codicon

copy
+
+ + + +
+ coverage + +
@@ -1121,6 +1185,14 @@

codicon

diff-modified
+
+ + + +
+ diff-multiple + +
@@ -1137,6 +1209,14 @@

codicon

diff-renamed
+
+ + + +
+ diff-single + +
@@ -1153,6 +1233,14 @@

codicon

discard
+
+ + + +
+ edit-session + +
@@ -1417,6 +1505,14 @@

codicon

folder
+
+ + + +
+ game + +
@@ -1465,6 +1561,14 @@

codicon

git-compare
+
+ + + +
+ git-fetch + +
@@ -1521,6 +1625,30 @@

codicon

git-pull-request
+
+ + + +
+ git-stash-apply + +
+
+ + + +
+ git-stash-pop + +
+
+ + + +
+ git-stash + +
@@ -1545,6 +1673,14 @@

codicon

github-inverted
+
+ + + +
+ github-project + +
@@ -1561,6 +1697,14 @@

codicon

globe
+
+ + + +
+ go-to-editing-session + +
@@ -1569,6 +1713,14 @@

codicon

go-to-file
+
+ + + +
+ go-to-search + +
@@ -1953,6 +2105,14 @@

codicon

lightbulb-autofix
+
+ + + +
+ lightbulb-sparkle + +
@@ -2097,6 +2257,22 @@

codicon

map-filled
+
+ + + +
+ map-vertical-filled + +
+
+ + + +
+ map-vertical + +
@@ -2145,6 +2321,22 @@

codicon

merge
+
+ + + +
+ mic-filled + +
+
+ + + +
+ mic + +
@@ -2185,6 +2377,14 @@

codicon

multiple-windows
+
+ + + +
+ music + +
@@ -2313,6 +2513,14 @@

codicon

pass
+
+ + + +
+ percentage + +
@@ -2329,6 +2537,14 @@

codicon

person
+
+ + + +
+ piano + +
@@ -2425,6 +2641,14 @@

codicon

pulse
+
+ + + +
+ python + +
@@ -2569,6 +2793,14 @@

codicon

repo-clone
+
+ + + +
+ repo-fetch + +
@@ -2625,6 +2857,14 @@

codicon

request-changes
+
+ + + +
+ robot + +
@@ -2673,6 +2913,14 @@

codicon

run-above
+
+ + + +
+ run-all-coverage + +
@@ -2689,6 +2937,14 @@

codicon

run-below
+
+ + + +
+ run-coverage + +
@@ -2809,6 +3065,14 @@

codicon

settings
+
+ + + +
+ share + +
@@ -2841,6 +3105,14 @@

codicon

smiley
+
+ + + +
+ snake + +
@@ -2857,6 +3129,14 @@

codicon

source-control
+
+ + + +
+ sparkle-filled + +
@@ -2921,6 +3201,14 @@

codicon

stop-circle
+
+ + + +
+ surround-with + +
@@ -3257,6 +3545,14 @@

codicon

three-bars
+
+ + + +
+ thumbsdown-filled + +
@@ -3265,6 +3561,14 @@

codicon

thumbsdown
+
+ + + +
+ thumbsup-filled + +
@@ -3465,6 +3769,30 @@

codicon

vm
+
+ + + +
+ vr + +
+
+ + + +
+ vscode-insiders + +
+
+ + + +
+ vscode + +
diff --git a/packages/themes/assets/codicons/codicon.svg b/packages/themes/assets/codicons/codicon.svg index 7f1b6ec25a..141bbdd3ae 100644 --- a/packages/themes/assets/codicons/codicon.svg +++ b/packages/themes/assets/codicons/codicon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/themes/assets/codicons/codicon.ttf b/packages/themes/assets/codicons/codicon.ttf index ea2309d11d..4a4d15cc2d 100644 Binary files a/packages/themes/assets/codicons/codicon.ttf and b/packages/themes/assets/codicons/codicon.ttf differ diff --git a/packages/themes/default/.gitignore b/packages/themes/default/.gitignore new file mode 100644 index 0000000000..c1974021ce --- /dev/null +++ b/packages/themes/default/.gitignore @@ -0,0 +1,3 @@ +assets/codicons/ +assets/kolibri.ico +test-results/ diff --git a/packages/themes/default/assets/README.md b/packages/themes/default/assets/README.md new file mode 100644 index 0000000000..6547204bf3 --- /dev/null +++ b/packages/themes/default/assets/README.md @@ -0,0 +1 @@ +The assets folder typically contains all the static files that your project needs to function, that are not directly related to the codebase. These can include images, stylesheets (CSS files), scripts (JavaScript files), fonts, and other multimedia content. These files are often served directly to the user by the server, and are essential for the correct visual presentation and functionality of your application. diff --git a/packages/themes/default/package.json b/packages/themes/default/package.json index c780bfaa1d..ea623efcc8 100644 --- a/packages/themes/default/package.json +++ b/packages/themes/default/package.json @@ -48,6 +48,7 @@ "format": "prettier --check src", "lint": "tsc --noemit && eslint src", "prepack": "pnpm build", + "prepare": "cpy \"node_modules/@public-ui/components/assets/**/*\" assets --dot", "start": "npm-run-all --parallel dev serve", "serve": "cross-env THEME_MODULE=\"`pwd`/dist\" THEME_EXPORT=DEFAULT npm --prefix \"node_modules/@public-ui/sample-react/\" start", "test": "pnpm test:visual", @@ -64,6 +65,7 @@ "@rollup/plugin-typescript": "12.1.1", "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", + "cpy-cli": "5.0.0", "eslint": "8.57.1", "nodemon": "3.1.7", "postcss": "8.4.49", diff --git a/packages/themes/ecl/.gitignore b/packages/themes/ecl/.gitignore new file mode 100644 index 0000000000..c1974021ce --- /dev/null +++ b/packages/themes/ecl/.gitignore @@ -0,0 +1,3 @@ +assets/codicons/ +assets/kolibri.ico +test-results/ diff --git a/packages/themes/ecl/assets/README.md b/packages/themes/ecl/assets/README.md new file mode 100644 index 0000000000..6547204bf3 --- /dev/null +++ b/packages/themes/ecl/assets/README.md @@ -0,0 +1 @@ +The assets folder typically contains all the static files that your project needs to function, that are not directly related to the codebase. These can include images, stylesheets (CSS files), scripts (JavaScript files), fonts, and other multimedia content. These files are often served directly to the user by the server, and are essential for the correct visual presentation and functionality of your application. diff --git a/packages/themes/ecl/package.json b/packages/themes/ecl/package.json index 48bb0e6542..0300dda71a 100644 --- a/packages/themes/ecl/package.json +++ b/packages/themes/ecl/package.json @@ -10,6 +10,7 @@ "format": "prettier --check src", "lint": "tsc --noemit && eslint src", "prepack": "pnpm build", + "prepare": "cpy \"node_modules/@public-ui/components/assets/**/*\" assets --dot", "start:ec": "npm-run-all --parallel dev serve:ec", "start:eu": "npm-run-all --parallel dev serve:eu", "serve:ec": "cross-env THEME_MODULE=\"`pwd`/dist\" THEME_EXPORT=ECL_EC npm --prefix \"node_modules/@public-ui/sample-react/\" start", @@ -31,6 +32,7 @@ "@rollup/plugin-typescript": "12.1.1", "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", + "cpy-cli": "5.0.0", "eslint": "8.57.1", "nodemon": "3.1.7", "postcss": "8.4.49", diff --git a/packages/themes/itzbund/.gitignore b/packages/themes/itzbund/.gitignore new file mode 100644 index 0000000000..c1974021ce --- /dev/null +++ b/packages/themes/itzbund/.gitignore @@ -0,0 +1,3 @@ +assets/codicons/ +assets/kolibri.ico +test-results/ diff --git a/packages/themes/itzbund/assets/README.md b/packages/themes/itzbund/assets/README.md new file mode 100644 index 0000000000..6547204bf3 --- /dev/null +++ b/packages/themes/itzbund/assets/README.md @@ -0,0 +1 @@ +The assets folder typically contains all the static files that your project needs to function, that are not directly related to the codebase. These can include images, stylesheets (CSS files), scripts (JavaScript files), fonts, and other multimedia content. These files are often served directly to the user by the server, and are essential for the correct visual presentation and functionality of your application. diff --git a/packages/themes/itzbund/package.json b/packages/themes/itzbund/package.json index dfbf976e80..a29d202598 100644 --- a/packages/themes/itzbund/package.json +++ b/packages/themes/itzbund/package.json @@ -10,6 +10,7 @@ "format": "prettier --check src", "lint": "tsc --noemit && eslint src", "prepack": "pnpm build", + "prepare": "cpy \"node_modules/@public-ui/components/assets/**/*\" assets --dot", "start": "npm-run-all --parallel dev serve", "serve": "cross-env THEME_MODULE=\"`pwd`/dist\" THEME_EXPORT=ITZBund npm --prefix \"node_modules/@public-ui/sample-react/\" start", "xtest": "cross-env THEME_MODULE=dist THEME_EXPORT=ITZBund kolibri-visual-test", @@ -25,6 +26,7 @@ "@rollup/plugin-typescript": "12.1.1", "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", + "cpy-cli": "5.0.0", "eslint": "8.57.1", "nodemon": "3.1.7", "postcss": "8.4.49", diff --git a/packages/themes/package.json b/packages/themes/package.json index d7a84bd93c..1465d47ddd 100644 --- a/packages/themes/package.json +++ b/packages/themes/package.json @@ -50,6 +50,7 @@ "format": "prettier --check src", "lint": "tsc --noemit && eslint src", "prepack": "pnpm build", + "prepare": "cpy \"node_modules/@public-ui/components/assets/**/*\" assets --dot", "test-all": "pnpm -r --workspace-concurrency=1 test", "test-update-all": "pnpm -r --workspace-concurrency=1 test-update" }, @@ -60,6 +61,7 @@ "@rollup/plugin-typescript": "12.1.1", "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", + "cpy-cli": "5.0.0", "eslint": "8.57.1", "nodemon": "3.1.7", "postcss": "8.4.49", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 048df046a9..9b99e15936 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -557,7 +557,7 @@ importers: version: 1.3.54(chromedriver@130.0.4)(esbuild@0.23.0)(typescript@5.6.3) '@leanup/stack-solid': specifier: 1.3.54 - version: 1.3.54(@babel/core@7.25.2)(solid-js@1.9.3)(vite@5.4.6(@types/node@22.9.0)(less@4.2.0)(sass@1.81.0)(terser@5.36.0))(webpack@5.96.1(@swc/core@1.5.28)(esbuild@0.23.0)) + version: 1.3.54(@babel/core@7.24.7)(solid-js@1.9.3)(vite@5.4.6(@types/node@22.9.0)(less@4.2.0)(sass@1.81.0)(terser@5.36.0))(webpack@5.96.1(@swc/core@1.5.28)(esbuild@0.23.0)) '@leanup/stack-webpack': specifier: 1.3.54 version: 1.3.54(@leanup/stack@1.3.54(chromedriver@130.0.4)(esbuild@0.23.0)(typescript@5.6.3))(esbuild@0.23.0)(less@4.2.0)(postcss@8.4.49)(sass@1.81.0) @@ -720,7 +720,7 @@ importers: version: 0.58.9 '@unocss/webpack': specifier: 0.58.9 - version: 0.58.9(rollup@4.27.3)(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)) + version: 0.58.9(rollup@4.27.3)(webpack@5.91.0) adopted-style-sheets: specifier: 1.1.6 version: 1.1.6 @@ -808,6 +808,9 @@ importers: '@typescript-eslint/parser': specifier: 7.18.0 version: 7.18.0(eslint@8.57.1)(typescript@5.6.3) + cpy-cli: + specifier: 5.0.0 + version: 5.0.0 eslint: specifier: 8.57.1 version: 8.57.1 @@ -853,6 +856,9 @@ importers: '@typescript-eslint/parser': specifier: 7.18.0 version: 7.18.0(eslint@8.57.1)(typescript@5.6.3) + cpy-cli: + specifier: 5.0.0 + version: 5.0.0 eslint: specifier: 8.57.1 version: 8.57.1 @@ -901,6 +907,9 @@ importers: '@typescript-eslint/parser': specifier: 7.18.0 version: 7.18.0(eslint@8.57.1)(typescript@5.6.3) + cpy-cli: + specifier: 5.0.0 + version: 5.0.0 eslint: specifier: 8.57.1 version: 8.57.1 @@ -949,6 +958,9 @@ importers: '@typescript-eslint/parser': specifier: 7.18.0 version: 7.18.0(eslint@8.57.1)(typescript@5.6.3) + cpy-cli: + specifier: 5.0.0 + version: 5.0.0 eslint: specifier: 8.57.1 version: 8.57.1 @@ -15763,11 +15775,11 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@leanup/stack-solid@1.3.54(@babel/core@7.25.2)(solid-js@1.9.3)(vite@5.4.6(@types/node@22.9.0)(less@4.2.0)(sass@1.81.0)(terser@5.36.0))(webpack@5.96.1(@swc/core@1.5.28)(esbuild@0.23.0))': + '@leanup/stack-solid@1.3.54(@babel/core@7.24.7)(solid-js@1.9.3)(vite@5.4.6(@types/node@22.9.0)(less@4.2.0)(sass@1.81.0)(terser@5.36.0))(webpack@5.96.1(@swc/core@1.5.28)(esbuild@0.23.0))': dependencies: '@leanup/cli-core-babel': 1.3.54(webpack@5.96.1(@swc/core@1.5.28)(esbuild@0.23.0)) '@snowpack/plugin-babel': 2.1.7 - babel-preset-solid: 1.8.17(@babel/core@7.25.2) + babel-preset-solid: 1.8.17(@babel/core@7.24.7) solid-js: 1.9.3 vite-plugin-solid: 2.10.2(solid-js@1.9.3)(vite@5.4.6(@types/node@22.9.0)(less@4.2.0)(sass@1.81.0)(terser@5.36.0)) transitivePeerDependencies: @@ -15782,16 +15794,16 @@ snapshots: '@leanup/stack': 1.3.54(chromedriver@130.0.4)(esbuild@0.23.0)(typescript@5.6.3) '@swc/core': 1.5.28 copy-modules-webpack-plugin: 2.2.1 - copy-webpack-plugin: 10.2.4(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)) - css-loader: 6.11.0(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)) - esbuild-loader: 2.21.0(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)) - file-loader: 6.2.0(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)) - less-loader: 10.2.0(less@4.2.0)(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)) - mini-css-extract-plugin: 2.9.0(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)) - postcss-loader: 6.2.1(postcss@8.4.49)(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)) - sass-loader: 12.6.0(sass@1.81.0)(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)) - string-replace-loader: 3.1.0(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)) - swc-loader: 0.2.6(@swc/core@1.5.28)(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)) + copy-webpack-plugin: 10.2.4(webpack@5.91.0) + css-loader: 6.11.0(webpack@5.91.0) + esbuild-loader: 2.21.0(webpack@5.91.0) + file-loader: 6.2.0(webpack@5.91.0) + less-loader: 10.2.0(less@4.2.0)(webpack@5.91.0) + mini-css-extract-plugin: 2.9.0(webpack@5.91.0) + postcss-loader: 6.2.1(postcss@8.4.49)(webpack@5.91.0) + sass-loader: 12.6.0(sass@1.81.0)(webpack@5.91.0) + string-replace-loader: 3.1.0(webpack@5.91.0) + swc-loader: 0.2.6(@swc/core@1.5.28)(webpack@5.91.0) webpack: 5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0) webpack-cli: 4.10.0(webpack-dev-server@4.15.2)(webpack@5.91.0) webpack-dev-server: 4.15.2(webpack-cli@4.10.0)(webpack@5.91.0) @@ -17271,7 +17283,7 @@ snapshots: '@unocss/core': 0.58.9 magic-string: 0.30.11 - '@unocss/webpack@0.58.9(rollup@4.27.3)(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0))': + '@unocss/webpack@0.58.9(rollup@4.27.3)(webpack@5.91.0)': dependencies: '@ampproject/remapping': 2.3.0 '@rollup/pluginutils': 5.1.0(rollup@4.27.3) @@ -17434,33 +17446,33 @@ snapshots: '@webassemblyjs/ast': 1.12.1 '@xtuc/long': 4.2.2 - '@webpack-cli/configtest@1.2.0(webpack-cli@4.10.0(webpack-dev-server@4.15.2)(webpack@5.91.0))(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0))': + '@webpack-cli/configtest@1.2.0(webpack-cli@4.10.0)(webpack@5.91.0)': dependencies: webpack: 5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0) webpack-cli: 4.10.0(webpack-dev-server@4.15.2)(webpack@5.91.0) - '@webpack-cli/configtest@2.1.1(webpack-cli@5.1.4(webpack@5.96.1))(webpack@5.96.1(@swc/core@1.5.28)(webpack-cli@5.1.4))': + '@webpack-cli/configtest@2.1.1(webpack-cli@5.1.4)(webpack@5.96.1)': dependencies: webpack: 5.96.1(@swc/core@1.5.28)(webpack-cli@5.1.4) webpack-cli: 5.1.4(webpack@5.96.1) - '@webpack-cli/info@1.5.0(webpack-cli@4.10.0(webpack-dev-server@4.15.2)(webpack@5.91.0))': + '@webpack-cli/info@1.5.0(webpack-cli@4.10.0)': dependencies: envinfo: 7.13.0 webpack-cli: 4.10.0(webpack-dev-server@4.15.2)(webpack@5.91.0) - '@webpack-cli/info@2.0.2(webpack-cli@5.1.4(webpack@5.96.1))(webpack@5.96.1(@swc/core@1.5.28)(webpack-cli@5.1.4))': + '@webpack-cli/info@2.0.2(webpack-cli@5.1.4)(webpack@5.96.1)': dependencies: webpack: 5.96.1(@swc/core@1.5.28)(webpack-cli@5.1.4) webpack-cli: 5.1.4(webpack@5.96.1) - '@webpack-cli/serve@1.7.0(webpack-cli@4.10.0(webpack-dev-server@4.15.2)(webpack@5.91.0))(webpack-dev-server@4.15.2(webpack-cli@4.10.0)(webpack@5.91.0))': + '@webpack-cli/serve@1.7.0(webpack-cli@4.10.0)(webpack-dev-server@4.15.2)': dependencies: webpack-cli: 4.10.0(webpack-dev-server@4.15.2)(webpack@5.91.0) optionalDependencies: webpack-dev-server: 4.15.2(webpack-cli@4.10.0)(webpack@5.91.0) - '@webpack-cli/serve@2.0.5(webpack-cli@5.1.4(webpack@5.96.1))(webpack@5.96.1(@swc/core@1.5.28)(webpack-cli@5.1.4))': + '@webpack-cli/serve@2.0.5(webpack-cli@5.1.4)(webpack@5.96.1)': dependencies: webpack: 5.96.1(@swc/core@1.5.28)(webpack-cli@5.1.4) webpack-cli: 5.1.4(webpack@5.96.1) @@ -17879,6 +17891,15 @@ snapshots: '@types/babel__core': 7.20.5 '@types/babel__traverse': 7.20.6 + babel-plugin-jsx-dom-expressions@0.37.23(@babel/core@7.24.7): + dependencies: + '@babel/core': 7.24.7 + '@babel/helper-module-imports': 7.18.6 + '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.24.7) + '@babel/types': 7.26.0 + html-entities: 2.3.3 + validate-html-nesting: 1.2.2 + babel-plugin-jsx-dom-expressions@0.37.23(@babel/core@7.25.2): dependencies: '@babel/core': 7.25.2 @@ -17958,6 +17979,11 @@ snapshots: babel-plugin-jest-hoist: 26.6.2 babel-preset-current-node-syntax: 1.0.1(@babel/core@7.25.2) + babel-preset-solid@1.8.17(@babel/core@7.24.7): + dependencies: + '@babel/core': 7.24.7 + babel-plugin-jsx-dom-expressions: 0.37.23(@babel/core@7.24.7) + babel-preset-solid@1.8.17(@babel/core@7.25.2): dependencies: '@babel/core': 7.25.2 @@ -18674,7 +18700,7 @@ snapshots: dependencies: fs-extra: 8.1.0 - copy-webpack-plugin@10.2.4(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)): + copy-webpack-plugin@10.2.4(webpack@5.91.0): dependencies: fast-glob: 3.3.2 glob-parent: 6.0.2 @@ -18816,7 +18842,7 @@ snapshots: dependencies: postcss: 8.4.49 - css-loader@6.11.0(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)): + css-loader@6.11.0(webpack@5.91.0): dependencies: icss-utils: 5.1.0(postcss@8.4.49) postcss: 8.4.49 @@ -19509,7 +19535,7 @@ snapshots: es6-error@4.1.1: {} - esbuild-loader@2.21.0(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)): + esbuild-loader@2.21.0(webpack@5.91.0): dependencies: esbuild: 0.16.17 joycon: 3.1.1 @@ -20127,7 +20153,7 @@ snapshots: dependencies: flat-cache: 3.2.0 - file-loader@6.2.0(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)): + file-loader@6.2.0(webpack@5.91.0): dependencies: loader-utils: 2.0.4 schema-utils: 3.3.0 @@ -21386,7 +21412,7 @@ snapshots: jest-environment-jsdom: 26.6.2 jest-environment-node: 26.6.2 jest-get-type: 26.3.0 - jest-jasmine2: 26.6.3(ts-node@10.9.2(@swc/core@1.5.28)(@types/node@22.9.0)(typescript@5.6.3)) + jest-jasmine2: 26.6.3 jest-regex-util: 26.0.0 jest-resolve: 26.6.2 jest-util: 26.6.2 @@ -21475,7 +21501,7 @@ snapshots: transitivePeerDependencies: - supports-color - jest-jasmine2@26.6.3(ts-node@10.9.2(@swc/core@1.5.28)(@types/node@22.9.0)(typescript@5.6.3)): + jest-jasmine2@26.6.3: dependencies: '@babel/traverse': 7.25.9 '@jest/environment': 26.6.2 @@ -21496,11 +21522,7 @@ snapshots: pretty-format: 26.6.2 throat: 5.0.0 transitivePeerDependencies: - - bufferutil - - canvas - supports-color - - ts-node - - utf-8-validate jest-leak-detector@26.6.2: dependencies: @@ -22135,7 +22157,7 @@ snapshots: - encoding - supports-color - less-loader@10.2.0(less@4.2.0)(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)): + less-loader@10.2.0(less@4.2.0)(webpack@5.91.0): dependencies: klona: 2.0.6 less: 4.2.0 @@ -22686,7 +22708,7 @@ snapshots: min-indent@1.0.1: {} - mini-css-extract-plugin@2.9.0(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)): + mini-css-extract-plugin@2.9.0(webpack@5.91.0): dependencies: schema-utils: 4.2.0 tapable: 2.2.1 @@ -23852,7 +23874,7 @@ snapshots: postcss: 8.4.49 ts-node: 10.9.2(@swc/core@1.5.28)(@types/node@22.9.0)(typescript@5.6.3) - postcss-loader@6.2.1(postcss@8.4.49)(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)): + postcss-loader@6.2.1(postcss@8.4.49)(webpack@5.91.0): dependencies: cosmiconfig: 7.1.0 klona: 2.0.6 @@ -24883,7 +24905,7 @@ snapshots: transitivePeerDependencies: - supports-color - sass-loader@12.6.0(sass@1.81.0)(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)): + sass-loader@12.6.0(sass@1.81.0)(webpack@5.91.0): dependencies: klona: 2.0.6 neo-async: 2.6.2 @@ -25432,7 +25454,7 @@ snapshots: char-regex: 1.0.2 strip-ansi: 6.0.1 - string-replace-loader@3.1.0(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)): + string-replace-loader@3.1.0(webpack@5.91.0): dependencies: loader-utils: 2.0.4 schema-utils: 3.3.0 @@ -25605,7 +25627,7 @@ snapshots: csso: 5.0.5 picocolors: 1.1.0 - swc-loader@0.2.6(@swc/core@1.5.28)(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)): + swc-loader@0.2.6(@swc/core@1.5.28)(webpack@5.91.0): dependencies: '@swc/core': 1.5.28 '@swc/counter': 0.1.3 @@ -25674,7 +25696,7 @@ snapshots: ansi-escapes: 4.3.2 supports-hyperlinks: 2.3.0 - terser-webpack-plugin@5.3.10(@swc/core@1.5.28)(esbuild@0.23.0)(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)): + terser-webpack-plugin@5.3.10(@swc/core@1.5.28)(esbuild@0.23.0)(webpack@5.91.0): dependencies: '@jridgewell/trace-mapping': 0.3.25 jest-worker: 27.5.1 @@ -25710,7 +25732,7 @@ snapshots: '@swc/core': 1.5.28 esbuild: 0.23.0 - terser-webpack-plugin@5.3.10(@swc/core@1.5.28)(webpack@5.96.1(@swc/core@1.5.28)(webpack-cli@5.1.4)): + terser-webpack-plugin@5.3.10(@swc/core@1.5.28)(webpack@5.96.1): dependencies: '@jridgewell/trace-mapping': 0.3.25 jest-worker: 27.5.1 @@ -26354,9 +26376,9 @@ snapshots: webpack-cli@4.10.0(webpack-dev-server@4.15.2)(webpack@5.91.0): dependencies: '@discoveryjs/json-ext': 0.5.7 - '@webpack-cli/configtest': 1.2.0(webpack-cli@4.10.0(webpack-dev-server@4.15.2)(webpack@5.91.0))(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)) - '@webpack-cli/info': 1.5.0(webpack-cli@4.10.0(webpack-dev-server@4.15.2)(webpack@5.91.0)) - '@webpack-cli/serve': 1.7.0(webpack-cli@4.10.0(webpack-dev-server@4.15.2)(webpack@5.91.0))(webpack-dev-server@4.15.2(webpack-cli@4.10.0)(webpack@5.91.0)) + '@webpack-cli/configtest': 1.2.0(webpack-cli@4.10.0)(webpack@5.91.0) + '@webpack-cli/info': 1.5.0(webpack-cli@4.10.0) + '@webpack-cli/serve': 1.7.0(webpack-cli@4.10.0)(webpack-dev-server@4.15.2) colorette: 2.0.20 commander: 7.2.0 cross-spawn: 7.0.3 @@ -26372,9 +26394,9 @@ snapshots: webpack-cli@5.1.4(webpack@5.96.1): dependencies: '@discoveryjs/json-ext': 0.5.7 - '@webpack-cli/configtest': 2.1.1(webpack-cli@5.1.4(webpack@5.96.1))(webpack@5.96.1(@swc/core@1.5.28)(webpack-cli@5.1.4)) - '@webpack-cli/info': 2.0.2(webpack-cli@5.1.4(webpack@5.96.1))(webpack@5.96.1(@swc/core@1.5.28)(webpack-cli@5.1.4)) - '@webpack-cli/serve': 2.0.5(webpack-cli@5.1.4(webpack@5.96.1))(webpack@5.96.1(@swc/core@1.5.28)(webpack-cli@5.1.4)) + '@webpack-cli/configtest': 2.1.1(webpack-cli@5.1.4)(webpack@5.96.1) + '@webpack-cli/info': 2.0.2(webpack-cli@5.1.4)(webpack@5.96.1) + '@webpack-cli/serve': 2.0.5(webpack-cli@5.1.4)(webpack@5.96.1) colorette: 2.0.20 commander: 10.0.1 cross-spawn: 7.0.3 @@ -26386,7 +26408,7 @@ snapshots: webpack: 5.96.1(@swc/core@1.5.28)(webpack-cli@5.1.4) webpack-merge: 5.10.0 - webpack-dev-middleware@5.3.4(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)): + webpack-dev-middleware@5.3.4(webpack@5.91.0): dependencies: colorette: 2.0.20 memfs: 3.5.3 @@ -26436,7 +26458,7 @@ snapshots: serve-index: 1.9.1 sockjs: 0.3.24 spdy: 4.0.2 - webpack-dev-middleware: 5.3.4(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)) + webpack-dev-middleware: 5.3.4(webpack@5.91.0) ws: 8.18.0 optionalDependencies: webpack: 5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0) @@ -26536,7 +26558,7 @@ snapshots: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.10(@swc/core@1.5.28)(esbuild@0.23.0)(webpack@5.91.0(@swc/core@1.5.28)(esbuild@0.23.0)(webpack-cli@4.10.0)) + terser-webpack-plugin: 5.3.10(@swc/core@1.5.28)(esbuild@0.23.0)(webpack@5.91.0) watchpack: 2.4.1 webpack-sources: 3.2.3 optionalDependencies: @@ -26628,7 +26650,7 @@ snapshots: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.10(@swc/core@1.5.28)(webpack@5.96.1(@swc/core@1.5.28)(webpack-cli@5.1.4)) + terser-webpack-plugin: 5.3.10(@swc/core@1.5.28)(webpack@5.96.1) watchpack: 2.4.1 webpack-sources: 3.2.3 optionalDependencies: