saby-customizer 0.0.5 → 0.0.7
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/lib/context.js +3 -1
- package/lib/saby-lib/edo.js +1 -0
- package/material.js +23 -52
- package/octicons.js +130 -115
- package/package.json +1 -1
package/lib/context.js
CHANGED
|
@@ -33,8 +33,10 @@ async function userInfo(target, name) {
|
|
|
33
33
|
service: 'auth',
|
|
34
34
|
method: 'SAP.CurrentUser'
|
|
35
35
|
})).getRow()
|
|
36
|
+
const userLogin = result.get('ЛогинПользователя') || ''
|
|
37
|
+
const userEMail = result.get('МылоПользователя') || ''
|
|
36
38
|
|
|
37
|
-
target.userLogin =
|
|
39
|
+
target.userLogin = (!(/^\d+$/).test(userLogin) ? userLogin : userEMail.split('@')[0]) || userLogin
|
|
38
40
|
|
|
39
41
|
return target[name]
|
|
40
42
|
}
|
package/lib/saby-lib/edo.js
CHANGED
package/material.js
CHANGED
|
@@ -173,16 +173,6 @@ function query(selector, cache) {
|
|
|
173
173
|
enumerable: true,
|
|
174
174
|
configurable: true,
|
|
175
175
|
};
|
|
176
|
-
if (cache) {
|
|
177
|
-
const key = typeof name === 'symbol' ? Symbol() : `__${name}`;
|
|
178
|
-
descriptor.get = function () {
|
|
179
|
-
var _a, _b;
|
|
180
|
-
if (this[key] === undefined) {
|
|
181
|
-
this[key] = (_b = (_a = this.renderRoot) === null || _a === void 0 ? void 0 : _a.querySelector(selector)) !== null && _b !== void 0 ? _b : null;
|
|
182
|
-
}
|
|
183
|
-
return this[key];
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
176
|
return descriptor;
|
|
187
177
|
},
|
|
188
178
|
});
|
|
@@ -232,11 +222,7 @@ function queryAssignedElements(options) {
|
|
|
232
222
|
function queryAssignedNodes(slotOrOptions, flatten, selector) {
|
|
233
223
|
let slot = slotOrOptions;
|
|
234
224
|
let assignedNodesOptions;
|
|
235
|
-
|
|
236
|
-
slot = slotOrOptions.slot;
|
|
237
|
-
assignedNodesOptions = slotOrOptions;
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
225
|
+
{
|
|
240
226
|
assignedNodesOptions = { flatten };
|
|
241
227
|
}
|
|
242
228
|
if (selector) {
|
|
@@ -250,7 +236,7 @@ function queryAssignedNodes(slotOrOptions, flatten, selector) {
|
|
|
250
236
|
descriptor: (_name) => ({
|
|
251
237
|
get() {
|
|
252
238
|
var _a, _b;
|
|
253
|
-
const slotSelector = `slot${
|
|
239
|
+
const slotSelector = `slot${':not([name])'}`;
|
|
254
240
|
const slotEl = (_a = this.renderRoot) === null || _a === void 0 ? void 0 : _a.querySelector(slotSelector);
|
|
255
241
|
return (_b = slotEl === null || slotEl === void 0 ? void 0 : slotEl.assignedNodes(assignedNodesOptions)) !== null && _b !== void 0 ? _b : [];
|
|
256
242
|
},
|
|
@@ -500,12 +486,12 @@ function queryAssignedNodes(slotOrOptions, flatten, selector) {
|
|
|
500
486
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
501
487
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
502
488
|
(function () {
|
|
503
|
-
if (typeof window === 'undefined') {
|
|
489
|
+
if (typeof window === 'undefined' || typeof Element === 'undefined') {
|
|
504
490
|
return;
|
|
505
491
|
}
|
|
506
492
|
var slice = Array.prototype.slice;
|
|
507
493
|
var matches = Element.prototype.matches || Element.prototype.msMatchesSelector;
|
|
508
|
-
var _focusableElementsString = ['a[href]', 'area[href]', 'input:not([disabled])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'details', 'summary', 'iframe', 'object', 'embed', '[contenteditable]'].join(',');
|
|
494
|
+
var _focusableElementsString = ['a[href]', 'area[href]', 'input:not([disabled])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'details', 'summary', 'iframe', 'object', 'embed', 'video', '[contenteditable]'].join(',');
|
|
509
495
|
var InertRoot = function () {
|
|
510
496
|
function InertRoot(rootElement, inertManager) {
|
|
511
497
|
_classCallCheck(this, InertRoot);
|
|
@@ -1365,7 +1351,6 @@ var MDCDialogFoundation = (function (_super) {
|
|
|
1365
1351
|
};
|
|
1366
1352
|
return MDCDialogFoundation;
|
|
1367
1353
|
}(MDCFoundation));
|
|
1368
|
-
var MDCDialogFoundation$1 = MDCDialogFoundation;
|
|
1369
1354
|
|
|
1370
1355
|
function applyPassive(globalObj) {
|
|
1371
1356
|
if (globalObj === void 0) { globalObj = window; }
|
|
@@ -1495,7 +1480,7 @@ const cssResultFromStyleSheet = (sheet) => {
|
|
|
1495
1480
|
return unsafeCSS(cssText);
|
|
1496
1481
|
};
|
|
1497
1482
|
const getCompatibleStyle = supportsAdoptingStyleSheets ||
|
|
1498
|
-
(NODE_MODE
|
|
1483
|
+
(NODE_MODE)
|
|
1499
1484
|
? (s) => s
|
|
1500
1485
|
: (s) => s instanceof CSSStyleSheet ? cssResultFromStyleSheet(s) : s;
|
|
1501
1486
|
|
|
@@ -3123,10 +3108,7 @@ const PartType = {
|
|
|
3123
3108
|
ATTRIBUTE: 1,
|
|
3124
3109
|
CHILD: 2,
|
|
3125
3110
|
PROPERTY: 3,
|
|
3126
|
-
BOOLEAN_ATTRIBUTE: 4
|
|
3127
|
-
EVENT: 5,
|
|
3128
|
-
ELEMENT: 6,
|
|
3129
|
-
};
|
|
3111
|
+
BOOLEAN_ATTRIBUTE: 4};
|
|
3130
3112
|
const directive = (c) => (...values) => ({
|
|
3131
3113
|
['_$litDirective$']: c,
|
|
3132
3114
|
values,
|
|
@@ -3224,7 +3206,7 @@ class DialogBase extends BaseElement {
|
|
|
3224
3206
|
this.actionAttribute = 'dialogAction';
|
|
3225
3207
|
this.initialFocusAttribute = 'dialogInitialFocus';
|
|
3226
3208
|
this.initialSupressDefaultPressSelector = '';
|
|
3227
|
-
this.mdcFoundationClass = MDCDialogFoundation
|
|
3209
|
+
this.mdcFoundationClass = MDCDialogFoundation;
|
|
3228
3210
|
this.boundHandleClick = null;
|
|
3229
3211
|
this.boundHandleKeydown = null;
|
|
3230
3212
|
this.boundHandleDocumentKeydown = null;
|
|
@@ -4055,7 +4037,6 @@ var MDCRippleFoundation = (function (_super) {
|
|
|
4055
4037
|
};
|
|
4056
4038
|
return MDCRippleFoundation;
|
|
4057
4039
|
}(MDCFoundation));
|
|
4058
|
-
var MDCRippleFoundation$1 = MDCRippleFoundation;
|
|
4059
4040
|
|
|
4060
4041
|
const important = 'important';
|
|
4061
4042
|
const importantFlag = ' !' + important;
|
|
@@ -4145,7 +4126,7 @@ class RippleBase extends BaseElement {
|
|
|
4145
4126
|
this.translateEnd = '';
|
|
4146
4127
|
this.leftPos = '';
|
|
4147
4128
|
this.topPos = '';
|
|
4148
|
-
this.mdcFoundationClass = MDCRippleFoundation
|
|
4129
|
+
this.mdcFoundationClass = MDCRippleFoundation;
|
|
4149
4130
|
}
|
|
4150
4131
|
get isActive() {
|
|
4151
4132
|
return matches(this.parentElement || this, ':active');
|
|
@@ -4621,7 +4602,6 @@ var MDCFadingTabIndicatorFoundation = (function (_super) {
|
|
|
4621
4602
|
};
|
|
4622
4603
|
return MDCFadingTabIndicatorFoundation;
|
|
4623
4604
|
}(MDCTabIndicatorFoundation));
|
|
4624
|
-
var MDCFadingTabIndicatorFoundation$1 = MDCFadingTabIndicatorFoundation;
|
|
4625
4605
|
|
|
4626
4606
|
var MDCSlidingTabIndicatorFoundation = (function (_super) {
|
|
4627
4607
|
__extends(MDCSlidingTabIndicatorFoundation, _super);
|
|
@@ -4648,7 +4628,6 @@ var MDCSlidingTabIndicatorFoundation = (function (_super) {
|
|
|
4648
4628
|
};
|
|
4649
4629
|
return MDCSlidingTabIndicatorFoundation;
|
|
4650
4630
|
}(MDCTabIndicatorFoundation));
|
|
4651
|
-
var MDCSlidingTabIndicatorFoundation$1 = MDCSlidingTabIndicatorFoundation;
|
|
4652
4631
|
|
|
4653
4632
|
class TabIndicatorBase extends BaseElement {
|
|
4654
4633
|
constructor() {
|
|
@@ -4657,8 +4636,8 @@ class TabIndicatorBase extends BaseElement {
|
|
|
4657
4636
|
this.fade = false;
|
|
4658
4637
|
}
|
|
4659
4638
|
get mdcFoundationClass() {
|
|
4660
|
-
return this.fade ? MDCFadingTabIndicatorFoundation
|
|
4661
|
-
MDCSlidingTabIndicatorFoundation
|
|
4639
|
+
return this.fade ? MDCFadingTabIndicatorFoundation :
|
|
4640
|
+
MDCSlidingTabIndicatorFoundation;
|
|
4662
4641
|
}
|
|
4663
4642
|
render() {
|
|
4664
4643
|
const contentClasses = {
|
|
@@ -4808,13 +4787,12 @@ var MDCTabFoundation = (function (_super) {
|
|
|
4808
4787
|
};
|
|
4809
4788
|
return MDCTabFoundation;
|
|
4810
4789
|
}(MDCFoundation));
|
|
4811
|
-
var MDCTabFoundation$1 = MDCTabFoundation;
|
|
4812
4790
|
|
|
4813
4791
|
let tabIdCounter = 0;
|
|
4814
4792
|
class TabBase extends BaseElement {
|
|
4815
4793
|
constructor() {
|
|
4816
4794
|
super(...arguments);
|
|
4817
|
-
this.mdcFoundationClass = MDCTabFoundation
|
|
4795
|
+
this.mdcFoundationClass = MDCTabFoundation;
|
|
4818
4796
|
this.label = '';
|
|
4819
4797
|
this.icon = '';
|
|
4820
4798
|
this.hasImageIcon = false;
|
|
@@ -4903,7 +4881,7 @@ class TabBase extends BaseElement {
|
|
|
4903
4881
|
}, deactivateIndicator: async () => {
|
|
4904
4882
|
await this.tabIndicator.updateComplete;
|
|
4905
4883
|
this.tabIndicator.deactivate();
|
|
4906
|
-
}, notifyInteracted: () => this.dispatchEvent(new CustomEvent(MDCTabFoundation
|
|
4884
|
+
}, notifyInteracted: () => this.dispatchEvent(new CustomEvent(MDCTabFoundation.strings.INTERACTED_EVENT, {
|
|
4907
4885
|
detail: { tabId: this.id },
|
|
4908
4886
|
bubbles: true,
|
|
4909
4887
|
composed: true,
|
|
@@ -5420,12 +5398,11 @@ var MDCTabScrollerFoundation = (function (_super) {
|
|
|
5420
5398
|
};
|
|
5421
5399
|
return MDCTabScrollerFoundation;
|
|
5422
5400
|
}(MDCFoundation));
|
|
5423
|
-
var MDCTabScrollerFoundation$1 = MDCTabScrollerFoundation;
|
|
5424
5401
|
|
|
5425
5402
|
class TabScrollerBase extends BaseElement {
|
|
5426
5403
|
constructor() {
|
|
5427
5404
|
super(...arguments);
|
|
5428
|
-
this.mdcFoundationClass = MDCTabScrollerFoundation
|
|
5405
|
+
this.mdcFoundationClass = MDCTabScrollerFoundation;
|
|
5429
5406
|
this._scrollbarHeight = -1;
|
|
5430
5407
|
}
|
|
5431
5408
|
_handleInteraction() {
|
|
@@ -5765,12 +5742,11 @@ var MDCTabBarFoundation = (function (_super) {
|
|
|
5765
5742
|
};
|
|
5766
5743
|
return MDCTabBarFoundation;
|
|
5767
5744
|
}(MDCFoundation));
|
|
5768
|
-
var MDCTabBarFoundation$1 = MDCTabBarFoundation;
|
|
5769
5745
|
|
|
5770
5746
|
class TabBarBase extends BaseElement {
|
|
5771
5747
|
constructor() {
|
|
5772
5748
|
super(...arguments);
|
|
5773
|
-
this.mdcFoundationClass = MDCTabBarFoundation
|
|
5749
|
+
this.mdcFoundationClass = MDCTabBarFoundation;
|
|
5774
5750
|
this.activeIndex = 0;
|
|
5775
5751
|
this._previousActiveIndex = -1;
|
|
5776
5752
|
}
|
|
@@ -5857,7 +5833,7 @@ class TabBarBase extends BaseElement {
|
|
|
5857
5833
|
getTabListLength: () => this._getTabs().length,
|
|
5858
5834
|
notifyTabActivated: (index) => {
|
|
5859
5835
|
this.activeIndex = index;
|
|
5860
|
-
this.dispatchEvent(new CustomEvent(MDCTabBarFoundation
|
|
5836
|
+
this.dispatchEvent(new CustomEvent(MDCTabBarFoundation.strings.TAB_ACTIVATED_EVENT, { detail: { index }, bubbles: true, cancelable: true }));
|
|
5861
5837
|
},
|
|
5862
5838
|
};
|
|
5863
5839
|
}
|
|
@@ -7872,7 +7848,6 @@ var MDCMenuSurfaceFoundation = (function (_super) {
|
|
|
7872
7848
|
};
|
|
7873
7849
|
return MDCMenuSurfaceFoundation;
|
|
7874
7850
|
}(MDCFoundation));
|
|
7875
|
-
var MDCMenuSurfaceFoundation$1 = MDCMenuSurfaceFoundation;
|
|
7876
7851
|
|
|
7877
7852
|
const stringToCorner = {
|
|
7878
7853
|
'TOP_LEFT': Corner.TOP_LEFT,
|
|
@@ -7887,7 +7862,7 @@ const stringToCorner = {
|
|
|
7887
7862
|
class MenuSurfaceBase extends BaseElement {
|
|
7888
7863
|
constructor() {
|
|
7889
7864
|
super(...arguments);
|
|
7890
|
-
this.mdcFoundationClass = MDCMenuSurfaceFoundation
|
|
7865
|
+
this.mdcFoundationClass = MDCMenuSurfaceFoundation;
|
|
7891
7866
|
this.absolute = false;
|
|
7892
7867
|
this.fullwidth = false;
|
|
7893
7868
|
this.fixed = false;
|
|
@@ -8352,12 +8327,11 @@ var MDCMenuFoundation = (function (_super) {
|
|
|
8352
8327
|
};
|
|
8353
8328
|
return MDCMenuFoundation;
|
|
8354
8329
|
}(MDCFoundation));
|
|
8355
|
-
var MDCMenuFoundation$1 = MDCMenuFoundation;
|
|
8356
8330
|
|
|
8357
8331
|
class MenuBase extends BaseElement {
|
|
8358
8332
|
constructor() {
|
|
8359
8333
|
super(...arguments);
|
|
8360
|
-
this.mdcFoundationClass = MDCMenuFoundation
|
|
8334
|
+
this.mdcFoundationClass = MDCMenuFoundation;
|
|
8361
8335
|
this.listElement_ = null;
|
|
8362
8336
|
this.anchor = null;
|
|
8363
8337
|
this.open = false;
|
|
@@ -9635,7 +9609,6 @@ var MDCTextFieldFoundation = (function (_super) {
|
|
|
9635
9609
|
};
|
|
9636
9610
|
return MDCTextFieldFoundation;
|
|
9637
9611
|
}(MDCFoundation));
|
|
9638
|
-
var MDCTextFieldFoundation$1 = MDCTextFieldFoundation;
|
|
9639
9612
|
|
|
9640
9613
|
var _a, _b;
|
|
9641
9614
|
((_a = window.ShadyDOM) === null || _a === void 0 ? void 0 : _a.inUse) &&
|
|
@@ -9700,7 +9673,7 @@ const createValidityObj = (customValidity = {}) => {
|
|
|
9700
9673
|
class TextFieldBase extends FormElement {
|
|
9701
9674
|
constructor() {
|
|
9702
9675
|
super(...arguments);
|
|
9703
|
-
this.mdcFoundationClass = MDCTextFieldFoundation
|
|
9676
|
+
this.mdcFoundationClass = MDCTextFieldFoundation;
|
|
9704
9677
|
this.value = '';
|
|
9705
9678
|
this.type = 'text';
|
|
9706
9679
|
this.placeholder = '';
|
|
@@ -10480,7 +10453,7 @@ var MDCTopAppBarFoundation = (function (_super) {
|
|
|
10480
10453
|
if (this.checkForUpdate()) {
|
|
10481
10454
|
var offset = this.currentAppBarOffsetTop;
|
|
10482
10455
|
if (Math.abs(offset) >= this.topAppBarHeight) {
|
|
10483
|
-
offset = -
|
|
10456
|
+
offset = -128;
|
|
10484
10457
|
}
|
|
10485
10458
|
this.adapter.setStyle('top', offset + 'px');
|
|
10486
10459
|
}
|
|
@@ -10496,7 +10469,6 @@ var MDCTopAppBarFoundation = (function (_super) {
|
|
|
10496
10469
|
};
|
|
10497
10470
|
return MDCTopAppBarFoundation;
|
|
10498
10471
|
}(MDCTopAppBarBaseFoundation));
|
|
10499
|
-
var MDCTopAppBarFoundation$1 = MDCTopAppBarFoundation;
|
|
10500
10472
|
|
|
10501
10473
|
const passiveEventOptionsIfSupported = supportsPassiveEventListener ? { passive: true } : undefined;
|
|
10502
10474
|
class TopAppBarBaseBase extends BaseElement {
|
|
@@ -10598,7 +10570,7 @@ __decorate([
|
|
|
10598
10570
|
class TopAppBarBase extends TopAppBarBaseBase {
|
|
10599
10571
|
constructor() {
|
|
10600
10572
|
super(...arguments);
|
|
10601
|
-
this.mdcFoundationClass = MDCTopAppBarFoundation
|
|
10573
|
+
this.mdcFoundationClass = MDCTopAppBarFoundation;
|
|
10602
10574
|
this.prominent = false;
|
|
10603
10575
|
this.dense = false;
|
|
10604
10576
|
this.handleResize = () => {
|
|
@@ -10830,7 +10802,6 @@ var MDCSnackbarFoundation = (function (_super) {
|
|
|
10830
10802
|
};
|
|
10831
10803
|
return MDCSnackbarFoundation;
|
|
10832
10804
|
}(MDCFoundation));
|
|
10833
|
-
var MDCSnackbarFoundation$1 = MDCSnackbarFoundation;
|
|
10834
10805
|
|
|
10835
10806
|
const notifyChildrenConnectedChanged = (parent, isConnected) => {
|
|
10836
10807
|
var _a, _b;
|
|
@@ -10951,7 +10922,7 @@ class AsyncDirective extends Directive {
|
|
|
10951
10922
|
reconnected() { }
|
|
10952
10923
|
}
|
|
10953
10924
|
|
|
10954
|
-
const { ARIA_LIVE_DELAY_MS } = MDCSnackbarFoundation
|
|
10925
|
+
const { ARIA_LIVE_DELAY_MS } = MDCSnackbarFoundation.numbers;
|
|
10955
10926
|
class AccessibleSnackbarLabel extends AsyncDirective {
|
|
10956
10927
|
constructor(partInfo) {
|
|
10957
10928
|
super(partInfo);
|
|
@@ -11009,11 +10980,11 @@ class AccessibleSnackbarLabel extends AsyncDirective {
|
|
|
11009
10980
|
}
|
|
11010
10981
|
const accessibleSnackbarLabel = directive(AccessibleSnackbarLabel);
|
|
11011
10982
|
|
|
11012
|
-
const { OPENING_EVENT, OPENED_EVENT, CLOSING_EVENT, CLOSED_EVENT, } = MDCSnackbarFoundation
|
|
10983
|
+
const { OPENING_EVENT, OPENED_EVENT, CLOSING_EVENT, CLOSED_EVENT, } = MDCSnackbarFoundation.strings;
|
|
11013
10984
|
class SnackbarBase extends BaseElement {
|
|
11014
10985
|
constructor() {
|
|
11015
10986
|
super(...arguments);
|
|
11016
|
-
this.mdcFoundationClass = MDCSnackbarFoundation
|
|
10987
|
+
this.mdcFoundationClass = MDCSnackbarFoundation;
|
|
11017
10988
|
this.open = false;
|
|
11018
10989
|
this.timeoutMs = 5000;
|
|
11019
10990
|
this.closeOnEscape = false;
|
package/octicons.js
CHANGED
|
@@ -19534,128 +19534,143 @@ var require$$0 = {
|
|
|
19534
19534
|
}
|
|
19535
19535
|
};
|
|
19536
19536
|
|
|
19537
|
-
var
|
|
19538
|
-
var
|
|
19539
|
-
|
|
19540
|
-
|
|
19541
|
-
|
|
19542
|
-
|
|
19543
|
-
|
|
19544
|
-
|
|
19545
|
-
|
|
19546
|
-
|
|
19547
|
-
|
|
19548
|
-
|
|
19549
|
-
|
|
19550
|
-
|
|
19551
|
-
|
|
19552
|
-
|
|
19553
|
-
|
|
19537
|
+
var objectAssign;
|
|
19538
|
+
var hasRequiredObjectAssign;
|
|
19539
|
+
function requireObjectAssign () {
|
|
19540
|
+
if (hasRequiredObjectAssign) return objectAssign;
|
|
19541
|
+
hasRequiredObjectAssign = 1;
|
|
19542
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
19543
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
19544
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
19545
|
+
function toObject(val) {
|
|
19546
|
+
if (val === null || val === undefined) {
|
|
19547
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
19548
|
+
}
|
|
19549
|
+
return Object(val);
|
|
19550
|
+
}
|
|
19551
|
+
function shouldUseNative() {
|
|
19552
|
+
try {
|
|
19553
|
+
if (!Object.assign) {
|
|
19554
|
+
return false;
|
|
19555
|
+
}
|
|
19556
|
+
var test1 = new String('abc');
|
|
19557
|
+
test1[5] = 'de';
|
|
19558
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
19559
|
+
return false;
|
|
19560
|
+
}
|
|
19561
|
+
var test2 = {};
|
|
19562
|
+
for (var i = 0; i < 10; i++) {
|
|
19563
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
19564
|
+
}
|
|
19565
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
19566
|
+
return test2[n];
|
|
19567
|
+
});
|
|
19568
|
+
if (order2.join('') !== '0123456789') {
|
|
19569
|
+
return false;
|
|
19570
|
+
}
|
|
19571
|
+
var test3 = {};
|
|
19572
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
19573
|
+
test3[letter] = letter;
|
|
19574
|
+
});
|
|
19575
|
+
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
19576
|
+
'abcdefghijklmnopqrst') {
|
|
19577
|
+
return false;
|
|
19578
|
+
}
|
|
19579
|
+
return true;
|
|
19580
|
+
} catch (err) {
|
|
19554
19581
|
return false;
|
|
19555
19582
|
}
|
|
19556
|
-
var test2 = {};
|
|
19557
|
-
for (var i = 0; i < 10; i++) {
|
|
19558
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
19559
|
-
}
|
|
19560
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
19561
|
-
return test2[n];
|
|
19562
|
-
});
|
|
19563
|
-
if (order2.join('') !== '0123456789') {
|
|
19564
|
-
return false;
|
|
19565
|
-
}
|
|
19566
|
-
var test3 = {};
|
|
19567
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
19568
|
-
test3[letter] = letter;
|
|
19569
|
-
});
|
|
19570
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
19571
|
-
'abcdefghijklmnopqrst') {
|
|
19572
|
-
return false;
|
|
19573
|
-
}
|
|
19574
|
-
return true;
|
|
19575
|
-
} catch (err) {
|
|
19576
|
-
return false;
|
|
19577
19583
|
}
|
|
19578
|
-
|
|
19579
|
-
var
|
|
19580
|
-
|
|
19581
|
-
|
|
19582
|
-
|
|
19583
|
-
|
|
19584
|
-
|
|
19585
|
-
|
|
19586
|
-
|
|
19587
|
-
|
|
19588
|
-
}
|
|
19589
|
-
|
|
19590
|
-
|
|
19591
|
-
|
|
19592
|
-
|
|
19593
|
-
|
|
19594
|
-
|
|
19584
|
+
objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
19585
|
+
var from;
|
|
19586
|
+
var to = toObject(target);
|
|
19587
|
+
var symbols;
|
|
19588
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
19589
|
+
from = Object(arguments[s]);
|
|
19590
|
+
for (var key in from) {
|
|
19591
|
+
if (hasOwnProperty.call(from, key)) {
|
|
19592
|
+
to[key] = from[key];
|
|
19593
|
+
}
|
|
19594
|
+
}
|
|
19595
|
+
if (getOwnPropertySymbols) {
|
|
19596
|
+
symbols = getOwnPropertySymbols(from);
|
|
19597
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
19598
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
19599
|
+
to[symbols[i]] = from[symbols[i]];
|
|
19600
|
+
}
|
|
19595
19601
|
}
|
|
19596
19602
|
}
|
|
19597
19603
|
}
|
|
19598
|
-
|
|
19599
|
-
|
|
19600
|
-
|
|
19601
|
-
getDefaultExportFromCjs(objectAssign$1);
|
|
19602
|
-
|
|
19603
|
-
const data = require$$0;
|
|
19604
|
-
const objectAssign = objectAssign$1;
|
|
19605
|
-
const DEFAULT_HEIGHT = 16;
|
|
19606
|
-
for (const key of Object.keys(data)) {
|
|
19607
|
-
const htmlAttributes = (icon, defaultOptions, options) => {
|
|
19608
|
-
const attributes = [];
|
|
19609
|
-
const attrObj = objectAssign({}, defaultOptions, options);
|
|
19610
|
-
if (options) {
|
|
19611
|
-
if (options['width'] || options['height']) {
|
|
19612
|
-
attrObj['width'] = options['width']
|
|
19613
|
-
? options['width']
|
|
19614
|
-
: (parseInt(options['height']) * defaultOptions['width']) / defaultOptions['height'];
|
|
19615
|
-
attrObj['height'] = options['height']
|
|
19616
|
-
? options['height']
|
|
19617
|
-
: (parseInt(options['width']) * defaultOptions['height']) / defaultOptions['width'];
|
|
19618
|
-
}
|
|
19619
|
-
if (options['class']) {
|
|
19620
|
-
attrObj['class'] = `octicon octicon-${key} ${options['class']}`;
|
|
19621
|
-
attrObj['class'].trim();
|
|
19622
|
-
}
|
|
19623
|
-
if (options['aria-label']) {
|
|
19624
|
-
attrObj['aria-label'] = options['aria-label'];
|
|
19625
|
-
attrObj['role'] = 'img';
|
|
19626
|
-
delete attrObj['aria-hidden'];
|
|
19627
|
-
}
|
|
19628
|
-
}
|
|
19629
|
-
for (const option of Object.keys(attrObj)) {
|
|
19630
|
-
attributes.push(`${option}="${attrObj[option]}"`);
|
|
19631
|
-
}
|
|
19632
|
-
return attributes.join(' ').trim()
|
|
19633
|
-
};
|
|
19634
|
-
data[key].symbol = key;
|
|
19635
|
-
for (const height of Object.keys(data[key].heights)) {
|
|
19636
|
-
data[key].heights[height].options = {
|
|
19637
|
-
version: '1.1',
|
|
19638
|
-
width: data[key].heights[height].width,
|
|
19639
|
-
height: parseInt(height),
|
|
19640
|
-
viewBox: `0 0 ${data[key].heights[height].width} ${height}`,
|
|
19641
|
-
class: `octicon octicon-${key}`,
|
|
19642
|
-
'aria-hidden': 'true'
|
|
19643
|
-
};
|
|
19644
|
-
}
|
|
19645
|
-
data[key].toSVG = function (options = {}) {
|
|
19646
|
-
const {height, width} = options;
|
|
19647
|
-
const naturalHeight = closestNaturalHeight(Object.keys(data[key].heights), height || width || DEFAULT_HEIGHT);
|
|
19648
|
-
return `<svg ${htmlAttributes(data[key], data[key].heights[naturalHeight].options, options)}>${
|
|
19649
|
-
data[key].heights[naturalHeight].path
|
|
19650
|
-
}</svg>`
|
|
19651
|
-
};
|
|
19604
|
+
return to;
|
|
19605
|
+
};
|
|
19606
|
+
return objectAssign;
|
|
19652
19607
|
}
|
|
19653
|
-
|
|
19654
|
-
|
|
19655
|
-
|
|
19656
|
-
|
|
19657
|
-
|
|
19608
|
+
|
|
19609
|
+
var octicons;
|
|
19610
|
+
var hasRequiredOcticons;
|
|
19611
|
+
function requireOcticons () {
|
|
19612
|
+
if (hasRequiredOcticons) return octicons;
|
|
19613
|
+
hasRequiredOcticons = 1;
|
|
19614
|
+
const data = require$$0;
|
|
19615
|
+
const objectAssign = requireObjectAssign();
|
|
19616
|
+
const DEFAULT_HEIGHT = 16;
|
|
19617
|
+
for (const key of Object.keys(data)) {
|
|
19618
|
+
const htmlAttributes = (icon, defaultOptions, options) => {
|
|
19619
|
+
const attributes = [];
|
|
19620
|
+
const attrObj = objectAssign({}, defaultOptions, options);
|
|
19621
|
+
if (options) {
|
|
19622
|
+
if (options['width'] || options['height']) {
|
|
19623
|
+
attrObj['width'] = options['width']
|
|
19624
|
+
? options['width']
|
|
19625
|
+
: (parseInt(options['height']) * defaultOptions['width']) / defaultOptions['height'];
|
|
19626
|
+
attrObj['height'] = options['height']
|
|
19627
|
+
? options['height']
|
|
19628
|
+
: (parseInt(options['width']) * defaultOptions['height']) / defaultOptions['width'];
|
|
19629
|
+
}
|
|
19630
|
+
if (options['class']) {
|
|
19631
|
+
attrObj['class'] = `octicon octicon-${key} ${options['class']}`;
|
|
19632
|
+
attrObj['class'].trim();
|
|
19633
|
+
}
|
|
19634
|
+
if (options['aria-label']) {
|
|
19635
|
+
attrObj['aria-label'] = options['aria-label'];
|
|
19636
|
+
attrObj['role'] = 'img';
|
|
19637
|
+
delete attrObj['aria-hidden'];
|
|
19638
|
+
}
|
|
19639
|
+
}
|
|
19640
|
+
for (const option of Object.keys(attrObj)) {
|
|
19641
|
+
attributes.push(`${option}="${attrObj[option]}"`);
|
|
19642
|
+
}
|
|
19643
|
+
return attributes.join(' ').trim()
|
|
19644
|
+
};
|
|
19645
|
+
data[key].symbol = key;
|
|
19646
|
+
for (const height of Object.keys(data[key].heights)) {
|
|
19647
|
+
data[key].heights[height].options = {
|
|
19648
|
+
version: '1.1',
|
|
19649
|
+
width: data[key].heights[height].width,
|
|
19650
|
+
height: parseInt(height),
|
|
19651
|
+
viewBox: `0 0 ${data[key].heights[height].width} ${height}`,
|
|
19652
|
+
class: `octicon octicon-${key}`,
|
|
19653
|
+
'aria-hidden': 'true'
|
|
19654
|
+
};
|
|
19655
|
+
}
|
|
19656
|
+
data[key].toSVG = function (options = {}) {
|
|
19657
|
+
const {height, width} = options;
|
|
19658
|
+
const naturalHeight = closestNaturalHeight(Object.keys(data[key].heights), height || width || DEFAULT_HEIGHT);
|
|
19659
|
+
return `<svg ${htmlAttributes(data[key], data[key].heights[naturalHeight].options, options)}>${
|
|
19660
|
+
data[key].heights[naturalHeight].path
|
|
19661
|
+
}</svg>`
|
|
19662
|
+
};
|
|
19663
|
+
}
|
|
19664
|
+
octicons = data;
|
|
19665
|
+
function closestNaturalHeight(naturalHeights, height) {
|
|
19666
|
+
return naturalHeights
|
|
19667
|
+
.map(naturalHeight => parseInt(naturalHeight, 10))
|
|
19668
|
+
.reduce((acc, naturalHeight) => (naturalHeight <= height ? naturalHeight : acc), naturalHeights[0])
|
|
19669
|
+
}
|
|
19670
|
+
return octicons;
|
|
19658
19671
|
}
|
|
19659
|
-
|
|
19672
|
+
|
|
19673
|
+
var octiconsExports = requireOcticons();
|
|
19674
|
+
var index = /*@__PURE__*/getDefaultExportFromCjs(octiconsExports);
|
|
19660
19675
|
|
|
19661
19676
|
export { index as octicons };
|