@pictogrammers/components 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/css.d.ts +4 -0
- package/@types/html.d.ts +4 -0
- package/README.md +49 -0
- package/dist/main.js +3819 -0
- package/dist/pgAnnoy.js +116 -0
- package/dist/pgAvatar.js +136 -0
- package/dist/pgButton.js +116 -0
- package/dist/pgButtonGroup.js +116 -0
- package/dist/pgButtonLink.js +116 -0
- package/dist/pgButtonToggle.js +146 -0
- package/dist/pgCard.js +116 -0
- package/dist/pgCardUser.js +196 -0
- package/dist/pgColor.js +136 -0
- package/dist/pgDatabase.js +236 -0
- package/dist/pgDropdown.js +686 -0
- package/dist/pgGrid.js +126 -0
- package/dist/pgHeader.js +116 -0
- package/dist/pgIcon.js +116 -0
- package/dist/pgInputCheck.js +116 -0
- package/dist/pgInputCheckList.js +126 -0
- package/dist/pgInputFileLocal.js +116 -0
- package/dist/pgInputHexRgb.js +126 -0
- package/dist/pgInputRange.js +116 -0
- package/dist/pgInputSelect.js +116 -0
- package/dist/pgInputText.js +116 -0
- package/dist/pgInputTextIcon.js +176 -0
- package/dist/pgInputUserSelect.js +116 -0
- package/dist/pgListTag.js +136 -0
- package/dist/pgMarkdown.js +346 -0
- package/dist/pgMenuIcon.js +206 -0
- package/dist/pgModalAlert.js +126 -0
- package/dist/pgModification.js +396 -0
- package/dist/pgNav.js +116 -0
- package/dist/pgOverlay.js +96 -0
- package/dist/pgPicker.js +116 -0
- package/dist/pgPreview.js +116 -0
- package/dist/pgScroll.js +266 -0
- package/dist/pgSearch.js +146 -0
- package/dist/pgTab.js +116 -0
- package/dist/pgTabs.js +136 -0
- package/dist/pgToast.js +136 -0
- package/dist/pgToasts.js +136 -0
- package/dist/pgTooltip.js +126 -0
- package/index.html +302 -0
- package/package.json +25 -0
- package/pg/annoy/README.md +18 -0
- package/pg/annoy/__examples__/basic/basic.html +8 -0
- package/pg/annoy/__examples__/basic/basic.ts +11 -0
- package/pg/annoy/annoy.css +238 -0
- package/pg/annoy/annoy.html +59 -0
- package/pg/annoy/annoy.ts +48 -0
- package/pg/annoy/index.ts +3 -0
- package/pg/avatar/README.md +23 -0
- package/pg/avatar/__examples__/basic/basic.html +6 -0
- package/pg/avatar/__examples__/basic/basic.ts +41 -0
- package/pg/avatar/__examples__/basic/constants.ts +1 -0
- package/pg/avatar/avatar.css +45 -0
- package/pg/avatar/avatar.html +8 -0
- package/pg/avatar/avatar.spec.ts +51 -0
- package/pg/avatar/avatar.ts +37 -0
- package/pg/avatar/index.ts +3 -0
- package/pg/button/README.md +51 -0
- package/pg/button/__examples__/basic/basic.html +11 -0
- package/pg/button/__examples__/basic/basic.ts +11 -0
- package/pg/button/__examples__/states/states.html +8 -0
- package/pg/button/__examples__/states/states.ts +20 -0
- package/pg/button/button.css +91 -0
- package/pg/button/button.html +3 -0
- package/pg/button/button.ts +45 -0
- package/pg/button/index.ts +3 -0
- package/pg/buttonGroup/README.md +28 -0
- package/pg/buttonGroup/__examples__/basic/basic.html +12 -0
- package/pg/buttonGroup/__examples__/basic/basic.ts +11 -0
- package/pg/buttonGroup/buttonGroup.css +4 -0
- package/pg/buttonGroup/buttonGroup.html +1 -0
- package/pg/buttonGroup/buttonGroup.spec.ts +30 -0
- package/pg/buttonGroup/buttonGroup.ts +50 -0
- package/pg/buttonGroup/index.ts +3 -0
- package/pg/buttonLink/README.md +51 -0
- package/pg/buttonLink/__examples__/basic/basic.html +17 -0
- package/pg/buttonLink/__examples__/basic/basic.ts +11 -0
- package/pg/buttonLink/buttonLink.css +91 -0
- package/pg/buttonLink/buttonLink.html +3 -0
- package/pg/buttonLink/buttonLink.ts +46 -0
- package/pg/buttonLink/index.ts +3 -0
- package/pg/buttonToggle/README.md +54 -0
- package/pg/buttonToggle/__examples__/basic/basic.html +10 -0
- package/pg/buttonToggle/__examples__/basic/basic.ts +23 -0
- package/pg/buttonToggle/buttonToggle.css +8 -0
- package/pg/buttonToggle/buttonToggle.html +4 -0
- package/pg/buttonToggle/buttonToggle.ts +44 -0
- package/pg/buttonToggle/index.ts +3 -0
- package/pg/card/README.md +21 -0
- package/pg/card/__examples__/basic/basic.html +5 -0
- package/pg/card/__examples__/basic/basic.ts +11 -0
- package/pg/card/card.css +11 -0
- package/pg/card/card.html +3 -0
- package/pg/card/card.spec.ts +30 -0
- package/pg/card/card.ts +13 -0
- package/pg/card/index.ts +3 -0
- package/pg/cardUser/README.md +22 -0
- package/pg/cardUser/__examples__/basic/basic.html +3 -0
- package/pg/cardUser/__examples__/basic/basic.ts +30 -0
- package/pg/cardUser/__examples__/basic/constants.ts +1 -0
- package/pg/cardUser/cardUser.css +67 -0
- package/pg/cardUser/cardUser.html +23 -0
- package/pg/cardUser/cardUser.spec.ts +46 -0
- package/pg/cardUser/cardUser.ts +53 -0
- package/pg/cardUser/index.ts +3 -0
- package/pg/color/README.md +13 -0
- package/pg/color/__examples__/basic/basic.html +4 -0
- package/pg/color/__examples__/basic/basic.ts +20 -0
- package/pg/color/color.css +21 -0
- package/pg/color/color.html +1 -0
- package/pg/color/color.ts +97 -0
- package/pg/color/constants.ts +357 -0
- package/pg/color/index.ts +3 -0
- package/pg/color/utils.ts +27 -0
- package/pg/database/README.md +28 -0
- package/pg/database/__examples__/basic/basic.html +9 -0
- package/pg/database/__examples__/basic/basic.ts +37 -0
- package/pg/database/database.css +0 -0
- package/pg/database/database.html +0 -0
- package/pg/database/database.ts +42 -0
- package/pg/database/index.ts +3 -0
- package/pg/dropdown/README.md +13 -0
- package/pg/dropdown/__examples__/basic/basic.html +14 -0
- package/pg/dropdown/__examples__/basic/basic.ts +11 -0
- package/pg/dropdown/dropdown.css +46 -0
- package/pg/dropdown/dropdown.html +5 -0
- package/pg/dropdown/dropdown.ts +60 -0
- package/pg/dropdown/index.ts +3 -0
- package/pg/grid/README.md +97 -0
- package/pg/grid/__examples__/basic/basic.html +29 -0
- package/pg/grid/__examples__/basic/basic.ts +139 -0
- package/pg/grid/grid.css +68 -0
- package/pg/grid/grid.html +6 -0
- package/pg/grid/grid.spec.ts +66 -0
- package/pg/grid/grid.ts +417 -0
- package/pg/grid/index.ts +3 -0
- package/pg/header/README.md +23 -0
- package/pg/header/__examples__/basic/basic.html +8 -0
- package/pg/header/__examples__/basic/basic.ts +11 -0
- package/pg/header/header.css +42 -0
- package/pg/header/header.html +15 -0
- package/pg/header/header.ts +28 -0
- package/pg/header/index.ts +3 -0
- package/pg/icon/README.md +26 -0
- package/pg/icon/__examples__/basic/basic.html +16 -0
- package/pg/icon/__examples__/basic/basic.ts +34 -0
- package/pg/icon/__examples__/basic/constants.ts +2 -0
- package/pg/icon/icon.css +9 -0
- package/pg/icon/icon.html +3 -0
- package/pg/icon/icon.spec.ts +46 -0
- package/pg/icon/icon.ts +23 -0
- package/pg/icon/index.ts +3 -0
- package/pg/inputCheck/README.md +32 -0
- package/pg/inputCheck/__examples__/basic/basic.html +8 -0
- package/pg/inputCheck/__examples__/basic/basic.ts +23 -0
- package/pg/inputCheck/index.ts +3 -0
- package/pg/inputCheck/inputCheck.css +45 -0
- package/pg/inputCheck/inputCheck.html +6 -0
- package/pg/inputCheck/inputCheck.ts +42 -0
- package/pg/inputCheckList/README.md +35 -0
- package/pg/inputCheckList/__examples__/basic/basic.html +4 -0
- package/pg/inputCheckList/__examples__/basic/basic.ts +31 -0
- package/pg/inputCheckList/index.ts +3 -0
- package/pg/inputCheckList/inputCheckList.css +70 -0
- package/pg/inputCheckList/inputCheckList.html +1 -0
- package/pg/inputCheckList/inputCheckList.ts +103 -0
- package/pg/inputCheckList/templates/option.html +8 -0
- package/pg/inputFileLocal/README.md +30 -0
- package/pg/inputFileLocal/__examples__/basic/basic.html +4 -0
- package/pg/inputFileLocal/__examples__/basic/basic.ts +23 -0
- package/pg/inputFileLocal/index.ts +3 -0
- package/pg/inputFileLocal/inputFileLocal.css +80 -0
- package/pg/inputFileLocal/inputFileLocal.html +5 -0
- package/pg/inputFileLocal/inputFileLocal.ts +82 -0
- package/pg/inputHexRgb/README.md +15 -0
- package/pg/inputHexRgb/__examples__/basic/basic.html +4 -0
- package/pg/inputHexRgb/__examples__/basic/basic.ts +23 -0
- package/pg/inputHexRgb/index.ts +3 -0
- package/pg/inputHexRgb/inputHexRgb.css +96 -0
- package/pg/inputHexRgb/inputHexRgb.html +9 -0
- package/pg/inputHexRgb/inputHexRgb.ts +79 -0
- package/pg/inputHexRgb/utils.ts +27 -0
- package/pg/inputRange/README.md +18 -0
- package/pg/inputRange/__examples__/basic/basic.html +9 -0
- package/pg/inputRange/__examples__/basic/basic.ts +30 -0
- package/pg/inputRange/index.ts +3 -0
- package/pg/inputRange/inputRange.css +0 -0
- package/pg/inputRange/inputRange.html +1 -0
- package/pg/inputRange/inputRange.ts +53 -0
- package/pg/inputSelect/README.md +25 -0
- package/pg/inputSelect/__examples__/basic/basic.html +6 -0
- package/pg/inputSelect/__examples__/basic/basic.ts +30 -0
- package/pg/inputSelect/index.ts +3 -0
- package/pg/inputSelect/inputSelect.css +36 -0
- package/pg/inputSelect/inputSelect.html +4 -0
- package/pg/inputSelect/inputSelect.ts +57 -0
- package/pg/inputText/README.md +27 -0
- package/pg/inputText/__examples__/basic/basic.html +9 -0
- package/pg/inputText/__examples__/basic/basic.ts +30 -0
- package/pg/inputText/index.ts +3 -0
- package/pg/inputText/inputText.css +20 -0
- package/pg/inputText/inputText.html +1 -0
- package/pg/inputText/inputText.spec.ts +59 -0
- package/pg/inputText/inputText.ts +59 -0
- package/pg/inputTextIcon/README.md +26 -0
- package/pg/inputTextIcon/index.ts +3 -0
- package/pg/inputTextIcon/inputTextIcon.css +24 -0
- package/pg/inputTextIcon/inputTextIcon.html +4 -0
- package/pg/inputTextIcon/inputTextIcon.spec.ts +44 -0
- package/pg/inputTextIcon/inputTextIcon.ts +26 -0
- package/pg/inputUserSelect/README.md +31 -0
- package/pg/inputUserSelect/__examples__/basic/basic.html +4 -0
- package/pg/inputUserSelect/__examples__/basic/basic.ts +25 -0
- package/pg/inputUserSelect/__examples__/basic/constants.ts +33 -0
- package/pg/inputUserSelect/index.ts +3 -0
- package/pg/inputUserSelect/inputUserSelect.css +174 -0
- package/pg/inputUserSelect/inputUserSelect.html +18 -0
- package/pg/inputUserSelect/inputUserSelect.ts +266 -0
- package/pg/listTag/README.md +26 -0
- package/pg/listTag/__examples__/basic/basic.html +16 -0
- package/pg/listTag/__examples__/basic/basic.ts +53 -0
- package/pg/listTag/__examples__/basic/constants.ts +22 -0
- package/pg/listTag/index.ts +3 -0
- package/pg/listTag/listTag.css +9 -0
- package/pg/listTag/listTag.html +1 -0
- package/pg/listTag/listTag.ts +48 -0
- package/pg/listTag/partials/tag.html +3 -0
- package/pg/markdown/README.md +13 -0
- package/pg/markdown/__examples__/basic/basic.html +3 -0
- package/pg/markdown/__examples__/basic/basic.ts +51 -0
- package/pg/markdown/__examples__/basic/constants.ts +129 -0
- package/pg/markdown/index.ts +5 -0
- package/pg/markdown/markdown.css +760 -0
- package/pg/markdown/markdown.html +1 -0
- package/pg/markdown/markdown.md +123 -0
- package/pg/markdown/markdown.spec.ts +87 -0
- package/pg/markdown/markdown.ts +381 -0
- package/pg/markdown/markdownReplace.ts +7 -0
- package/pg/menuIcon/README.md +13 -0
- package/pg/menuIcon/__examples__/basic/basic.html +3 -0
- package/pg/menuIcon/__examples__/basic/basic.ts +15 -0
- package/pg/menuIcon/index.ts +3 -0
- package/pg/menuIcon/menuIcon.css +168 -0
- package/pg/menuIcon/menuIcon.html +64 -0
- package/pg/menuIcon/menuIcon.ts +271 -0
- package/pg/modalAlert/README.md +17 -0
- package/pg/modalAlert/__examples__/basic/basic.html +4 -0
- package/pg/modalAlert/__examples__/basic/basic.ts +27 -0
- package/pg/modalAlert/index.ts +3 -0
- package/pg/modalAlert/modalAlert.css +43 -0
- package/pg/modalAlert/modalAlert.html +22 -0
- package/pg/modalAlert/modalAlert.ts +45 -0
- package/pg/modification/README.md +34 -0
- package/pg/modification/__examples__/basic/basic.html +8 -0
- package/pg/modification/__examples__/basic/basic.ts +63 -0
- package/pg/modification/__examples__/basic/constants.ts +416 -0
- package/pg/modification/index.ts +3 -0
- package/pg/modification/modification.css +311 -0
- package/pg/modification/modification.html +1 -0
- package/pg/modification/modification.spec.ts +33 -0
- package/pg/modification/modification.ts +201 -0
- package/pg/modification/type/date.html +1 -0
- package/pg/modification/type/iconAliasCreated.html +13 -0
- package/pg/modification/type/iconAliasDeleted.html +13 -0
- package/pg/modification/type/iconAuthorModified.html +13 -0
- package/pg/modification/type/iconCreated.html +13 -0
- package/pg/modification/type/iconDeleted.html +13 -0
- package/pg/modification/type/iconDeprecated.html +13 -0
- package/pg/modification/type/iconDescriptionModified.html +10 -0
- package/pg/modification/type/iconModified.html +14 -0
- package/pg/modification/type/iconRenamed.html +13 -0
- package/pg/modification/type/iconTagCreated.html +13 -0
- package/pg/modification/type/iconTagDeleted.html +13 -0
- package/pg/modification/type/news.html +5 -0
- package/pg/nav/README.md +16 -0
- package/pg/nav/__examples__/basic/basic.html +5 -0
- package/pg/nav/__examples__/basic/basic.ts +11 -0
- package/pg/nav/index.ts +3 -0
- package/pg/nav/nav.css +14 -0
- package/pg/nav/nav.html +16 -0
- package/pg/nav/nav.ts +21 -0
- package/pg/overlay/README.md +37 -0
- package/pg/overlay/__examples__/basic/basic.css +3 -0
- package/pg/overlay/__examples__/basic/basic.html +3 -0
- package/pg/overlay/__examples__/basic/basic.ts +13 -0
- package/pg/overlay/index.ts +3 -0
- package/pg/overlay/overlay.ts +26 -0
- package/pg/picker/README.md +13 -0
- package/pg/picker/index.ts +3 -0
- package/pg/picker/picker.css +56 -0
- package/pg/picker/picker.html +8 -0
- package/pg/picker/picker.ts +66 -0
- package/pg/preview/README.md +19 -0
- package/pg/preview/__examples__/basic/basic.html +11 -0
- package/pg/preview/__examples__/basic/basic.ts +22 -0
- package/pg/preview/index.ts +3 -0
- package/pg/preview/preview.css +34 -0
- package/pg/preview/preview.html +5 -0
- package/pg/preview/preview.ts +38 -0
- package/pg/scroll/README.md +42 -0
- package/pg/scroll/__examples__/basic/basic.css +4 -0
- package/pg/scroll/__examples__/basic/basic.html +11 -0
- package/pg/scroll/__examples__/basic/basic.ts +88 -0
- package/pg/scroll/index.ts +3 -0
- package/pg/scroll/scroll.css +7 -0
- package/pg/scroll/scroll.html +3 -0
- package/pg/scroll/scroll.ts +158 -0
- package/pg/search/README.md +59 -0
- package/pg/search/__examples__/basic/basic.html +3 -0
- package/pg/search/__examples__/basic/basic.ts +29 -0
- package/pg/search/__examples__/basic/constants.ts +3 -0
- package/pg/search/index.ts +3 -0
- package/pg/search/search.css +188 -0
- package/pg/search/search.html +18 -0
- package/pg/search/search.ts +252 -0
- package/pg/search/utils.ts +12 -0
- package/pg/shared/README.md +28 -0
- package/pg/shared/copy.ts +25 -0
- package/pg/shared/database.ts +35 -0
- package/pg/shared/databaseService.ts +230 -0
- package/pg/shared/debounce.ts +12 -0
- package/pg/shared/enums/modificationType.ts +19 -0
- package/pg/shared/filter.ts +14 -0
- package/pg/shared/http.ts +83 -0
- package/pg/shared/iconFilter.spec.ts +61 -0
- package/pg/shared/iconFilter.ts +71 -0
- package/pg/shared/list.ts +34 -0
- package/pg/shared/models/alias.ts +40 -0
- package/pg/shared/models/font.ts +31 -0
- package/pg/shared/models/fontIcon.ts +25 -0
- package/pg/shared/models/fontVersion.ts +22 -0
- package/pg/shared/models/icon.ts +97 -0
- package/pg/shared/models/modification.ts +45 -0
- package/pg/shared/models/style.ts +12 -0
- package/pg/shared/models/tag.ts +37 -0
- package/pg/shared/models/user.ts +35 -0
- package/pg/shared/models/version.ts +20 -0
- package/pg/shared/removeDiacritics.ts +94 -0
- package/pg/shared/toast.ts +47 -0
- package/pg/shared/uuid.ts +6 -0
- package/pg/tab/README.md +18 -0
- package/pg/tab/index.ts +3 -0
- package/pg/tab/tab.css +13 -0
- package/pg/tab/tab.html +3 -0
- package/pg/tab/tab.ts +51 -0
- package/pg/tabs/README.md +31 -0
- package/pg/tabs/__examples__/basic/basic.html +13 -0
- package/pg/tabs/__examples__/basic/basic.ts +11 -0
- package/pg/tabs/index.ts +3 -0
- package/pg/tabs/partials/tab.html +3 -0
- package/pg/tabs/tabs.css +69 -0
- package/pg/tabs/tabs.html +4 -0
- package/pg/tabs/tabs.ts +102 -0
- package/pg/toast/README.md +13 -0
- package/pg/toast/index.ts +3 -0
- package/pg/toast/toast.css +112 -0
- package/pg/toast/toast.html +13 -0
- package/pg/toast/toast.ts +39 -0
- package/pg/toasts/README.md +37 -0
- package/pg/toasts/__examples__/basic/basic.html +11 -0
- package/pg/toasts/__examples__/basic/basic.ts +86 -0
- package/pg/toasts/index.ts +3 -0
- package/pg/toasts/toasts.css +8 -0
- package/pg/toasts/toasts.html +1 -0
- package/pg/toasts/toasts.ts +51 -0
- package/pg/tooltip/README.md +51 -0
- package/pg/tooltip/__examples__/basic/basic.css +38 -0
- package/pg/tooltip/__examples__/basic/basic.html +21 -0
- package/pg/tooltip/__examples__/basic/basic.ts +55 -0
- package/pg/tooltip/addTooltip.ts +31 -0
- package/pg/tooltip/index.ts +20 -0
- package/pg/tooltip/position.ts +15 -0
- package/pg/tooltip/tooltip.css +36 -0
- package/pg/tooltip/tooltip.html +4 -0
- package/pg/tooltip/tooltip.ts +170 -0
package/dist/pgScroll.js
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
3
|
+
* This devtool is neither made for production nor for readable output files.
|
|
4
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
5
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
6
|
+
* or disable the default devtool with "devtool: false".
|
|
7
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
8
|
+
*/
|
|
9
|
+
/******/ (() => { // webpackBootstrap
|
|
10
|
+
/******/ "use strict";
|
|
11
|
+
/******/ var __webpack_modules__ = ({
|
|
12
|
+
|
|
13
|
+
/***/ "./node_modules/@pictogrammers/element/dist/element.esm.js":
|
|
14
|
+
/*!*****************************************************************!*\
|
|
15
|
+
!*** ./node_modules/@pictogrammers/element/dist/element.esm.js ***!
|
|
16
|
+
\*****************************************************************/
|
|
17
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
18
|
+
|
|
19
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Component\": () => (/* binding */ Component),\n/* harmony export */ \"Local\": () => (/* binding */ Local),\n/* harmony export */ \"Part\": () => (/* binding */ Part),\n/* harmony export */ \"Prop\": () => (/* binding */ Prop),\n/* harmony export */ \"TransmutePart\": () => (/* binding */ TransmutePart),\n/* harmony export */ \"getAttributes\": () => (/* binding */ getAttributes),\n/* harmony export */ \"node\": () => (/* binding */ node),\n/* harmony export */ \"selectComponent\": () => (/* binding */ selectComponent),\n/* harmony export */ \"selectPart\": () => (/* binding */ selectPart)\n/* harmony export */ });\nvar init = Symbol('init');\r\nvar template = Symbol('template');\r\nvar style = Symbol('style');\r\nvar parent = Symbol('parent');\r\nfunction extendTemplate(base, append) {\r\n if (append && append.match(/<parent\\/>/)) {\r\n return append.replace(/<parent\\/>/, base);\r\n }\r\n else {\r\n return \"\".concat(base).concat(append || '');\r\n }\r\n}\r\nfunction camelToDash(str) {\r\n return str.replace(/([a-zA-Z])(?=[A-Z])/g, '$1-').toLowerCase();\r\n}\r\nfunction dashToCamel(str) {\r\n return str.replace(/-([a-z])/g, function (m) { return m[1].toUpperCase(); });\r\n}\r\nfunction Component(config) {\r\n if (config === void 0) { config = {}; }\r\n return function (cls) {\r\n if (cls.prototype[parent]) {\r\n cls.prototype[parent].push(cls.prototype);\r\n cls.prototype[style] = \"\".concat(cls.prototype[style]).concat(config.style);\r\n cls.prototype[template] = extendTemplate(cls.prototype[template], config.template || null);\r\n }\r\n else {\r\n cls.prototype[parent] = [cls.prototype];\r\n cls.prototype[style] = config.style || '';\r\n cls.prototype[template] = config.template || '';\r\n }\r\n if (!cls.symbols) {\r\n cls.symbols = {};\r\n }\r\n var connectedCallback = cls.prototype.connectedCallback || (function () { });\r\n var disconnectedCallback = cls.prototype.disconnectedCallback || (function () { });\r\n cls.prototype.connectedCallback = function () {\r\n var _this = this;\r\n if (!this[init] && !config.template) {\r\n if (config.useShadow === false) {\r\n // Base class with no template\r\n }\r\n else {\r\n this.attachShadow({ mode: 'open' });\r\n }\r\n }\r\n else if (!this[init] && config.template) {\r\n var $template = document.createElement('template');\r\n $template.innerHTML = \"\".concat(cls.prototype[template], \"<style>\").concat(cls.prototype[style], \"</style>\");\r\n var $node = document.importNode($template.content, true);\r\n if (config.useShadow === false) {\r\n this.appendChild($node);\r\n }\r\n else {\r\n this.attachShadow({ mode: 'open' }).appendChild($node);\r\n }\r\n }\r\n else if (this[init] && config.style) {\r\n /*if (this.shadowRoot) {\r\n const style = document.createElement('style');\r\n style.appendChild(document.createTextNode(config.style));\r\n this.appendChild(style);\r\n }*/\r\n // } else if (this[init] && config.template) {\r\n // This is allowed now via <parent/>\r\n // throw new Error('template from base class cannot be overriden. Fix: remove template from @Component');\r\n }\r\n else if (this[init] && !config.template) {\r\n throw new Error('You need to pass a template for an extended element.');\r\n }\r\n if (this.componentWillMount) {\r\n this.componentWillMount();\r\n }\r\n this[parent].map(function (p) {\r\n if (p.render) {\r\n p.render.call(_this, cls.observedAttributes\r\n ? cls.observedAttributes.reduce(function (a, c) {\r\n var n = dashToCamel(c);\r\n a[n] = true;\r\n return a;\r\n }, {})\r\n : {});\r\n }\r\n });\r\n this[init] = true;\r\n connectedCallback.call(this);\r\n if (this.componentDidMount) {\r\n this.componentDidMount();\r\n }\r\n };\r\n cls.prototype.disconnectedCallback = function () {\r\n if (this.componentWillUnmount) {\r\n this.componentWillUnmount();\r\n }\r\n disconnectedCallback.call(this);\r\n if (this.componentDidUnmount) {\r\n this.componentDidUnmount();\r\n }\r\n };\r\n cls.prototype.attributeChangedCallback = function (name, oldValue, newValue) {\r\n var normalizedName = dashToCamel(name);\r\n this[normalizedName] = newValue;\r\n };\r\n if (config.selector && !window.customElements.get(config.selector)) {\r\n window.customElements.define(config.selector, cls);\r\n }\r\n };\r\n}\r\nvar transmute = Symbol('transmute');\r\nfunction TransmutePart(part, selector) {\r\n return function (cls) {\r\n var _a;\r\n if (cls.prototype[transmute]) {\r\n cls.prototype[transmute][part] = selector;\r\n }\r\n else {\r\n cls.prototype[transmute] = (_a = {}, _a[part] = selector, _a);\r\n }\r\n };\r\n}\r\nfunction Prop() {\r\n return function (target, propertyKey, descriptor) {\r\n var constructor = target.constructor;\r\n if (!constructor.observedAttributes) {\r\n constructor.observedAttributes = [];\r\n }\r\n var observedAttributes = constructor.observedAttributes;\r\n if (!constructor.symbols) {\r\n constructor.symbols = {};\r\n }\r\n var symbols = constructor.symbols;\r\n var normalizedPropertyKey = camelToDash(propertyKey);\r\n constructor.observedAttributes = observedAttributes.concat([normalizedPropertyKey]);\r\n var symbol = Symbol(propertyKey);\r\n symbols[propertyKey] = symbol;\r\n Object.defineProperty(target, propertyKey, {\r\n get: function () {\r\n return this[symbol];\r\n },\r\n set: function (value) {\r\n var _this = this;\r\n this[symbol] = value;\r\n if (this[init]) {\r\n this[parent].map(function (p) {\r\n var _a;\r\n if (p.render) {\r\n p.render.call(_this, (_a = {}, _a[propertyKey] = true, _a));\r\n }\r\n });\r\n }\r\n }\r\n });\r\n };\r\n}\r\nfunction Part() {\r\n return function (target, propertyKey, descriptor) {\r\n Object.defineProperty(target, propertyKey, {\r\n get: function () {\r\n var _a;\r\n var key = propertyKey.replace(/^\\$/, '');\r\n return (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(\"[part~=\".concat(key, \"]\"));\r\n }\r\n });\r\n };\r\n}\r\nfunction Local(initialValue, key) {\r\n if (initialValue === void 0) { initialValue = null; }\r\n return function (target, propertyKey, descriptor) {\r\n var getKey = function (self) {\r\n return (key ? key : \"\".concat(self.constructor.name, \":\").concat(propertyKey));\r\n };\r\n Object.defineProperty(target, propertyKey, {\r\n get: function () {\r\n var k = getKey(this);\r\n return window.localStorage.getItem(k) || initialValue;\r\n },\r\n set: function (value) {\r\n var k = getKey(this);\r\n if (value === null) {\r\n window.localStorage.removeItem(k);\r\n }\r\n else {\r\n window.localStorage.setItem(k, value);\r\n }\r\n }\r\n });\r\n };\r\n}\r\nfunction node(template, init) {\r\n var $template = document.createElement('template');\r\n $template.innerHTML = template;\r\n var $node = document.importNode($template.content, true);\r\n for (var _i = 0, _a = Object.entries(init); _i < _a.length; _i++) {\r\n var _b = _a[_i], part = _b[0], attributes = _b[1];\r\n var $part = $node.querySelector(\"[part~=\\\"\".concat(part, \"\\\"]\"));\r\n if ($part) {\r\n for (var _c = 0, _d = Object.entries(attributes); _c < _d.length; _c++) {\r\n var _e = _d[_c], prop = _e[0], value = _e[1];\r\n if (value instanceof Function) {\r\n var val = value();\r\n if (val === null) {\r\n $part.removeAttribute(prop);\r\n }\r\n else {\r\n $part.setAttribute(prop, value());\r\n }\r\n }\r\n else {\r\n $part[prop] = value;\r\n }\r\n }\r\n }\r\n }\r\n return $node;\r\n}\r\n// JEST\r\nfunction selectComponent(tag) {\r\n return document.querySelector(tag);\r\n}\r\nfunction selectPart(component, name) {\r\n return component.shadowRoot.querySelector(\"[part=\".concat(name, \"]\"));\r\n}\r\nfunction getAttributes(tag) {\r\n var symbols = customElements.get(tag).symbols;\r\n return Object.keys(symbols);\r\n}\r\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/@pictogrammers/element/dist/element.esm.js?");
|
|
20
|
+
|
|
21
|
+
/***/ }),
|
|
22
|
+
|
|
23
|
+
/***/ "./src/pg/scroll/scroll.css":
|
|
24
|
+
/*!**********************************!*\
|
|
25
|
+
!*** ./src/pg/scroll/scroll.css ***!
|
|
26
|
+
\**********************************/
|
|
27
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
28
|
+
|
|
29
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (\":host {\\r\\n display: block;\\r\\n}\\r\\n\\r\\ndiv {\\r\\n transform: translateY(0);\\r\\n}\");\n\n//# sourceURL=webpack://@pictogrammers/components/./src/pg/scroll/scroll.css?");
|
|
30
|
+
|
|
31
|
+
/***/ }),
|
|
32
|
+
|
|
33
|
+
/***/ "./src/pg/scroll/scroll.html":
|
|
34
|
+
/*!***********************************!*\
|
|
35
|
+
!*** ./src/pg/scroll/scroll.html ***!
|
|
36
|
+
\***********************************/
|
|
37
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
38
|
+
|
|
39
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (\"<div part=\\\"scroll\\\">\\r\\n <slot></slot>\\r\\n</div>\");\n\n//# sourceURL=webpack://@pictogrammers/components/./src/pg/scroll/scroll.html?");
|
|
40
|
+
|
|
41
|
+
/***/ }),
|
|
42
|
+
|
|
43
|
+
/***/ "./src/pg/scroll/scroll.ts":
|
|
44
|
+
/*!*********************************!*\
|
|
45
|
+
!*** ./src/pg/scroll/scroll.ts ***!
|
|
46
|
+
\*********************************/
|
|
47
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
48
|
+
|
|
49
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _pictogrammers_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pictogrammers/element */ \"./node_modules/@pictogrammers/element/dist/element.esm.js\");\n/* harmony import */ var lodash_es__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash-es */ \"./node_modules/lodash-es/throttle.js\");\n/* harmony import */ var _scroll_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./scroll.html */ \"./src/pg/scroll/scroll.html\");\n/* harmony import */ var _scroll_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./scroll.css */ \"./src/pg/scroll/scroll.css\");\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\n\r\n\r\n\r\n\r\nlet PgScroll = class PgScroll extends HTMLElement {\r\n constructor() {\r\n super(...arguments);\r\n this.height = 0;\r\n this.currentHeight = -1;\r\n this.columns = 10;\r\n this.size = 44;\r\n this.visible = false;\r\n this.y = -1;\r\n this.width = 0;\r\n this.resizeObserver = new ResizeObserver((0,lodash_es__WEBPACK_IMPORTED_MODULE_3__[\"default\"])((entries) => {\r\n const { width } = entries[0].contentRect;\r\n this.columns = Math.floor(width / (this.size + 20));\r\n this.y = -1;\r\n this.width = width;\r\n this.calculateScroll();\r\n }, 100));\r\n }\r\n connectedCallback() {\r\n this.resizeObserver.observe(this.$scroll);\r\n }\r\n getInnerHeight() {\r\n let parentElement = this.parentElement;\r\n while (parentElement) {\r\n if (parentElement.style.overflow === 'auto') {\r\n return parentElement.getBoundingClientRect().height;\r\n }\r\n parentElement = parentElement.parentElement;\r\n }\r\n return window.innerHeight;\r\n }\r\n get isWindow() {\r\n return this.scrollElement === window;\r\n }\r\n getView() {\r\n const innerHeight = this.getInnerHeight();\r\n const container = this.getBoundingClientRect();\r\n const { y, height } = this.isWindow\r\n ? { y: container.top, height: container.height }\r\n : {\r\n y: container.top - this.scrollElement.getBoundingClientRect().top,\r\n height: container.height\r\n };\r\n const top = y < 0 ? -1 * y : 0;\r\n const calcY = height - top - innerHeight < 0\r\n ? height - innerHeight < 0 ? 0 : height - innerHeight\r\n : top;\r\n const calcHeight = height < innerHeight\r\n ? height\r\n : y + height - innerHeight > 0\r\n ? innerHeight\r\n : y + height - innerHeight;\r\n return {\r\n visible: (y < innerHeight && height + y > 0) || !this.isWindow,\r\n y: calcY,\r\n height: calcHeight < 0 ? innerHeight : calcHeight,\r\n atEnd: calcHeight < 0\r\n };\r\n }\r\n calculateScroll() {\r\n const { visible, y, height } = this.getView();\r\n if (visible) {\r\n this.$scroll.style.transform = `translateY(${y}px)`;\r\n this.$scroll.style.height = `${height}px`;\r\n }\r\n if (this.visible !== visible) {\r\n this.visible = visible;\r\n if (this.visible) {\r\n this.enterView();\r\n }\r\n else {\r\n this.leaveView();\r\n }\r\n }\r\n if (this.visible && this.y !== y) {\r\n this.dispatchEvent(new CustomEvent('calculate', {\r\n detail: {\r\n offsetY: y,\r\n viewWidth: this.width,\r\n viewHeight: height,\r\n height: this.height\r\n }\r\n }));\r\n this.y = y;\r\n }\r\n }\r\n enterView() {\r\n this.dispatchEvent(new CustomEvent('enter'));\r\n }\r\n leaveView() {\r\n this.dispatchEvent(new CustomEvent('leave'));\r\n }\r\n getParentElement() {\r\n let parentElement = this.parentElement;\r\n while (parentElement) {\r\n if (parentElement.style.overflow === 'auto') {\r\n return parentElement;\r\n }\r\n parentElement = parentElement.parentElement;\r\n }\r\n return window;\r\n }\r\n updateHeight() {\r\n this.scrollElement = this.getParentElement();\r\n this.scrollElement.addEventListener('scroll', (0,lodash_es__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(() => {\r\n this.calculateScroll();\r\n }, 100));\r\n this.style.height = `${this.currentHeight}px`;\r\n this.y = -1;\r\n this.calculateScroll();\r\n }\r\n render(changes) {\r\n console.log('changes', changes);\r\n const height = parseInt(`${this.height}`, 10);\r\n console.log('set', this.height);\r\n if (this.currentHeight !== height) {\r\n this.currentHeight = height;\r\n this.updateHeight();\r\n }\r\n }\r\n};\r\n__decorate([\r\n (0,_pictogrammers_element__WEBPACK_IMPORTED_MODULE_0__.Prop)()\r\n], PgScroll.prototype, \"height\", void 0);\r\n__decorate([\r\n (0,_pictogrammers_element__WEBPACK_IMPORTED_MODULE_0__.Part)()\r\n], PgScroll.prototype, \"$scroll\", void 0);\r\nPgScroll = __decorate([\r\n (0,_pictogrammers_element__WEBPACK_IMPORTED_MODULE_0__.Component)({\r\n selector: 'pg-scroll',\r\n style: _scroll_css__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\r\n template: _scroll_html__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\r\n })\r\n], PgScroll);\r\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PgScroll);\r\n\n\n//# sourceURL=webpack://@pictogrammers/components/./src/pg/scroll/scroll.ts?");
|
|
50
|
+
|
|
51
|
+
/***/ }),
|
|
52
|
+
|
|
53
|
+
/***/ "./node_modules/lodash-es/_Symbol.js":
|
|
54
|
+
/*!*******************************************!*\
|
|
55
|
+
!*** ./node_modules/lodash-es/_Symbol.js ***!
|
|
56
|
+
\*******************************************/
|
|
57
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
58
|
+
|
|
59
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_root.js */ \"./node_modules/lodash-es/_root.js\");\n\n\n/** Built-in value references. */\nvar Symbol = _root_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].Symbol;\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Symbol);\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/lodash-es/_Symbol.js?");
|
|
60
|
+
|
|
61
|
+
/***/ }),
|
|
62
|
+
|
|
63
|
+
/***/ "./node_modules/lodash-es/_baseGetTag.js":
|
|
64
|
+
/*!***********************************************!*\
|
|
65
|
+
!*** ./node_modules/lodash-es/_baseGetTag.js ***!
|
|
66
|
+
\***********************************************/
|
|
67
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
68
|
+
|
|
69
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _Symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_Symbol.js */ \"./node_modules/lodash-es/_Symbol.js\");\n/* harmony import */ var _getRawTag_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_getRawTag.js */ \"./node_modules/lodash-es/_getRawTag.js\");\n/* harmony import */ var _objectToString_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_objectToString.js */ \"./node_modules/lodash-es/_objectToString.js\");\n\n\n\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = _Symbol_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ? _Symbol_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? (0,_getRawTag_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(value)\n : (0,_objectToString_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(value);\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (baseGetTag);\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/lodash-es/_baseGetTag.js?");
|
|
70
|
+
|
|
71
|
+
/***/ }),
|
|
72
|
+
|
|
73
|
+
/***/ "./node_modules/lodash-es/_baseTrim.js":
|
|
74
|
+
/*!*********************************************!*\
|
|
75
|
+
!*** ./node_modules/lodash-es/_baseTrim.js ***!
|
|
76
|
+
\*********************************************/
|
|
77
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
78
|
+
|
|
79
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _trimmedEndIndex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_trimmedEndIndex.js */ \"./node_modules/lodash-es/_trimmedEndIndex.js\");\n\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, (0,_trimmedEndIndex_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (baseTrim);\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/lodash-es/_baseTrim.js?");
|
|
80
|
+
|
|
81
|
+
/***/ }),
|
|
82
|
+
|
|
83
|
+
/***/ "./node_modules/lodash-es/_freeGlobal.js":
|
|
84
|
+
/*!***********************************************!*\
|
|
85
|
+
!*** ./node_modules/lodash-es/_freeGlobal.js ***!
|
|
86
|
+
\***********************************************/
|
|
87
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
88
|
+
|
|
89
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (freeGlobal);\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/lodash-es/_freeGlobal.js?");
|
|
90
|
+
|
|
91
|
+
/***/ }),
|
|
92
|
+
|
|
93
|
+
/***/ "./node_modules/lodash-es/_getRawTag.js":
|
|
94
|
+
/*!**********************************************!*\
|
|
95
|
+
!*** ./node_modules/lodash-es/_getRawTag.js ***!
|
|
96
|
+
\**********************************************/
|
|
97
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
98
|
+
|
|
99
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _Symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_Symbol.js */ \"./node_modules/lodash-es/_Symbol.js\");\n\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = _Symbol_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ? _Symbol_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getRawTag);\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/lodash-es/_getRawTag.js?");
|
|
100
|
+
|
|
101
|
+
/***/ }),
|
|
102
|
+
|
|
103
|
+
/***/ "./node_modules/lodash-es/_objectToString.js":
|
|
104
|
+
/*!***************************************************!*\
|
|
105
|
+
!*** ./node_modules/lodash-es/_objectToString.js ***!
|
|
106
|
+
\***************************************************/
|
|
107
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
108
|
+
|
|
109
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (objectToString);\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/lodash-es/_objectToString.js?");
|
|
110
|
+
|
|
111
|
+
/***/ }),
|
|
112
|
+
|
|
113
|
+
/***/ "./node_modules/lodash-es/_root.js":
|
|
114
|
+
/*!*****************************************!*\
|
|
115
|
+
!*** ./node_modules/lodash-es/_root.js ***!
|
|
116
|
+
\*****************************************/
|
|
117
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
118
|
+
|
|
119
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_freeGlobal.js */ \"./node_modules/lodash-es/_freeGlobal.js\");\n\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"] || freeSelf || Function('return this')();\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (root);\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/lodash-es/_root.js?");
|
|
120
|
+
|
|
121
|
+
/***/ }),
|
|
122
|
+
|
|
123
|
+
/***/ "./node_modules/lodash-es/_trimmedEndIndex.js":
|
|
124
|
+
/*!****************************************************!*\
|
|
125
|
+
!*** ./node_modules/lodash-es/_trimmedEndIndex.js ***!
|
|
126
|
+
\****************************************************/
|
|
127
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
128
|
+
|
|
129
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (trimmedEndIndex);\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/lodash-es/_trimmedEndIndex.js?");
|
|
130
|
+
|
|
131
|
+
/***/ }),
|
|
132
|
+
|
|
133
|
+
/***/ "./node_modules/lodash-es/debounce.js":
|
|
134
|
+
/*!********************************************!*\
|
|
135
|
+
!*** ./node_modules/lodash-es/debounce.js ***!
|
|
136
|
+
\********************************************/
|
|
137
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
138
|
+
|
|
139
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _isObject_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isObject.js */ \"./node_modules/lodash-es/isObject.js\");\n/* harmony import */ var _now_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./now.js */ \"./node_modules/lodash-es/now.js\");\n/* harmony import */ var _toNumber_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toNumber.js */ \"./node_modules/lodash-es/toNumber.js\");\n\n\n\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = (0,_toNumber_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(wait) || 0;\n if ((0,_isObject_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax((0,_toNumber_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = (0,_now_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge((0,_now_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])());\n }\n\n function debounced() {\n var time = (0,_now_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (debounce);\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/lodash-es/debounce.js?");
|
|
140
|
+
|
|
141
|
+
/***/ }),
|
|
142
|
+
|
|
143
|
+
/***/ "./node_modules/lodash-es/isObject.js":
|
|
144
|
+
/*!********************************************!*\
|
|
145
|
+
!*** ./node_modules/lodash-es/isObject.js ***!
|
|
146
|
+
\********************************************/
|
|
147
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
148
|
+
|
|
149
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isObject);\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/lodash-es/isObject.js?");
|
|
150
|
+
|
|
151
|
+
/***/ }),
|
|
152
|
+
|
|
153
|
+
/***/ "./node_modules/lodash-es/isObjectLike.js":
|
|
154
|
+
/*!************************************************!*\
|
|
155
|
+
!*** ./node_modules/lodash-es/isObjectLike.js ***!
|
|
156
|
+
\************************************************/
|
|
157
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
158
|
+
|
|
159
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isObjectLike);\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/lodash-es/isObjectLike.js?");
|
|
160
|
+
|
|
161
|
+
/***/ }),
|
|
162
|
+
|
|
163
|
+
/***/ "./node_modules/lodash-es/isSymbol.js":
|
|
164
|
+
/*!********************************************!*\
|
|
165
|
+
!*** ./node_modules/lodash-es/isSymbol.js ***!
|
|
166
|
+
\********************************************/
|
|
167
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
168
|
+
|
|
169
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _baseGetTag_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_baseGetTag.js */ \"./node_modules/lodash-es/_baseGetTag.js\");\n/* harmony import */ var _isObjectLike_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isObjectLike.js */ \"./node_modules/lodash-es/isObjectLike.js\");\n\n\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n ((0,_isObjectLike_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(value) && (0,_baseGetTag_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(value) == symbolTag);\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isSymbol);\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/lodash-es/isSymbol.js?");
|
|
170
|
+
|
|
171
|
+
/***/ }),
|
|
172
|
+
|
|
173
|
+
/***/ "./node_modules/lodash-es/now.js":
|
|
174
|
+
/*!***************************************!*\
|
|
175
|
+
!*** ./node_modules/lodash-es/now.js ***!
|
|
176
|
+
\***************************************/
|
|
177
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
178
|
+
|
|
179
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_root.js */ \"./node_modules/lodash-es/_root.js\");\n\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return _root_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].Date.now();\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (now);\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/lodash-es/now.js?");
|
|
180
|
+
|
|
181
|
+
/***/ }),
|
|
182
|
+
|
|
183
|
+
/***/ "./node_modules/lodash-es/throttle.js":
|
|
184
|
+
/*!********************************************!*\
|
|
185
|
+
!*** ./node_modules/lodash-es/throttle.js ***!
|
|
186
|
+
\********************************************/
|
|
187
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
188
|
+
|
|
189
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _debounce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./debounce.js */ \"./node_modules/lodash-es/debounce.js\");\n/* harmony import */ var _isObject_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isObject.js */ \"./node_modules/lodash-es/isObject.js\");\n\n\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if ((0,_isObject_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return (0,_debounce_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (throttle);\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/lodash-es/throttle.js?");
|
|
190
|
+
|
|
191
|
+
/***/ }),
|
|
192
|
+
|
|
193
|
+
/***/ "./node_modules/lodash-es/toNumber.js":
|
|
194
|
+
/*!********************************************!*\
|
|
195
|
+
!*** ./node_modules/lodash-es/toNumber.js ***!
|
|
196
|
+
\********************************************/
|
|
197
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
198
|
+
|
|
199
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _baseTrim_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_baseTrim.js */ \"./node_modules/lodash-es/_baseTrim.js\");\n/* harmony import */ var _isObject_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isObject.js */ \"./node_modules/lodash-es/isObject.js\");\n/* harmony import */ var _isSymbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isSymbol.js */ \"./node_modules/lodash-es/isSymbol.js\");\n\n\n\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if ((0,_isSymbol_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(value)) {\n return NAN;\n }\n if ((0,_isObject_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = (0,_isObject_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = (0,_baseTrim_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (toNumber);\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/lodash-es/toNumber.js?");
|
|
200
|
+
|
|
201
|
+
/***/ })
|
|
202
|
+
|
|
203
|
+
/******/ });
|
|
204
|
+
/************************************************************************/
|
|
205
|
+
/******/ // The module cache
|
|
206
|
+
/******/ var __webpack_module_cache__ = {};
|
|
207
|
+
/******/
|
|
208
|
+
/******/ // The require function
|
|
209
|
+
/******/ function __webpack_require__(moduleId) {
|
|
210
|
+
/******/ // Check if module is in cache
|
|
211
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
212
|
+
/******/ if (cachedModule !== undefined) {
|
|
213
|
+
/******/ return cachedModule.exports;
|
|
214
|
+
/******/ }
|
|
215
|
+
/******/ // Create a new module (and put it into the cache)
|
|
216
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
217
|
+
/******/ // no module.id needed
|
|
218
|
+
/******/ // no module.loaded needed
|
|
219
|
+
/******/ exports: {}
|
|
220
|
+
/******/ };
|
|
221
|
+
/******/
|
|
222
|
+
/******/ // Execute the module function
|
|
223
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
224
|
+
/******/
|
|
225
|
+
/******/ // Return the exports of the module
|
|
226
|
+
/******/ return module.exports;
|
|
227
|
+
/******/ }
|
|
228
|
+
/******/
|
|
229
|
+
/************************************************************************/
|
|
230
|
+
/******/ /* webpack/runtime/define property getters */
|
|
231
|
+
/******/ (() => {
|
|
232
|
+
/******/ // define getter functions for harmony exports
|
|
233
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
234
|
+
/******/ for(var key in definition) {
|
|
235
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
236
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
237
|
+
/******/ }
|
|
238
|
+
/******/ }
|
|
239
|
+
/******/ };
|
|
240
|
+
/******/ })();
|
|
241
|
+
/******/
|
|
242
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
243
|
+
/******/ (() => {
|
|
244
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
245
|
+
/******/ })();
|
|
246
|
+
/******/
|
|
247
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
248
|
+
/******/ (() => {
|
|
249
|
+
/******/ // define __esModule on exports
|
|
250
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
251
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
252
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
253
|
+
/******/ }
|
|
254
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
255
|
+
/******/ };
|
|
256
|
+
/******/ })();
|
|
257
|
+
/******/
|
|
258
|
+
/************************************************************************/
|
|
259
|
+
/******/
|
|
260
|
+
/******/ // startup
|
|
261
|
+
/******/ // Load entry module and return exports
|
|
262
|
+
/******/ // This entry module can't be inlined because the eval devtool is used.
|
|
263
|
+
/******/ var __webpack_exports__ = __webpack_require__("./src/pg/scroll/scroll.ts");
|
|
264
|
+
/******/
|
|
265
|
+
/******/ })()
|
|
266
|
+
;
|
package/dist/pgSearch.js
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
3
|
+
* This devtool is neither made for production nor for readable output files.
|
|
4
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
5
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
6
|
+
* or disable the default devtool with "devtool: false".
|
|
7
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
8
|
+
*/
|
|
9
|
+
/******/ (() => { // webpackBootstrap
|
|
10
|
+
/******/ "use strict";
|
|
11
|
+
/******/ var __webpack_modules__ = ({
|
|
12
|
+
|
|
13
|
+
/***/ "./node_modules/@pictogrammers/element/dist/element.esm.js":
|
|
14
|
+
/*!*****************************************************************!*\
|
|
15
|
+
!*** ./node_modules/@pictogrammers/element/dist/element.esm.js ***!
|
|
16
|
+
\*****************************************************************/
|
|
17
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
18
|
+
|
|
19
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Component\": () => (/* binding */ Component),\n/* harmony export */ \"Local\": () => (/* binding */ Local),\n/* harmony export */ \"Part\": () => (/* binding */ Part),\n/* harmony export */ \"Prop\": () => (/* binding */ Prop),\n/* harmony export */ \"TransmutePart\": () => (/* binding */ TransmutePart),\n/* harmony export */ \"getAttributes\": () => (/* binding */ getAttributes),\n/* harmony export */ \"node\": () => (/* binding */ node),\n/* harmony export */ \"selectComponent\": () => (/* binding */ selectComponent),\n/* harmony export */ \"selectPart\": () => (/* binding */ selectPart)\n/* harmony export */ });\nvar init = Symbol('init');\r\nvar template = Symbol('template');\r\nvar style = Symbol('style');\r\nvar parent = Symbol('parent');\r\nfunction extendTemplate(base, append) {\r\n if (append && append.match(/<parent\\/>/)) {\r\n return append.replace(/<parent\\/>/, base);\r\n }\r\n else {\r\n return \"\".concat(base).concat(append || '');\r\n }\r\n}\r\nfunction camelToDash(str) {\r\n return str.replace(/([a-zA-Z])(?=[A-Z])/g, '$1-').toLowerCase();\r\n}\r\nfunction dashToCamel(str) {\r\n return str.replace(/-([a-z])/g, function (m) { return m[1].toUpperCase(); });\r\n}\r\nfunction Component(config) {\r\n if (config === void 0) { config = {}; }\r\n return function (cls) {\r\n if (cls.prototype[parent]) {\r\n cls.prototype[parent].push(cls.prototype);\r\n cls.prototype[style] = \"\".concat(cls.prototype[style]).concat(config.style);\r\n cls.prototype[template] = extendTemplate(cls.prototype[template], config.template || null);\r\n }\r\n else {\r\n cls.prototype[parent] = [cls.prototype];\r\n cls.prototype[style] = config.style || '';\r\n cls.prototype[template] = config.template || '';\r\n }\r\n if (!cls.symbols) {\r\n cls.symbols = {};\r\n }\r\n var connectedCallback = cls.prototype.connectedCallback || (function () { });\r\n var disconnectedCallback = cls.prototype.disconnectedCallback || (function () { });\r\n cls.prototype.connectedCallback = function () {\r\n var _this = this;\r\n if (!this[init] && !config.template) {\r\n if (config.useShadow === false) {\r\n // Base class with no template\r\n }\r\n else {\r\n this.attachShadow({ mode: 'open' });\r\n }\r\n }\r\n else if (!this[init] && config.template) {\r\n var $template = document.createElement('template');\r\n $template.innerHTML = \"\".concat(cls.prototype[template], \"<style>\").concat(cls.prototype[style], \"</style>\");\r\n var $node = document.importNode($template.content, true);\r\n if (config.useShadow === false) {\r\n this.appendChild($node);\r\n }\r\n else {\r\n this.attachShadow({ mode: 'open' }).appendChild($node);\r\n }\r\n }\r\n else if (this[init] && config.style) {\r\n /*if (this.shadowRoot) {\r\n const style = document.createElement('style');\r\n style.appendChild(document.createTextNode(config.style));\r\n this.appendChild(style);\r\n }*/\r\n // } else if (this[init] && config.template) {\r\n // This is allowed now via <parent/>\r\n // throw new Error('template from base class cannot be overriden. Fix: remove template from @Component');\r\n }\r\n else if (this[init] && !config.template) {\r\n throw new Error('You need to pass a template for an extended element.');\r\n }\r\n if (this.componentWillMount) {\r\n this.componentWillMount();\r\n }\r\n this[parent].map(function (p) {\r\n if (p.render) {\r\n p.render.call(_this, cls.observedAttributes\r\n ? cls.observedAttributes.reduce(function (a, c) {\r\n var n = dashToCamel(c);\r\n a[n] = true;\r\n return a;\r\n }, {})\r\n : {});\r\n }\r\n });\r\n this[init] = true;\r\n connectedCallback.call(this);\r\n if (this.componentDidMount) {\r\n this.componentDidMount();\r\n }\r\n };\r\n cls.prototype.disconnectedCallback = function () {\r\n if (this.componentWillUnmount) {\r\n this.componentWillUnmount();\r\n }\r\n disconnectedCallback.call(this);\r\n if (this.componentDidUnmount) {\r\n this.componentDidUnmount();\r\n }\r\n };\r\n cls.prototype.attributeChangedCallback = function (name, oldValue, newValue) {\r\n var normalizedName = dashToCamel(name);\r\n this[normalizedName] = newValue;\r\n };\r\n if (config.selector && !window.customElements.get(config.selector)) {\r\n window.customElements.define(config.selector, cls);\r\n }\r\n };\r\n}\r\nvar transmute = Symbol('transmute');\r\nfunction TransmutePart(part, selector) {\r\n return function (cls) {\r\n var _a;\r\n if (cls.prototype[transmute]) {\r\n cls.prototype[transmute][part] = selector;\r\n }\r\n else {\r\n cls.prototype[transmute] = (_a = {}, _a[part] = selector, _a);\r\n }\r\n };\r\n}\r\nfunction Prop() {\r\n return function (target, propertyKey, descriptor) {\r\n var constructor = target.constructor;\r\n if (!constructor.observedAttributes) {\r\n constructor.observedAttributes = [];\r\n }\r\n var observedAttributes = constructor.observedAttributes;\r\n if (!constructor.symbols) {\r\n constructor.symbols = {};\r\n }\r\n var symbols = constructor.symbols;\r\n var normalizedPropertyKey = camelToDash(propertyKey);\r\n constructor.observedAttributes = observedAttributes.concat([normalizedPropertyKey]);\r\n var symbol = Symbol(propertyKey);\r\n symbols[propertyKey] = symbol;\r\n Object.defineProperty(target, propertyKey, {\r\n get: function () {\r\n return this[symbol];\r\n },\r\n set: function (value) {\r\n var _this = this;\r\n this[symbol] = value;\r\n if (this[init]) {\r\n this[parent].map(function (p) {\r\n var _a;\r\n if (p.render) {\r\n p.render.call(_this, (_a = {}, _a[propertyKey] = true, _a));\r\n }\r\n });\r\n }\r\n }\r\n });\r\n };\r\n}\r\nfunction Part() {\r\n return function (target, propertyKey, descriptor) {\r\n Object.defineProperty(target, propertyKey, {\r\n get: function () {\r\n var _a;\r\n var key = propertyKey.replace(/^\\$/, '');\r\n return (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(\"[part~=\".concat(key, \"]\"));\r\n }\r\n });\r\n };\r\n}\r\nfunction Local(initialValue, key) {\r\n if (initialValue === void 0) { initialValue = null; }\r\n return function (target, propertyKey, descriptor) {\r\n var getKey = function (self) {\r\n return (key ? key : \"\".concat(self.constructor.name, \":\").concat(propertyKey));\r\n };\r\n Object.defineProperty(target, propertyKey, {\r\n get: function () {\r\n var k = getKey(this);\r\n return window.localStorage.getItem(k) || initialValue;\r\n },\r\n set: function (value) {\r\n var k = getKey(this);\r\n if (value === null) {\r\n window.localStorage.removeItem(k);\r\n }\r\n else {\r\n window.localStorage.setItem(k, value);\r\n }\r\n }\r\n });\r\n };\r\n}\r\nfunction node(template, init) {\r\n var $template = document.createElement('template');\r\n $template.innerHTML = template;\r\n var $node = document.importNode($template.content, true);\r\n for (var _i = 0, _a = Object.entries(init); _i < _a.length; _i++) {\r\n var _b = _a[_i], part = _b[0], attributes = _b[1];\r\n var $part = $node.querySelector(\"[part~=\\\"\".concat(part, \"\\\"]\"));\r\n if ($part) {\r\n for (var _c = 0, _d = Object.entries(attributes); _c < _d.length; _c++) {\r\n var _e = _d[_c], prop = _e[0], value = _e[1];\r\n if (value instanceof Function) {\r\n var val = value();\r\n if (val === null) {\r\n $part.removeAttribute(prop);\r\n }\r\n else {\r\n $part.setAttribute(prop, value());\r\n }\r\n }\r\n else {\r\n $part[prop] = value;\r\n }\r\n }\r\n }\r\n }\r\n return $node;\r\n}\r\n// JEST\r\nfunction selectComponent(tag) {\r\n return document.querySelector(tag);\r\n}\r\nfunction selectPart(component, name) {\r\n return component.shadowRoot.querySelector(\"[part=\".concat(name, \"]\"));\r\n}\r\nfunction getAttributes(tag) {\r\n var symbols = customElements.get(tag).symbols;\r\n return Object.keys(symbols);\r\n}\r\n\n\n//# sourceURL=webpack://@pictogrammers/components/./node_modules/@pictogrammers/element/dist/element.esm.js?");
|
|
20
|
+
|
|
21
|
+
/***/ }),
|
|
22
|
+
|
|
23
|
+
/***/ "./src/pg/search/search.css":
|
|
24
|
+
/*!**********************************!*\
|
|
25
|
+
!*** ./src/pg/search/search.css ***!
|
|
26
|
+
\**********************************/
|
|
27
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
28
|
+
|
|
29
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (\":host {\\r\\n display: block;\\r\\n align-self: center;\\r\\n font-family: var(--pg-font-family);\\r\\n}\\r\\n\\r\\ndiv {\\r\\n display: grid;\\r\\n grid-template-columns: 1fr 0;\\r\\n grid-template-rows: 1fr 0;\\r\\n}\\r\\ninput {\\r\\n grid-row: 1;\\r\\n grid-column: 1;\\r\\n border-radius: 0.25rem;\\r\\n border: 0;\\r\\n padding: 0.25rem 0.5rem;\\r\\n font-size: 1rem;\\r\\n outline: none;\\r\\n width: calc(100% - 1rem);\\r\\n border: .0625rem solid var(--pg-search-border-color);\\r\\n}\\r\\ninput:active {\\r\\n box-shadow: 0 0 0 3px var(--pg-search-active-glow, rgb(79, 143, 249, 0.6));\\r\\n}\\r\\ninput:focus {\\r\\n box-shadow: 0 0 0 3px var(--pg-search-focus-glow, rgb(79, 143, 249, 0.5));\\r\\n}\\r\\n.active input + svg path {\\r\\n fill: #453C4F;\\r\\n}\\r\\nsvg {\\r\\n grid-row: 1;\\r\\n grid-column: 2;\\r\\n width: 1.5rem;\\r\\n height: 1.5rem;\\r\\n justify-self: right;\\r\\n margin-right: 0.25rem;\\r\\n pointer-events: none;\\r\\n align-self: center;\\r\\n}\\r\\nsvg > path {\\r\\n transition: fill 0.3s ease-in-out;\\r\\n}\\r\\n[part=menu] {\\r\\n display: none;\\r\\n background: #FFF;\\r\\n grid-row: 2;\\r\\n grid-column: 1 / span 2;\\r\\n z-index: 1;\\r\\n}\\r\\nul {\\r\\n list-style: none;\\r\\n display: flex;\\r\\n flex-direction: column;\\r\\n padding: 0;\\r\\n margin: 0;\\r\\n border-radius: 0.25rem;\\r\\n box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.4);\\r\\n}\\r\\nul > li {\\r\\n color: #222;\\r\\n}\\r\\nul > li > a {\\r\\n display: flex;\\r\\n padding: 0.25rem 0.5rem;\\r\\n background: #FFF;\\r\\n border-left: 1px solid #DDD;\\r\\n border-right: 1px solid #DDD;\\r\\n}\\r\\nul > li > a:hover,\\r\\nul > li > a:active,\\r\\nul > li > a:focus {\\r\\n background: #DAF4FB;\\r\\n}\\r\\nul > li.item:first-child > a {\\r\\n border-top: 1px solid #DDD;\\r\\n border-bottom: 1px solid #DDD;\\r\\n border-radius: 0.25rem 0.25rem 0 0;\\r\\n}\\r\\nul > li.item:not(:first-child) > a {\\r\\n border-bottom: 1px solid #DDD;\\r\\n}\\r\\nul > li.item:last-child > a {\\r\\n border-radius: 0 0 0.25rem 0.25rem;\\r\\n}\\r\\nul > li > a {\\r\\n text-decoration: none;\\r\\n color: #222;\\r\\n}\\r\\nul > li > a strong {\\r\\n color: #453C4F;\\r\\n}\\r\\n.section {\\r\\n color: #FFF;\\r\\n padding: 0.25rem 0.5rem;\\r\\n font-weight: bold;\\r\\n background: #453C4F;\\r\\n border-radius: 0.25rem 0.25rem 0 0;\\r\\n cursor: default;\\r\\n}\\r\\n.section + li a {\\r\\n border-radius: 0;\\r\\n}\\r\\n\\r\\nli + .section {\\r\\n border-radius: 0;\\r\\n}\\r\\n\\r\\n.type {\\r\\n background-color: #453C4F;\\r\\n border-radius: 0.25rem;\\r\\n font-size: 0.75rem;\\r\\n color: #fff;\\r\\n padding-left: 0.25rem;\\r\\n padding-right: 0.25rem;\\r\\n margin: 0.125rem 0 0.125rem 0.25rem;\\r\\n align-self: end;\\r\\n}\\r\\n\\r\\n.icon {\\r\\n background-color: #453C4F;\\r\\n padding-left: 0.25rem;\\r\\n padding-right: 0.25rem;\\r\\n}\\r\\n.icon.first > a {\\r\\n border-top-left-radius: 0.25rem;\\r\\n border-top-right-radius: 0.25rem;\\r\\n}\\r\\n.icon.last {\\r\\n padding-bottom: 0.25rem;\\r\\n border-bottom-left-radius: 0.25rem;\\r\\n border-bottom-right-radius: 0.25rem;\\r\\n}\\r\\n.icon.last > a {\\r\\n border-radius: 0 0 0.25rem 0.25rem;\\r\\n}\\r\\n.icon svg {\\r\\n color: #453C4F;\\r\\n margin-right: 0.345rem;\\r\\n margin-left: -0.25rem;\\r\\n}\\r\\n\\r\\n.all {\\r\\n background-color: #453C4F;\\r\\n padding: 0 0.25rem 0.25rem 0.25rem;\\r\\n border-radius: 0 0 0.25rem 0.25rem;\\r\\n}\\r\\n\\r\\n.all a {\\r\\n border-radius: 0.25rem;\\r\\n}\\r\\n\\r\\n[part~=empty] {\\r\\n background: #453C4F;\\r\\n border-radius: 0.25rem;\\r\\n padding: 0.25rem;\\r\\n box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.4);\\r\\n}\\r\\n[part~=empty] strong {\\r\\n color: #fff;\\r\\n padding: 0 0.25rem;\\r\\n}\\r\\n[part~=empty] a {\\r\\n display: block;\\r\\n background: #fff;\\r\\n color: #453C4F;\\r\\n text-decoration: none;\\r\\n padding: 0.25rem 0.5rem;\\r\\n border-radius: 0.25rem;\\r\\n margin-top: 0.25rem;\\r\\n}\\r\\n[part~=empty] a:hover,\\r\\n[part~=empty] a:active,\\r\\n[part~=empty] a:focus {\\r\\n background: #DAF4FB;\\r\\n}\\r\\n[part~=empty] a svg {\\r\\n vertical-align: middle;\\r\\n width: 1.5rem;\\r\\n height: 1.5rem;\\r\\n float: right;\\r\\n margin: -0.125rem -0.25rem 0 0;\\r\\n}\\r\\n\\r\\n.hide {\\r\\n display: none;\\r\\n}\");\n\n//# sourceURL=webpack://@pictogrammers/components/./src/pg/search/search.css?");
|
|
30
|
+
|
|
31
|
+
/***/ }),
|
|
32
|
+
|
|
33
|
+
/***/ "./src/pg/search/search.html":
|
|
34
|
+
/*!***********************************!*\
|
|
35
|
+
!*** ./src/pg/search/search.html ***!
|
|
36
|
+
\***********************************/
|
|
37
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
38
|
+
|
|
39
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (\"<div part=\\\"grid\\\">\\r\\n <input part=\\\"input\\\" type=\\\"text\\\" />\\r\\n <svg viewBox=\\\"0 0 24 24\\\"><path d=\\\"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z\\\" /></svg>\\r\\n <div part=\\\"menu\\\">\\r\\n <ul part=\\\"list\\\"></ul>\\r\\n <section part=\\\"empty\\\">\\r\\n <strong>No Results</strong>\\r\\n <a part=\\\"reqIcon\\\" href=\\\"https://github.com/Templarian/MaterialDesign/issues/new?labels=Icon+Request&template=1_icon_request.md&title=\\\" target=\\\"_blank\\\">\\r\\n Request an Icon\\r\\n <svg viewBox=\\\"0 0 24 24\\\"><path fill=\\\"currentColor\\\" d=\\\"M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z\\\" /></svg>\\r\\n </a>\\r\\n <a part=\\\"reqDoc\\\" href=\\\"https://github.com/Templarian/MaterialDesign/issues/new?labels=Documentation&template=6_doc_guide_request.md&title=\\\" target=\\\"_blank\\\">\\r\\n Request Documentation\\r\\n <svg viewBox=\\\"0 0 24 24\\\"><path fill=\\\"currentColor\\\" d=\\\"M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z\\\" /></svg>\\r\\n </a>\\r\\n </section>\\r\\n </div>\\r\\n</div>\");\n\n//# sourceURL=webpack://@pictogrammers/components/./src/pg/search/search.html?");
|
|
40
|
+
|
|
41
|
+
/***/ }),
|
|
42
|
+
|
|
43
|
+
/***/ "./src/pg/search/search.ts":
|
|
44
|
+
/*!*********************************!*\
|
|
45
|
+
!*** ./src/pg/search/search.ts ***!
|
|
46
|
+
\*********************************/
|
|
47
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
48
|
+
|
|
49
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _pictogrammers_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pictogrammers/element */ \"./node_modules/@pictogrammers/element/dist/element.esm.js\");\n/* harmony import */ var _shared_iconFilter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../shared/iconFilter */ \"./src/pg/shared/iconFilter.ts\");\n/* harmony import */ var _shared_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../shared/filter */ \"./src/pg/shared/filter.ts\");\n/* harmony import */ var _search_html__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./search.html */ \"./src/pg/search/search.html\");\n/* harmony import */ var _search_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./search.css */ \"./src/pg/search/search.css\");\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\n\r\n\r\n\r\n\r\n\r\nconst KEY = {\r\n ArrowUp: 'ArrowUp',\r\n ArrowRight: 'ArrowRight',\r\n ArrowDown: 'ArrowDown',\r\n ArrowLeft: 'ArrowLeft'\r\n};\r\nlet PgSearch = class PgSearch extends HTMLElement {\r\n constructor() {\r\n super(...arguments);\r\n this.items = [];\r\n this.icons = [];\r\n this.isOpen = false;\r\n this.isOver = false;\r\n this.term = '';\r\n this.keyIndex = -1;\r\n this.anchors = [];\r\n }\r\n connectedCallback() {\r\n this.$input.addEventListener('input', this.handleInput.bind(this));\r\n this.$input.addEventListener('focus', this.handleFocus.bind(this));\r\n this.$input.addEventListener('blur', this.handleBlur.bind(this));\r\n this.addEventListener('keydown', this.keydown.bind(this));\r\n this.$list.addEventListener('mouseenter', this.handleListEnter.bind(this));\r\n this.$list.addEventListener('mouseleave', this.handleListLeave.bind(this));\r\n }\r\n handleInput(e) {\r\n const target = e.target;\r\n const { value } = target;\r\n this.term = value;\r\n this.updateList();\r\n }\r\n handleFocus() {\r\n this.keyIndex = -1;\r\n this.updateList();\r\n this.isOpen = true;\r\n this.$menu.style.display = 'block';\r\n this.$grid.classList.add('active');\r\n }\r\n handleBlur() {\r\n if (!this.isOver) {\r\n this.isOpen = false;\r\n this.$menu.style.display = 'none';\r\n this.$grid.classList.remove('active');\r\n this.keyIndex -= 1;\r\n }\r\n }\r\n keydown(e) {\r\n switch (e.key) {\r\n case KEY.ArrowDown:\r\n this.keyIndex += 1;\r\n this.setActive();\r\n e.preventDefault();\r\n e.stopPropagation();\r\n break;\r\n case KEY.ArrowUp:\r\n this.keyIndex -= 1;\r\n this.setActive();\r\n e.preventDefault();\r\n e.stopPropagation();\r\n break;\r\n }\r\n }\r\n setActive() {\r\n if (this.keyIndex === -2) {\r\n this.keyIndex = this.anchors.length - 1;\r\n }\r\n if (this.keyIndex === this.anchors.length) {\r\n this.keyIndex = -1;\r\n }\r\n if (this.keyIndex === -1) {\r\n this.$input.focus();\r\n this.isOver = false;\r\n }\r\n else {\r\n this.isOver = true;\r\n this.anchors[this.keyIndex].focus();\r\n }\r\n }\r\n handleListEnter() {\r\n this.isOver = true;\r\n }\r\n handleListLeave() {\r\n this.isOver = false;\r\n }\r\n highlight(text) {\r\n var i = 0;\r\n var normalized = text;\r\n const span = document.createElement('span');\r\n const term = (0,_shared_iconFilter__WEBPACK_IMPORTED_MODULE_1__.sanitizeTerm)(this.term);\r\n if (this.term === '') {\r\n span.innerText = text;\r\n return span;\r\n }\r\n while (normalized) {\r\n var index = normalized.toLowerCase().indexOf(term);\r\n if (index === -1) {\r\n const end = document.createElement('span');\r\n end.innerText = normalized.substr(0, normalized.length);\r\n span.appendChild(end);\r\n normalized = '';\r\n }\r\n else {\r\n if (index > 0) {\r\n const start = document.createElement('span');\r\n start.innerText = normalized.substr(0, index);\r\n span.appendChild(start);\r\n }\r\n const strong = document.createElement('strong');\r\n strong.innerText = normalized.substr(index, term.length);\r\n span.appendChild(strong);\r\n normalized = normalized.substr(index + term.length, normalized.length);\r\n }\r\n }\r\n return span;\r\n }\r\n clearList() {\r\n while (this.$list.firstChild) {\r\n this.$list.removeChild(this.$list.firstChild);\r\n }\r\n this.anchors = [];\r\n }\r\n updateList() {\r\n this.clearList();\r\n let empty = false;\r\n const termRegex = new RegExp(this.term, 'i');\r\n const filtered = Array.from((0,_shared_filter__WEBPACK_IMPORTED_MODULE_2__.filter)(this.items, (item) => {\r\n return item.name.match(termRegex);\r\n }, 5));\r\n filtered.forEach((item, i) => {\r\n var li = document.createElement('li');\r\n li.classList.add('item');\r\n li.classList.toggle('first', i === 0);\r\n li.classList.toggle('last', i === filtered.length - 1);\r\n var a = document.createElement('a');\r\n a.href = item.url;\r\n var text = this.highlight(item.name);\r\n a.appendChild(text);\r\n var type = document.createElement('span');\r\n type.innerText = item.type;\r\n type.classList.add('type');\r\n a.appendChild(type);\r\n li.appendChild(a);\r\n this.$list.appendChild(li);\r\n this.anchors.push(a);\r\n empty = true;\r\n });\r\n if (this.term !== '') {\r\n const icons = (0,_shared_iconFilter__WEBPACK_IMPORTED_MODULE_1__.iconFilter)(this.icons, this.term, 5);\r\n if (icons.length) {\r\n var li = document.createElement('li');\r\n li.innerText = 'Icons';\r\n li.classList.add('section');\r\n this.$list.appendChild(li);\r\n }\r\n icons.forEach((icon, i) => {\r\n var li = document.createElement('li');\r\n li.classList.add('icon');\r\n li.classList.toggle('first', i === 0);\r\n li.classList.toggle('last', i === icons.length - 1);\r\n var a = document.createElement('a');\r\n a.href = `/icon/${icon.name}`;\r\n var additional = icon.aliases.reduce((arr, icon) => {\r\n if (icon.match) {\r\n arr.push(icon.name || '');\r\n }\r\n return arr;\r\n }, []);\r\n var aliasText = '';\r\n if (additional.length) {\r\n aliasText = ` (${additional.join(', ')})`;\r\n }\r\n const text = this.highlight(`${icon.name}${aliasText}`);\r\n const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\r\n svg.setAttribute('viewBox', '0 0 24 24');\r\n svg.setAttribute('fill', 'currentColor');\r\n const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');\r\n path.setAttribute('d', icon.data);\r\n svg.appendChild(path);\r\n a.appendChild(svg);\r\n a.appendChild(text);\r\n li.appendChild(a);\r\n this.anchors.push(a);\r\n this.$list.appendChild(li);\r\n });\r\n if (icons.length === 5) {\r\n var li = document.createElement('li');\r\n li.classList.add('all');\r\n var a = document.createElement('a');\r\n a.href = `/icons?search=${this.term}`;\r\n a.appendChild(document.createTextNode('All results for \"'));\r\n var strong = document.createElement('strong');\r\n strong.innerText = this.term;\r\n a.appendChild(strong);\r\n a.appendChild(document.createTextNode('\"'));\r\n li.appendChild(a);\r\n this.anchors.push(a);\r\n this.$list.appendChild(li);\r\n }\r\n if (icons.length > 0) {\r\n empty = true;\r\n }\r\n }\r\n if (!empty) {\r\n this.anchors.push(this.$reqIcon);\r\n this.anchors.push(this.$reqDoc);\r\n }\r\n this.$empty.classList.toggle('hide', empty);\r\n }\r\n};\r\n__decorate([\r\n (0,_pictogrammers_element__WEBPACK_IMPORTED_MODULE_0__.Prop)()\r\n], PgSearch.prototype, \"items\", void 0);\r\n__decorate([\r\n (0,_pictogrammers_element__WEBPACK_IMPORTED_MODULE_0__.Prop)()\r\n], PgSearch.prototype, \"icons\", void 0);\r\n__decorate([\r\n (0,_pictogrammers_element__WEBPACK_IMPORTED_MODULE_0__.Part)()\r\n], PgSearch.prototype, \"$grid\", void 0);\r\n__decorate([\r\n (0,_pictogrammers_element__WEBPACK_IMPORTED_MODULE_0__.Part)()\r\n], PgSearch.prototype, \"$menu\", void 0);\r\n__decorate([\r\n (0,_pictogrammers_element__WEBPACK_IMPORTED_MODULE_0__.Part)()\r\n], PgSearch.prototype, \"$input\", void 0);\r\n__decorate([\r\n (0,_pictogrammers_element__WEBPACK_IMPORTED_MODULE_0__.Part)()\r\n], PgSearch.prototype, \"$list\", void 0);\r\n__decorate([\r\n (0,_pictogrammers_element__WEBPACK_IMPORTED_MODULE_0__.Part)()\r\n], PgSearch.prototype, \"$empty\", void 0);\r\n__decorate([\r\n (0,_pictogrammers_element__WEBPACK_IMPORTED_MODULE_0__.Part)()\r\n], PgSearch.prototype, \"$reqIcon\", void 0);\r\n__decorate([\r\n (0,_pictogrammers_element__WEBPACK_IMPORTED_MODULE_0__.Part)()\r\n], PgSearch.prototype, \"$reqDoc\", void 0);\r\nPgSearch = __decorate([\r\n (0,_pictogrammers_element__WEBPACK_IMPORTED_MODULE_0__.Component)({\r\n selector: 'pg-search',\r\n style: _search_css__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\r\n template: _search_html__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\r\n })\r\n], PgSearch);\r\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PgSearch);\r\n\n\n//# sourceURL=webpack://@pictogrammers/components/./src/pg/search/search.ts?");
|
|
50
|
+
|
|
51
|
+
/***/ }),
|
|
52
|
+
|
|
53
|
+
/***/ "./src/pg/shared/filter.ts":
|
|
54
|
+
/*!*********************************!*\
|
|
55
|
+
!*** ./src/pg/shared/filter.ts ***!
|
|
56
|
+
\*********************************/
|
|
57
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
58
|
+
|
|
59
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"filter\": () => (/* binding */ filter)\n/* harmony export */ });\nfunction* filter(array, condition, maxSize) {\r\n if (!maxSize || maxSize > array.length) {\r\n maxSize = array.length;\r\n }\r\n let count = 0;\r\n let i = 0;\r\n while (count < maxSize && i < array.length) {\r\n if (condition(array[i])) {\r\n yield array[i];\r\n count++;\r\n }\r\n i++;\r\n }\r\n}\r\n\n\n//# sourceURL=webpack://@pictogrammers/components/./src/pg/shared/filter.ts?");
|
|
60
|
+
|
|
61
|
+
/***/ }),
|
|
62
|
+
|
|
63
|
+
/***/ "./src/pg/shared/iconFilter.ts":
|
|
64
|
+
/*!*************************************!*\
|
|
65
|
+
!*** ./src/pg/shared/iconFilter.ts ***!
|
|
66
|
+
\*************************************/
|
|
67
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
68
|
+
|
|
69
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"iconFilter\": () => (/* binding */ iconFilter),\n/* harmony export */ \"sanitizeTerm\": () => (/* binding */ sanitizeTerm)\n/* harmony export */ });\n/* harmony import */ var _removeDiacritics__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./removeDiacritics */ \"./src/pg/shared/removeDiacritics.ts\");\n/* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./filter */ \"./src/pg/shared/filter.ts\");\n\r\n\r\nfunction exactMatch(icons, term) {\r\n var _a;\r\n for (var i = 0, c = icons.length; i < c; i++) {\r\n if (((_a = icons[i].name) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === term) {\r\n icons.unshift(icons.splice(i, 1)[0]);\r\n return icons;\r\n }\r\n }\r\n return icons;\r\n}\r\nfunction sanitizeTerm(term) {\r\n return (0,_removeDiacritics__WEBPACK_IMPORTED_MODULE_0__.removeDiacritics)(term.trim().toLowerCase()).replace(/(\\w) (\\w)/g, \"$1-$2\");\r\n}\r\nfunction iconFilter(icons, term, limit = 5) {\r\n term = sanitizeTerm(term);\r\n const iconsByName = (0,_filter__WEBPACK_IMPORTED_MODULE_1__.filter)(icons, (icon) => {\r\n var _a;\r\n return ((_a = icon.name) === null || _a === void 0 ? void 0 : _a.toLowerCase().indexOf(term)) === 0;\r\n }, limit);\r\n const list = Array.from(iconsByName);\r\n let skip = list.map(icon => icon.id);\r\n if (list.length < limit) {\r\n var more = (0,_filter__WEBPACK_IMPORTED_MODULE_1__.filter)(icons, (icon) => {\r\n var _a;\r\n if (skip.includes(icon.id)) {\r\n return false;\r\n }\r\n return ((_a = icon.name) === null || _a === void 0 ? void 0 : _a.toLowerCase().indexOf(term)) !== -1;\r\n }, limit - list.length);\r\n var more2 = Array.from(more);\r\n more2.forEach(icon => list.push(icon));\r\n }\r\n skip = list.map(icon => icon.id);\r\n if (list.length < limit) {\r\n var iconsByAliases = (0,_filter__WEBPACK_IMPORTED_MODULE_1__.filter)(icons, (icon) => {\r\n if (skip.includes(icon.id)) {\r\n return false;\r\n }\r\n for (var i = 0, c = icon.aliases.length; i < c; i++) {\r\n if (icon.aliases[i].name == null) {\r\n console.error(`Invalid alias in ${icon.name}`);\r\n return false;\r\n }\r\n if (icon.aliases[i].name.indexOf(term) !== -1) {\r\n icon.aliases[i].match = true;\r\n return true;\r\n }\r\n }\r\n return false;\r\n }, limit - list.length);\r\n const list2 = Array.from(iconsByAliases);\r\n list2.forEach(icon => list.push(icon));\r\n }\r\n return exactMatch(list, term);\r\n}\r\n\n\n//# sourceURL=webpack://@pictogrammers/components/./src/pg/shared/iconFilter.ts?");
|
|
70
|
+
|
|
71
|
+
/***/ }),
|
|
72
|
+
|
|
73
|
+
/***/ "./src/pg/shared/removeDiacritics.ts":
|
|
74
|
+
/*!*******************************************!*\
|
|
75
|
+
!*** ./src/pg/shared/removeDiacritics.ts ***!
|
|
76
|
+
\*******************************************/
|
|
77
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
78
|
+
|
|
79
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"removeDiacritics\": () => (/* binding */ removeDiacritics)\n/* harmony export */ });\nfunction removeDiacritics(str) {\r\n var defaultDiacriticsRemovalMap = [\r\n { 'base': 'A', 'letters': /[\\u0041\\u24B6\\uFF21\\u00C0\\u00C1\\u00C2\\u1EA6\\u1EA4\\u1EAA\\u1EA8\\u00C3\\u0100\\u0102\\u1EB0\\u1EAE\\u1EB4\\u1EB2\\u0226\\u01E0\\u00C4\\u01DE\\u1EA2\\u00C5\\u01FA\\u01CD\\u0200\\u0202\\u1EA0\\u1EAC\\u1EB6\\u1E00\\u0104\\u023A\\u2C6F]/g },\r\n { 'base': 'AA', 'letters': /[\\uA732]/g },\r\n { 'base': 'AE', 'letters': /[\\u00C6\\u01FC\\u01E2]/g },\r\n { 'base': 'AO', 'letters': /[\\uA734]/g },\r\n { 'base': 'AU', 'letters': /[\\uA736]/g },\r\n { 'base': 'AV', 'letters': /[\\uA738\\uA73A]/g },\r\n { 'base': 'AY', 'letters': /[\\uA73C]/g },\r\n { 'base': 'B', 'letters': /[\\u0042\\u24B7\\uFF22\\u1E02\\u1E04\\u1E06\\u0243\\u0182\\u0181]/g },\r\n { 'base': 'C', 'letters': /[\\u0043\\u24B8\\uFF23\\u0106\\u0108\\u010A\\u010C\\u00C7\\u1E08\\u0187\\u023B\\uA73E]/g },\r\n { 'base': 'D', 'letters': /[\\u0044\\u24B9\\uFF24\\u1E0A\\u010E\\u1E0C\\u1E10\\u1E12\\u1E0E\\u0110\\u018B\\u018A\\u0189\\uA779]/g },\r\n { 'base': 'DZ', 'letters': /[\\u01F1\\u01C4]/g },\r\n { 'base': 'Dz', 'letters': /[\\u01F2\\u01C5]/g },\r\n { 'base': 'E', 'letters': /[\\u0045\\u24BA\\uFF25\\u00C8\\u00C9\\u00CA\\u1EC0\\u1EBE\\u1EC4\\u1EC2\\u1EBC\\u0112\\u1E14\\u1E16\\u0114\\u0116\\u00CB\\u1EBA\\u011A\\u0204\\u0206\\u1EB8\\u1EC6\\u0228\\u1E1C\\u0118\\u1E18\\u1E1A\\u0190\\u018E]/g },\r\n { 'base': 'F', 'letters': /[\\u0046\\u24BB\\uFF26\\u1E1E\\u0191\\uA77B]/g },\r\n { 'base': 'G', 'letters': /[\\u0047\\u24BC\\uFF27\\u01F4\\u011C\\u1E20\\u011E\\u0120\\u01E6\\u0122\\u01E4\\u0193\\uA7A0\\uA77D\\uA77E]/g },\r\n { 'base': 'H', 'letters': /[\\u0048\\u24BD\\uFF28\\u0124\\u1E22\\u1E26\\u021E\\u1E24\\u1E28\\u1E2A\\u0126\\u2C67\\u2C75\\uA78D]/g },\r\n { 'base': 'I', 'letters': /[\\u0049\\u24BE\\uFF29\\u00CC\\u00CD\\u00CE\\u0128\\u012A\\u012C\\u0130\\u00CF\\u1E2E\\u1EC8\\u01CF\\u0208\\u020A\\u1ECA\\u012E\\u1E2C\\u0197]/g },\r\n { 'base': 'J', 'letters': /[\\u004A\\u24BF\\uFF2A\\u0134\\u0248]/g },\r\n { 'base': 'K', 'letters': /[\\u004B\\u24C0\\uFF2B\\u1E30\\u01E8\\u1E32\\u0136\\u1E34\\u0198\\u2C69\\uA740\\uA742\\uA744\\uA7A2]/g },\r\n { 'base': 'L', 'letters': /[\\u004C\\u24C1\\uFF2C\\u013F\\u0139\\u013D\\u1E36\\u1E38\\u013B\\u1E3C\\u1E3A\\u0141\\u023D\\u2C62\\u2C60\\uA748\\uA746\\uA780]/g },\r\n { 'base': 'LJ', 'letters': /[\\u01C7]/g },\r\n { 'base': 'Lj', 'letters': /[\\u01C8]/g },\r\n { 'base': 'M', 'letters': /[\\u004D\\u24C2\\uFF2D\\u1E3E\\u1E40\\u1E42\\u2C6E\\u019C]/g },\r\n { 'base': 'N', 'letters': /[\\u004E\\u24C3\\uFF2E\\u01F8\\u0143\\u00D1\\u1E44\\u0147\\u1E46\\u0145\\u1E4A\\u1E48\\u0220\\u019D\\uA790\\uA7A4]/g },\r\n { 'base': 'NJ', 'letters': /[\\u01CA]/g },\r\n { 'base': 'Nj', 'letters': /[\\u01CB]/g },\r\n { 'base': 'O', 'letters': /[\\u004F\\u24C4\\uFF2F\\u00D2\\u00D3\\u00D4\\u1ED2\\u1ED0\\u1ED6\\u1ED4\\u00D5\\u1E4C\\u022C\\u1E4E\\u014C\\u1E50\\u1E52\\u014E\\u022E\\u0230\\u00D6\\u022A\\u1ECE\\u0150\\u01D1\\u020C\\u020E\\u01A0\\u1EDC\\u1EDA\\u1EE0\\u1EDE\\u1EE2\\u1ECC\\u1ED8\\u01EA\\u01EC\\u00D8\\u01FE\\u0186\\u019F\\uA74A\\uA74C]/g },\r\n { 'base': 'OI', 'letters': /[\\u01A2]/g },\r\n { 'base': 'OO', 'letters': /[\\uA74E]/g },\r\n { 'base': 'OU', 'letters': /[\\u0222]/g },\r\n { 'base': 'P', 'letters': /[\\u0050\\u24C5\\uFF30\\u1E54\\u1E56\\u01A4\\u2C63\\uA750\\uA752\\uA754]/g },\r\n { 'base': 'Q', 'letters': /[\\u0051\\u24C6\\uFF31\\uA756\\uA758\\u024A]/g },\r\n { 'base': 'R', 'letters': /[\\u0052\\u24C7\\uFF32\\u0154\\u1E58\\u0158\\u0210\\u0212\\u1E5A\\u1E5C\\u0156\\u1E5E\\u024C\\u2C64\\uA75A\\uA7A6\\uA782]/g },\r\n { 'base': 'S', 'letters': /[\\u0053\\u24C8\\uFF33\\u1E9E\\u015A\\u1E64\\u015C\\u1E60\\u0160\\u1E66\\u1E62\\u1E68\\u0218\\u015E\\u2C7E\\uA7A8\\uA784]/g },\r\n { 'base': 'T', 'letters': /[\\u0054\\u24C9\\uFF34\\u1E6A\\u0164\\u1E6C\\u021A\\u0162\\u1E70\\u1E6E\\u0166\\u01AC\\u01AE\\u023E\\uA786]/g },\r\n { 'base': 'TZ', 'letters': /[\\uA728]/g },\r\n { 'base': 'U', 'letters': /[\\u0055\\u24CA\\uFF35\\u00D9\\u00DA\\u00DB\\u0168\\u1E78\\u016A\\u1E7A\\u016C\\u00DC\\u01DB\\u01D7\\u01D5\\u01D9\\u1EE6\\u016E\\u0170\\u01D3\\u0214\\u0216\\u01AF\\u1EEA\\u1EE8\\u1EEE\\u1EEC\\u1EF0\\u1EE4\\u1E72\\u0172\\u1E76\\u1E74\\u0244]/g },\r\n { 'base': 'V', 'letters': /[\\u0056\\u24CB\\uFF36\\u1E7C\\u1E7E\\u01B2\\uA75E\\u0245]/g },\r\n { 'base': 'VY', 'letters': /[\\uA760]/g },\r\n { 'base': 'W', 'letters': /[\\u0057\\u24CC\\uFF37\\u1E80\\u1E82\\u0174\\u1E86\\u1E84\\u1E88\\u2C72]/g },\r\n { 'base': 'X', 'letters': /[\\u0058\\u24CD\\uFF38\\u1E8A\\u1E8C]/g },\r\n { 'base': 'Y', 'letters': /[\\u0059\\u24CE\\uFF39\\u1EF2\\u00DD\\u0176\\u1EF8\\u0232\\u1E8E\\u0178\\u1EF6\\u1EF4\\u01B3\\u024E\\u1EFE]/g },\r\n { 'base': 'Z', 'letters': /[\\u005A\\u24CF\\uFF3A\\u0179\\u1E90\\u017B\\u017D\\u1E92\\u1E94\\u01B5\\u0224\\u2C7F\\u2C6B\\uA762]/g },\r\n { 'base': 'a', 'letters': /[\\u0061\\u24D0\\uFF41\\u1E9A\\u00E0\\u00E1\\u00E2\\u1EA7\\u1EA5\\u1EAB\\u1EA9\\u00E3\\u0101\\u0103\\u1EB1\\u1EAF\\u1EB5\\u1EB3\\u0227\\u01E1\\u00E4\\u01DF\\u1EA3\\u00E5\\u01FB\\u01CE\\u0201\\u0203\\u1EA1\\u1EAD\\u1EB7\\u1E01\\u0105\\u2C65\\u0250]/g },\r\n { 'base': 'aa', 'letters': /[\\uA733]/g },\r\n { 'base': 'ae', 'letters': /[\\u00E6\\u01FD\\u01E3]/g },\r\n { 'base': 'ao', 'letters': /[\\uA735]/g },\r\n { 'base': 'au', 'letters': /[\\uA737]/g },\r\n { 'base': 'av', 'letters': /[\\uA739\\uA73B]/g },\r\n { 'base': 'ay', 'letters': /[\\uA73D]/g },\r\n { 'base': 'b', 'letters': /[\\u0062\\u24D1\\uFF42\\u1E03\\u1E05\\u1E07\\u0180\\u0183\\u0253]/g },\r\n { 'base': 'c', 'letters': /[\\u0063\\u24D2\\uFF43\\u0107\\u0109\\u010B\\u010D\\u00E7\\u1E09\\u0188\\u023C\\uA73F\\u2184]/g },\r\n { 'base': 'd', 'letters': /[\\u0064\\u24D3\\uFF44\\u1E0B\\u010F\\u1E0D\\u1E11\\u1E13\\u1E0F\\u0111\\u018C\\u0256\\u0257\\uA77A]/g },\r\n { 'base': 'dz', 'letters': /[\\u01F3\\u01C6]/g },\r\n { 'base': 'e', 'letters': /[\\u0065\\u24D4\\uFF45\\u00E8\\u00E9\\u00EA\\u1EC1\\u1EBF\\u1EC5\\u1EC3\\u1EBD\\u0113\\u1E15\\u1E17\\u0115\\u0117\\u00EB\\u1EBB\\u011B\\u0205\\u0207\\u1EB9\\u1EC7\\u0229\\u1E1D\\u0119\\u1E19\\u1E1B\\u0247\\u025B\\u01DD]/g },\r\n { 'base': 'f', 'letters': /[\\u0066\\u24D5\\uFF46\\u1E1F\\u0192\\uA77C]/g },\r\n { 'base': 'g', 'letters': /[\\u0067\\u24D6\\uFF47\\u01F5\\u011D\\u1E21\\u011F\\u0121\\u01E7\\u0123\\u01E5\\u0260\\uA7A1\\u1D79\\uA77F]/g },\r\n { 'base': 'h', 'letters': /[\\u0068\\u24D7\\uFF48\\u0125\\u1E23\\u1E27\\u021F\\u1E25\\u1E29\\u1E2B\\u1E96\\u0127\\u2C68\\u2C76\\u0265]/g },\r\n { 'base': 'hv', 'letters': /[\\u0195]/g },\r\n { 'base': 'i', 'letters': /[\\u0069\\u24D8\\uFF49\\u00EC\\u00ED\\u00EE\\u0129\\u012B\\u012D\\u00EF\\u1E2F\\u1EC9\\u01D0\\u0209\\u020B\\u1ECB\\u012F\\u1E2D\\u0268\\u0131]/g },\r\n { 'base': 'j', 'letters': /[\\u006A\\u24D9\\uFF4A\\u0135\\u01F0\\u0249]/g },\r\n { 'base': 'k', 'letters': /[\\u006B\\u24DA\\uFF4B\\u1E31\\u01E9\\u1E33\\u0137\\u1E35\\u0199\\u2C6A\\uA741\\uA743\\uA745\\uA7A3]/g },\r\n { 'base': 'l', 'letters': /[\\u006C\\u24DB\\uFF4C\\u0140\\u013A\\u013E\\u1E37\\u1E39\\u013C\\u1E3D\\u1E3B\\u017F\\u0142\\u019A\\u026B\\u2C61\\uA749\\uA781\\uA747]/g },\r\n { 'base': 'lj', 'letters': /[\\u01C9]/g },\r\n { 'base': 'm', 'letters': /[\\u006D\\u24DC\\uFF4D\\u1E3F\\u1E41\\u1E43\\u0271\\u026F]/g },\r\n { 'base': 'n', 'letters': /[\\u006E\\u24DD\\uFF4E\\u01F9\\u0144\\u00F1\\u1E45\\u0148\\u1E47\\u0146\\u1E4B\\u1E49\\u019E\\u0272\\u0149\\uA791\\uA7A5]/g },\r\n { 'base': 'nj', 'letters': /[\\u01CC]/g },\r\n { 'base': 'o', 'letters': /[\\u006F\\u24DE\\uFF4F\\u00F2\\u00F3\\u00F4\\u1ED3\\u1ED1\\u1ED7\\u1ED5\\u00F5\\u1E4D\\u022D\\u1E4F\\u014D\\u1E51\\u1E53\\u014F\\u022F\\u0231\\u00F6\\u022B\\u1ECF\\u0151\\u01D2\\u020D\\u020F\\u01A1\\u1EDD\\u1EDB\\u1EE1\\u1EDF\\u1EE3\\u1ECD\\u1ED9\\u01EB\\u01ED\\u00F8\\u01FF\\u0254\\uA74B\\uA74D\\u0275]/g },\r\n { 'base': 'oi', 'letters': /[\\u01A3]/g },\r\n { 'base': 'ou', 'letters': /[\\u0223]/g },\r\n { 'base': 'oo', 'letters': /[\\uA74F]/g },\r\n { 'base': 'p', 'letters': /[\\u0070\\u24DF\\uFF50\\u1E55\\u1E57\\u01A5\\u1D7D\\uA751\\uA753\\uA755]/g },\r\n { 'base': 'q', 'letters': /[\\u0071\\u24E0\\uFF51\\u024B\\uA757\\uA759]/g },\r\n { 'base': 'r', 'letters': /[\\u0072\\u24E1\\uFF52\\u0155\\u1E59\\u0159\\u0211\\u0213\\u1E5B\\u1E5D\\u0157\\u1E5F\\u024D\\u027D\\uA75B\\uA7A7\\uA783]/g },\r\n { 'base': 's', 'letters': /[\\u0073\\u24E2\\uFF53\\u00DF\\u015B\\u1E65\\u015D\\u1E61\\u0161\\u1E67\\u1E63\\u1E69\\u0219\\u015F\\u023F\\uA7A9\\uA785\\u1E9B]/g },\r\n { 'base': 't', 'letters': /[\\u0074\\u24E3\\uFF54\\u1E6B\\u1E97\\u0165\\u1E6D\\u021B\\u0163\\u1E71\\u1E6F\\u0167\\u01AD\\u0288\\u2C66\\uA787]/g },\r\n { 'base': 'tz', 'letters': /[\\uA729]/g },\r\n { 'base': 'u', 'letters': /[\\u0075\\u24E4\\uFF55\\u00F9\\u00FA\\u00FB\\u0169\\u1E79\\u016B\\u1E7B\\u016D\\u00FC\\u01DC\\u01D8\\u01D6\\u01DA\\u1EE7\\u016F\\u0171\\u01D4\\u0215\\u0217\\u01B0\\u1EEB\\u1EE9\\u1EEF\\u1EED\\u1EF1\\u1EE5\\u1E73\\u0173\\u1E77\\u1E75\\u0289]/g },\r\n { 'base': 'v', 'letters': /[\\u0076\\u24E5\\uFF56\\u1E7D\\u1E7F\\u028B\\uA75F\\u028C]/g },\r\n { 'base': 'vy', 'letters': /[\\uA761]/g },\r\n { 'base': 'w', 'letters': /[\\u0077\\u24E6\\uFF57\\u1E81\\u1E83\\u0175\\u1E87\\u1E85\\u1E98\\u1E89\\u2C73]/g },\r\n { 'base': 'x', 'letters': /[\\u0078\\u24E7\\uFF58\\u1E8B\\u1E8D]/g },\r\n { 'base': 'y', 'letters': /[\\u0079\\u24E8\\uFF59\\u1EF3\\u00FD\\u0177\\u1EF9\\u0233\\u1E8F\\u00FF\\u1EF7\\u1E99\\u1EF5\\u01B4\\u024F\\u1EFF]/g },\r\n { 'base': 'z', 'letters': /[\\u007A\\u24E9\\uFF5A\\u017A\\u1E91\\u017C\\u017E\\u1E93\\u1E95\\u01B6\\u0225\\u0240\\u2C6C\\uA763]/g }\r\n ];\r\n for (var i = 0; i < defaultDiacriticsRemovalMap.length; i++) {\r\n str = str.replace(defaultDiacriticsRemovalMap[i].letters, defaultDiacriticsRemovalMap[i].base);\r\n }\r\n return str;\r\n}\r\n\n\n//# sourceURL=webpack://@pictogrammers/components/./src/pg/shared/removeDiacritics.ts?");
|
|
80
|
+
|
|
81
|
+
/***/ })
|
|
82
|
+
|
|
83
|
+
/******/ });
|
|
84
|
+
/************************************************************************/
|
|
85
|
+
/******/ // The module cache
|
|
86
|
+
/******/ var __webpack_module_cache__ = {};
|
|
87
|
+
/******/
|
|
88
|
+
/******/ // The require function
|
|
89
|
+
/******/ function __webpack_require__(moduleId) {
|
|
90
|
+
/******/ // Check if module is in cache
|
|
91
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
92
|
+
/******/ if (cachedModule !== undefined) {
|
|
93
|
+
/******/ return cachedModule.exports;
|
|
94
|
+
/******/ }
|
|
95
|
+
/******/ // Create a new module (and put it into the cache)
|
|
96
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
97
|
+
/******/ // no module.id needed
|
|
98
|
+
/******/ // no module.loaded needed
|
|
99
|
+
/******/ exports: {}
|
|
100
|
+
/******/ };
|
|
101
|
+
/******/
|
|
102
|
+
/******/ // Execute the module function
|
|
103
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
104
|
+
/******/
|
|
105
|
+
/******/ // Return the exports of the module
|
|
106
|
+
/******/ return module.exports;
|
|
107
|
+
/******/ }
|
|
108
|
+
/******/
|
|
109
|
+
/************************************************************************/
|
|
110
|
+
/******/ /* webpack/runtime/define property getters */
|
|
111
|
+
/******/ (() => {
|
|
112
|
+
/******/ // define getter functions for harmony exports
|
|
113
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
114
|
+
/******/ for(var key in definition) {
|
|
115
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
116
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
117
|
+
/******/ }
|
|
118
|
+
/******/ }
|
|
119
|
+
/******/ };
|
|
120
|
+
/******/ })();
|
|
121
|
+
/******/
|
|
122
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
123
|
+
/******/ (() => {
|
|
124
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
125
|
+
/******/ })();
|
|
126
|
+
/******/
|
|
127
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
128
|
+
/******/ (() => {
|
|
129
|
+
/******/ // define __esModule on exports
|
|
130
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
131
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
132
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
133
|
+
/******/ }
|
|
134
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
135
|
+
/******/ };
|
|
136
|
+
/******/ })();
|
|
137
|
+
/******/
|
|
138
|
+
/************************************************************************/
|
|
139
|
+
/******/
|
|
140
|
+
/******/ // startup
|
|
141
|
+
/******/ // Load entry module and return exports
|
|
142
|
+
/******/ // This entry module can't be inlined because the eval devtool is used.
|
|
143
|
+
/******/ var __webpack_exports__ = __webpack_require__("./src/pg/search/search.ts");
|
|
144
|
+
/******/
|
|
145
|
+
/******/ })()
|
|
146
|
+
;
|