Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
437946f7f3 | ||
|
|
b5edd7b8b2 | ||
|
|
52ccef83d3 | ||
|
|
6b324459ee | ||
|
|
33e9d3a125 | ||
|
|
6020525ad2 | ||
|
|
b3a147bb89 | ||
|
|
03bea5cfb4 | ||
|
|
3b3e212517 | ||
|
|
bf2f7059d1 | ||
|
|
803641b5ef | ||
|
|
cb0f2b789f | ||
|
|
696575a925 | ||
|
|
c96037ff3f | ||
|
|
76f4f6d90b | ||
|
|
76799e6d2a | ||
|
|
685c09df15 | ||
|
|
e8e8216f35 | ||
|
|
92c579228e | ||
|
|
e080c27251 | ||
|
|
f3e720c129 | ||
|
|
b9e6dd787e | ||
|
|
d00a1db48e | ||
|
|
500bd26e56 | ||
|
|
73bc0a596a | ||
|
|
02e6c71099 | ||
|
|
1445bbd4a9 | ||
|
|
c0e2a0498b | ||
|
|
c493761abc | ||
|
|
4c07e02372 | ||
|
|
354665f069 | ||
|
|
43b4fff014 | ||
|
|
c14505fb28 | ||
|
|
7f4291e460 | ||
|
|
f8a367a1c8 | ||
|
|
c1bcd61d5a | ||
|
|
9a9aca0ae0 | ||
|
|
fad3fc4580 | ||
|
|
2c36419fd7 | ||
|
|
812b488515 | ||
|
|
bd3a98905f | ||
|
|
3a226bac77 | ||
|
|
29f812aaaf | ||
|
|
7d3dd41f59 | ||
|
|
422bda7983 | ||
|
|
e7f12e3df4 | ||
|
|
28eb1260d5 | ||
|
|
9dc22085ee | ||
|
|
3d8457d5df | ||
|
|
c41d08a4fe | ||
|
|
0e737a1aa8 | ||
|
|
7bb0d7b232 | ||
|
|
29a6c8b996 | ||
|
|
0f4438f581 | ||
|
|
1c5211c47c | ||
|
|
b0b67d51dd | ||
|
|
1c5942ad96 | ||
|
|
c635b65d75 | ||
|
|
a15a2f0f89 | ||
|
|
1a80387c54 | ||
|
|
bea74662db | ||
|
|
fcfe309839 | ||
|
|
918c27f1fd | ||
|
|
8f6706e1b4 | ||
|
|
ab0f7cab07 | ||
|
|
4d16d6b5bb | ||
|
|
080520c272 | ||
|
|
3d1d7b1287 | ||
|
|
92bf42fc66 | ||
|
|
38e75af977 | ||
|
|
978d7f0520 | ||
|
|
10ca108e3e | ||
|
|
c6238c8a36 | ||
|
|
8bb5ff94c8 | ||
|
|
fec5d9b436 | ||
|
|
6f97fcc1b4 | ||
|
|
7c5116b1cb | ||
|
|
fbd6f853f2 | ||
|
|
31127430b1 | ||
|
|
b6849aa02d | ||
|
|
ffe501d0dc | ||
|
|
9bc7938f97 | ||
|
|
61874d3b39 | ||
|
|
fb6e291605 | ||
|
|
a73cef8b2f | ||
|
|
bd1f3c3ac6 | ||
|
|
012ed970ba | ||
|
|
1dce831baf | ||
|
|
c9a11ad2a3 | ||
|
|
1c88d96cc5 | ||
|
|
c3bfea5f59 | ||
|
|
008e2f7b03 | ||
|
|
62d54535fb | ||
|
|
08b5f4bb35 | ||
|
|
d705685298 | ||
|
|
d1ac8c42ee | ||
|
|
d5ba02861e | ||
|
|
d982853a2e | ||
|
|
fb6d42d137 | ||
|
|
067b24e63c | ||
|
|
aa0a39cd64 | ||
|
|
f1671ec6d8 | ||
|
|
778b255877 | ||
|
|
ed67d22986 | ||
|
|
390c852c39 | ||
|
|
13de75de47 | ||
|
|
a0a8897378 | ||
|
|
380ec72221 | ||
|
|
9b4a4b954f | ||
|
|
326c9dd81b | ||
|
|
d2e6437909 | ||
|
|
9349388777 | ||
|
|
5747efba6b | ||
|
|
c4db612a9d | ||
|
|
7df2f7befd | ||
|
|
13ea94f9b5 | ||
|
|
48b2e9b0e1 | ||
|
|
8e38047d13 | ||
|
|
1c2d8da629 | ||
|
|
6b805f730d | ||
|
|
a0999bd081 | ||
|
|
06f5d659d5 | ||
|
|
9a52be8470 | ||
|
|
35140e77df | ||
|
|
69915ed0dd | ||
|
|
6e2105337d | ||
|
|
956429f1ad | ||
|
|
14d1506df8 | ||
|
|
562c3c741c | ||
|
|
17318fe08b | ||
|
|
49627a90ba | ||
|
|
578d69a225 | ||
|
|
3e57401ce2 | ||
|
|
5c1c55ae80 | ||
|
|
48f3ee95c8 | ||
|
|
bac49870cb | ||
|
|
6c55058ddb | ||
|
|
19785fe226 | ||
|
|
18077c9d67 | ||
|
|
492c353fc2 | ||
|
|
515171c79d | ||
|
|
3f40e8029b | ||
|
|
76023ce723 | ||
|
|
93726208ff | ||
|
|
7ad59e353d | ||
|
|
922709e245 | ||
|
|
bd216dde19 | ||
|
|
b115bd818d | ||
|
|
3704a4cd96 | ||
|
|
5c3c73d018 | ||
|
|
6deac15c5b | ||
|
|
0ac5b04974 | ||
|
|
fc21b101f4 | ||
|
|
c8fc36825c | ||
|
|
14ce50bf97 | ||
|
|
9b63a6feb7 | ||
|
|
981eb235b1 | ||
|
|
2e6e62cf53 | ||
|
|
dde00c6bc4 | ||
|
|
e39ff078f6 | ||
|
|
77408f5692 | ||
|
|
9372f1fea6 | ||
|
|
323844cfdb | ||
|
|
ea63242596 | ||
|
|
664476d0b0 | ||
|
|
477f0030c4 | ||
|
|
75dc3c43db | ||
|
|
27896db5ac | ||
|
|
1d7104884b | ||
|
|
44f9dc1811 | ||
|
|
3d3cf46c05 | ||
|
|
7e7f38836a | ||
|
|
88db44afdd | ||
|
|
895c105206 | ||
|
|
d2227c5eae | ||
|
|
551b297539 | ||
|
|
9d629213d5 | ||
|
|
04978c04e2 | ||
|
|
6811b241e9 | ||
|
|
a70f28bc9f | ||
|
|
27a9c6b31c | ||
|
|
57a7bf240f |
@@ -1,4 +1,17 @@
|
||||
_site
|
||||
.sass-cache
|
||||
*.scssc
|
||||
*.swp
|
||||
*~
|
||||
*.sw[mnpcod]
|
||||
*.log
|
||||
*.lock
|
||||
*.tmp
|
||||
*.tmp.*
|
||||
log.txt
|
||||
*.sublime-project
|
||||
*.sublime-workspace
|
||||
.idea/
|
||||
.sass-cache/
|
||||
.versions/
|
||||
.vscode/
|
||||
node_modules/
|
||||
tmp/
|
||||
dist/
|
||||
.DS_Store
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Drifty (http://drifty.com/)
|
||||
Copyright (c) 2015-present Ionic (http://ionic.io/)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
{
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"builder",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"test",
|
||||
"tests"
|
||||
],
|
||||
"version": "2.0.1",
|
||||
"name": "Ionicons",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
"Ben Sperry <ben@drifty.com>",
|
||||
"Adam Bradley <adam@drifty.com>",
|
||||
"Max Lynch <max@drifty.com>"
|
||||
],
|
||||
"keywords": [
|
||||
"fonts",
|
||||
"icon font",
|
||||
"icons",
|
||||
"ionic",
|
||||
"web font"
|
||||
],
|
||||
"main": [
|
||||
"css/ionicons.css",
|
||||
"fonts/*"
|
||||
],
|
||||
"homepage": "https://github.com/driftyco/ionicons",
|
||||
"description": "Ionicons - free and beautiful icons from the creators of Ionic Framework"
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
<div class="icon-row">
|
||||
<div class="preview-icon"><span class="step size-12">
|
||||
<i class="icon {{prefix}}{{name}}"></i>
|
||||
</span><span class="step size-14">
|
||||
<i class="icon {{prefix}}{{name}}"></i>
|
||||
</span><span class="step size-16">
|
||||
<i class="icon {{prefix}}{{name}}"></i>
|
||||
</span><span class="step size-18">
|
||||
<i class="icon {{prefix}}{{name}}"></i>
|
||||
</span><span class="step size-21">
|
||||
<i class="icon {{prefix}}{{name}}"></i>
|
||||
</span><span class="step size-24">
|
||||
<i class="icon {{prefix}}{{name}}"></i>
|
||||
</span><span class="step size-32">
|
||||
<i class="icon {{prefix}}{{name}}"></i>
|
||||
</span><span class="step size-48">
|
||||
<i class="icon {{prefix}}{{name}}"></i>
|
||||
</span><span class="step size-64">
|
||||
<i class="icon {{prefix}}{{name}}"></i>
|
||||
</span><span class="step size-96">
|
||||
<i class="icon {{prefix}}{{name}}"></i>
|
||||
</span>
|
||||
</div>
|
||||
<div class="preview-scale"><span class="step">12</span><span class="step">14</span><span class="step">16</span><span class="step">18</span><span class="step">21</span><span class="step">24</span><span class="step">32</span><span class="step">48</span><span class="step">64</span><span class="step">96</span></div>
|
||||
<div class="usage">
|
||||
<label>Classname:</label>
|
||||
<input class="name" type="text" readonly="readonly" onClick="this.select();" value="{{prefix}}{{name}}" />
|
||||
|
||||
<label>Selectable:</label>
|
||||
<span class="ion">{{html_code}}</span>
|
||||
|
||||
<label>Escaped HTML:</label>
|
||||
<input class="html" type="text" readonly="readonly" onClick="this.select();" value="{{escaped_html_code}}" />
|
||||
|
||||
<label>CSS Content:</label>
|
||||
<input class="css" type="text" readonly="readonly" onClick="this.select();" value="{{css_code}}" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,156 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{font_name}} v{{font_version}} Cheatsheet</title>
|
||||
<style>
|
||||
* {
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #fff;
|
||||
color: #444;
|
||||
font: 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
a, a:visited {
|
||||
color: #888;
|
||||
text-decoration: underline;
|
||||
}
|
||||
a:hover, a:focus { color: #000; }
|
||||
|
||||
header {
|
||||
border-bottom: 2px solid #ddd;
|
||||
margin-bottom: 20px;
|
||||
overflow: hidden;
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
color: #888;
|
||||
float: left;
|
||||
font-size: 36px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
header a {
|
||||
float: right;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.container {
|
||||
margin: 0 auto;
|
||||
max-width: 1200px;
|
||||
min-width: 960px;
|
||||
padding: 0 20px;
|
||||
width: 95%;
|
||||
}
|
||||
|
||||
.icon-row {
|
||||
border-bottom: 1px dotted #ccc;
|
||||
padding: 10px 0 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.ion {
|
||||
-webkit-touch-callout: text;
|
||||
-webkit-user-select: text;
|
||||
-khtml-user-select: text;
|
||||
-moz-user-select: text;
|
||||
-ms-user-select: text;
|
||||
user-select: text;
|
||||
}
|
||||
|
||||
.preview-icon { vertical-align: bottom; }
|
||||
|
||||
.preview-scale {
|
||||
color: #888;
|
||||
font-size: 12px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.step {
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
position: relative;
|
||||
width: 10%;
|
||||
}
|
||||
|
||||
.step i {
|
||||
-webkit-transition: opacity .3s;
|
||||
-moz-transition: opacity .3s;
|
||||
-ms-transition: opacity .3s;
|
||||
-o-transition: opacity .3s;
|
||||
transition: opacity .3s;
|
||||
}
|
||||
|
||||
.step:hover i { opacity: .3; }
|
||||
|
||||
.size-12 { font-size: 12px; }
|
||||
.size-14 { font-size: 14px; }
|
||||
.size-16 { font-size: 16px; }
|
||||
.size-18 { font-size: 18px; }
|
||||
.size-21 { font-size: 21px; }
|
||||
.size-24 { font-size: 24px; }
|
||||
.size-32 { font-size: 32px; }
|
||||
.size-48 { font-size: 48px; }
|
||||
.size-64 { font-size: 64px; }
|
||||
.size-96 { font-size: 96px; }
|
||||
|
||||
.usage { margin-top: 10px; }
|
||||
.usage input {
|
||||
font-family: monospace;
|
||||
margin-right: 3px;
|
||||
padding: 2px 5px;
|
||||
text-align: center;
|
||||
-webkit-touch-callout: text;
|
||||
-webkit-user-select: text;
|
||||
-khtml-user-select: text;
|
||||
-moz-user-select: text;
|
||||
-ms-user-select: text;
|
||||
user-select: text;
|
||||
}
|
||||
|
||||
.usage label {
|
||||
font-size: 12px;
|
||||
text-align: right;
|
||||
padding: 0 3px 0 60px;
|
||||
}
|
||||
.usage label:first-child { padding-left: 0; }
|
||||
.usage .name { width: 180px; }
|
||||
.usage .html { width: 80px; }
|
||||
.usage .css { width: 80px; }
|
||||
|
||||
footer {
|
||||
color: #888;
|
||||
font-size: 12px;
|
||||
padding: 20px 0;
|
||||
}
|
||||
</style>
|
||||
<link href="css/ionicons.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<h1>{{font_name}} v{{font_version}} Cheatsheet, {{icon_count}} icons:</h1>
|
||||
<p><a href="http://ionicons.com/">Ionicons Homepage</a></p>
|
||||
</header>
|
||||
<div class="content">
|
||||
{{content}}
|
||||
</div>
|
||||
<footer>
|
||||
Made with love by the <a href="http://ionicframework.com/">Ionic Framework</a>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,318 +0,0 @@
|
||||
from subprocess import call
|
||||
import os
|
||||
import json
|
||||
|
||||
|
||||
BUILDER_PATH = os.path.dirname(os.path.abspath(__file__))
|
||||
ROOT_PATH = os.path.join(BUILDER_PATH, '..')
|
||||
FONTS_FOLDER_PATH = os.path.join(ROOT_PATH, 'fonts')
|
||||
CSS_FOLDER_PATH = os.path.join(ROOT_PATH, 'css')
|
||||
SCSS_FOLDER_PATH = os.path.join(ROOT_PATH, 'scss')
|
||||
LESS_FOLDER_PATH = os.path.join(ROOT_PATH, 'less')
|
||||
|
||||
|
||||
def main():
|
||||
generate_font_files()
|
||||
|
||||
data = get_build_data()
|
||||
|
||||
rename_svg_glyph_names(data)
|
||||
generate_scss(data)
|
||||
generate_less(data)
|
||||
generate_cheatsheet(data)
|
||||
generate_component_json(data)
|
||||
generate_composer_json(data)
|
||||
generate_bower_json(data)
|
||||
|
||||
|
||||
def generate_font_files():
|
||||
print "Generate Fonts"
|
||||
cmd = "fontforge -script %s/scripts/generate_font.py" % (BUILDER_PATH)
|
||||
call(cmd, shell=True)
|
||||
|
||||
|
||||
def rename_svg_glyph_names(data):
|
||||
# hacky and slow (but safe) way to rename glyph-name attributes
|
||||
svg_path = os.path.join(FONTS_FOLDER_PATH, 'ionicons.svg')
|
||||
svg_file = open(svg_path, 'r+')
|
||||
svg_text = svg_file.read()
|
||||
svg_file.seek(0)
|
||||
|
||||
for ionicon in data['icons']:
|
||||
# uniF2CA
|
||||
org_name = 'uni%s' % (ionicon['code'].replace('0x', '').upper())
|
||||
ion_name = 'ion-%s' % (ionicon['name'])
|
||||
svg_text = svg_text.replace(org_name, ion_name)
|
||||
|
||||
svg_file.write(svg_text)
|
||||
svg_file.close()
|
||||
|
||||
|
||||
def generate_less(data):
|
||||
print "Generate LESS"
|
||||
font_name = data['name']
|
||||
font_version = data['version']
|
||||
css_prefix = data['prefix']
|
||||
variables_file_path = os.path.join(LESS_FOLDER_PATH, '_ionicons-variables.less')
|
||||
icons_file_path = os.path.join(LESS_FOLDER_PATH, '_ionicons-icons.less')
|
||||
|
||||
d = []
|
||||
d.append('/*!');
|
||||
d.append('Ionicons, v%s' % (font_version) );
|
||||
d.append('Created by Ben Sperry for the Ionic Framework, http://ionicons.com/');
|
||||
d.append('https://twitter.com/benjsperry https://twitter.com/ionicframework');
|
||||
d.append('MIT License: https://github.com/driftyco/ionicons');
|
||||
d.append('*/');
|
||||
d.append('// Ionicons Variables')
|
||||
d.append('// --------------------------\n')
|
||||
d.append('@ionicons-font-path: "../fonts";')
|
||||
d.append('@ionicons-font-family: "%s";' % (font_name) )
|
||||
d.append('@ionicons-version: "%s";' % (font_version) )
|
||||
d.append('@ionicons-prefix: %s;' % (css_prefix) )
|
||||
d.append('')
|
||||
for ionicon in data['icons']:
|
||||
chr_code = ionicon['code'].replace('0x', '\\')
|
||||
d.append('@ionicon-var-%s: "%s";' % (ionicon['name'], chr_code) )
|
||||
f = open(variables_file_path, 'w')
|
||||
f.write( '\n'.join(d) )
|
||||
f.close()
|
||||
|
||||
d = []
|
||||
d.append('// Ionicons Icons')
|
||||
d.append('// --------------------------\n')
|
||||
|
||||
group = [ '.%s' % (data['name'].lower()) ]
|
||||
for ionicon in data['icons']:
|
||||
group.append('.@{ionicons-prefix}%s:before' % (ionicon['name']) )
|
||||
|
||||
d.append( ',\n'.join(group) )
|
||||
|
||||
d.append('{')
|
||||
d.append(' &:extend(.ion);')
|
||||
d.append('}')
|
||||
|
||||
for ionicon in data['icons']:
|
||||
chr_code = ionicon['code'].replace('0x', '\\')
|
||||
d.append('.@{ionicons-prefix}%s:before { content: @ionicon-var-%s; }' % (ionicon['name'], ionicon['name']) )
|
||||
|
||||
f = open(icons_file_path, 'w')
|
||||
f.write( '\n'.join(d) )
|
||||
f.close()
|
||||
|
||||
|
||||
def generate_scss(data):
|
||||
print "Generate SCSS"
|
||||
font_name = data['name']
|
||||
font_version = data['version']
|
||||
css_prefix = data['prefix']
|
||||
variables_file_path = os.path.join(SCSS_FOLDER_PATH, '_ionicons-variables.scss')
|
||||
icons_file_path = os.path.join(SCSS_FOLDER_PATH, '_ionicons-icons.scss')
|
||||
|
||||
d = []
|
||||
d.append('// Ionicons Variables')
|
||||
d.append('// --------------------------\n')
|
||||
d.append('$ionicons-font-path: "../fonts" !default;')
|
||||
d.append('$ionicons-font-family: "%s" !default;' % (font_name) )
|
||||
d.append('$ionicons-version: "%s" !default;' % (font_version) )
|
||||
d.append('$ionicons-prefix: %s !default;' % (css_prefix) )
|
||||
d.append('')
|
||||
for ionicon in data['icons']:
|
||||
chr_code = ionicon['code'].replace('0x', '\\')
|
||||
d.append('$ionicon-var-%s: "%s";' % (ionicon['name'], chr_code) )
|
||||
f = open(variables_file_path, 'w')
|
||||
f.write( '\n'.join(d) )
|
||||
f.close()
|
||||
|
||||
d = []
|
||||
d.append('// Ionicons Icons')
|
||||
d.append('// --------------------------\n')
|
||||
|
||||
group = [ '.%s' % (data['name'].lower()) ]
|
||||
for ionicon in data['icons']:
|
||||
group.append('.#{$ionicons-prefix}%s:before' % (ionicon['name']) )
|
||||
|
||||
d.append( ',\n'.join(group) )
|
||||
|
||||
d.append('{')
|
||||
d.append(' @extend .ion;')
|
||||
d.append('}')
|
||||
|
||||
for ionicon in data['icons']:
|
||||
chr_code = ionicon['code'].replace('0x', '\\')
|
||||
d.append('.#{$ionicons-prefix}%s:before { content: $ionicon-var-%s; }' % (ionicon['name'], ionicon['name']) )
|
||||
|
||||
f = open(icons_file_path, 'w')
|
||||
f.write( '\n'.join(d) )
|
||||
f.close()
|
||||
|
||||
generate_css_from_scss(data)
|
||||
|
||||
|
||||
def generate_css_from_scss(data):
|
||||
print "Generate CSS From SCSS"
|
||||
|
||||
scss_file_path = os.path.join(SCSS_FOLDER_PATH, 'ionicons.scss')
|
||||
css_file_path = os.path.join(CSS_FOLDER_PATH, 'ionicons.css')
|
||||
css_min_file_path = os.path.join(CSS_FOLDER_PATH, 'ionicons.min.css')
|
||||
|
||||
cmd = "sass %s %s --style compact" % (scss_file_path, css_file_path)
|
||||
call(cmd, shell=True)
|
||||
|
||||
print "Generate Minified CSS From SCSS"
|
||||
cmd = "sass %s %s --style compressed" % (scss_file_path, css_min_file_path)
|
||||
call(cmd, shell=True)
|
||||
|
||||
|
||||
def generate_cheatsheet(data):
|
||||
print "Generate Cheatsheet"
|
||||
|
||||
cheatsheet_file_path = os.path.join(ROOT_PATH, 'cheatsheet.html')
|
||||
template_path = os.path.join(BUILDER_PATH, 'cheatsheet', 'template.html')
|
||||
icon_row_path = os.path.join(BUILDER_PATH, 'cheatsheet', 'icon-row.html')
|
||||
|
||||
f = open(template_path, 'r')
|
||||
template_html = f.read()
|
||||
f.close()
|
||||
|
||||
f = open(icon_row_path, 'r')
|
||||
icon_row_template = f.read()
|
||||
f.close()
|
||||
|
||||
content = []
|
||||
|
||||
for ionicon in data['icons']:
|
||||
css_code = ionicon['code'].replace('0x', '\\')
|
||||
escaped_html_code = ionicon['code'].replace('0x', '&#x') + ';'
|
||||
html_code = ionicon['code'].replace('0x', '&#x') + ';'
|
||||
item_row = icon_row_template
|
||||
|
||||
item_row = item_row.replace('{{name}}', ionicon['name'])
|
||||
item_row = item_row.replace('{{prefix}}', data['prefix'])
|
||||
item_row = item_row.replace('{{css_code}}', css_code)
|
||||
item_row = item_row.replace('{{escaped_html_code}}', escaped_html_code)
|
||||
item_row = item_row.replace('{{html_code}}', html_code)
|
||||
|
||||
content.append(item_row)
|
||||
|
||||
template_html = template_html.replace("{{font_name}}", data["name"])
|
||||
template_html = template_html.replace("{{font_version}}", data["version"])
|
||||
template_html = template_html.replace("{{icon_count}}", str(len(data["icons"])) )
|
||||
template_html = template_html.replace("{{content}}", '\n'.join(content) )
|
||||
|
||||
f = open(cheatsheet_file_path, 'w')
|
||||
f.write(template_html)
|
||||
f.close()
|
||||
|
||||
|
||||
def generate_component_json(data):
|
||||
print "Generate component.json"
|
||||
d = {
|
||||
"name": data['name'],
|
||||
"repo": "driftyco/ionicons",
|
||||
"description": "The premium icon font for Ionic Framework.",
|
||||
"version": data['version'],
|
||||
"keywords": [],
|
||||
"dependencies": {},
|
||||
"development": {},
|
||||
"license": "MIT",
|
||||
"styles": [
|
||||
"css/%s.css" % (data['name'].lower())
|
||||
],
|
||||
"fonts": [
|
||||
"fonts/%s.eot" % (data['name'].lower()),
|
||||
"fonts/%s.svg" % (data['name'].lower()),
|
||||
"fonts/%s.ttf" % (data['name'].lower()),
|
||||
"fonts/%s.woff" % (data['name'].lower())
|
||||
]
|
||||
}
|
||||
txt = json.dumps(d, indent=4, separators=(',', ': '))
|
||||
|
||||
component_file_path = os.path.join(ROOT_PATH, 'component.json')
|
||||
f = open(component_file_path, 'w')
|
||||
f.write(txt)
|
||||
f.close()
|
||||
|
||||
|
||||
def generate_composer_json(data):
|
||||
print "Generate composer.json"
|
||||
d = {
|
||||
"name": "driftyco/ionicons",
|
||||
"description": "The premium icon font for Ionic Framework.",
|
||||
"keywords": [ "fonts", "icon font", "icons", "ionic", "web font"],
|
||||
"homepage": "http://ionicons.com/",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Ben Sperry",
|
||||
"email": "ben@drifty.com",
|
||||
"role": "Designer",
|
||||
"homepage": "https://twitter.com/benjsperry"
|
||||
},
|
||||
{
|
||||
"name": "Adam Bradley",
|
||||
"email": "adam@drifty.com",
|
||||
"role": "Developer",
|
||||
"homepage": "https://twitter.com/adamdbradley"
|
||||
},
|
||||
{
|
||||
"name": "Max Lynch",
|
||||
"email": "max@drifty.com",
|
||||
"role": "Developer",
|
||||
"homepage": "https://twitter.com/maxlynch"
|
||||
}
|
||||
],
|
||||
"extra": {},
|
||||
"license": [ "MIT" ]
|
||||
}
|
||||
txt = json.dumps(d, indent=4, separators=(',', ': '))
|
||||
|
||||
composer_file_path = os.path.join(ROOT_PATH, 'composer.json')
|
||||
f = open(composer_file_path, 'w')
|
||||
f.write(txt)
|
||||
f.close()
|
||||
|
||||
|
||||
def generate_bower_json(data):
|
||||
print "Generate bower.json"
|
||||
d = {
|
||||
"name": data['name'],
|
||||
"version": data['version'],
|
||||
"homepage": "https://github.com/driftyco/ionicons",
|
||||
"authors": [
|
||||
"Ben Sperry <ben@drifty.com>",
|
||||
"Adam Bradley <adam@drifty.com>",
|
||||
"Max Lynch <max@drifty.com>"
|
||||
],
|
||||
"description": "Ionicons - free and beautiful icons from the creators of Ionic Framework",
|
||||
"main": [
|
||||
"css/%s.css" % (data['name'].lower()),
|
||||
"fonts/*"
|
||||
],
|
||||
"keywords": [ "fonts", "icon font", "icons", "ionic", "web font"],
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"builder",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"test",
|
||||
"tests"
|
||||
]
|
||||
}
|
||||
txt = json.dumps(d, indent=4, separators=(',', ': '))
|
||||
|
||||
bower_file_path = os.path.join(ROOT_PATH, 'bower.json')
|
||||
f = open(bower_file_path, 'w')
|
||||
f.write(txt)
|
||||
f.close()
|
||||
|
||||
|
||||
def get_build_data():
|
||||
build_data_path = os.path.join(BUILDER_PATH, 'build_data.json')
|
||||
f = open(build_data_path, 'r')
|
||||
data = json.loads(f.read())
|
||||
f.close()
|
||||
return data
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -1,173 +0,0 @@
|
||||
# Font generation script from FontCustom
|
||||
# https://github.com/FontCustom/fontcustom/
|
||||
# http://fontcustom.com/
|
||||
|
||||
import fontforge
|
||||
import os
|
||||
import md5
|
||||
import subprocess
|
||||
import tempfile
|
||||
import json
|
||||
import copy
|
||||
|
||||
SCRIPT_PATH = os.path.dirname(os.path.abspath(__file__))
|
||||
INPUT_SVG_DIR = os.path.join(SCRIPT_PATH, '..', '..', 'src')
|
||||
OUTPUT_FONT_DIR = os.path.join(SCRIPT_PATH, '..', '..', 'fonts')
|
||||
MANIFEST_PATH = os.path.join(SCRIPT_PATH, '..', 'manifest.json')
|
||||
BUILD_DATA_PATH = os.path.join(SCRIPT_PATH, '..', 'build_data.json')
|
||||
AUTO_WIDTH = True
|
||||
KERNING = 15
|
||||
|
||||
cp = 0xf100
|
||||
m = md5.new()
|
||||
|
||||
f = fontforge.font()
|
||||
f.encoding = 'UnicodeFull'
|
||||
f.design_size = 16
|
||||
f.em = 512
|
||||
f.ascent = 448
|
||||
f.descent = 64
|
||||
|
||||
manifest_file = open(MANIFEST_PATH, 'r')
|
||||
manifest_data = json.loads(manifest_file.read())
|
||||
manifest_file.close()
|
||||
print "Load Manifest, Icons: %s" % ( len(manifest_data['icons']) )
|
||||
|
||||
build_data = copy.deepcopy(manifest_data)
|
||||
build_data['icons'] = []
|
||||
|
||||
font_name = manifest_data['name']
|
||||
m.update(font_name + ';')
|
||||
m.update(manifest_data['prefix'] + ';')
|
||||
|
||||
for dirname, dirnames, filenames in os.walk(INPUT_SVG_DIR):
|
||||
for filename in filenames:
|
||||
name, ext = os.path.splitext(filename)
|
||||
filePath = os.path.join(dirname, filename)
|
||||
size = os.path.getsize(filePath)
|
||||
|
||||
if ext in ['.svg', '.eps']:
|
||||
|
||||
# see if this file is already in the manifest
|
||||
chr_code = None
|
||||
for ionicon in manifest_data['icons']:
|
||||
if ionicon['name'] == name:
|
||||
chr_code = ionicon['code']
|
||||
break
|
||||
|
||||
if chr_code is None:
|
||||
# this is a new src icon
|
||||
print 'New Icon: \n - %s' % (name)
|
||||
|
||||
while True:
|
||||
chr_code = '0x%x' % (cp)
|
||||
already_exists = False
|
||||
for ionicon in manifest_data['icons']:
|
||||
if ionicon.get('code') == chr_code:
|
||||
already_exists = True
|
||||
cp += 1
|
||||
chr_code = '0x%x' % (cp)
|
||||
continue
|
||||
if not already_exists:
|
||||
break
|
||||
|
||||
print ' - %s' % chr_code
|
||||
manifest_data['icons'].append({
|
||||
'name': name,
|
||||
'code': chr_code
|
||||
})
|
||||
|
||||
build_data['icons'].append({
|
||||
'name': name,
|
||||
'code': chr_code
|
||||
})
|
||||
|
||||
if ext in ['.svg']:
|
||||
# hack removal of <switch> </switch> tags
|
||||
svgfile = open(filePath, 'r+')
|
||||
tmpsvgfile = tempfile.NamedTemporaryFile(suffix=ext, delete=False)
|
||||
svgtext = svgfile.read()
|
||||
svgfile.seek(0)
|
||||
|
||||
# replace the <switch> </switch> tags with 'nothing'
|
||||
svgtext = svgtext.replace('<switch>', '')
|
||||
svgtext = svgtext.replace('</switch>', '')
|
||||
|
||||
tmpsvgfile.file.write(svgtext)
|
||||
|
||||
svgfile.close()
|
||||
tmpsvgfile.file.close()
|
||||
|
||||
filePath = tmpsvgfile.name
|
||||
# end hack
|
||||
|
||||
m.update(name + str(size) + ';')
|
||||
glyph = f.createChar( int(chr_code, 16) )
|
||||
glyph.importOutlines(filePath)
|
||||
|
||||
# if we created a temporary file, let's clean it up
|
||||
if tmpsvgfile:
|
||||
os.unlink(tmpsvgfile.name)
|
||||
|
||||
# set glyph size explicitly or automatically depending on autowidth
|
||||
if AUTO_WIDTH:
|
||||
glyph.left_side_bearing = glyph.right_side_bearing = 0
|
||||
glyph.round()
|
||||
|
||||
# resize glyphs if autowidth is enabled
|
||||
if AUTO_WIDTH:
|
||||
f.autoWidth(0, 0, 512)
|
||||
|
||||
fontfile = '%s/ionicons' % (OUTPUT_FONT_DIR)
|
||||
|
||||
build_hash = m.hexdigest()
|
||||
|
||||
if build_hash == manifest_data.get('build_hash'):
|
||||
print "Source files unchanged, did not rebuild fonts"
|
||||
|
||||
else:
|
||||
manifest_data['build_hash'] = build_hash
|
||||
|
||||
f.fontname = font_name
|
||||
f.familyname = font_name
|
||||
f.fullname = font_name
|
||||
f.generate(fontfile + '.ttf')
|
||||
f.generate(fontfile + '.svg')
|
||||
|
||||
# Fix SVG header for webkit
|
||||
# from: https://github.com/fontello/font-builder/blob/master/bin/fontconvert.py
|
||||
svgfile = open(fontfile + '.svg', 'r+')
|
||||
svgtext = svgfile.read()
|
||||
svgfile.seek(0)
|
||||
svgfile.write(svgtext.replace('''<svg>''', '''<svg xmlns="http://www.w3.org/2000/svg">'''))
|
||||
svgfile.close()
|
||||
|
||||
scriptPath = os.path.dirname(os.path.realpath(__file__))
|
||||
try:
|
||||
subprocess.Popen([scriptPath + '/sfnt2woff', fontfile + '.ttf'], stdout=subprocess.PIPE)
|
||||
except OSError:
|
||||
# If the local version of sfnt2woff fails (i.e., on Linux), try to use the
|
||||
# global version. This allows us to avoid forcing OS X users to compile
|
||||
# sfnt2woff from source, simplifying install.
|
||||
subprocess.call(['sfnt2woff', fontfile + '.ttf'])
|
||||
|
||||
# eotlitetool.py script to generate IE7-compatible .eot fonts
|
||||
subprocess.call('python ' + scriptPath + '/eotlitetool.py ' + fontfile + '.ttf -o ' + fontfile + '.eot', shell=True)
|
||||
subprocess.call('mv ' + fontfile + '.eotlite ' + fontfile + '.eot', shell=True)
|
||||
|
||||
# Hint the TTF file
|
||||
subprocess.call('ttfautohint -s -f -n ' + fontfile + '.ttf ' + fontfile + '-hinted.ttf > /dev/null 2>&1 && mv ' + fontfile + '-hinted.ttf ' + fontfile + '.ttf', shell=True)
|
||||
|
||||
manifest_data['icons'] = sorted(manifest_data['icons'], key=lambda k: k['name'])
|
||||
build_data['icons'] = sorted(build_data['icons'], key=lambda k: k['name'])
|
||||
|
||||
print "Save Manifest, Icons: %s" % ( len(manifest_data['icons']) )
|
||||
f = open(MANIFEST_PATH, 'w')
|
||||
f.write( json.dumps(manifest_data, indent=2, separators=(',', ': ')) )
|
||||
f.close()
|
||||
|
||||
print "Save Build, Icons: %s" % ( len(build_data['icons']) )
|
||||
f = open(BUILD_DATA_PATH, 'w')
|
||||
f.write( json.dumps(build_data, indent=2, separators=(',', ': ')) )
|
||||
f.close()
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
{
|
||||
"repo": "driftyco/ionicons",
|
||||
"development": {},
|
||||
"version": "2.0.1",
|
||||
"styles": [
|
||||
"css/ionicons.css"
|
||||
],
|
||||
"name": "Ionicons",
|
||||
"dependencies": {},
|
||||
"keywords": [],
|
||||
"license": "MIT",
|
||||
"fonts": [
|
||||
"fonts/ionicons.eot",
|
||||
"fonts/ionicons.svg",
|
||||
"fonts/ionicons.ttf",
|
||||
"fonts/ionicons.woff"
|
||||
],
|
||||
"description": "The premium icon font for Ionic Framework."
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
{
|
||||
"name": "driftyco/ionicons",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"extra": {},
|
||||
"authors": [
|
||||
{
|
||||
"homepage": "https://twitter.com/benjsperry",
|
||||
"role": "Designer",
|
||||
"name": "Ben Sperry",
|
||||
"email": "ben@drifty.com"
|
||||
},
|
||||
{
|
||||
"homepage": "https://twitter.com/adamdbradley",
|
||||
"role": "Developer",
|
||||
"name": "Adam Bradley",
|
||||
"email": "adam@drifty.com"
|
||||
},
|
||||
{
|
||||
"homepage": "https://twitter.com/maxlynch",
|
||||
"role": "Developer",
|
||||
"name": "Max Lynch",
|
||||
"email": "max@drifty.com"
|
||||
}
|
||||
],
|
||||
"keywords": [
|
||||
"fonts",
|
||||
"icon font",
|
||||
"icons",
|
||||
"ionic",
|
||||
"web font"
|
||||
],
|
||||
"homepage": "http://ionicons.com/",
|
||||
"description": "The premium icon font for Ionic Framework."
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
ionicons.com
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 5.3 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
@@ -0,0 +1 @@
|
||||
!function(e,t,r,s,n,i,o,c,a,u,l,d,p,h){for(l=e.DocsSite=e.DocsSite||{},(d=t.createElement("style")).innerHTML=a+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),p=t.head.querySelector("meta[charset]"),t.head.insertBefore(d,p?p.nextSibling:t.head.firstChild),function(e,t,r){(e["s-apps"]=e["s-apps"]||[]).push("DocsSite"),r.componentOnReady||(r.componentOnReady=function(){var t=this;function r(r){if(t.nodeName.indexOf("-")>0){for(var s=e["s-apps"],n=0,i=0;i<s.length;i++)if(e[s[i]].componentOnReady){if(e[s[i]].componentOnReady(t,r))return;n++}if(n<s.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,r])}r(null)}return e.Promise?new e.Promise(r):{then:r}})}(e,0,u),n=n||l.resourcesUrl,d=(p=t.querySelectorAll("script")).length-1;d>=0&&!(h=p[d]).src&&!h.hasAttribute("data-resources-url");d--);p=h.getAttribute("data-resources-url"),!n&&p&&(n=p),!n&&h.src&&(n=(p=h.src.split("/").slice(0,-1)).join("/")+(p.length?"/":"")+"docssite/"),d=t.createElement("script"),function(e,t,r,s){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=n+"docssite.ja5mlmqh.js":(d.src=n+"docssite.op5b5le7.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",n),d.setAttribute("data-namespace","docssite"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,"footer-bar,header-bar,icon-list,icon-search,ionicons-site,landing-page,notfound-page,stencil-route,stencil-route-link,stencil-route-switch,stencil-router,toast-bar,usage-page",HTMLElement.prototype);
|
||||
@@ -0,0 +1 @@
|
||||
const e=window.DocsSite.h;class n{render(){return e("main",null,e("div",{class:"container"},e("h1",null,"Woops! We can't find the page your looking for."),e("p",null,"Head on back to the ",e("stencil-route-link",{url:"/",class:"block"},"Icons page"),".")),e("footer-bar",null))}static get is(){return"notfound-page"}static get style(){return"notfound-page{text-align:center;height:100%}notfound-page h1{max-width:500px}notfound-page a{font-weight:600}"}}export{n as NotfoundPage};
|
||||
@@ -0,0 +1 @@
|
||||
DocsSite.loadBundle("8j0j37e6",["exports"],function(e){var n=window.DocsSite.h,o=function(){function e(){}return e.prototype.render=function(){return n("main",null,n("div",{class:"container"},n("h1",null,"Woops! We can't find the page your looking for."),n("p",null,"Head on back to the ",n("stencil-route-link",{url:"/",class:"block"},"Icons page"),".")),n("footer-bar",null))},Object.defineProperty(e,"is",{get:function(){return"notfound-page"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"notfound-page{text-align:center;height:100%}notfound-page h1{max-width:500px}notfound-page a{font-weight:600}"},enumerable:!0,configurable:!0}),e}();e.NotfoundPage=o,Object.defineProperty(e,"__esModule",{value:!0})});
|
||||
@@ -0,0 +1 @@
|
||||
const e=window.DocsSite.h;class n{render(){return e("main",null,e("div",{class:"container"},e("h1",null,"Woops! We can't find the page your looking for."),e("p",null,"Head on back to the ",e("stencil-route-link",{url:"/",class:"block"},"Icons page"),".")),e("footer-bar",null))}static get is(){return"notfound-page"}static get style(){return"notfound-page{text-align:center;height:100%}notfound-page h1{max-width:500px}notfound-page a{font-weight:600}"}}export{n as NotfoundPage};
|
||||
@@ -0,0 +1 @@
|
||||
DocsSite.loadBundle("8j0j37e6",["exports"],function(e){var n=window.DocsSite.h,o=function(){function e(){}return e.prototype.render=function(){return n("main",null,n("div",{class:"container"},n("h1",null,"Woops! We can't find the page your looking for."),n("p",null,"Head on back to the ",n("stencil-route-link",{url:"/",class:"block"},"Icons page"),".")),n("footer-bar",null))},Object.defineProperty(e,"is",{get:function(){return"notfound-page"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"notfound-page{text-align:center;height:100%}notfound-page h1{max-width:500px}notfound-page a{font-weight:600}"},enumerable:!0,configurable:!0}),e}();e.NotfoundPage=o,Object.defineProperty(e,"__esModule",{value:!0})});
|
||||
@@ -0,0 +1 @@
|
||||
DocsSite.loadBundle("array.js",["exports"],function(r){window,r.applyPolyfill=function(r,e){var t,n,o;Array.prototype.find||Object.defineProperty(Array.prototype,"find",{writable:!0,configurable:!0,value:function(r,e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof r)throw new TypeError("predicate must be a function");for(var o=0;o<n;){var i=t[o];if(r.call(e,i,o,t))return i;o++}}}),Array.from||(Array.from=(t=Object.prototype.toString,n=function(r){return"function"==typeof r||"[object Function]"===t.call(r)},o=Math.pow(2,53)-1,function(r){var e=Object(r);if(null==r)throw new TypeError("Array.from requires an array-like object - not null or undefined");var t,i=1<arguments.length?arguments[1]:void 0;if(void 0!==i){if(!n(i))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(t=arguments[2])}var a=Number(e.length);a=isNaN(a)?0:0!==a&&isFinite(a)?(0<a?1:-1)*Math.floor(Math.abs(a)):a,a=Math.min(Math.max(a,0),o);for(var l,f=n(this)?Object(new this(a)):Array(a),u=0;u<a;)l=e[u],f[u]=i?void 0===t?i(l,u):i.call(t,l,u):l,u+=1;return f.length=a,f})),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{writable:!0,configurable:!0,value:function(r,e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if(0===n)return!1;for(var o,i,a=0|e,l=Math.max(0<=a?a:n-Math.abs(a),0);l<n;){if((o=t[l])===(i=r)||"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))return!0;l++}return!1}})},Object.defineProperty(r,"__esModule",{value:!0})});
|
||||
@@ -0,0 +1 @@
|
||||
function r(r,t){var e,n,o;Array.prototype.find||Object.defineProperty(Array.prototype,"find",{writable:!0,configurable:!0,value:function(r,t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof r)throw new TypeError("predicate must be a function");for(var o=0;o<n;){var i=e[o];if(r.call(t,i,o,e))return i;o++}}}),Array.from||(Array.from=(e=Object.prototype.toString,n=function(r){return"function"==typeof r||"[object Function]"===e.call(r)},o=Math.pow(2,53)-1,function(r){var t=Object(r);if(null==r)throw new TypeError("Array.from requires an array-like object - not null or undefined");var e,i=1<arguments.length?arguments[1]:void 0;if(void 0!==i){if(!n(i))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(e=arguments[2])}var a=Number(t.length);a=isNaN(a)?0:0!==a&&isFinite(a)?(0<a?1:-1)*Math.floor(Math.abs(a)):a,a=Math.min(Math.max(a,0),o);for(var f,u=n(this)?Object(new this(a)):Array(a),l=0;l<a;)f=t[l],u[l]=i?void 0===e?i(f,l):i.call(e,f,l):f,l+=1;return u.length=a,u})),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{writable:!0,configurable:!0,value:function(r,t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if(0===n)return!1;for(var o,i,a=0|t,f=Math.max(0<=a?a:n-Math.abs(a),0);f<n;){if((o=e[f])===(i=r)||"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))return!0;f++}return!1}})}window;export{r as applyPolyfill};
|
||||
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"namespace": "DocsSite",
|
||||
"fsNamespace": "docssite",
|
||||
"loader": "../docssite.js",
|
||||
"core": "docssite.op5b5le7.js",
|
||||
"corePolyfilled": "docssite.ja5mlmqh.js",
|
||||
"components": {
|
||||
"footer-bar": {
|
||||
"bundleIds": {
|
||||
"$": "mrv57at4"
|
||||
}
|
||||
},
|
||||
"header-bar": {
|
||||
"bundleIds": {
|
||||
"$": "yovl0p6l"
|
||||
}
|
||||
},
|
||||
"icon-list": {
|
||||
"bundleIds": {
|
||||
"$": "zdmwt86j"
|
||||
}
|
||||
},
|
||||
"icon-search": {
|
||||
"bundleIds": {
|
||||
"$": "pnozjohf"
|
||||
}
|
||||
},
|
||||
"ionicons-site": {
|
||||
"bundleIds": {
|
||||
"$": "yovl0p6l"
|
||||
}
|
||||
},
|
||||
"landing-page": {
|
||||
"bundleIds": {
|
||||
"$": "zdmwt86j"
|
||||
}
|
||||
},
|
||||
"notfound-page": {
|
||||
"bundleIds": {
|
||||
"$": "8j0j37e6"
|
||||
}
|
||||
},
|
||||
"stencil-route": {
|
||||
"bundleIds": {
|
||||
"$": "yovl0p6l"
|
||||
}
|
||||
},
|
||||
"stencil-route-link": {
|
||||
"bundleIds": {
|
||||
"$": "iyqr8fqc"
|
||||
}
|
||||
},
|
||||
"stencil-route-switch": {
|
||||
"bundleIds": {
|
||||
"$": "yovl0p6l"
|
||||
}
|
||||
},
|
||||
"stencil-router": {
|
||||
"bundleIds": {
|
||||
"$": "yovl0p6l"
|
||||
}
|
||||
},
|
||||
"toast-bar": {
|
||||
"bundleIds": {
|
||||
"$": "zdmwt86j"
|
||||
}
|
||||
},
|
||||
"usage-page": {
|
||||
"bundleIds": {
|
||||
"$": "k89j5zyg"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
const t=window.DocsSite.h;import{a,v as i,c as s}from"./chunk-1ec105a7.js";class r{constructor(){this.unsubscribe=(()=>{}),this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}componentWillLoad(){this.computeMatch()}computeMatch(){this.location&&(this.match=a(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))}handleClick(t){var a,s;if(!i(t)&&this.history&&this.url&&this.root)return t.preventDefault(),this.history.push((s=this.root,"/"==(a=this.url).charAt(0)&&"/"==s.charAt(s.length-1)?s.slice(0,s.length-1)+a:s+a))}render(){let a={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(a.class[this.anchorClass]=!0),"a"===this.custom&&(a=Object.assign({},a,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),t(this.custom,Object.assign({},a),t("slot",null))}static get is(){return"stencil-route-link"}static get properties(){return{activeClass:{type:String,attr:"active-class"},anchorClass:{type:String,attr:"anchor-class"},anchorId:{type:String,attr:"anchor-id"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},ariaHaspopup:{type:String,attr:"aria-haspopup"},ariaLabel:{type:String,attr:"aria-label"},ariaPosinset:{type:String,attr:"aria-posinset"},ariaSetsize:{type:Number,attr:"aria-setsize"},custom:{type:String,attr:"custom"},el:{elementRef:!0},exact:{type:Boolean,attr:"exact"},history:{type:"Any",attr:"history"},location:{type:"Any",attr:"location",watchCallbacks:["computeMatch"]},match:{state:!0},root:{type:String,attr:"root"},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}}}s.injectProps(r,["history","location","root"]);export{r as StencilRouteLink};
|
||||
@@ -0,0 +1 @@
|
||||
DocsSite.loadBundle("iyqr8fqc",["exports","./chunk-4e065e0c.js"],function(t,a){var i=window.DocsSite.h,e=function(){function t(){this.unsubscribe=function(){},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}return t.prototype.componentWillLoad=function(){this.computeMatch()},t.prototype.computeMatch=function(){this.location&&(this.match=a.matchPath(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))},t.prototype.handleClick=function(t){var i,e;if(!a.isModifiedEvent(t)&&this.history&&this.url&&this.root)return t.preventDefault(),this.history.push((e=this.root,"/"==(i=this.url).charAt(0)&&"/"==e.charAt(e.length-1)?e.slice(0,e.length-1)+i:e+i))},t.prototype.render=function(){var t,a={class:(t={},t[this.activeClass]=null!==this.match,t),onClick:this.handleClick.bind(this)};return this.anchorClass&&(a.class[this.anchorClass]=!0),"a"===this.custom&&(a=Object.assign({},a,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),i(this.custom,Object.assign({},a),i("slot",null))},Object.defineProperty(t,"is",{get:function(){return"stencil-route-link"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{activeClass:{type:String,attr:"active-class"},anchorClass:{type:String,attr:"anchor-class"},anchorId:{type:String,attr:"anchor-id"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},ariaHaspopup:{type:String,attr:"aria-haspopup"},ariaLabel:{type:String,attr:"aria-label"},ariaPosinset:{type:String,attr:"aria-posinset"},ariaSetsize:{type:Number,attr:"aria-setsize"},custom:{type:String,attr:"custom"},el:{elementRef:!0},exact:{type:Boolean,attr:"exact"},history:{type:"Any",attr:"history"},location:{type:"Any",attr:"location",watchCallbacks:["computeMatch"]},match:{state:!0},root:{type:String,attr:"root"},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}},enumerable:!0,configurable:!0}),t}();a.ActiveRouter.injectProps(e,["history","location","root"]),t.StencilRouteLink=e,Object.defineProperty(t,"__esModule",{value:!0})});
|
||||
@@ -0,0 +1 @@
|
||||
const t=window.DocsSite.h;import{a,v as i,c as s}from"./chunk-1ec105a7.js";class r{constructor(){this.unsubscribe=(()=>{}),this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}componentWillLoad(){this.computeMatch()}computeMatch(){this.location&&(this.match=a(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))}handleClick(t){var a,s;if(!i(t)&&this.history&&this.url&&this.root)return t.preventDefault(),this.history.push((s=this.root,"/"==(a=this.url).charAt(0)&&"/"==s.charAt(s.length-1)?s.slice(0,s.length-1)+a:s+a))}render(){let a={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(a.class[this.anchorClass]=!0),"a"===this.custom&&(a=Object.assign({},a,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),t(this.custom,Object.assign({},a),t("slot",null))}static get is(){return"stencil-route-link"}static get properties(){return{activeClass:{type:String,attr:"active-class"},anchorClass:{type:String,attr:"anchor-class"},anchorId:{type:String,attr:"anchor-id"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},ariaHaspopup:{type:String,attr:"aria-haspopup"},ariaLabel:{type:String,attr:"aria-label"},ariaPosinset:{type:String,attr:"aria-posinset"},ariaSetsize:{type:Number,attr:"aria-setsize"},custom:{type:String,attr:"custom"},el:{elementRef:!0},exact:{type:Boolean,attr:"exact"},history:{type:"Any",attr:"history"},location:{type:"Any",attr:"location",watchCallbacks:["computeMatch"]},match:{state:!0},root:{type:String,attr:"root"},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}}}s.injectProps(r,["history","location","root"]);export{r as StencilRouteLink};
|
||||
@@ -0,0 +1 @@
|
||||
DocsSite.loadBundle("iyqr8fqc",["exports","./chunk-4e065e0c.js"],function(t,a){var i=window.DocsSite.h,e=function(){function t(){this.unsubscribe=function(){},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}return t.prototype.componentWillLoad=function(){this.computeMatch()},t.prototype.computeMatch=function(){this.location&&(this.match=a.matchPath(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))},t.prototype.handleClick=function(t){var i,e;if(!a.isModifiedEvent(t)&&this.history&&this.url&&this.root)return t.preventDefault(),this.history.push((e=this.root,"/"==(i=this.url).charAt(0)&&"/"==e.charAt(e.length-1)?e.slice(0,e.length-1)+i:e+i))},t.prototype.render=function(){var t,a={class:(t={},t[this.activeClass]=null!==this.match,t),onClick:this.handleClick.bind(this)};return this.anchorClass&&(a.class[this.anchorClass]=!0),"a"===this.custom&&(a=Object.assign({},a,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),i(this.custom,Object.assign({},a),i("slot",null))},Object.defineProperty(t,"is",{get:function(){return"stencil-route-link"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{activeClass:{type:String,attr:"active-class"},anchorClass:{type:String,attr:"anchor-class"},anchorId:{type:String,attr:"anchor-id"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},ariaHaspopup:{type:String,attr:"aria-haspopup"},ariaLabel:{type:String,attr:"aria-label"},ariaPosinset:{type:String,attr:"aria-posinset"},ariaSetsize:{type:Number,attr:"aria-setsize"},custom:{type:String,attr:"custom"},el:{elementRef:!0},exact:{type:Boolean,attr:"exact"},history:{type:"Any",attr:"history"},location:{type:"Any",attr:"location",watchCallbacks:["computeMatch"]},match:{state:!0},root:{type:String,attr:"root"},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}},enumerable:!0,configurable:!0}),t}();a.ActiveRouter.injectProps(e,["history","location","root"]),t.StencilRouteLink=e,Object.defineProperty(t,"__esModule",{value:!0})});
|
||||
@@ -0,0 +1 @@
|
||||
const e=window.DocsSite.h;class o{render(){return e("footer",null,e("div",{class:"container"},e("div",{class:"footer__open-source"},e("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},e("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),e("p",null,"Released under ",e("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),e("div",{class:"footer-menu"},e("a",{href:"cheatsheet.html"},"Cheatsheet"),e("a",{href:"/v1"},"v1"),e("a",{href:"/v2"},"v2"),e("a",{href:"https://ionicframework.com/docs/ionicons/"},"v3"),e("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))}static get is(){return"footer-bar"}static get style(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"}}export{o as FooterBar};
|
||||
@@ -0,0 +1 @@
|
||||
DocsSite.loadBundle("mrv57at4",["exports"],function(e){var o=window.DocsSite.h,r=function(){function e(){}return e.prototype.render=function(){return o("footer",null,o("div",{class:"container"},o("div",{class:"footer__open-source"},o("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},o("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),o("p",null,"Released under ",o("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),o("div",{class:"footer-menu"},o("a",{href:"cheatsheet.html"},"Cheatsheet"),o("a",{href:"/v1"},"v1"),o("a",{href:"/v2"},"v2"),o("a",{href:"https://ionicframework.com/docs/ionicons/"},"v3"),o("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))},Object.defineProperty(e,"is",{get:function(){return"footer-bar"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"},enumerable:!0,configurable:!0}),e}();e.FooterBar=r,Object.defineProperty(e,"__esModule",{value:!0})});
|
||||
@@ -0,0 +1 @@
|
||||
const e=window.DocsSite.h;class o{render(){return e("footer",null,e("div",{class:"container"},e("div",{class:"footer__open-source"},e("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},e("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),e("p",null,"Released under ",e("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),e("div",{class:"footer-menu"},e("a",{href:"cheatsheet.html"},"Cheatsheet"),e("a",{href:"/v1"},"v1"),e("a",{href:"/v2"},"v2"),e("a",{href:"https://ionicframework.com/docs/ionicons/"},"v3"),e("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))}static get is(){return"footer-bar"}static get style(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"}}export{o as FooterBar};
|
||||
@@ -0,0 +1 @@
|
||||
DocsSite.loadBundle("mrv57at4",["exports"],function(e){var o=window.DocsSite.h,r=function(){function e(){}return e.prototype.render=function(){return o("footer",null,o("div",{class:"container"},o("div",{class:"footer__open-source"},o("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},o("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),o("p",null,"Released under ",o("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),o("div",{class:"footer-menu"},o("a",{href:"cheatsheet.html"},"Cheatsheet"),o("a",{href:"/v1"},"v1"),o("a",{href:"/v2"},"v2"),o("a",{href:"https://ionicframework.com/docs/ionicons/"},"v3"),o("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))},Object.defineProperty(e,"is",{get:function(){return"footer-bar"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"},enumerable:!0,configurable:!0}),e}();e.FooterBar=r,Object.defineProperty(e,"__esModule",{value:!0})});
|
||||
@@ -0,0 +1 @@
|
||||
DocsSite.loadBundle("object.js",["exports"],function(e){window,e.applyPolyfill=function(e,n){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(t[l]=o[l])}return t},writable:!0,configurable:!0}),Object.entries||(Object.entries=function(e){for(var n=Object.keys(e),t=n.length,r=Array(t);t--;)r[t]=[n[t],e[n[t]]];return r})},Object.defineProperty(e,"__esModule",{value:!0})});
|
||||
@@ -0,0 +1 @@
|
||||
function e(e,n){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(t[c]=o[c])}return t},writable:!0,configurable:!0}),Object.entries||(Object.entries=function(e){for(var n=Object.keys(e),t=n.length,r=Array(t);t--;)r[t]=[n[t],e[n[t]]];return r})}window;export{e as applyPolyfill};
|
||||
@@ -0,0 +1 @@
|
||||
const e=window.DocsSite.h;class t{constructor(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}watchQuery(){this.showClearCtrl=this.query.length>0}searchListener(e){27!==e.keyCode?this.hasSearched.emit(e.target.value):this.handleClear()}handleClear(){this.hasSearched.emit("")}componentWillLoad(){this.watchQuery()}render(){return e("div",{class:`search-input search-input--${this.size}`},e("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),e("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))}static get is(){return"icon-search"}static get properties(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}}static get events(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]}static get listeners(){return[{name:"keyup",method:"searchListener"}]}static get style(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px;padding-left:30px;padding-right:30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px;padding-left:50px;padding-right:50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"}}export{t as IconSearch};
|
||||
@@ -0,0 +1 @@
|
||||
DocsSite.loadBundle("pnozjohf",["exports"],function(e){var t=window.DocsSite.h,r=function(){function e(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}return e.prototype.watchQuery=function(){this.showClearCtrl=this.query.length>0},e.prototype.searchListener=function(e){27!==e.keyCode?this.hasSearched.emit(e.target.value):this.handleClear()},e.prototype.handleClear=function(){this.hasSearched.emit("")},e.prototype.componentWillLoad=function(){this.watchQuery()},e.prototype.render=function(){return t("div",{class:"search-input search-input--"+this.size},t("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),t("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))},Object.defineProperty(e,"is",{get:function(){return"icon-search"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"events",{get:function(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"listeners",{get:function(){return[{name:"keyup",method:"searchListener"}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px;padding-left:30px;padding-right:30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px;padding-left:50px;padding-right:50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"},enumerable:!0,configurable:!0}),e}();e.IconSearch=r,Object.defineProperty(e,"__esModule",{value:!0})});
|
||||
@@ -0,0 +1 @@
|
||||
const e=window.DocsSite.h;class t{constructor(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}watchQuery(){this.showClearCtrl=this.query.length>0}searchListener(e){27!==e.keyCode?this.hasSearched.emit(e.target.value):this.handleClear()}handleClear(){this.hasSearched.emit("")}componentWillLoad(){this.watchQuery()}render(){return e("div",{class:`search-input search-input--${this.size}`},e("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),e("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))}static get is(){return"icon-search"}static get properties(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}}static get events(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]}static get listeners(){return[{name:"keyup",method:"searchListener"}]}static get style(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px;padding-left:30px;padding-right:30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px;padding-left:50px;padding-right:50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"}}export{t as IconSearch};
|
||||
@@ -0,0 +1 @@
|
||||
DocsSite.loadBundle("pnozjohf",["exports"],function(e){var t=window.DocsSite.h,r=function(){function e(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}return e.prototype.watchQuery=function(){this.showClearCtrl=this.query.length>0},e.prototype.searchListener=function(e){27!==e.keyCode?this.hasSearched.emit(e.target.value):this.handleClear()},e.prototype.handleClear=function(){this.hasSearched.emit("")},e.prototype.componentWillLoad=function(){this.watchQuery()},e.prototype.render=function(){return t("div",{class:"search-input search-input--"+this.size},t("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),t("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))},Object.defineProperty(e,"is",{get:function(){return"icon-search"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"events",{get:function(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"listeners",{get:function(){return[{name:"keyup",method:"searchListener"}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px;padding-left:30px;padding-right:30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px;padding-left:50px;padding-right:50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"},enumerable:!0,configurable:!0}),e}();e.IconSearch=r,Object.defineProperty(e,"__esModule",{value:!0})});
|
||||
@@ -0,0 +1 @@
|
||||
DocsSite.loadBundle("string.js",["exports"],function(t){window,t.applyPolyfill=function(t,e){String.prototype.endsWith||Object.defineProperty(String.prototype,"endsWith",{writable:!0,configurable:!0,value:function(t,e){return(void 0===e||e>this.length)&&(e=this.length),this.substring(e-t.length,e)===t}}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{writable:!0,configurable:!0,value:function(t,e){return this.substr(!e||0>e?0:+e,t.length)===t}})},Object.defineProperty(t,"__esModule",{value:!0})});
|
||||
@@ -0,0 +1 @@
|
||||
function t(t,e){String.prototype.endsWith||Object.defineProperty(String.prototype,"endsWith",{writable:!0,configurable:!0,value:function(t,e){return(void 0===e||e>this.length)&&(e=this.length),this.substring(e-t.length,e)===t}}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{writable:!0,configurable:!0,value:function(t,e){return this.substr(!e||0>e?0:+e,t.length)===t}})}window;export{t as applyPolyfill};
|
||||
@@ -0,0 +1 @@
|
||||
DocsSite.loadBundle("url.js",["exports"],function(e){window,e.applyPolyfill=function(e,t){var n,r,o,i,a,c,h;o="undefined"!=typeof global?global:void 0!==e?e:"undefined"!=typeof self?self:this,i=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),a=function(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t},c=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},h=function(e){return decodeURIComponent(e).replace(/\+/g," ")},"URLSearchParams"in o&&"a=1"===new URLSearchParams("?a=1").toString()||(n=function(e){if(Object.defineProperty(this,"_entries",{value:{}}),"string"==typeof e){if(""!==e)for(var t,r=(e=e.replace(/^\?/,"")).split("&"),o=0;o<r.length;o++)t=r[o].split("="),this.append(h(t[0]),t.length>1?h(t[1]):"")}else if(e instanceof n){var i=this;e.forEach(function(e,t){i.append(e,t)})}},(r=n.prototype).append=function(e,t){e in this._entries?this._entries[e].push(t.toString()):this._entries[e]=[t.toString()]},r.delete=function(e){delete this._entries[e]},r.get=function(e){return e in this._entries?this._entries[e][0]:null},r.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},r.has=function(e){return e in this._entries},r.set=function(e,t){this._entries[e]=[t.toString()]},r.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var o=0;o<n.length;o++)e.call(t,n[o],r,this)}},r.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),a(e)},r.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),a(e)},r.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),a(e)},i&&(r[Symbol.iterator]=r.entries),r.toString=function(){var e=[];return this.forEach(function(t,n){e.push(c(n)+"="+c(t))}),e.join("&")},o.URLSearchParams=n),function(n){if(function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(e){return!1}}()||function(){var r=n.URL,o=function(n,r){"string"!=typeof n&&(n=String(n));var o=t.implementation.createHTMLDocument("");if(e.doc=o,r){var i=o.createElement("base");i.href=r,o.head.appendChild(i)}var a=o.createElement("a");if(a.href=n,o.body.appendChild(a),a.href=a.href,":"===a.protocol||!/:/.test(a.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:a})},i=o.prototype;["hash","host","hostname","port","protocol","search"].forEach(function(e){!function(e){Object.defineProperty(i,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)}),Object.defineProperties(i,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(this._anchorElement.port!={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol]&&""!==this._anchorElement.port?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0},searchParams:{get:function(){var e=new URLSearchParams(this.search),t=this;return["append","delete","set"].forEach(function(n){var r=e[n];e[n]=function(){r.apply(e,arguments),t.search=e.toString()}}),e},enumerable:!0}}),o.createObjectURL=function(e){return r.createObjectURL.apply(r,arguments)},o.revokeObjectURL=function(e){return r.revokeObjectURL.apply(r,arguments)},n.URL=o}(),void 0!==n.location&&!("origin"in n.location)){var r=function(){return n.location.protocol+"//"+n.location.hostname+(n.location.port?":"+n.location.port:"")};try{Object.defineProperty(n.location,"origin",{get:r,enumerable:!0})}catch(e){setInterval(function(){n.location.origin=r()},100)}}}("undefined"!=typeof global?global:void 0!==e?e:"undefined"!=typeof self?self:this)},Object.defineProperty(e,"__esModule",{value:!0})});
|
||||
@@ -0,0 +1 @@
|
||||
function t(t,e){var n,r,o,i,a,c,h;o="undefined"!=typeof global?global:void 0!==t?t:"undefined"!=typeof self?self:this,i=function(){try{return!!Symbol.iterator}catch(t){return!1}}(),a=function(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i&&(e[Symbol.iterator]=function(){return e}),e},c=function(t){return encodeURIComponent(t).replace(/%20/g,"+")},h=function(t){return decodeURIComponent(t).replace(/\+/g," ")},"URLSearchParams"in o&&"a=1"===new URLSearchParams("?a=1").toString()||(n=function(t){if(Object.defineProperty(this,"_entries",{value:{}}),"string"==typeof t){if(""!==t)for(var e,r=(t=t.replace(/^\?/,"")).split("&"),o=0;o<r.length;o++)e=r[o].split("="),this.append(h(e[0]),e.length>1?h(e[1]):"")}else if(t instanceof n){var i=this;t.forEach(function(t,e){i.append(t,e)})}},(r=n.prototype).append=function(t,e){t in this._entries?this._entries[t].push(e.toString()):this._entries[t]=[e.toString()]},r.delete=function(t){delete this._entries[t]},r.get=function(t){return t in this._entries?this._entries[t][0]:null},r.getAll=function(t){return t in this._entries?this._entries[t].slice(0):[]},r.has=function(t){return t in this._entries},r.set=function(t,e){this._entries[t]=[e.toString()]},r.forEach=function(t,e){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var o=0;o<n.length;o++)t.call(e,n[o],r,this)}},r.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),a(t)},r.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),a(t)},r.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),a(t)},i&&(r[Symbol.iterator]=r.entries),r.toString=function(){var t=[];return this.forEach(function(e,n){t.push(c(n)+"="+c(e))}),t.join("&")},o.URLSearchParams=n),function(n){if(function(){try{var t=new URL("b","http://a");return t.pathname="c%20d","http://a/c%20d"===t.href&&t.searchParams}catch(t){return!1}}()||function(){var r=n.URL,o=function(n,r){"string"!=typeof n&&(n=String(n));var o=e.implementation.createHTMLDocument("");if(t.doc=o,r){var i=o.createElement("base");i.href=r,o.head.appendChild(i)}var a=o.createElement("a");if(a.href=n,o.body.appendChild(a),a.href=a.href,":"===a.protocol||!/:/.test(a.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:a})},i=o.prototype;["hash","host","hostname","port","protocol","search"].forEach(function(t){!function(t){Object.defineProperty(i,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}(t)}),Object.defineProperties(i,{toString:{get:function(){var t=this;return function(){return t.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(t){this._anchorElement.href=t},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(t){this._anchorElement.pathname=t},enumerable:!0},origin:{get:function(){return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(this._anchorElement.port!={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol]&&""!==this._anchorElement.port?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(t){},enumerable:!0},username:{get:function(){return""},set:function(t){},enumerable:!0},searchParams:{get:function(){var t=new URLSearchParams(this.search),e=this;return["append","delete","set"].forEach(function(n){var r=t[n];t[n]=function(){r.apply(t,arguments),e.search=t.toString()}}),t},enumerable:!0}}),o.createObjectURL=function(t){return r.createObjectURL.apply(r,arguments)},o.revokeObjectURL=function(t){return r.revokeObjectURL.apply(r,arguments)},n.URL=o}(),void 0!==n.location&&!("origin"in n.location)){var r=function(){return n.location.protocol+"//"+n.location.hostname+(n.location.port?":"+n.location.port:"")};try{Object.defineProperty(n.location,"origin",{get:r,enumerable:!0})}catch(t){setInterval(function(){n.location.origin=r()},100)}}}("undefined"!=typeof global?global:void 0!==t?t:"undefined"!=typeof self?self:this)}window;export{t as applyPolyfill};
|
||||