@spaceone/design-system
Version:
SpaceONE Design System
1,692 lines (1,442 loc) • 6.23 MB
JavaScript
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("vue-svgicon"), require("velocity-animate"), require("vue-fragment"), require("v-tooltip"), require("@vue/composition-api"), require("vue-i18n"), require("vue"), require("vue-notification"));
else if(typeof define === 'function' && define.amd)
define(["vue-svgicon", "velocity-animate", "vue-fragment", "v-tooltip", "@vue/composition-api", "vue-i18n", , "vue-notification"], factory);
else if(typeof exports === 'object')
exports["spaceone-design-system"] = factory(require("vue-svgicon"), require("velocity-animate"), require("vue-fragment"), require("v-tooltip"), require("@vue/composition-api"), require("vue-i18n"), require("vue"), require("vue-notification"));
else
root["spaceone-design-system"] = factory(root["vue-svgicon"], root["velocity-animate"], root["vue-fragment"], root["v-tooltip"], root["@vue/composition-api"], root["vue-i18n"], root["Vue"], root["vue-notification"]);
})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__0143__, __WEBPACK_EXTERNAL_MODULE__044b__, __WEBPACK_EXTERNAL_MODULE__6877__, __WEBPACK_EXTERNAL_MODULE__70eb__, __WEBPACK_EXTERNAL_MODULE__8165__, __WEBPACK_EXTERNAL_MODULE__85b3__, __WEBPACK_EXTERNAL_MODULE__8bbf__, __WEBPACK_EXTERNAL_MODULE_afe5__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = "fb15");
/******/ })
/************************************************************************/
/******/ ({
/***/ "001b":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__("a9e3");
var _objectSpread = __webpack_require__("ded3");
var _setTimeout = __webpack_require__("2b0b");
var _Array$isArray = __webpack_require__("e946");
var _Object$values = __webpack_require__("493c");
var _includesInstanceProperty = __webpack_require__("9a73");
var _Object$defineProperty = __webpack_require__("2d80");
_Object$defineProperty(exports, "__esModule", {
value: true
});
var tslib_1 = __webpack_require__("9ab4");
var composition_api_1 = __webpack_require__("8165");
var config_1 = __webpack_require__("cee1");
var PLottie_vue_1 = tslib_1.__importDefault(__webpack_require__("c83e"));
var translations_1 = __webpack_require__("b1a4");
var lodash_1 = __webpack_require__("2ef0");
var PSkeleton_vue_1 = tslib_1.__importDefault(__webpack_require__("d3f9"));
exports.default = composition_api_1.defineComponent({
name: 'PDataLoader',
components: {
PSkeleton: PSkeleton_vue_1.default,
PLottie: PLottie_vue_1.default
},
i18n: translations_1.i18n,
props: {
loading: {
type: Boolean,
default: true
},
data: {
type: [Array, Object],
default: undefined
},
loaderType: {
type: String,
default: config_1.LOADER_TYPES.spinner,
validator: function validator(loaderType) {
var _context;
return _includesInstanceProperty(_context = _Object$values(config_1.LOADER_TYPES)).call(_context, loaderType);
}
},
disableEmptyCase: {
type: Boolean,
default: false
},
minLoadingTime: {
type: Number,
default: 0
},
lazyLoadingTime: {
type: Number,
default: 0
}
},
setup: function setup(props) {
var state = composition_api_1.reactive({
isEmpty: composition_api_1.computed(function () {
if (props.disableEmptyCase) return false;
if (!props.data) return false;
if (_Array$isArray(props.data)) return props.data.length === 0;
return lodash_1.isEmpty(props.data);
}),
showLoader: composition_api_1.computed(function () {
if (props.lazyLoadingTime) return state.lazyLoading;
if (props.minLoadingTime) return state.minTimeLoading || props.loading;
return props.loading;
}),
minTimeLoading: props.loading,
lazyLoading: false
});
var minLoadingHandler;
var lazyLoadingHandler;
composition_api_1.watch(function () {
return props.loading;
}, function (after, before) {
if (after === before) return;
if (after) {
if (props.minLoadingTime) {
state.minTimeLoading = true;
if (minLoadingHandler) clearTimeout(minLoadingHandler);
minLoadingHandler = _setTimeout(function () {
state.minTimeLoading = false;
}, props.minLoadingTime);
}
if (props.lazyLoadingTime) {
state.lazyLoading = false;
if (lazyLoadingHandler) clearTimeout(lazyLoadingHandler);
lazyLoadingHandler = _setTimeout(function () {
state.lazyLoading = true;
}, props.lazyLoadingTime);
}
} else if (props.lazyLoadingTime) {
if (lazyLoadingHandler) clearTimeout(lazyLoadingHandler);
state.lazyLoading = false;
}
}, {
immediate: true
});
return _objectSpread({
LOADER_TYPES: config_1.LOADER_TYPES
}, composition_api_1.toRefs(state));
}
});
/***/ }),
/***/ "0054":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("a5eb");
var getBuiltIn = __webpack_require__("9883");
var fails = __webpack_require__("06fa");
var $stringify = getBuiltIn('JSON', 'stringify');
var re = /[\uD800-\uDFFF]/g;
var low = /^[\uD800-\uDBFF]$/;
var hi = /^[\uDC00-\uDFFF]$/;
var fix = function (match, offset, string) {
var prev = string.charAt(offset - 1);
var next = string.charAt(offset + 1);
if ((low.test(match) && !hi.test(next)) || (hi.test(match) && !low.test(prev))) {
return '\\u' + match.charCodeAt(0).toString(16);
} return match;
};
var FORCED = fails(function () {
return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
|| $stringify('\uDEAD') !== '"\\udead"';
});
if ($stringify) {
// `JSON.stringify` method
// https://tc39.es/ecma262/#sec-json.stringify
// https://github.com/tc39/proposal-well-formed-stringify
$({ target: 'JSON', stat: true, forced: FORCED }, {
// eslint-disable-next-line no-unused-vars
stringify: function stringify(it, replacer, space) {
var result = $stringify.apply(null, arguments);
return typeof result == 'string' ? result.replace(re, fix) : result;
}
});
}
/***/ }),
/***/ "0081":
/***/ (function(module, exports) {
/*
Language: STEP Part 21
Contributors: Adam Joseph Cook <adam.joseph.cook@gmail.com>
Description: Syntax highlighter for STEP Part 21 files (ISO 10303-21).
Website: https://en.wikipedia.org/wiki/ISO_10303-21
*/
function step21(hljs) {
var STEP21_IDENT_RE = '[A-Z_][A-Z0-9_.]*';
var STEP21_KEYWORDS = {
keyword: 'HEADER ENDSEC DATA'
};
var STEP21_START = {
className: 'meta',
begin: 'ISO-10303-21;',
relevance: 10
};
var STEP21_CLOSE = {
className: 'meta',
begin: 'END-ISO-10303-21;',
relevance: 10
};
return {
name: 'STEP Part 21',
aliases: ['p21', 'step', 'stp'],
case_insensitive: true, // STEP 21 is case insensitive in theory, in practice all non-comments are capitalized.
lexemes: STEP21_IDENT_RE,
keywords: STEP21_KEYWORDS,
contains: [
STEP21_START,
STEP21_CLOSE,
hljs.C_LINE_COMMENT_MODE,
hljs.C_BLOCK_COMMENT_MODE,
hljs.COMMENT('/\\*\\*!', '\\*/'),
hljs.C_NUMBER_MODE,
hljs.inherit(hljs.APOS_STRING_MODE, {illegal: null}),
hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}),
{
className: 'string',
begin: "'", end: "'"
},
{
className: 'symbol',
variants: [
{
begin: '#', end: '\\d+',
illegal: '\\W'
}
]
}
]
};
}
module.exports = step21;
/***/ }),
/***/ "00ee":
/***/ (function(module, exports, __webpack_require__) {
var wellKnownSymbol = __webpack_require__("b622");
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var test = {};
test[TO_STRING_TAG] = 'z';
module.exports = String(test) === '[object z]';
/***/ }),
/***/ "00fd":
/***/ (function(module, exports, __webpack_require__) {
var Symbol = __webpack_require__("9e69");
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
var nativeObjectToString = objectProto.toString;
/** Built-in value references. */
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
/**
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
*
* @private
* @param {*} value The value to query.
* @returns {string} Returns the raw `toStringTag`.
*/
function getRawTag(value) {
var isOwn = hasOwnProperty.call(value, symToStringTag),
tag = value[symToStringTag];
try {
value[symToStringTag] = undefined;
var unmasked = true;
} catch (e) {}
var result = nativeObjectToString.call(value);
if (unmasked) {
if (isOwn) {
value[symToStringTag] = tag;
} else {
delete value[symToStringTag];
}
}
return result;
}
module.exports = getRawTag;
/***/ }),
/***/ "0139":
/***/ (function(module, exports, __webpack_require__) {
var baseGetTag = __webpack_require__("2ddf"),
getPrototype = __webpack_require__("8875"),
isObjectLike = __webpack_require__("312e");
/** `Object#toString` result references. */
var objectTag = '[object Object]';
/** Used for built-in method references. */
var funcProto = Function.prototype,
objectProto = Object.prototype;
/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/** Used to infer the `Object` constructor. */
var objectCtorString = funcToString.call(Object);
/**
* Checks if `value` is a plain object, that is, an object created by the
* `Object` constructor or one with a `[[Prototype]]` of `null`.
*
* @static
* @memberOf _
* @since 0.8.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
* @example
*
* function Foo() {
* this.a = 1;
* }
*
* _.isPlainObject(new Foo);
* // => false
*
* _.isPlainObject([1, 2, 3]);
* // => false
*
* _.isPlainObject({ 'x': 0, 'y': 0 });
* // => true
*
* _.isPlainObject(Object.create(null));
* // => true
*/
function isPlainObject(value) {
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
return false;
}
var proto = getPrototype(value);
if (proto === null) {
return true;
}
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
funcToString.call(Ctor) == objectCtorString;
}
module.exports = isPlainObject;
/***/ }),
/***/ "0143":
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE__0143__;
/***/ }),
/***/ "0149":
/***/ (function(module, exports, __webpack_require__) {
var classof = __webpack_require__("fc48");
var global = __webpack_require__("3ac6");
module.exports = classof(global.process) == 'process';
/***/ }),
/***/ "016d":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _PAnchor_vue_vue_type_template_id_6b18313b___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c308");
/* harmony import */ var _PAnchor_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("8802");
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _PAnchor_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _PAnchor_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _PAnchor_vue_vue_type_style_index_0_lang_postcss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("97ad");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("2877");
/* normalize component */
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(
_PAnchor_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__["default"],
_PAnchor_vue_vue_type_template_id_6b18313b___WEBPACK_IMPORTED_MODULE_0__[/* render */ "a"],
_PAnchor_vue_vue_type_template_id_6b18313b___WEBPACK_IMPORTED_MODULE_0__[/* staticRenderFns */ "b"],
false,
null,
null,
null
)
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "0185":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _Object$defineProperty = __webpack_require__("2d80");
_Object$defineProperty(exports, "__esModule", {
value: true
});
var tslib_1 = __webpack_require__("9ab4");
var PI_vue_1 = tslib_1.__importDefault(__webpack_require__("b162"));
var composition_api_1 = __webpack_require__("8165");
exports.default = composition_api_1.defineComponent({
name: 'PTag',
components: {
PI: PI_vue_1.default
},
props: {
deletable: {
type: Boolean,
default: true
},
outline: {
type: Boolean,
default: false
},
activated: {
type: Boolean,
default: false
},
isError: {
type: Boolean,
default: false
},
errorMessage: {
type: String,
default: ''
}
},
setup: function setup() {
return {};
}
});
/***/ }),
/***/ "0188":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _concatInstanceProperty = __webpack_require__("a3e3");
var _toConsumableArray = __webpack_require__("448a");
var _spliceInstanceProperty = __webpack_require__("3393");
var _findIndexInstanceProperty = __webpack_require__("4c43");
var _includesInstanceProperty = __webpack_require__("9a73");
var _Object$defineProperty = __webpack_require__("2d80");
_Object$defineProperty(exports, "__esModule", {
value: true
});
var tslib_1 = __webpack_require__("9ab4");
var lodash_1 = __webpack_require__("2ef0");
var composition_api_1 = __webpack_require__("8165");
var PSelectableItem_vue_1 = tslib_1.__importDefault(__webpack_require__("7678"));
var PLottie_vue_1 = tslib_1.__importDefault(__webpack_require__("c83e"));
var composition_helpers_1 = __webpack_require__("2fd7");
var PEmpty_vue_1 = tslib_1.__importDefault(__webpack_require__("a713"));
var config_1 = __webpack_require__("6b8d");
exports.default = {
name: 'PSelectableList',
components: {
PEmpty: PEmpty_vue_1.default,
PSelectableItem: PSelectableItem_vue_1.default,
PLottie: PLottie_vue_1.default
},
props: {
items: {
type: Array,
default: function _default() {
return [];
}
},
/* sync */
selectedIndexes: {
type: Array,
default: undefined
},
/* sync */
disabledIndexes: {
type: Array,
default: undefined
},
disabled: {
type: Boolean,
default: undefined
},
mapper: {
type: Object,
default: function _default() {
return {};
}
},
multiSelectable: {
type: Boolean,
default: true
},
mustSelect: {
type: Boolean,
default: true
},
defaultIcon: {
type: String,
default: ''
},
loading: {
type: Boolean,
default: false
},
theme: {
type: String,
default: 'default',
validator: function validator(theme) {
var _context;
return _includesInstanceProperty(_context = config_1.themes).call(_context, theme);
}
},
iconSize: {
type: String,
default: undefined
}
},
setup: function setup(props, _ref) {
var emit = _ref.emit;
var vm = composition_api_1.getCurrentInstance();
var proxyState = composition_api_1.reactive({
selectedIndexes: composition_helpers_1.makeOptionalProxy('selectedIndexes', vm, [], ['select']),
disabledIndexes: composition_helpers_1.makeOptionalProxy('disabledIndexes', vm, [])
});
var getItem = function getItem(item, key) {
if (typeof key === 'function') return key(item);
return lodash_1.get(item, key);
};
var onItemClick = function onItemClick(item, idx) {
// multi select case
if (props.multiSelectable) {
var foundIdx = _findIndexInstanceProperty(lodash_1).call(lodash_1, proxyState.selectedIndexes, idx);
if (foundIdx === -1) {
var _context2;
if (props.mustSelect && proxyState.selectedIndexes.length === 1) return;
_spliceInstanceProperty(_context2 = proxyState.selectedIndexes).call(_context2, foundIdx, 1);
emit('unselected', item, idx, proxyState.selectedIndexes);
} else {
var _context3;
proxyState.selectedIndexes = _concatInstanceProperty(_context3 = []).call(_context3, _toConsumableArray(proxyState.selectedIndexes), [idx]);
emit('selected', item, idx, proxyState.selectedIndexes);
}
return;
} // single select case
if (proxyState.selectedIndexes.length === 0) {
proxyState.selectedIndexes = [idx];
emit('selected', item, idx, proxyState.selectedIndexes);
} else {
var isSame = proxyState.selectedIndexes[0] === idx;
if (props.mustSelect) {
proxyState.selectedIndexes = [idx];
if (!isSame) emit('selected', item, idx, proxyState.selectedIndexes);
return;
}
if (isSame) {
proxyState.selectedIndexes = [];
emit('unselected', item, idx, proxyState.selectedIndexes);
}
}
};
return {
proxyState: proxyState,
getItem: getItem,
onItemClick: onItemClick
};
}
};
/***/ }),
/***/ "01ac":
/***/ (function(module, exports) {
/*
Language: Ada
Author: Lars Schulna <kartoffelbrei.mit.muskatnuss@gmail.org>
Description: Ada is a general-purpose programming language that has great support for saftey critical and real-time applications.
It has been developed by the DoD and thus has been used in military and safety-critical applications (like civil aviation).
The first version appeared in the 80s, but it's still actively developed today with
the newest standard being Ada2012.
*/
// We try to support full Ada2012
//
// We highlight all appearances of types, keywords, literals (string, char, number, bool)
// and titles (user defined function/procedure/package)
// CSS classes are set accordingly
//
// Languages causing problems for language detection:
// xml (broken by Foo : Bar type), elm (broken by Foo : Bar type), vbscript-html (broken by body keyword)
// sql (ada default.txt has a lot of sql keywords)
function ada(hljs) {
// Regular expression for Ada numeric literals.
// stolen form the VHDL highlighter
// Decimal literal:
var INTEGER_RE = '\\d(_|\\d)*';
var EXPONENT_RE = '[eE][-+]?' + INTEGER_RE;
var DECIMAL_LITERAL_RE = INTEGER_RE + '(\\.' + INTEGER_RE + ')?' + '(' + EXPONENT_RE + ')?';
// Based literal:
var BASED_INTEGER_RE = '\\w+';
var BASED_LITERAL_RE = INTEGER_RE + '#' + BASED_INTEGER_RE + '(\\.' + BASED_INTEGER_RE + ')?' + '#' + '(' + EXPONENT_RE + ')?';
var NUMBER_RE = '\\b(' + BASED_LITERAL_RE + '|' + DECIMAL_LITERAL_RE + ')';
// Identifier regex
var ID_REGEX = '[A-Za-z](_?[A-Za-z0-9.])*';
// bad chars, only allowed in literals
var BAD_CHARS = '[]{}%#\'\"';
// Ada doesn't have block comments, only line comments
var COMMENTS = hljs.COMMENT('--', '$');
// variable declarations of the form
// Foo : Bar := Baz;
// where only Bar will be highlighted
var VAR_DECLS = {
// TODO: These spaces are not required by the Ada syntax
// however, I have yet to see handwritten Ada code where
// someone does not put spaces around :
begin: '\\s+:\\s+', end: '\\s*(:=|;|\\)|=>|$)',
// endsWithParent: true,
// returnBegin: true,
illegal: BAD_CHARS,
contains: [
{
// workaround to avoid highlighting
// named loops and declare blocks
beginKeywords: 'loop for declare others',
endsParent: true,
},
{
// properly highlight all modifiers
className: 'keyword',
beginKeywords: 'not null constant access function procedure in out aliased exception'
},
{
className: 'type',
begin: ID_REGEX,
endsParent: true,
relevance: 0,
}
]
};
return {
name: 'Ada',
case_insensitive: true,
keywords: {
keyword:
'abort else new return abs elsif not reverse abstract end ' +
'accept entry select access exception of separate aliased exit or some ' +
'all others subtype and for out synchronized array function overriding ' +
'at tagged generic package task begin goto pragma terminate ' +
'body private then if procedure type case in protected constant interface ' +
'is raise use declare range delay limited record when delta loop rem while ' +
'digits renames with do mod requeue xor',
literal:
'True False',
},
contains: [
COMMENTS,
// strings "foobar"
{
className: 'string',
begin: /"/, end: /"/,
contains: [{begin: /""/, relevance: 0}]
},
// characters ''
{
// character literals always contain one char
className: 'string',
begin: /'.'/
},
{
// number literals
className: 'number',
begin: NUMBER_RE,
relevance: 0
},
{
// Attributes
className: 'symbol',
begin: "'" + ID_REGEX,
},
{
// package definition, maybe inside generic
className: 'title',
begin: '(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?', end: '(is|$)',
keywords: 'package body',
excludeBegin: true,
excludeEnd: true,
illegal: BAD_CHARS
},
{
// function/procedure declaration/definition
// maybe inside generic
begin: '(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+', end: '(\\bis|\\bwith|\\brenames|\\)\\s*;)',
keywords: 'overriding function procedure with is renames return',
// we need to re-match the 'function' keyword, so that
// the title mode below matches only exactly once
returnBegin: true,
contains:
[
COMMENTS,
{
// name of the function/procedure
className: 'title',
begin: '(\\bwith\\s+)?\\b(function|procedure)\\s+',
end: '(\\(|\\s+|$)',
excludeBegin: true,
excludeEnd: true,
illegal: BAD_CHARS
},
// 'self'
// // parameter types
VAR_DECLS,
{
// return type
className: 'type',
begin: '\\breturn\\s+', end: '(\\s+|;|$)',
keywords: 'return',
excludeBegin: true,
excludeEnd: true,
// we are done with functions
endsParent: true,
illegal: BAD_CHARS
},
]
},
{
// new type declarations
// maybe inside generic
className: 'type',
begin: '\\b(sub)?type\\s+', end: '\\s+',
keywords: 'type',
excludeBegin: true,
illegal: BAD_CHARS
},
// see comment above the definition
VAR_DECLS,
// no markup
// relevance boosters for small snippets
// {begin: '\\s*=>\\s*'},
// {begin: '\\s*:=\\s*'},
// {begin: '\\s+:=\\s+'},
]
};
}
module.exports = ada;
/***/ }),
/***/ "01f6":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PModal_vue_vue_type_style_index_0_id_9501eaee_lang_postcss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e6fa");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PModal_vue_vue_type_style_index_0_id_9501eaee_lang_postcss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PModal_vue_vue_type_style_index_0_id_9501eaee_lang_postcss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PModal_vue_vue_type_style_index_0_id_9501eaee_lang_postcss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ "0209":
/***/ (function(module, exports) {
/*
Language: C++
Category: common, system
Website: https://isocpp.org
Requires: c-like.js
*/
function cpp(hljs) {
var lang = hljs.getLanguage('c-like').rawDefinition();
// return auto-detection back on
lang.disableAutodetect = false;
lang.name = 'C++';
lang.aliases = ['cc', 'c++', 'h++', 'hpp', 'hh', 'hxx', 'cxx'];
return lang;
}
module.exports = cpp;
/***/ }),
/***/ "0215":
/***/ (function(module, exports) {
/*
Language: F#
Author: Jonas Follesø <jonas@follesoe.no>
Contributors: Troy Kershaw <hello@troykershaw.com>, Henrik Feldt <henrik@haf.se>
Website: https://docs.microsoft.com/en-us/dotnet/fsharp/
Category: functional
*/
function fsharp(hljs) {
var TYPEPARAM = {
begin: '<', end: '>',
contains: [
hljs.inherit(hljs.TITLE_MODE, {begin: /'[a-zA-Z0-9_]+/})
]
};
return {
name: 'F#',
aliases: ['fs'],
keywords:
'abstract and as assert base begin class default delegate do done ' +
'downcast downto elif else end exception extern false finally for ' +
'fun function global if in inherit inline interface internal lazy let ' +
'match member module mutable namespace new null of open or ' +
'override private public rec return sig static struct then to ' +
'true try type upcast use val void when while with yield',
illegal: /\/\*/,
contains: [
{
// monad builder keywords (matches before non-bang kws)
className: 'keyword',
begin: /\b(yield|return|let|do)!/
},
{
className: 'string',
begin: '@"', end: '"',
contains: [{begin: '""'}]
},
{
className: 'string',
begin: '"""', end: '"""'
},
hljs.COMMENT('\\(\\*', '\\*\\)'),
{
className: 'class',
beginKeywords: 'type', end: '\\(|=|$', excludeEnd: true,
contains: [
hljs.UNDERSCORE_TITLE_MODE,
TYPEPARAM
]
},
{
className: 'meta',
begin: '\\[<', end: '>\\]',
relevance: 10
},
{
className: 'symbol',
begin: '\\B(\'[A-Za-z])\\b',
contains: [hljs.BACKSLASH_ESCAPE]
},
hljs.C_LINE_COMMENT_MODE,
hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}),
hljs.C_NUMBER_MODE
]
};
}
module.exports = fsharp;
/***/ }),
/***/ "0221":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/*
* EJS Embedded JavaScript templates
* Copyright 2112 Matthew Eernisse (mde@fleegix.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
/**
* Private utility functions
* @module utils
* @private
*/
var regExpChars = /[|\\{}()[\]^$+*?.]/g;
/**
* Escape characters reserved in regular expressions.
*
* If `string` is `undefined` or `null`, the empty string is returned.
*
* @param {String} string Input string
* @return {String} Escaped string
* @static
* @private
*/
exports.escapeRegExpChars = function (string) {
// istanbul ignore if
if (!string) {
return '';
}
return String(string).replace(regExpChars, '\\$&');
};
var _ENCODE_HTML_RULES = {
'&': '&',
'<': '<',
'>': '>',
'"': '"',
"'": '''
};
var _MATCH_HTML = /[&<>'"]/g;
function encode_char(c) {
return _ENCODE_HTML_RULES[c] || c;
}
/**
* Stringified version of constants used by {@link module:utils.escapeXML}.
*
* It is used in the process of generating {@link ClientFunction}s.
*
* @readonly
* @type {String}
*/
var escapeFuncStr =
'var _ENCODE_HTML_RULES = {\n'
+ ' "&": "&"\n'
+ ' , "<": "<"\n'
+ ' , ">": ">"\n'
+ ' , \'"\': """\n'
+ ' , "\'": "'"\n'
+ ' }\n'
+ ' , _MATCH_HTML = /[&<>\'"]/g;\n'
+ 'function encode_char(c) {\n'
+ ' return _ENCODE_HTML_RULES[c] || c;\n'
+ '};\n';
/**
* Escape characters reserved in XML.
*
* If `markup` is `undefined` or `null`, the empty string is returned.
*
* @implements {EscapeCallback}
* @param {String} markup Input string
* @return {String} Escaped string
* @static
* @private
*/
exports.escapeXML = function (markup) {
return markup == undefined
? ''
: String(markup)
.replace(_MATCH_HTML, encode_char);
};
exports.escapeXML.toString = function () {
return Function.prototype.toString.call(this) + ';\n' + escapeFuncStr;
};
/**
* Naive copy of properties from one object to another.
* Does not recurse into non-scalar properties
* Does not check to see if the property has a value before copying
*
* @param {Object} to Destination object
* @param {Object} from Source object
* @return {Object} Destination object
* @static
* @private
*/
exports.shallowCopy = function (to, from) {
from = from || {};
for (var p in from) {
to[p] = from[p];
}
return to;
};
/**
* Naive copy of a list of key names, from one object to another.
* Only copies property if it is actually defined
* Does not recurse into non-scalar properties
*
* @param {Object} to Destination object
* @param {Object} from Source object
* @param {Array} list List of properties to copy
* @return {Object} Destination object
* @static
* @private
*/
exports.shallowCopyFromList = function (to, from, list) {
for (var i = 0; i < list.length; i++) {
var p = list[i];
if (typeof from[p] != 'undefined') {
to[p] = from[p];
}
}
return to;
};
/**
* Simple in-process cache implementation. Does not implement limits of any
* sort.
*
* @implements {Cache}
* @static
* @private
*/
exports.cache = {
_data: {},
set: function (key, val) {
this._data[key] = val;
},
get: function (key) {
return this._data[key];
},
remove: function (key) {
delete this._data[key];
},
reset: function () {
this._data = {};
}
};
/**
* Transforms hyphen case variable into camel case.
*
* @param {String} string Hyphen case string
* @return {String} Camel case string
* @static
* @private
*/
exports.hyphenToCamel = function (str) {
return str.replace(/-[a-z]/g, function (match) { return match[1].toUpperCase(); });
};
/***/ }),
/***/ "0223":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__("a9e3");
var _objectSpread = __webpack_require__("ded3");
var _indexOfInstanceProperty = __webpack_require__("65b8");
var _sliceInstanceProperty = __webpack_require__("52da");
var _concatInstanceProperty = __webpack_require__("a3e3");
var _Object$keys = __webpack_require__("fa81");
var _includesInstanceProperty = __webpack_require__("9a73");
var _Object$defineProperty = __webpack_require__("2d80");
_Object$defineProperty(exports, "__esModule", {
value: true
});
var tslib_1 = __webpack_require__("9ab4");
var composition_api_1 = __webpack_require__("8165");
var PLottie_vue_1 = tslib_1.__importDefault(__webpack_require__("c83e"));
var PI_vue_1 = tslib_1.__importDefault(__webpack_require__("b162"));
var type_1 = __webpack_require__("420d");
var translations_1 = __webpack_require__("b1a4");
exports.default = composition_api_1.defineComponent({
name: 'PContextMenu',
components: {
PLottie: PLottie_vue_1.default,
PI: PI_vue_1.default
},
i18n: translations_1.i18n,
props: {
menu: {
type: [Array, Object],
default: function _default() {
return [];
}
},
theme: {
type: String,
default: 'secondary',
validator: function validator(theme) {
var _context;
return _includesInstanceProperty(_context = _Object$keys(type_1.CONTEXT_MENU_THEME)).call(_context, theme);
}
},
loading: {
type: Boolean,
default: false
},
autoHeight: {
type: Boolean,
default: false
},
useCustomStyle: {
type: Boolean,
default: false
},
position: {
type: String,
default: null
},
offsetTop: {
type: Number,
default: null
},
width: {
type: Number,
default: null
},
height: {
type: Number,
default: null
}
},
setup: function setup(props, _ref) {
var _context3;
var emit = _ref.emit;
var state = composition_api_1.reactive({
contextMenu: null,
contextMenuStyle: composition_api_1.computed(function () {
var _context2;
if (!state.contextMenu || !props.useCustomStyle) return {};
var contextMenuStyle = {
position: 'fixed',
minWidth: 'auto',
width: "".concat(props.width, "px")
};
if (props.position === 'top') contextMenuStyle.top = _concatInstanceProperty(_context2 = "calc(".concat(props.offsetTop, "px + ")).call(_context2, props.height, "px)");
if (props.position === 'bottom') contextMenuStyle.bottom = "calc(100vh - ".concat(props.offsetTop, "px)");
return contextMenuStyle;
}),
contextMenuHeight: 0,
autoHeightStyle: composition_api_1.computed(function () {
if (props.autoHeight && state.contextMenuHeight) {
return {
maxHeight: "".concat(state.contextMenuHeight, "px"),
overflowY: 'auto'
};
}
return {};
})
});
composition_api_1.onMounted(function () {
if (!props.autoHeight || !props.useCustomStyle) return;
var winHeight = window.innerHeight;
if (props.position === 'top') state.contextMenuHeight = winHeight - props.offsetTop - props.height - 12;
if (props.position === 'bottom') state.contextMenuHeight = props.offsetTop - 12;
});
var focusedEl = null;
var uuid = _sliceInstanceProperty(_context3 = "".concat(Math.random())).call(_context3, 2);
var menuClick = function menuClick(itemName, index, event) {
if (!props.menu[index].disabled) {
emit("".concat(itemName, ":select"), index, event);
emit('select', itemName, index);
}
};
var itemsIndex = composition_api_1.computed(function () {
var idxs = [];
for (var i = 0; i < _Object$keys(props.menu).length; i++) {
if (props.menu[i].type === 'item' && !props.menu[i].disabled) idxs.push(i);
}
return idxs;
});
var focus = function focus(position) {
var _context4;
var idx = position === -1 ? itemsIndex.value[itemsIndex.value.length - 1] : itemsIndex.value[position || 0];
var el = document.getElementById(_concatInstanceProperty(_context4 = "context-item-".concat(idx, "-")).call(_context4, uuid));
if (el) {
el.focus();
focusedEl = el;
emit('focus', idx);
}
};
var blur = function blur() {
if (focusedEl) {
focusedEl.blur();
focusedEl = null;
}
emit('blur');
};
var onUpKey = function onUpKey(idx) {
var _context5;
var pos = _indexOfInstanceProperty(_context5 = itemsIndex.value).call(_context5, idx);
if (pos !== 0) {
focus(pos - 1);
} else {
emit('keyup:up:end');
blur();
}
};
var onDownKey = function onDownKey(idx) {
var _context6;
var pos = _indexOfInstanceProperty(_context6 = itemsIndex.value).call(_context6, idx) + 1;
if (pos !== itemsIndex.value.length) {
focus(pos);
} else {
emit('keyup:down:end');
blur();
}
};
var onEsc = function onEsc(e) {
emit('keyup:esc', e);
blur();
};
return _objectSpread(_objectSpread({}, composition_api_1.toRefs(state)), {}, {
menuClick: menuClick,
onDownKey: onDownKey,
onUpKey: onUpKey,
focus: focus,
uuid: uuid,
onEsc: onEsc
});
}
});
/***/ }),
/***/ "0228":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ render; });
__webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ staticRenderFns; });
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"da12cb48-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/others/deprecated/card-item/PCardItem.vue?vue&type=template&id=bd80b026&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p-pane-layout',_vm._g({staticClass:"p-card-item"},_vm.$listeners),[_c('div',[_vm._t("side",[_c('p-lazy-img',{attrs:{"src":_vm.icon,"error-icon":_vm.defaultIcon,"width":"4.5rem","height":"4.5rem"}})])],2),_c('div',{staticClass:"p-card-body"},[_vm._t("body",[_c('header',{staticClass:"title"},[_vm._t("title",[_vm._v("\n "+_vm._s(_vm.title)+"\n ")])],2),_c('span',{staticClass:"contents"},[_vm._v("\n "+_vm._s(_vm.contents)+"\n ")])]),_vm._t("extra")],2)])}
var staticRenderFns = []
// CONCATENATED MODULE: ./src/others/deprecated/card-item/PCardItem.vue?vue&type=template&id=bd80b026&
/***/ }),
/***/ "0273":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("c1b2");
var definePropertyModule = __webpack_require__("4180");
var createPropertyDescriptor = __webpack_require__("2c6c");
module.exports = DESCRIPTORS ? function (object, key, value) {
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
} : function (object, key, value) {
object[key] = value;
return object;
};
/***/ }),
/***/ "0290":
/***/ (function(module, exports) {
/*
Language: AsciiDoc
Requires: xml.js
Author: Dan Allen <dan.j.allen@gmail.com>
Website: http://asciidoc.org
Description: A semantic, text-based document format that can be exported to HTML, DocBook and other backends.
Category: markup
*/
function asciidoc(hljs) {
return {
name: 'AsciiDoc',
aliases: ['adoc'],
contains: [
// block comment
hljs.COMMENT(
'^/{4,}\\n',
'\\n/{4,}$',
// can also be done as...
//'^/{4,}$',
//'^/{4,}$',
{
relevance: 10
}
),
// line comment
hljs.COMMENT(
'^//',
'$',
{
relevance: 0
}
),
// title
{
className: 'title',
begin: '^\\.\\w.*$'
},
// example, admonition & sidebar blocks
{
begin: '^[=\\*]{4,}\\n',
end: '\\n^[=\\*]{4,}$',
relevance: 10
},
// headings
{
className: 'section',
relevance: 10,
variants: [
{begin: '^(={1,5}) .+?( \\1)?$'},
{begin: '^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$'},
]
},
// document attributes
{
className: 'meta',
begin: '^:.+?:',
end: '\\s',
excludeEnd: true,
relevance: 10
},
// block attributes
{
className: 'meta',
begin: '^\\[.+?\\]$',
relevance: 0
},
// quoteblocks
{
className: 'quote',
begin: '^_{4,}\\n',
end: '\\n_{4,}$',
relevance: 10
},
// listing and literal blocks
{
className: 'code',
begin: '^[\\-\\.]{4,}\\n',
end: '\\n[\\-\\.]{4,}$',
relevance: 10
},
// passthrough blocks
{
begin: '^\\+{4,}\\n',
end: '\\n\\+{4,}$',
contains: [
{
begin: '<', end: '>',
subLanguage: 'xml',
relevance: 0
}
],
relevance: 10
},
// lists (can only capture indicators)
{
className: 'bullet',
begin: '^(\\*+|\\-+|\\.+|[^\\n]+?::)\\s+'
},
// admonition
{
className: 'symbol',
begin: '^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+',
relevance: 10
},
// inline strong
{
className: 'strong',
// must not follow a word character or be followed by an asterisk or space
begin: '\\B\\*(?![\\*\\s])',
end: '(\\n{2}|\\*)',
// allow escaped asterisk followed by word char
contains: [
{
begin: '\\\\*\\w',
relevance: 0
}
]
},
// inline emphasis
{
className: 'emphasis',
// must not follow a word character or be followed by a single quote or space
begin: '\\B\'(?![\'\\s])',
end: '(\\n{2}|\')',
// allow escaped single quote followed by word char
contains: [
{
begin: '\\\\\'\\w',
relevance: 0
}
],
relevance: 0
},
// inline emphasis (alt)
{
className: 'emphasis',
// must not follow a word character or be followed by an underline or space
begin: '_(?![_\\s])',
end: '(\\n{2}|_)',
relevance: 0
},
// inline smart quotes
{
className: 'string',
variants: [
{begin: "``.+?''"},
{begin: "`.+?'"}
]
},
// inline code snippets (TODO should get same treatment as strong and emphasis)
{
className: 'code',
begin: '(`.+?`|\\+.+?\\+)',
relevance: 0
},
// indented literal block
{
className: 'code',
begin: '^[ \\t]',
end: '$',
relevance: 0
},
// horizontal rules
{
begin: '^\'{3,}[ \\t]*$',
relevance: 10
},
// images and links
{
begin: '(link:)?(http|https|ftp|file|irc|image:?):\\S+\\[.*?\\]',
returnBegin: true,
contains: [
{
begin: '(link|image:?):',
relevance: 0
},
{
className: 'link',
begin: '\\w',
end: '[^\\[]+',
relevance: 0
},
{
className: 'string',
begin: '\\[',
end: '\\]',
excludeBegin: true,
excludeEnd: true,
relevance: 0
}
],
relevance: 10
}
]
};
}
module.exports = asciidoc;
/***/ }),
/***/ "0291":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_