ember-source 4.0.0-beta.8 → 4.0.0-beta.9
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/CHANGELOG.md +14 -0
- package/build-metadata.json +3 -3
- package/dist/dependencies/@glimmer/manager.js +19 -98
- package/dist/dependencies/@glimmer/opcode-compiler.js +9 -146
- package/dist/dependencies/@glimmer/runtime.js +1 -55
- package/dist/dependencies/@glimmer/validator.js +19 -51
- package/dist/ember-template-compiler.js +292 -276
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +1 -1
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +3070 -5987
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/environment/index.js +0 -15
- package/dist/packages/@ember/-internals/glimmer/index.js +4816 -6761
- package/dist/packages/@ember/-internals/metal/index.js +4 -14
- package/dist/packages/@ember/-internals/routing/lib/services/routing.js +1 -1
- package/dist/packages/@ember/-internals/routing/lib/system/route.js +1 -41
- package/dist/packages/@ember/-internals/routing/lib/system/router.js +13 -47
- package/dist/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -43
- package/dist/packages/@ember/-internals/views/index.js +0 -1
- package/dist/packages/@ember/canary-features/index.js +0 -2
- package/dist/packages/@ember/component/index.js +1 -1
- package/dist/packages/@ember/deprecated-features/index.js +0 -1
- package/dist/packages/@ember/routing/index.js +1 -1
- package/dist/packages/ember/index.js +2 -48
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +276 -1046
- package/package.json +15 -15
- package/dist/packages/@ember/-internals/views/lib/mixins/text_support.js +0 -345
- package/dist/packages/@ember/component/checkbox.js +0 -17
- package/dist/packages/@ember/component/text-area.js +0 -17
- package/dist/packages/@ember/component/text-field.js +0 -17
- package/dist/packages/@ember/routing/link-component.js +0 -17
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
|
7
7
|
* @license Licensed under MIT license
|
|
8
8
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
|
9
|
-
* @version 4.0.0-beta.
|
|
9
|
+
* @version 4.0.0-beta.9
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/* eslint-disable no-var */
|
|
@@ -318,21 +318,6 @@ define("@ember/-internals/environment/index", ["exports"], function (_exports) {
|
|
|
318
318
|
@private
|
|
319
319
|
*/
|
|
320
320
|
_RERENDER_LOOP_LIMIT: 1000,
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
Allows disabling the implicit this property fallback deprecation. This could be useful
|
|
324
|
-
as a way to control the volume of deprecations that are issued by temporarily disabling
|
|
325
|
-
the implicit this fallback deprecations, which would allow the other deprecations to be more easily
|
|
326
|
-
identified in the console).
|
|
327
|
-
NOTE: The fallback behavior **will be removed** in Ember 4.0.0, disabling **_IS NOT_**
|
|
328
|
-
a viable strategy for handling this deprecation.
|
|
329
|
-
@property _DISABLE_PROPERTY_FALLBACK_DEPRECATION
|
|
330
|
-
@for EmberENV
|
|
331
|
-
@type boolean
|
|
332
|
-
@default false
|
|
333
|
-
@private
|
|
334
|
-
*/
|
|
335
|
-
_DISABLE_PROPERTY_FALLBACK_DEPRECATION: false,
|
|
336
321
|
EMBER_LOAD_HOOKS: {},
|
|
337
322
|
FEATURES: {}
|
|
338
323
|
};
|
|
@@ -1298,7 +1283,7 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
|
|
|
1298
1283
|
value: true
|
|
1299
1284
|
});
|
|
1300
1285
|
_exports.isEnabled = isEnabled;
|
|
1301
|
-
_exports.EMBER_ROUTING_ROUTER_SERVICE_REFRESH = _exports.EMBER_DYNAMIC_HELPERS_AND_MODIFIERS = _exports.EMBER_STRICT_MODE = _exports.
|
|
1286
|
+
_exports.EMBER_ROUTING_ROUTER_SERVICE_REFRESH = _exports.EMBER_DYNAMIC_HELPERS_AND_MODIFIERS = _exports.EMBER_STRICT_MODE = _exports.EMBER_GLIMMER_INVOKE_HELPER = _exports.EMBER_GLIMMER_HELPER_MANAGER = _exports.EMBER_NAMED_BLOCKS = _exports.EMBER_IMPROVED_INSTRUMENTATION = _exports.EMBER_LIBRARIES_ISREGISTERED = _exports.FEATURES = _exports.DEFAULT_FEATURES = void 0;
|
|
1302
1287
|
|
|
1303
1288
|
/**
|
|
1304
1289
|
Set `EmberENV.FEATURES` in your application's `config/environment.js` file
|
|
@@ -1316,7 +1301,6 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
|
|
|
1316
1301
|
EMBER_NAMED_BLOCKS: true,
|
|
1317
1302
|
EMBER_GLIMMER_HELPER_MANAGER: true,
|
|
1318
1303
|
EMBER_GLIMMER_INVOKE_HELPER: true,
|
|
1319
|
-
EMBER_MODERNIZED_BUILT_IN_COMPONENTS: true,
|
|
1320
1304
|
EMBER_STRICT_MODE: true,
|
|
1321
1305
|
EMBER_DYNAMIC_HELPERS_AND_MODIFIERS: true,
|
|
1322
1306
|
EMBER_ROUTING_ROUTER_SERVICE_REFRESH: false
|
|
@@ -1381,8 +1365,6 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
|
|
|
1381
1365
|
_exports.EMBER_GLIMMER_HELPER_MANAGER = EMBER_GLIMMER_HELPER_MANAGER;
|
|
1382
1366
|
var EMBER_GLIMMER_INVOKE_HELPER = featureValue(FEATURES.EMBER_GLIMMER_INVOKE_HELPER);
|
|
1383
1367
|
_exports.EMBER_GLIMMER_INVOKE_HELPER = EMBER_GLIMMER_INVOKE_HELPER;
|
|
1384
|
-
var EMBER_MODERNIZED_BUILT_IN_COMPONENTS = featureValue(FEATURES.EMBER_MODERNIZED_BUILT_IN_COMPONENTS);
|
|
1385
|
-
_exports.EMBER_MODERNIZED_BUILT_IN_COMPONENTS = EMBER_MODERNIZED_BUILT_IN_COMPONENTS;
|
|
1386
1368
|
var EMBER_STRICT_MODE = featureValue(FEATURES.EMBER_STRICT_MODE);
|
|
1387
1369
|
_exports.EMBER_STRICT_MODE = EMBER_STRICT_MODE;
|
|
1388
1370
|
var EMBER_DYNAMIC_HELPERS_AND_MODIFIERS = featureValue(FEATURES.EMBER_DYNAMIC_HELPERS_AND_MODIFIERS);
|
|
@@ -2133,13 +2115,11 @@ define("@ember/deprecated-features/index", ["exports"], function (_exports) {
|
|
|
2133
2115
|
Object.defineProperty(_exports, "__esModule", {
|
|
2134
2116
|
value: true
|
|
2135
2117
|
});
|
|
2136
|
-
_exports.ASSIGN =
|
|
2118
|
+
_exports.ASSIGN = void 0;
|
|
2137
2119
|
|
|
2138
2120
|
/* eslint-disable no-implicit-coercion */
|
|
2139
2121
|
// These versions should be the version that the deprecation was _introduced_,
|
|
2140
2122
|
// not the version that the feature will be removed.
|
|
2141
|
-
var ROUTER_EVENTS = !!'4.0.0';
|
|
2142
|
-
_exports.ROUTER_EVENTS = ROUTER_EVENTS;
|
|
2143
2123
|
var ASSIGN = !!'4.0.0-beta.1';
|
|
2144
2124
|
_exports.ASSIGN = ASSIGN;
|
|
2145
2125
|
});
|
|
@@ -2288,8 +2268,6 @@ define("@glimmer/compiler", ["exports", "@glimmer/syntax", "@glimmer/util"], fun
|
|
|
2288
2268
|
|
|
2289
2269
|
class Yield extends (0, _syntax.node)('Yield').fields() {}
|
|
2290
2270
|
|
|
2291
|
-
class Partial extends (0, _syntax.node)('Partial').fields() {}
|
|
2292
|
-
|
|
2293
2271
|
class Debugger extends (0, _syntax.node)('Debugger').fields() {}
|
|
2294
2272
|
|
|
2295
2273
|
class CallExpression extends (0, _syntax.node)('CallExpression').fields() {}
|
|
@@ -3351,55 +3329,6 @@ define("@glimmer/compiler", ["exports", "@glimmer/syntax", "@glimmer/util"], fun
|
|
|
3351
3329
|
}));
|
|
3352
3330
|
}
|
|
3353
3331
|
|
|
3354
|
-
}).kw('partial', {
|
|
3355
|
-
assert(node$$1, state) {
|
|
3356
|
-
if (state.isStrict) {
|
|
3357
|
-
return Err((0, _syntax.generateSyntaxError)('{{partial}} is not allowed in strict mode templates', node$$1.loc));
|
|
3358
|
-
}
|
|
3359
|
-
|
|
3360
|
-
var {
|
|
3361
|
-
args: {
|
|
3362
|
-
positional,
|
|
3363
|
-
named
|
|
3364
|
-
}
|
|
3365
|
-
} = node$$1;
|
|
3366
|
-
var {
|
|
3367
|
-
trusting
|
|
3368
|
-
} = node$$1;
|
|
3369
|
-
|
|
3370
|
-
if (positional.isEmpty()) {
|
|
3371
|
-
return Err((0, _syntax.generateSyntaxError)("Partial found with no arguments. You must specify a template name", node$$1.loc));
|
|
3372
|
-
} else if (positional.size !== 1) {
|
|
3373
|
-
return Err((0, _syntax.generateSyntaxError)("Partial found with " + positional.exprs.length + " arguments. You must specify a template name", node$$1.loc));
|
|
3374
|
-
}
|
|
3375
|
-
|
|
3376
|
-
if (named.isEmpty()) {
|
|
3377
|
-
if (trusting) {
|
|
3378
|
-
return Err((0, _syntax.generateSyntaxError)("{{{partial ...}}} is not supported, please use {{partial ...}} instead", node$$1.loc));
|
|
3379
|
-
}
|
|
3380
|
-
|
|
3381
|
-
return Ok(positional.nth(0));
|
|
3382
|
-
} else {
|
|
3383
|
-
return Err((0, _syntax.generateSyntaxError)("Partial does not take any named argument", node$$1.loc));
|
|
3384
|
-
}
|
|
3385
|
-
},
|
|
3386
|
-
|
|
3387
|
-
translate({
|
|
3388
|
-
node: node$$1,
|
|
3389
|
-
state
|
|
3390
|
-
}, expr) {
|
|
3391
|
-
state.scope.setHasEval();
|
|
3392
|
-
var visited = expr === undefined ? Ok(new _syntax.ASTv2.LiteralExpression({
|
|
3393
|
-
loc: _syntax.SourceSpan.synthetic('undefined'),
|
|
3394
|
-
value: undefined
|
|
3395
|
-
})) : VISIT_EXPRS.visit(expr, state);
|
|
3396
|
-
return visited.mapOk(target => new Partial({
|
|
3397
|
-
loc: node$$1.loc,
|
|
3398
|
-
scope: state.scope,
|
|
3399
|
-
target
|
|
3400
|
-
}));
|
|
3401
|
-
}
|
|
3402
|
-
|
|
3403
3332
|
}).kw('debugger', {
|
|
3404
3333
|
assert(node$$1) {
|
|
3405
3334
|
var {
|
|
@@ -4415,11 +4344,6 @@ define("@glimmer/compiler", ["exports", "@glimmer/syntax", "@glimmer/util"], fun
|
|
|
4415
4344
|
:
|
|
4416
4345
|
return ['yield', opcode[1], this.formatParams(opcode[2])];
|
|
4417
4346
|
|
|
4418
|
-
case 19
|
|
4419
|
-
/* Partial */
|
|
4420
|
-
:
|
|
4421
|
-
return ['partial', this.formatOpcode(opcode[1]), opcode[2]];
|
|
4422
|
-
|
|
4423
4347
|
case 20
|
|
4424
4348
|
/* DynamicArg */
|
|
4425
4349
|
:
|
|
@@ -4495,11 +4419,6 @@ define("@glimmer/compiler", ["exports", "@glimmer/syntax", "@glimmer/util"], fun
|
|
|
4495
4419
|
:
|
|
4496
4420
|
return ['get-strict-free', this.upvars[opcode[1]], opcode[2]];
|
|
4497
4421
|
|
|
4498
|
-
case 33
|
|
4499
|
-
/* GetFreeAsFallback */
|
|
4500
|
-
:
|
|
4501
|
-
return ['GetFreeAsFallback', this.upvars[opcode[1]], opcode[2]];
|
|
4502
|
-
|
|
4503
4422
|
case 34
|
|
4504
4423
|
/* GetFreeAsComponentOrHelperHeadOrThisFallback */
|
|
4505
4424
|
:
|
|
@@ -4958,9 +4877,6 @@ define("@glimmer/compiler", ["exports", "@glimmer/syntax", "@glimmer/util"], fun
|
|
|
4958
4877
|
/* Debugger */
|
|
4959
4878
|
, stmt.scope.getEvalInfo()];
|
|
4960
4879
|
|
|
4961
|
-
case 'Partial':
|
|
4962
|
-
return this.Partial(stmt);
|
|
4963
|
-
|
|
4964
4880
|
case 'AppendComment':
|
|
4965
4881
|
return this.AppendComment(stmt);
|
|
4966
4882
|
|
|
@@ -5008,15 +4924,6 @@ define("@glimmer/compiler", ["exports", "@glimmer/syntax", "@glimmer/util"], fun
|
|
|
5008
4924
|
}
|
|
5009
4925
|
}
|
|
5010
4926
|
|
|
5011
|
-
Partial({
|
|
5012
|
-
target,
|
|
5013
|
-
scope
|
|
5014
|
-
}) {
|
|
5015
|
-
return [19
|
|
5016
|
-
/* Partial */
|
|
5017
|
-
, EXPR.expr(target), scope.getEvalInfo()];
|
|
5018
|
-
}
|
|
5019
|
-
|
|
5020
4927
|
Yield({
|
|
5021
4928
|
to,
|
|
5022
4929
|
positional
|
|
@@ -6490,7 +6397,7 @@ define("@glimmer/compiler", ["exports", "@glimmer/syntax", "@glimmer/util"], fun
|
|
|
6490
6397
|
|
|
6491
6398
|
case 'each':
|
|
6492
6399
|
var keyExpr = normalized.hash ? normalized.hash['key'] : null;
|
|
6493
|
-
var key = keyExpr ? buildExpression(keyExpr, '
|
|
6400
|
+
var key = keyExpr ? buildExpression(keyExpr, 'Strict', symbols) : null;
|
|
6494
6401
|
return [42
|
|
6495
6402
|
/* Each */
|
|
6496
6403
|
, params[0], key, block, inverse];
|
|
@@ -6682,7 +6589,7 @@ define("@glimmer/compiler", ["exports", "@glimmer/syntax", "@glimmer/util"], fun
|
|
|
6682
6589
|
{
|
|
6683
6590
|
var builtParams = buildParams(expr.params, symbols);
|
|
6684
6591
|
var builtHash = buildHash(expr.hash, symbols);
|
|
6685
|
-
var builtExpr = buildCallHead(expr.head, context === '
|
|
6592
|
+
var builtExpr = buildCallHead(expr.head, context === 'Strict' ? 'SubExpression' : varContext(context, false), symbols);
|
|
6686
6593
|
return [28
|
|
6687
6594
|
/* Call */
|
|
6688
6595
|
, builtExpr, builtParams, builtHash];
|
|
@@ -6698,8 +6605,8 @@ define("@glimmer/compiler", ["exports", "@glimmer/syntax", "@glimmer/util"], fun
|
|
|
6698
6605
|
kind: VariableKind.Block,
|
|
6699
6606
|
name: expr.name,
|
|
6700
6607
|
mode: 'loose'
|
|
6701
|
-
},
|
|
6702
|
-
/*
|
|
6608
|
+
}, 0
|
|
6609
|
+
/* Strict */
|
|
6703
6610
|
, symbols)];
|
|
6704
6611
|
}
|
|
6705
6612
|
|
|
@@ -6713,8 +6620,8 @@ define("@glimmer/compiler", ["exports", "@glimmer/syntax", "@glimmer/util"], fun
|
|
|
6713
6620
|
kind: VariableKind.Block,
|
|
6714
6621
|
name: expr.name,
|
|
6715
6622
|
mode: 'loose'
|
|
6716
|
-
},
|
|
6717
|
-
/*
|
|
6623
|
+
}, 0
|
|
6624
|
+
/* Strict */
|
|
6718
6625
|
, symbols)];
|
|
6719
6626
|
}
|
|
6720
6627
|
|
|
@@ -6747,8 +6654,8 @@ define("@glimmer/compiler", ["exports", "@glimmer/syntax", "@glimmer/util"], fun
|
|
|
6747
6654
|
}
|
|
6748
6655
|
|
|
6749
6656
|
function buildGetPath(head, symbols) {
|
|
6750
|
-
return buildVar(head.path.head,
|
|
6751
|
-
/*
|
|
6657
|
+
return buildVar(head.path.head, 0
|
|
6658
|
+
/* Strict */
|
|
6752
6659
|
, symbols, head.path.tail);
|
|
6753
6660
|
}
|
|
6754
6661
|
|
|
@@ -6792,10 +6699,6 @@ define("@glimmer/compiler", ["exports", "@glimmer/syntax", "@glimmer/util"], fun
|
|
|
6792
6699
|
op = 37
|
|
6793
6700
|
/* GetFreeAsHelperHead */
|
|
6794
6701
|
;
|
|
6795
|
-
} else if (context === 'Generic') {
|
|
6796
|
-
op = 33
|
|
6797
|
-
/* GetFreeAsFallback */
|
|
6798
|
-
;
|
|
6799
6702
|
} else {
|
|
6800
6703
|
op = expressionContextOp(context);
|
|
6801
6704
|
}
|
|
@@ -6866,13 +6769,6 @@ define("@glimmer/compiler", ["exports", "@glimmer/syntax", "@glimmer/util"], fun
|
|
|
6866
6769
|
/* GetFreeAsHelperHeadOrThisFallback */
|
|
6867
6770
|
;
|
|
6868
6771
|
|
|
6869
|
-
case 4
|
|
6870
|
-
/* LooseFreeVariable */
|
|
6871
|
-
:
|
|
6872
|
-
return 33
|
|
6873
|
-
/* GetFreeAsFallback */
|
|
6874
|
-
;
|
|
6875
|
-
|
|
6876
6772
|
case 5
|
|
6877
6773
|
/* ResolveAsCallHead */
|
|
6878
6774
|
:
|
|
@@ -6901,7 +6797,7 @@ define("@glimmer/compiler", ["exports", "@glimmer/syntax", "@glimmer/util"], fun
|
|
|
6901
6797
|
|
|
6902
6798
|
function buildParams(exprs, symbols) {
|
|
6903
6799
|
if (exprs === null || !(0, _util.isPresent)(exprs)) return null;
|
|
6904
|
-
return exprs.map(e => buildExpression(e, '
|
|
6800
|
+
return exprs.map(e => buildExpression(e, 'Strict', symbols));
|
|
6905
6801
|
}
|
|
6906
6802
|
|
|
6907
6803
|
function buildConcat(exprs, symbols) {
|
|
@@ -6913,7 +6809,7 @@ define("@glimmer/compiler", ["exports", "@glimmer/syntax", "@glimmer/util"], fun
|
|
|
6913
6809
|
var out = [[], []];
|
|
6914
6810
|
Object.keys(exprs).forEach(key => {
|
|
6915
6811
|
out[0].push(key);
|
|
6916
|
-
out[1].push(buildExpression(exprs[key], '
|
|
6812
|
+
out[1].push(buildExpression(exprs[key], 'Strict', symbols));
|
|
6917
6813
|
});
|
|
6918
6814
|
return out;
|
|
6919
6815
|
}
|
|
@@ -8850,8 +8746,8 @@ define("@glimmer/syntax", ["exports", "@glimmer/util", "simple-html-tokenizer",
|
|
|
8850
8746
|
|
|
8851
8747
|
resolution() {
|
|
8852
8748
|
if (this.ambiguity.namespaces.length === 0) {
|
|
8853
|
-
return
|
|
8854
|
-
/*
|
|
8749
|
+
return 31
|
|
8750
|
+
/* GetStrictFree */
|
|
8855
8751
|
;
|
|
8856
8752
|
} else if (this.ambiguity.namespaces.length === 1) {
|
|
8857
8753
|
if (this.ambiguity.fallback) {
|
|
@@ -17658,7 +17554,7 @@ define("ember-template-compiler/lib/plugins/assert-splattribute-expression", ["e
|
|
|
17658
17554
|
return '`...attributes` can only be used in the element position e.g. `<div ...attributes />`. It cannot be used as a path.';
|
|
17659
17555
|
}
|
|
17660
17556
|
});
|
|
17661
|
-
define("ember-template-compiler/lib/plugins/index", ["exports", "ember-template-compiler/lib/plugins/assert-against-attrs", "ember-template-compiler/lib/plugins/assert-against-dynamic-helpers-modifiers", "ember-template-compiler/lib/plugins/assert-against-named-blocks", "ember-template-compiler/lib/plugins/assert-against-named-outlets", "ember-template-compiler/lib/plugins/assert-input-helper-without-block", "ember-template-compiler/lib/plugins/assert-reserved-named-arguments", "ember-template-compiler/lib/plugins/assert-splattribute-expression", "ember-template-compiler/lib/plugins/transform-action-syntax", "ember-template-compiler/lib/plugins/transform-each-in-into-each", "ember-template-compiler/lib/plugins/transform-each-track-array", "ember-template-compiler/lib/plugins/transform-in-element", "ember-template-compiler/lib/plugins/transform-
|
|
17557
|
+
define("ember-template-compiler/lib/plugins/index", ["exports", "ember-template-compiler/lib/plugins/assert-against-attrs", "ember-template-compiler/lib/plugins/assert-against-dynamic-helpers-modifiers", "ember-template-compiler/lib/plugins/assert-against-named-blocks", "ember-template-compiler/lib/plugins/assert-against-named-outlets", "ember-template-compiler/lib/plugins/assert-input-helper-without-block", "ember-template-compiler/lib/plugins/assert-reserved-named-arguments", "ember-template-compiler/lib/plugins/assert-splattribute-expression", "ember-template-compiler/lib/plugins/transform-action-syntax", "ember-template-compiler/lib/plugins/transform-each-in-into-each", "ember-template-compiler/lib/plugins/transform-each-track-array", "ember-template-compiler/lib/plugins/transform-in-element", "ember-template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings", "ember-template-compiler/lib/plugins/transform-resolutions", "ember-template-compiler/lib/plugins/transform-wrap-mount-and-outlet"], function (_exports, _assertAgainstAttrs, _assertAgainstDynamicHelpersModifiers, _assertAgainstNamedBlocks, _assertAgainstNamedOutlets, _assertInputHelperWithoutBlock, _assertReservedNamedArguments, _assertSplattributeExpression, _transformActionSyntax, _transformEachInIntoEach, _transformEachTrackArray, _transformInElement, _transformQuotedBindingsIntoJustBindings, _transformResolutions, _transformWrapMountAndOutlet) {
|
|
17662
17558
|
"use strict";
|
|
17663
17559
|
|
|
17664
17560
|
Object.defineProperty(_exports, "__esModule", {
|
|
@@ -17666,7 +17562,7 @@ define("ember-template-compiler/lib/plugins/index", ["exports", "ember-template-
|
|
|
17666
17562
|
});
|
|
17667
17563
|
_exports.STRICT_MODE_TRANSFORMS = _exports.RESOLUTION_MODE_TRANSFORMS = void 0;
|
|
17668
17564
|
// order of plugins is important
|
|
17669
|
-
var RESOLUTION_MODE_TRANSFORMS = Object.freeze([_transformQuotedBindingsIntoJustBindings.default, _assertReservedNamedArguments.default, _transformActionSyntax.default, _assertAgainstAttrs.default, _transformEachInIntoEach.default,
|
|
17565
|
+
var RESOLUTION_MODE_TRANSFORMS = Object.freeze([_transformQuotedBindingsIntoJustBindings.default, _assertReservedNamedArguments.default, _transformActionSyntax.default, _assertAgainstAttrs.default, _transformEachInIntoEach.default, _assertInputHelperWithoutBlock.default, _transformInElement.default, _assertSplattributeExpression.default, _transformEachTrackArray.default, _assertAgainstNamedOutlets.default, _transformWrapMountAndOutlet.default, !true
|
|
17670
17566
|
/* EMBER_NAMED_BLOCKS */
|
|
17671
17567
|
? _assertAgainstNamedBlocks.default : null, true
|
|
17672
17568
|
/* EMBER_DYNAMIC_HELPERS_AND_MODIFIERS */
|
|
@@ -17923,160 +17819,6 @@ define("ember-template-compiler/lib/plugins/transform-in-element", ["exports", "
|
|
|
17923
17819
|
};
|
|
17924
17820
|
}
|
|
17925
17821
|
});
|
|
17926
|
-
define("ember-template-compiler/lib/plugins/transform-link-to", ["exports", "@ember/debug", "ember-template-compiler/lib/system/calculate-location-display", "ember-template-compiler/lib/plugins/utils"], function (_exports, _debug, _calculateLocationDisplay, _utils) {
|
|
17927
|
-
"use strict";
|
|
17928
|
-
|
|
17929
|
-
Object.defineProperty(_exports, "__esModule", {
|
|
17930
|
-
value: true
|
|
17931
|
-
});
|
|
17932
|
-
_exports.default = transformLinkTo;
|
|
17933
|
-
|
|
17934
|
-
function isInlineLinkTo(node) {
|
|
17935
|
-
return (0, _utils.isPath)(node.path) && node.path.original === 'link-to';
|
|
17936
|
-
}
|
|
17937
|
-
|
|
17938
|
-
function isBlockLinkTo(node) {
|
|
17939
|
-
return (0, _utils.isPath)(node.path) && node.path.original === 'link-to';
|
|
17940
|
-
}
|
|
17941
|
-
|
|
17942
|
-
function isQueryParams(node) {
|
|
17943
|
-
return (0, _utils.isSubExpression)(node) && (0, _utils.isPath)(node.path) && node.path.original === 'query-params';
|
|
17944
|
-
}
|
|
17945
|
-
|
|
17946
|
-
function transformInlineLinkToIntoBlockForm(env, node) {
|
|
17947
|
-
var {
|
|
17948
|
-
builders: b
|
|
17949
|
-
} = env.syntax;
|
|
17950
|
-
return b.block('link-to', node.params.slice(1), node.hash, b.blockItself([buildStatement(b, node.params[0], node.escaped, node.loc)], undefined, false, node.loc), null, node.loc);
|
|
17951
|
-
}
|
|
17952
|
-
|
|
17953
|
-
function transformPositionalLinkToIntoNamedArguments(env, node, hasBlock = true) {
|
|
17954
|
-
var _a, _b;
|
|
17955
|
-
|
|
17956
|
-
var {
|
|
17957
|
-
builders: b
|
|
17958
|
-
} = env.syntax;
|
|
17959
|
-
var moduleName = (_a = env.meta) === null || _a === void 0 ? void 0 : _a.moduleName;
|
|
17960
|
-
var {
|
|
17961
|
-
params,
|
|
17962
|
-
hash: {
|
|
17963
|
-
pairs
|
|
17964
|
-
}
|
|
17965
|
-
} = node;
|
|
17966
|
-
var keys = pairs.map(pair => pair.key);
|
|
17967
|
-
|
|
17968
|
-
if (params.length === 0) {
|
|
17969
|
-
(true && !(keys.indexOf('params') !== -1 || keys.indexOf('route') !== -1 || keys.indexOf('model') !== -1 || keys.indexOf('models') !== -1 || keys.indexOf('query') !== -1) && (0, _debug.assert)("You must provide one or more parameters to the `{{link-to}}` component. " + (0, _calculateLocationDisplay.default)(moduleName, node.loc), keys.indexOf('params') !== -1 || keys.indexOf('route') !== -1 || keys.indexOf('model') !== -1 || keys.indexOf('models') !== -1 || keys.indexOf('query') !== -1));
|
|
17970
|
-
return node;
|
|
17971
|
-
} else {
|
|
17972
|
-
(true && !(keys.indexOf('params') === -1) && (0, _debug.assert)("You cannot pass positional parameters and the `params` argument to the `{{link-to}}` component at the same time. " + (0, _calculateLocationDisplay.default)(moduleName, node.loc), keys.indexOf('params') === -1));
|
|
17973
|
-
(true && !(keys.indexOf('route') === -1) && (0, _debug.assert)("You cannot pass positional parameters and the `route` argument to the `{{link-to}}` component at the same time. " + (0, _calculateLocationDisplay.default)(moduleName, node.loc), keys.indexOf('route') === -1));
|
|
17974
|
-
(true && !(keys.indexOf('model') === -1) && (0, _debug.assert)("You cannot pass positional parameters and the `model` argument to the `{{link-to}}` component at the same time. " + (0, _calculateLocationDisplay.default)(moduleName, node.loc), keys.indexOf('model') === -1));
|
|
17975
|
-
(true && !(keys.indexOf('models') === -1) && (0, _debug.assert)("You cannot pass positional parameters and the `models` argument to the `{{link-to}}` component at the same time. " + (0, _calculateLocationDisplay.default)(moduleName, node.loc), keys.indexOf('models') === -1));
|
|
17976
|
-
(true && !(keys.indexOf('query') === -1) && (0, _debug.assert)("You cannot pass positional parameters and the `query` argument to the `{{link-to}}` component at the same time. " + (0, _calculateLocationDisplay.default)(moduleName, node.loc), keys.indexOf('query') === -1));
|
|
17977
|
-
}
|
|
17978
|
-
|
|
17979
|
-
(true && !(params.length > 0) && (0, _debug.assert)("You must provide one or more parameters to the `{{link-to}}` component. " + (0, _calculateLocationDisplay.default)(moduleName, node.loc), params.length > 0));
|
|
17980
|
-
var equivalentNamedArgs = [];
|
|
17981
|
-
var hasQueryParams = false; // 1. The last argument is possibly the `query` object.
|
|
17982
|
-
|
|
17983
|
-
var query = params[params.length - 1];
|
|
17984
|
-
|
|
17985
|
-
if (query && isQueryParams(query)) {
|
|
17986
|
-
params.pop();
|
|
17987
|
-
(true && !(query.params.length === 0) && (0, _debug.assert)("The `(query-params ...)` helper does not take positional arguments. " + (0, _calculateLocationDisplay.default)(moduleName, query.loc), query.params.length === 0));
|
|
17988
|
-
pairs.push(b.pair('query', b.sexpr(b.path('-hash', query.path.loc), [], query.hash, query.loc), query.loc));
|
|
17989
|
-
hasQueryParams = true;
|
|
17990
|
-
} // 2. If there is a `route`, it is now at index 0.
|
|
17991
|
-
|
|
17992
|
-
|
|
17993
|
-
var route = params.shift();
|
|
17994
|
-
|
|
17995
|
-
if (route) {
|
|
17996
|
-
pairs.push(b.pair('route', route, route.loc));
|
|
17997
|
-
equivalentNamedArgs.push('`@route`');
|
|
17998
|
-
} // 3. Any remaining indices (if any) are `models`.
|
|
17999
|
-
|
|
18000
|
-
|
|
18001
|
-
if (params.length === 1) {
|
|
18002
|
-
pairs.push(b.pair('model', params[0], params[0].loc));
|
|
18003
|
-
equivalentNamedArgs.push('`@model`');
|
|
18004
|
-
} else if (params.length > 1) {
|
|
18005
|
-
pairs.push(b.pair('models', b.sexpr(b.path('array', node.loc), params, undefined, node.loc), node.loc));
|
|
18006
|
-
equivalentNamedArgs.push('`@models`');
|
|
18007
|
-
}
|
|
18008
|
-
|
|
18009
|
-
if (hasQueryParams) {
|
|
18010
|
-
equivalentNamedArgs.push('`@query`');
|
|
18011
|
-
}
|
|
18012
|
-
|
|
18013
|
-
if (equivalentNamedArgs.length > 0) {
|
|
18014
|
-
var message = 'Invoking the `<LinkTo>` component with positional arguments is deprecated.';
|
|
18015
|
-
message += "Please use the equivalent named arguments (" + equivalentNamedArgs.join(', ') + ")";
|
|
18016
|
-
|
|
18017
|
-
if (hasQueryParams) {
|
|
18018
|
-
message += ' along with the `hash` helper';
|
|
18019
|
-
}
|
|
18020
|
-
|
|
18021
|
-
if (!hasBlock) {
|
|
18022
|
-
message += " and pass a block for the link's content.";
|
|
18023
|
-
}
|
|
18024
|
-
|
|
18025
|
-
message += '.';
|
|
18026
|
-
|
|
18027
|
-
if ((_b = node.loc) === null || _b === void 0 ? void 0 : _b.source) {
|
|
18028
|
-
message += " " + (0, _calculateLocationDisplay.default)(moduleName, node.loc);
|
|
18029
|
-
}
|
|
18030
|
-
|
|
18031
|
-
(true && !(false) && (0, _debug.deprecate)(message, false, {
|
|
18032
|
-
id: 'ember-glimmer.link-to.positional-arguments',
|
|
18033
|
-
until: '4.0.0',
|
|
18034
|
-
for: 'ember-source',
|
|
18035
|
-
url: 'https://deprecations.emberjs.com/v3.x#toc_ember-glimmer-link-to-positional-arguments',
|
|
18036
|
-
since: {
|
|
18037
|
-
enabled: '3.26.0-beta.1'
|
|
18038
|
-
}
|
|
18039
|
-
}));
|
|
18040
|
-
}
|
|
18041
|
-
|
|
18042
|
-
return b.block(node.path, null, b.hash(pairs, node.hash.loc), node.program, node.inverse, node.loc);
|
|
18043
|
-
}
|
|
18044
|
-
|
|
18045
|
-
function buildStatement(b, content, escaped, loc) {
|
|
18046
|
-
switch (content.type) {
|
|
18047
|
-
case 'PathExpression':
|
|
18048
|
-
return b.mustache(content, undefined, undefined, !escaped, loc);
|
|
18049
|
-
|
|
18050
|
-
case 'SubExpression':
|
|
18051
|
-
return b.mustache(content.path, content.params, content.hash, !escaped, loc);
|
|
18052
|
-
// The default case handles literals.
|
|
18053
|
-
|
|
18054
|
-
default:
|
|
18055
|
-
return b.text("" + content.value, loc);
|
|
18056
|
-
}
|
|
18057
|
-
}
|
|
18058
|
-
|
|
18059
|
-
function transformLinkTo(env) {
|
|
18060
|
-
return {
|
|
18061
|
-
name: 'transform-link-to',
|
|
18062
|
-
visitor: {
|
|
18063
|
-
MustacheStatement(node) {
|
|
18064
|
-
if (isInlineLinkTo(node)) {
|
|
18065
|
-
var block = transformInlineLinkToIntoBlockForm(env, node);
|
|
18066
|
-
return transformPositionalLinkToIntoNamedArguments(env, block, false);
|
|
18067
|
-
}
|
|
18068
|
-
},
|
|
18069
|
-
|
|
18070
|
-
BlockStatement(node) {
|
|
18071
|
-
if (isBlockLinkTo(node)) {
|
|
18072
|
-
return transformPositionalLinkToIntoNamedArguments(env, node);
|
|
18073
|
-
}
|
|
18074
|
-
}
|
|
18075
|
-
|
|
18076
|
-
}
|
|
18077
|
-
};
|
|
18078
|
-
}
|
|
18079
|
-
});
|
|
18080
17822
|
define("ember-template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings", ["exports"], function (_exports) {
|
|
18081
17823
|
"use strict";
|
|
18082
17824
|
|
|
@@ -18722,7 +18464,7 @@ define("ember/version", ["exports"], function (_exports) {
|
|
|
18722
18464
|
value: true
|
|
18723
18465
|
});
|
|
18724
18466
|
_exports.default = void 0;
|
|
18725
|
-
var _default = "4.0.0-beta.
|
|
18467
|
+
var _default = "4.0.0-beta.9";
|
|
18726
18468
|
_exports.default = _default;
|
|
18727
18469
|
});
|
|
18728
18470
|
define("simple-html-tokenizer", ["exports"], function (_exports) {
|
|
@@ -21013,6 +20755,237 @@ define("simple-html-tokenizer", ["exports"], function (_exports) {
|
|
|
21013
20755
|
/* commentStart */
|
|
21014
20756
|
);
|
|
21015
20757
|
this.delegate.beginComment();
|
|
20758
|
+
} else {
|
|
20759
|
+
var maybeDoctype = char.toUpperCase() + this.input.substring(this.index, this.index + 6).toUpperCase();
|
|
20760
|
+
|
|
20761
|
+
if (maybeDoctype === 'DOCTYPE') {
|
|
20762
|
+
this.consume();
|
|
20763
|
+
this.consume();
|
|
20764
|
+
this.consume();
|
|
20765
|
+
this.consume();
|
|
20766
|
+
this.consume();
|
|
20767
|
+
this.consume();
|
|
20768
|
+
this.transitionTo("doctype"
|
|
20769
|
+
/* doctype */
|
|
20770
|
+
);
|
|
20771
|
+
if (this.delegate.beginDoctype) this.delegate.beginDoctype();
|
|
20772
|
+
}
|
|
20773
|
+
}
|
|
20774
|
+
},
|
|
20775
|
+
doctype: function () {
|
|
20776
|
+
var char = this.consume();
|
|
20777
|
+
|
|
20778
|
+
if (isSpace(char)) {
|
|
20779
|
+
this.transitionTo("beforeDoctypeName"
|
|
20780
|
+
/* beforeDoctypeName */
|
|
20781
|
+
);
|
|
20782
|
+
}
|
|
20783
|
+
},
|
|
20784
|
+
beforeDoctypeName: function () {
|
|
20785
|
+
var char = this.consume();
|
|
20786
|
+
|
|
20787
|
+
if (isSpace(char)) {
|
|
20788
|
+
return;
|
|
20789
|
+
} else {
|
|
20790
|
+
this.transitionTo("doctypeName"
|
|
20791
|
+
/* doctypeName */
|
|
20792
|
+
);
|
|
20793
|
+
if (this.delegate.appendToDoctypeName) this.delegate.appendToDoctypeName(char.toLowerCase());
|
|
20794
|
+
}
|
|
20795
|
+
},
|
|
20796
|
+
doctypeName: function () {
|
|
20797
|
+
var char = this.consume();
|
|
20798
|
+
|
|
20799
|
+
if (isSpace(char)) {
|
|
20800
|
+
this.transitionTo("afterDoctypeName"
|
|
20801
|
+
/* afterDoctypeName */
|
|
20802
|
+
);
|
|
20803
|
+
} else if (char === '>') {
|
|
20804
|
+
if (this.delegate.endDoctype) this.delegate.endDoctype();
|
|
20805
|
+
this.transitionTo("beforeData"
|
|
20806
|
+
/* beforeData */
|
|
20807
|
+
);
|
|
20808
|
+
} else {
|
|
20809
|
+
if (this.delegate.appendToDoctypeName) this.delegate.appendToDoctypeName(char.toLowerCase());
|
|
20810
|
+
}
|
|
20811
|
+
},
|
|
20812
|
+
afterDoctypeName: function () {
|
|
20813
|
+
var char = this.consume();
|
|
20814
|
+
|
|
20815
|
+
if (isSpace(char)) {
|
|
20816
|
+
return;
|
|
20817
|
+
} else if (char === '>') {
|
|
20818
|
+
if (this.delegate.endDoctype) this.delegate.endDoctype();
|
|
20819
|
+
this.transitionTo("beforeData"
|
|
20820
|
+
/* beforeData */
|
|
20821
|
+
);
|
|
20822
|
+
} else {
|
|
20823
|
+
var nextSixChars = char.toUpperCase() + this.input.substring(this.index, this.index + 5).toUpperCase();
|
|
20824
|
+
var isPublic = nextSixChars.toUpperCase() === 'PUBLIC';
|
|
20825
|
+
var isSystem = nextSixChars.toUpperCase() === 'SYSTEM';
|
|
20826
|
+
|
|
20827
|
+
if (isPublic || isSystem) {
|
|
20828
|
+
this.consume();
|
|
20829
|
+
this.consume();
|
|
20830
|
+
this.consume();
|
|
20831
|
+
this.consume();
|
|
20832
|
+
this.consume();
|
|
20833
|
+
this.consume();
|
|
20834
|
+
}
|
|
20835
|
+
|
|
20836
|
+
if (isPublic) {
|
|
20837
|
+
this.transitionTo("afterDoctypePublicKeyword"
|
|
20838
|
+
/* afterDoctypePublicKeyword */
|
|
20839
|
+
);
|
|
20840
|
+
} else if (isSystem) {
|
|
20841
|
+
this.transitionTo("afterDoctypeSystemKeyword"
|
|
20842
|
+
/* afterDoctypeSystemKeyword */
|
|
20843
|
+
);
|
|
20844
|
+
}
|
|
20845
|
+
}
|
|
20846
|
+
},
|
|
20847
|
+
afterDoctypePublicKeyword: function () {
|
|
20848
|
+
var char = this.peek();
|
|
20849
|
+
|
|
20850
|
+
if (isSpace(char)) {
|
|
20851
|
+
this.transitionTo("beforeDoctypePublicIdentifier"
|
|
20852
|
+
/* beforeDoctypePublicIdentifier */
|
|
20853
|
+
);
|
|
20854
|
+
this.consume();
|
|
20855
|
+
} else if (char === '"') {
|
|
20856
|
+
this.transitionTo("doctypePublicIdentifierDoubleQuoted"
|
|
20857
|
+
/* doctypePublicIdentifierDoubleQuoted */
|
|
20858
|
+
);
|
|
20859
|
+
this.consume();
|
|
20860
|
+
} else if (char === "'") {
|
|
20861
|
+
this.transitionTo("doctypePublicIdentifierSingleQuoted"
|
|
20862
|
+
/* doctypePublicIdentifierSingleQuoted */
|
|
20863
|
+
);
|
|
20864
|
+
this.consume();
|
|
20865
|
+
} else if (char === '>') {
|
|
20866
|
+
this.consume();
|
|
20867
|
+
if (this.delegate.endDoctype) this.delegate.endDoctype();
|
|
20868
|
+
this.transitionTo("beforeData"
|
|
20869
|
+
/* beforeData */
|
|
20870
|
+
);
|
|
20871
|
+
}
|
|
20872
|
+
},
|
|
20873
|
+
doctypePublicIdentifierDoubleQuoted: function () {
|
|
20874
|
+
var char = this.consume();
|
|
20875
|
+
|
|
20876
|
+
if (char === '"') {
|
|
20877
|
+
this.transitionTo("afterDoctypePublicIdentifier"
|
|
20878
|
+
/* afterDoctypePublicIdentifier */
|
|
20879
|
+
);
|
|
20880
|
+
} else if (char === '>') {
|
|
20881
|
+
if (this.delegate.endDoctype) this.delegate.endDoctype();
|
|
20882
|
+
this.transitionTo("beforeData"
|
|
20883
|
+
/* beforeData */
|
|
20884
|
+
);
|
|
20885
|
+
} else {
|
|
20886
|
+
if (this.delegate.appendToDoctypePublicIdentifier) this.delegate.appendToDoctypePublicIdentifier(char);
|
|
20887
|
+
}
|
|
20888
|
+
},
|
|
20889
|
+
doctypePublicIdentifierSingleQuoted: function () {
|
|
20890
|
+
var char = this.consume();
|
|
20891
|
+
|
|
20892
|
+
if (char === "'") {
|
|
20893
|
+
this.transitionTo("afterDoctypePublicIdentifier"
|
|
20894
|
+
/* afterDoctypePublicIdentifier */
|
|
20895
|
+
);
|
|
20896
|
+
} else if (char === '>') {
|
|
20897
|
+
if (this.delegate.endDoctype) this.delegate.endDoctype();
|
|
20898
|
+
this.transitionTo("beforeData"
|
|
20899
|
+
/* beforeData */
|
|
20900
|
+
);
|
|
20901
|
+
} else {
|
|
20902
|
+
if (this.delegate.appendToDoctypePublicIdentifier) this.delegate.appendToDoctypePublicIdentifier(char);
|
|
20903
|
+
}
|
|
20904
|
+
},
|
|
20905
|
+
afterDoctypePublicIdentifier: function () {
|
|
20906
|
+
var char = this.consume();
|
|
20907
|
+
|
|
20908
|
+
if (isSpace(char)) {
|
|
20909
|
+
this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"
|
|
20910
|
+
/* betweenDoctypePublicAndSystemIdentifiers */
|
|
20911
|
+
);
|
|
20912
|
+
} else if (char === '>') {
|
|
20913
|
+
if (this.delegate.endDoctype) this.delegate.endDoctype();
|
|
20914
|
+
this.transitionTo("beforeData"
|
|
20915
|
+
/* beforeData */
|
|
20916
|
+
);
|
|
20917
|
+
} else if (char === '"') {
|
|
20918
|
+
this.transitionTo("doctypeSystemIdentifierDoubleQuoted"
|
|
20919
|
+
/* doctypeSystemIdentifierDoubleQuoted */
|
|
20920
|
+
);
|
|
20921
|
+
} else if (char === "'") {
|
|
20922
|
+
this.transitionTo("doctypeSystemIdentifierSingleQuoted"
|
|
20923
|
+
/* doctypeSystemIdentifierSingleQuoted */
|
|
20924
|
+
);
|
|
20925
|
+
}
|
|
20926
|
+
},
|
|
20927
|
+
betweenDoctypePublicAndSystemIdentifiers: function () {
|
|
20928
|
+
var char = this.consume();
|
|
20929
|
+
|
|
20930
|
+
if (isSpace(char)) {
|
|
20931
|
+
return;
|
|
20932
|
+
} else if (char === '>') {
|
|
20933
|
+
if (this.delegate.endDoctype) this.delegate.endDoctype();
|
|
20934
|
+
this.transitionTo("beforeData"
|
|
20935
|
+
/* beforeData */
|
|
20936
|
+
);
|
|
20937
|
+
} else if (char === '"') {
|
|
20938
|
+
this.transitionTo("doctypeSystemIdentifierDoubleQuoted"
|
|
20939
|
+
/* doctypeSystemIdentifierDoubleQuoted */
|
|
20940
|
+
);
|
|
20941
|
+
} else if (char === "'") {
|
|
20942
|
+
this.transitionTo("doctypeSystemIdentifierSingleQuoted"
|
|
20943
|
+
/* doctypeSystemIdentifierSingleQuoted */
|
|
20944
|
+
);
|
|
20945
|
+
}
|
|
20946
|
+
},
|
|
20947
|
+
doctypeSystemIdentifierDoubleQuoted: function () {
|
|
20948
|
+
var char = this.consume();
|
|
20949
|
+
|
|
20950
|
+
if (char === '"') {
|
|
20951
|
+
this.transitionTo("afterDoctypeSystemIdentifier"
|
|
20952
|
+
/* afterDoctypeSystemIdentifier */
|
|
20953
|
+
);
|
|
20954
|
+
} else if (char === '>') {
|
|
20955
|
+
if (this.delegate.endDoctype) this.delegate.endDoctype();
|
|
20956
|
+
this.transitionTo("beforeData"
|
|
20957
|
+
/* beforeData */
|
|
20958
|
+
);
|
|
20959
|
+
} else {
|
|
20960
|
+
if (this.delegate.appendToDoctypeSystemIdentifier) this.delegate.appendToDoctypeSystemIdentifier(char);
|
|
20961
|
+
}
|
|
20962
|
+
},
|
|
20963
|
+
doctypeSystemIdentifierSingleQuoted: function () {
|
|
20964
|
+
var char = this.consume();
|
|
20965
|
+
|
|
20966
|
+
if (char === "'") {
|
|
20967
|
+
this.transitionTo("afterDoctypeSystemIdentifier"
|
|
20968
|
+
/* afterDoctypeSystemIdentifier */
|
|
20969
|
+
);
|
|
20970
|
+
} else if (char === '>') {
|
|
20971
|
+
if (this.delegate.endDoctype) this.delegate.endDoctype();
|
|
20972
|
+
this.transitionTo("beforeData"
|
|
20973
|
+
/* beforeData */
|
|
20974
|
+
);
|
|
20975
|
+
} else {
|
|
20976
|
+
if (this.delegate.appendToDoctypeSystemIdentifier) this.delegate.appendToDoctypeSystemIdentifier(char);
|
|
20977
|
+
}
|
|
20978
|
+
},
|
|
20979
|
+
afterDoctypeSystemIdentifier: function () {
|
|
20980
|
+
var char = this.consume();
|
|
20981
|
+
|
|
20982
|
+
if (isSpace(char)) {
|
|
20983
|
+
return;
|
|
20984
|
+
} else if (char === '>') {
|
|
20985
|
+
if (this.delegate.endDoctype) this.delegate.endDoctype();
|
|
20986
|
+
this.transitionTo("beforeData"
|
|
20987
|
+
/* beforeData */
|
|
20988
|
+
);
|
|
21016
20989
|
}
|
|
21017
20990
|
},
|
|
21018
20991
|
commentStart: function () {
|
|
@@ -21590,6 +21563,49 @@ define("simple-html-tokenizer", ["exports"], function (_exports) {
|
|
|
21590
21563
|
}; // Data
|
|
21591
21564
|
|
|
21592
21565
|
|
|
21566
|
+
Tokenizer.prototype.beginDoctype = function () {
|
|
21567
|
+
this.push({
|
|
21568
|
+
type: "Doctype"
|
|
21569
|
+
/* Doctype */
|
|
21570
|
+
,
|
|
21571
|
+
name: ''
|
|
21572
|
+
});
|
|
21573
|
+
};
|
|
21574
|
+
|
|
21575
|
+
Tokenizer.prototype.appendToDoctypeName = function (char) {
|
|
21576
|
+
this.current("Doctype"
|
|
21577
|
+
/* Doctype */
|
|
21578
|
+
).name += char;
|
|
21579
|
+
};
|
|
21580
|
+
|
|
21581
|
+
Tokenizer.prototype.appendToDoctypePublicIdentifier = function (char) {
|
|
21582
|
+
var doctype = this.current("Doctype"
|
|
21583
|
+
/* Doctype */
|
|
21584
|
+
);
|
|
21585
|
+
|
|
21586
|
+
if (doctype.publicIdentifier === undefined) {
|
|
21587
|
+
doctype.publicIdentifier = char;
|
|
21588
|
+
} else {
|
|
21589
|
+
doctype.publicIdentifier += char;
|
|
21590
|
+
}
|
|
21591
|
+
};
|
|
21592
|
+
|
|
21593
|
+
Tokenizer.prototype.appendToDoctypeSystemIdentifier = function (char) {
|
|
21594
|
+
var doctype = this.current("Doctype"
|
|
21595
|
+
/* Doctype */
|
|
21596
|
+
);
|
|
21597
|
+
|
|
21598
|
+
if (doctype.systemIdentifier === undefined) {
|
|
21599
|
+
doctype.systemIdentifier = char;
|
|
21600
|
+
} else {
|
|
21601
|
+
doctype.systemIdentifier += char;
|
|
21602
|
+
}
|
|
21603
|
+
};
|
|
21604
|
+
|
|
21605
|
+
Tokenizer.prototype.endDoctype = function () {
|
|
21606
|
+
this.addLocInfo();
|
|
21607
|
+
};
|
|
21608
|
+
|
|
21593
21609
|
Tokenizer.prototype.beginData = function () {
|
|
21594
21610
|
this.push({
|
|
21595
21611
|
type: "Chars"
|