Icard/angular-clarity-master(work.../node_modules/@clr/icons/clr-icons-lite.min.js

29 lines
66 KiB
JavaScript
Raw Permalink Normal View History

2024-07-16 14:55:36 +00:00
!function(l,a){if("object"==typeof exports&&"object"==typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var e,t=a();for(e in t)("object"==typeof exports?exports:l)[e]=t[e]}}(this,function(){return e={"./projects/icons/src/clr-icons-api.ts":
/*!*********************************************!*\
!*** ./projects/icons/src/clr-icons-api.ts ***!
\*********************************************/
/*! no static exports found */function(l,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ClarityIconsApi=void 0;var t=e(/*! ./utils/shape-template-observer */"./projects/icons/src/utils/shape-template-observer.ts"),i={},e=(Object.defineProperty(c,"instance",{get:function(){return c.singleInstance=!c.singleInstance?new c:c.singleInstance},enumerable:!1,configurable:!0}),c.prototype.validateName=function(l){if(0===l.length)throw new Error("Shape name or alias must be a non-empty string!");if(/\s/.test(l))throw new Error("Shape name or alias must not contain any whitespace characters!");return!0},c.prototype.normalizeShapeName=function(l){return l.toLowerCase()},c.prototype.setIconTemplate=function(l,a){a=a.trim();this.validateName(l)&&(l=this.normalizeShapeName(l),i[l]&&delete i[l],i[l]=a,t.ShapeTemplateObserver.instance.emitChanges(l,a))},c.prototype.setIconAliases=function(l,a,e){for(var t=0,i=e;t<i.length;t++){var c=i[t];this.validateName(c)&&Object.defineProperty(l,c,{get:function(){return l[a]},enumerable:!0,configurable:!0})}},c.prototype.add=function(l){if("object"!=typeof l)throw new Error('The argument must be an object literal passed in the following pattern:\n { "shape-name": "shape-template" }');for(var a in l)l.hasOwnProperty(a)&&this.setIconTemplate(a,l[a])},c.prototype.has=function(l){return!!i[this.normalizeShapeName(l)]},c.prototype.get=function(l){if(!l)return i;if("string"!=typeof l)throw new TypeError("Only string argument is allowed in this method.");return i[this.normalizeShapeName(l)]},c.prototype.alias=function(l){if("object"!=typeof l)throw new Error('The argument must be an object literal passed in the following pattern:\n { "shape-name": ["alias-name", ...] }');for(var a in l)if(l.hasOwnProperty(a)){if(!i.hasOwnProperty(a))throw new Error('An icon "'+a+"\" you are trying to set aliases to doesn't exist in the Clarity Icons sets!");this.setIconAliases(i,a,l[a])}},c);function c(){}a.ClarityIconsApi=e},"./projects/icons/src/clr-icons-element.ts":
/*!*************************************************!*\
!*** ./projects/icons/src/clr-icons-element.ts ***!
\*************************************************/
/*! no static exports found */function(l,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ClarityIconElement=void 0;var i=e(/*! ./clr-icons-api */"./projects/icons/src/clr-icons-api.ts"),c=e(/*! ./utils/shape-template-observer */"./projects/icons/src/utils/shape-template-observer.ts"),t=0,r=document.createElement("span");r.className="is-off-screen";var s=function(){return HTMLElement.apply(this,arguments)};function n(){var l=s.apply(this,arguments);return l.clrIconUniqId="_clr_icon_"+t,t++,l}"object"==typeof Reflect&&(s=function(){return Reflect.construct(HTMLElement,arguments,this.constructor)}),(a.ClarityIconElement=n).observedAttributes=["shape","size","title"],((n.prototype=Object.create(HTMLElement.prototype,{constructor:{configurable:!0,writable:!0,value:n}})).constructor=n).prototype._appendCustomTitle=function(){var l=r.cloneNode(!1);l.id=this.clrIconUniqId,l.textContent=this.currentTitleAttrVal,this.appendChild(l)},n.prototype._setIconSize=function(l){!Number(l)||Number(l)<0?(this.style.width=null,this.style.height=null):(this.style.width=l+"px",this.style.height=l+"px")},n.prototype._normalizeShape=function(l){return l.split(/\s/)[0].toLowerCase()},n.prototype.connectedCallback=function(){var l,a=this;if(this.getAttribute("role")||this.setAttribute("role","none"),this.hasAttribute("size")&&(l=this.getAttribute("size"),this.currentSizeAttrVal!==l&&(this.currentSizeAttrVal=l,this._setIconSize(l))),this.hasAttribute("shape")){var e=this._normalizeShape(this.getAttribute("shape"));if(this._shapeTemplateSubscription=c.ShapeTemplateObserver.instance.subscribeTo(e,function(l){a._injectTemplate(l)}),this.currentShapeAttrVal=e,!i.ClarityIconsApi.instance.has(this.currentShapeAttrVal))return void this._injectErrorTemplate();e=i.ClarityIconsApi.instance.get(this.currentShapeAttrVal);if(e===this.currentShapeTemplate)return;this.currentShapeTemplate=e}if(this.hasAttribute("title")){e=this.getAttribute("title");if(this.currentTitleAttrVal!==e&&(this.currentTitleAttrVal=e),!this.currentShapeAttrVal)return}this._injectTemplate()},n.prototype.attributeChangedCallback=function(l,a,e){var t=this;if("size"===l&&this._setIconSize(e),"shape"===l){if(this.currentShapeAttrVal=this._normalizeShape(e),this._shapeTemplateSubscription&&(this._shapeTemplateSubscription(),this._shapeTemplateSubscription=c.ShapeTemplateObserver.instance.subscribeTo(this.currentShapeAttrVal,function(l){t._injectTemplate(l)})),!i.ClarityIconsApi.instance.has(this.currentShapeAttrVal))return void this._injectErrorTemplate();this.currentShapeTemplate=i.ClarityIconsApi.instance.get(this.currentShapeAttrVal)}"title"===l&&(this.currentTitleAttrVal=e,!this.currentShapeAttrVal)||this._injectTemplate()},n.prototype.disconnectedCallback=function(){this._shapeTemplateSubscription&&this._shapeTemplateSubscription()},n.prototype._setAriaLabelledBy=function(){var l=this.getAttribute("aria-labelledby"),a=this.querySelector("svg"),a=a||this;l?l&&l.indexOf(this.clrIconUniqId)<0&&a.setAttribute("aria-labelledby",l+" "+this.clrIconUniqId):a.setAttribute("aria-labelledby",this.clrIconUniqId)},n.prototype._injectTemplate=function(l){l&&l!==this.currentShapeTemplate&&(this.currentShapeTemplate=l),this.innerHTML=this.currentShapeTemplate,this.currentTitleAttrVal&&(this._setAriaLabelledBy(),this._appendCustomTitle())},n.prototype._injectErrorTemplate=function(){this.currentShapeTemplate=i.ClarityIconsApi.instance.get("error"),this._injectTemplate()}},"./projects/icons/src/index.ts":
/*!*************************************!*\
!*** ./projects/icons/src/index.ts ***!
\*************************************/
/*! no static exports found */function(l,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ClarityIcons=void 0;var t=e(/*! ./clr-icons-api */"./projects/icons/src/clr-icons-api.ts"),i=e(/*! ./clr-icons-element */"./projects/icons/src/clr-icons-element.ts"),e=e(/*! ./shapes/core-shapes */"./projects/icons/src/shapes/core-shapes.ts"),t=t.ClarityIconsApi.instance;(a.ClarityIcons=t).add(e.CoreShapes),"undefined"!=typeof window&&(window.hasOwnProperty("ClarityIcons")||(window.ClarityIcons=t),customElements.get("clr-icon")||customElements.define("clr-icon",i.ClarityIconElement))},"./projects/icons/src/shapes/core-shapes.ts":
/*!**************************************************!*\
!*** ./projects/icons/src/shapes/core-shapes.ts ***!
\**************************************************/
/*! no static exports found */function(l,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.CoreShapes=a.ClrShapeArrow=a.ClrShapeStepForward2=a.ClrShapeEyeHide=a.ClrShapeEye=a.ClrShapeEvent=a.ClrShapeCalendar=a.ClrShapeAngleDouble=a.ClrShapeViewColumns=a.ClrShapeSearch=a.ClrShapeVmBug=a.ClrShapeFilterGridCircle=a.ClrShapeFilterGrid=a.ClrShapeEllipsisVertical=a.ClrShapeEllipsisHorizontal=a.ClrShapeCloud=a.ClrShapeImage=a.ClrShapeBell=a.ClrShapeFolderOpen=a.ClrShapeFolder=a.ClrShapeAngle=a.ClrShapeUser=a.ClrShapeBars=a.ClrShapeHelpInfo=a.ClrShapeWarningStandard=a.ClrShapeErrorStandard=a.ClrShapeSuccessStandard=a.ClrShapeInfoStandard=a.ClrShapeInfoCircle=a.ClrShapeCheckCircle=a.ClrShapeExclamationCircle=a.ClrShapeExclamationTriangle=a.ClrShapeTimes=a.ClrShapeCheck=a.ClrShapeCog=a.ClrShapeHome=a.ClrShapeUnknownStatus=void 0;var t=e(/*! ../utils/descriptor-config */"./projects/icons/src/utils/descriptor-config.ts"),e=e(/*! ../utils/svg-tag-generator */"./projects/icons/src/utils/svg-tag-generator.ts");a.ClrShapeUnknownStatus=(0,e.clrIconSVG)('<circle class="clr-i-outline clr-i-outline-path-1" cx="17.58" cy="26.23" r="1.4"/>\n <path class="clr-i-outline clr-i-outline-path-2" d="M24.7,13a5.18,5.18,0,0,0-2.16-3.56,7.26,7.26,0,0,0-5.71-1.09A11.34,11.34,0,0,0,12,10.44,1,1,0,1,0,13.26,12a9.32,9.32,0,0,1,3.94-1.72,5.29,5.29,0,0,1,4.16.74,3.21,3.21,0,0,1,1.35,2.19c.33,2.69-3.19,3.75-5.32,4.14l-.82.15v4.36a1,1,0,0,0,2,0V19.17C24.61,17.79,24.88,14.41,24.7,13Z"/>'),a.ClrShapeHome=(0,e.clrIconSVG)('<path class="clr-i-outline clr-i-outline-path-1" d="M33.71,17.29l-15-15a1,1,0,0,0-1.41,0l-15,15a1,1,0,0,0,1.41,1.41L18,4.41,32.29,18.71a1,1,0,0,0,1.41-1.41Z"/>\n <path class="clr-i-outline clr-i-outline-path-2" d="M28,32h-5V22H13V32H8V18L6,20V32a2,2,0,0,0,2,2h7V24h6V34h7a2,2,0,0,0,2-2V19.76l-2-2Z"/>\n <path class="clr-i-solid clr-i-solid-path-1" d="M33,19a1,1,0,0,1-.71-.29L18,4.41,3.71,18.71a1,1,0,0,1-1.41-1.41l15-15a1,1,0,0,1,1.41,0l15,15A1,1,0,0,1,33,19Z"/>\n <path class="clr-i-solid clr-i-solid-path-2" d="M18,7.79,6,19.83V32a2,2,0,0,0,2,2h7V24h6V34h7a2,2,0,0,0,2-2V19.76Z"/>'),a.ClrShapeCog=(0,e.clrIconSVG)('<path class="clr-i-outline clr-i-outline-path-1" d="M18.1,11c-3.9,0-7,3.1-7,7s3.1,7,7,7c3.9,0,7-3.1,7-7S22,11,18.1,11z M18.1,23c-2.8,0-5-2.2-5-5s2.2-5,5-5c2.8,0,5,2.2,5,5S20.9,23,18.1,23z"/>\n <path class="clr-i-outline clr-i-outline-path-2" d="M32.8,14.7L30,13.8l-0.6-1.5l1.4-2.6c0.3-0.6,0.2-1.4-0.3-1.9l-2.4-2.4c-0.5-0.5-1.3-0.6-1.9-0.3l-2.6,1.4l-1.5-0.6l-0.9-2.8C21,2.5,20.4,2,19.7,2h-3.4c-0.7,0-1.3,0.5-1.4,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0,3.9,3.1,7,7,7c3.9,0,7-3.1,7-7s-3.1-7-7-7C14.2,11,11.1,14.1,11.1,18z M23.1,18c0,2.8-2.2,5-5,5c-2.8,0-5-2.2-5-5s2.2-5,5-5C20.9,13,23.1,15.2,23.1,18z"/>\n <path class="clr-i-outline--badged clr-i-outline-path-2--badged" d="M32.8,14.7L30,13.8l-0.1-0.3c-0.8,0-1.6-0.2-2.4-0.4c0.3,0.6,0.6,1.3,0.8,1.9l0.1,0.5l3.6,1.1v2.8l-3.6,1.1L28.3,21c-0.3,0.7-0.6,1
/*!*******************************************************!*\
!*** ./projects/icons/src/utils/descriptor-config.ts ***!
\*******************************************************/
/*! no static exports found */function(l,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.descriptorConfig=void 0,a.descriptorConfig=function(l){return{enumerable:!0,writable:!0,configurable:!0,value:l}}},"./projects/icons/src/utils/shape-template-observer.ts":
/*!*************************************************************!*\
!*** ./projects/icons/src/utils/shape-template-observer.ts ***!
\*************************************************************/
/*! no static exports found */function(l,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ShapeTemplateObserver=a.changeHandlerCallbacks=void 0,a.changeHandlerCallbacks={};var t=(Object.defineProperty(i,"instance",{get:function(){return i.singleInstance=!i.singleInstance?new i:i.singleInstance},enumerable:!1,configurable:!0}),i.prototype.subscribeTo=function(a,e){var t=this;return this.callbacks[a]?-1===this.callbacks[a].indexOf(e)&&this.callbacks[a].push(e):this.callbacks[a]=[e],function(){var l=t.callbacks[a].indexOf(e);t.callbacks[a].splice(l,1),0===t.callbacks[a].length&&delete t.callbacks[a]}},i.prototype.emitChanges=function(l,a){this.callbacks[l]&&this.callbacks[l].map(function(l){l(a)})},i);function i(){this.callbacks=a.changeHandlerCallbacks}a.ShapeTemplateObserver=t},"./projects/icons/src/utils/svg-tag-generator.ts":
/*!*******************************************************!*\
!*** ./projects/icons/src/utils/svg-tag-generator.ts ***!
\*******************************************************/
/*! no static exports found */function(l,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.clrIconSVG=void 0;a.clrIconSVG=function(l){var a="";return-1<l.indexOf("--badged")&&(a+="can-badge "),-1<l.indexOf("--alerted")&&(a+="can-alert "),-1<l.indexOf("clr-i-solid")&&(a+="has-solid "),(a?'<svg version="1.1" class="'+a+'" viewBox="0 0 36 36" preserveAspectRatio="xMidYMid meet"\n xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" focusable="false" role="img">':'<svg version="1.1" viewBox="0 0 36 36" preserveAspectRatio="xMidYMid meet"\n xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" focusable="false" role="img">')+l+"</svg>"}}},t={},i.m=e,i.c=t,i.d=function(l,a,e){i.o(l,a)||Object.defineProperty(l,a,{enumerable:!0,get:e})},i.r=function(l){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},i.t=function(a,l){if(1&l&&(a=i(a)),8&l)return a;if(4&l&&"object"==typeof a&&a&&a.__esModule)return a;var e=Object.create(null);if(i.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:a}),2&l&&"string"!=typeof a)for(var t in a)i.d(e,t,function(l){return a[l]}.bind(null,t));return e},i.n=function(l){var a=l&&l.__esModule?function(){return l.default}:function(){return l};return i.d(a,"a",a),a},i.o=function(l,a){return Object.prototype.hasOwnProperty.call(l,a)},i.p="",i(i.s="./projects/icons/src/index.ts");function i(l){if(t[l])return t[l].exports;var a=t[l]={i:l,l:!1,exports:{}};return e[l].call(a.exports,a,a.exports,i),a.l=!0,a.exports}var e,t});