@aquera/nile-elements 2.0.1 → 2.0.3
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/README.md +8 -0
- package/demo/nxtgen-dark.css +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1228 -572
- package/dist/nile-segmented-progress-bar/index.cjs.js +2 -0
- package/dist/nile-segmented-progress-bar/index.cjs.js.map +1 -0
- package/dist/nile-segmented-progress-bar/index.esm.js +1 -0
- package/dist/nile-segmented-progress-bar/nile-segmented-progress-bar.cjs.js +2 -0
- package/dist/nile-segmented-progress-bar/nile-segmented-progress-bar.cjs.js.map +1 -0
- package/dist/nile-segmented-progress-bar/nile-segmented-progress-bar.css.cjs.js +2 -0
- package/dist/nile-segmented-progress-bar/nile-segmented-progress-bar.css.cjs.js.map +1 -0
- package/dist/nile-segmented-progress-bar/nile-segmented-progress-bar.css.esm.js +243 -0
- package/dist/nile-segmented-progress-bar/nile-segmented-progress-bar.esm.js +69 -0
- package/dist/nile-timestamp-builder/index.cjs.js +2 -0
- package/dist/nile-timestamp-builder/index.cjs.js.map +1 -0
- package/dist/nile-timestamp-builder/index.esm.js +1 -0
- package/dist/nile-timestamp-builder/nile-timestamp-builder-utils.cjs.js +2 -0
- package/dist/nile-timestamp-builder/nile-timestamp-builder-utils.cjs.js.map +1 -0
- package/dist/nile-timestamp-builder/nile-timestamp-builder-utils.esm.js +1 -0
- package/dist/nile-timestamp-builder/nile-timestamp-builder.cjs.js +2 -0
- package/dist/nile-timestamp-builder/nile-timestamp-builder.cjs.js.map +1 -0
- package/dist/nile-timestamp-builder/nile-timestamp-builder.css.cjs.js +2 -0
- package/dist/nile-timestamp-builder/nile-timestamp-builder.css.cjs.js.map +1 -0
- package/dist/nile-timestamp-builder/nile-timestamp-builder.css.esm.js +195 -0
- package/dist/nile-timestamp-builder/nile-timestamp-builder.esm.js +154 -0
- package/dist/nile-timestamp-builder/timezones.cjs.js +2 -0
- package/dist/nile-timestamp-builder/timezones.cjs.js.map +1 -0
- package/dist/nile-timestamp-builder/timezones.esm.js +1 -0
- package/dist/nile-wysiwyg-editor/engine/commands.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/engine/commands.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/engine/commands.esm.js +1 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-segmented-progress-bar/index.d.ts +2 -0
- package/dist/src/nile-segmented-progress-bar/index.js +2 -0
- package/dist/src/nile-segmented-progress-bar/index.js.map +1 -0
- package/dist/src/nile-segmented-progress-bar/nile-segmented-progress-bar.css.d.ts +9 -0
- package/dist/src/nile-segmented-progress-bar/nile-segmented-progress-bar.css.js +252 -0
- package/dist/src/nile-segmented-progress-bar/nile-segmented-progress-bar.css.js.map +1 -0
- package/dist/src/nile-segmented-progress-bar/nile-segmented-progress-bar.d.ts +135 -0
- package/dist/src/nile-segmented-progress-bar/nile-segmented-progress-bar.js +373 -0
- package/dist/src/nile-segmented-progress-bar/nile-segmented-progress-bar.js.map +1 -0
- package/dist/src/nile-segmented-progress-bar/nile-segmented-progress-bar.test.d.ts +1 -0
- package/dist/src/nile-segmented-progress-bar/nile-segmented-progress-bar.test.js +961 -0
- package/dist/src/nile-segmented-progress-bar/nile-segmented-progress-bar.test.js.map +1 -0
- package/dist/src/nile-timestamp-builder/index.d.ts +1 -0
- package/dist/src/nile-timestamp-builder/index.js +2 -0
- package/dist/src/nile-timestamp-builder/index.js.map +1 -0
- package/dist/src/nile-timestamp-builder/nile-timestamp-builder-utils.d.ts +54 -0
- package/dist/src/nile-timestamp-builder/nile-timestamp-builder-utils.js +254 -0
- package/dist/src/nile-timestamp-builder/nile-timestamp-builder-utils.js.map +1 -0
- package/dist/src/nile-timestamp-builder/nile-timestamp-builder.css.d.ts +7 -0
- package/dist/src/nile-timestamp-builder/nile-timestamp-builder.css.js +203 -0
- package/dist/src/nile-timestamp-builder/nile-timestamp-builder.css.js.map +1 -0
- package/dist/src/nile-timestamp-builder/nile-timestamp-builder.d.ts +94 -0
- package/dist/src/nile-timestamp-builder/nile-timestamp-builder.js +578 -0
- package/dist/src/nile-timestamp-builder/nile-timestamp-builder.js.map +1 -0
- package/dist/src/nile-timestamp-builder/nile-timestamp-builder.test.d.ts +1 -0
- package/dist/src/nile-timestamp-builder/nile-timestamp-builder.test.js +890 -0
- package/dist/src/nile-timestamp-builder/nile-timestamp-builder.test.js.map +1 -0
- package/dist/src/nile-timestamp-builder/timezones.d.ts +8 -0
- package/dist/src/nile-timestamp-builder/timezones.js +357 -0
- package/dist/src/nile-timestamp-builder/timezones.js.map +1 -0
- package/dist/src/version.js +2 -2
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/src/index.ts +6 -0
- package/src/nile-segmented-progress-bar/index.ts +5 -0
- package/src/nile-segmented-progress-bar/nile-segmented-progress-bar.css.ts +254 -0
- package/src/nile-segmented-progress-bar/nile-segmented-progress-bar.test.ts +1298 -0
- package/src/nile-segmented-progress-bar/nile-segmented-progress-bar.ts +437 -0
- package/src/nile-timestamp-builder/index.ts +1 -0
- package/src/nile-timestamp-builder/nile-timestamp-builder-utils.ts +321 -0
- package/src/nile-timestamp-builder/nile-timestamp-builder.css.ts +204 -0
- package/src/nile-timestamp-builder/nile-timestamp-builder.test.ts +1089 -0
- package/src/nile-timestamp-builder/nile-timestamp-builder.ts +625 -0
- package/src/nile-timestamp-builder/timezones.ts +356 -0
- package/vscode-html-custom-data.json +205 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","lit/directives/class-map.js","./nile-timestamp-builder.css.cjs.js","../internal/nile-element.cjs.js","../internal/form.cjs.js","../internal/default-value.cjs.js","./nile-timestamp-builder-utils.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js","./timezones.cjs.js"],function(_export,_context){"use strict";var t,i,s,e,l,n,a,h,r,o,u,d,c,p,b,m,v,y,$,f,g,_,z,j,w,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_C,k;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){i=_lit.html;s=_lit.nothing;},function(_litDecoratorsJs){e=_litDecoratorsJs.query;l=_litDecoratorsJs.property;n=_litDecoratorsJs.state;a=_litDecoratorsJs.customElement;},function(_litDirectivesClassMapJs){h=_litDirectivesClassMapJs.classMap;},function(_nileTimestampBuilderCssCjsJs){r=_nileTimestampBuilderCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_internalFormCjsJs){u=_internalFormCjsJs.F;},function(_internalDefaultValueCjsJs){d=_internalDefaultValueCjsJs.d;},function(_nileTimestampBuilderUtilsCjsJs){c=_nileTimestampBuilderUtilsCjsJs.g;p=_nileTimestampBuilderUtilsCjsJs.E;b=_nileTimestampBuilderUtilsCjsJs.e;m=_nileTimestampBuilderUtilsCjsJs.f;v=_nileTimestampBuilderUtilsCjsJs.p;y=_nileTimestampBuilderUtilsCjsJs.i;$=_nileTimestampBuilderUtilsCjsJs.n;f=_nileTimestampBuilderUtilsCjsJs.a;g=_nileTimestampBuilderUtilsCjsJs.b;_=_nileTimestampBuilderUtilsCjsJs.c;z=_nileTimestampBuilderUtilsCjsJs.d;j=_nileTimestampBuilderUtilsCjsJs.h;w=_nileTimestampBuilderUtilsCjsJs.T;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){},function(_timezonesCjsJs){}],execute:function execute(){_export("N",k=_C=/*#__PURE__*/function(_o){function C(){var _this;_classCallCheck(this,C);_this=_callSuper(this,C,arguments),_this.formControlController=null,_this.internalValueUpdate=!1,_this.internalTimezoneUpdate=!1,_this._value=null,_this.defaultValue=null,_this.timezone=c(),_this.name="",_this.disabled=!1,_this.required=!1,_this.readonly=!1,_this.copyable=!1,_this.form="",_this.open=!1,_this.label="",_this.minYear=1,_this.maxYear=9999,_this.wallClock=p,_this.timezoneList=[],_this.hasValue=!1,_this.justCopied=!1,_this.handleSetNow=function(){if(_this.disabled||_this.readonly)return;var t=Date.now();_this.wallClock=b(t,_this.timezone),_this.commit();},_this.handleCopy=/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var t;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(!(_this.disabled||!_this.hasValue)){_context2.next=2;break;}return _context2.abrupt("return");case 2:t=m(_this.wallClock,_this.timezone);_context2.prev=3;_context2.next=6;return navigator.clipboard.writeText(t);case 6:_context2.next=11;break;case 8:_context2.prev=8;_context2.t0=_context2["catch"](3);return _context2.abrupt("return",void _this.emit("nile-copy-error",{value:t}));case 11:_this.justCopied=!0,window.clearTimeout(_this.copiedTimer),_this.copiedTimer=window.setTimeout(function(){_this.justCopied=!1;},_C.COPIED_FEEDBACK_MS),_this.emit("nile-copy",{value:t});case 12:case"end":return _context2.stop();}},_callee,null,[[3,8]]);})),_this.handleStageNow=function(){if(_this.disabled||_this.readonly)return;var t=Date.now();_this.wallClock=b(t,_this.timezone),_this.emit("nile-input",_this.liveDetail());},_this.handleUseLocalTz=function(){_this.disabled||_this.readonly||(_this.internalTimezoneUpdate=!0,_this.timezone=c(),_this.emit("nile-input",_this.liveDetail()));},_this.handleUseUtc=function(){_this.disabled||_this.readonly||(_this.internalTimezoneUpdate=!0,_this.timezone="UTC",_this.emit("nile-input",_this.liveDetail()));},_this.lastTapAt=0,_this.copiedTimer=0,_this.handleDisplayDoubleClick=function(){_this.handleEdit();},_this.handleDisplayPointerUp=function(t){if("mouse"===t.pointerType)return;var i=Date.now();if(i-_this.lastTapAt<=_C.DOUBLE_TAP_MS)return _this.lastTapAt=0,void _this.handleEdit();_this.lastTapAt=i;},_this.handleDisplayKeyDown=function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),_this.handleEdit());},_this.handleEdit=function(){_this.disabled||_this.readonly||_this.open||(null===_this.value&&(_this.wallClock=b(Date.now(),_this.timezone)),_this.open=!0,_this.emit("nile-expand",{open:!0}));},_this.handleDone=function(){_this.open=!1,_this.commit(),_this.emit("nile-collapse",{open:!1});};return _this;}_inherits(C,_o);return _createClass(C,[{key:"value",get:function get(){return this._value;},set:function set(t){if("string"==typeof t){var _i=v(t);_i&&y(_i.timezone)&&(this.timezone=_i.timezone);}var i=this._value,s=$(t);(s===null||s===void 0?void 0:s.getTime())!==(i===null||i===void 0?void 0:i.getTime())?(this._value=s,this.requestUpdate("value",i)):this.internalValueUpdate=!1;}},{key:"validity",get:function get(){var _this$valueInput;return(_this$valueInput=this.valueInput)===null||_this$valueInput===void 0?void 0:_this$valueInput.validity;}},{key:"validationMessage",get:function get(){var _this$valueInput$vali,_this$valueInput2;return(_this$valueInput$vali=(_this$valueInput2=this.valueInput)===null||_this$valueInput2===void 0?void 0:_this$valueInput2.validationMessage)!==null&&_this$valueInput$vali!==void 0?_this$valueInput$vali:"";}},{key:"connectedCallback",value:function connectedCallback(){_superPropGet(C,"connectedCallback",this,3)([]),this.timezoneList=f(),y(this.timezone)||(this.timezone=c()),null!==this.value?(this.wallClock=b(this.value.getTime(),this.timezone),this.hasValue=!0):(this.wallClock=b(Date.now(),this.timezone),this.hasValue=!1),this.formControlController=new u(this,{assumeInteractionOn:["nile-change"],value:function value(t){var _i$valueString;var i=t;return null===i.value?void 0:(_i$valueString=i.valueString())!==null&&_i$valueString!==void 0?_i$valueString:void 0;},defaultValue:function defaultValue(t){return t.defaultValue;},setValue:function setValue(t,i){t.value=i;}}),this.emit("nile-init");}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(C,"disconnectedCallback",this,3)([]),window.clearTimeout(this.copiedTimer),this.emit("nile-destroy");}},{key:"willUpdate",value:function willUpdate(t){t.has("value")?this.internalValueUpdate?this.internalValueUpdate=!1:null===this.value?this.hasValue=!1:(this.wallClock=b(this.value.getTime(),this.timezone),this.hasValue=!0):this.isTimezoneReassigned(t)&&!this.open&&this.syncValueToTimezone();}},{key:"updated",value:function updated(t){this.isTimezoneReassigned(t)&&(this.internalTimezoneUpdate?this.internalTimezoneUpdate=!1:this.emit("nile-input",this.liveDetail()));}},{key:"isTimezoneReassigned",value:function isTimezoneReassigned(t){return t.has("timezone")&&void 0!==t.get("timezone");}},{key:"syncValueToTimezone",value:function syncValueToTimezone(){if(!this.hasValue||null===this.value)return;var t=g(this.wallClock,this.timezone);Number.isNaN(t)||t===this.value.getTime()||(this.internalValueUpdate=!0,this.value=new Date(t),this.syncHiddenInput());}},{key:"valueString",value:function valueString(){return null===this.value?null:this.value.toISOString();}},{key:"syncHiddenInput",value:function syncHiddenInput(){var _this$valueString,_this$formControlCont;this.valueInput&&(this.valueInput.value=(_this$valueString=this.valueString())!==null&&_this$valueString!==void 0?_this$valueString:""),(_this$formControlCont=this.formControlController)===null||_this$formControlCont===void 0?void 0:_this$formControlCont.updateValidity();}},{key:"changeDetail",value:function changeDetail(){if(null===this.value)return{value:null,localTimezoneValue:null,unix:null,timezone:this.timezone};var t=this.value.getTime();return{value:m(this.wallClock,this.timezone),localTimezoneValue:new Date(t),unix:t,timezone:this.timezone};}},{key:"liveDetail",value:function liveDetail(){var t=g(this.wallClock,this.timezone);return Number.isNaN(t)?{value:null,localTimezoneValue:null,unix:null,timezone:this.timezone}:{value:m(this.wallClock,this.timezone),localTimezoneValue:new Date(t),unix:t,timezone:this.timezone};}},{key:"commit",value:function commit(){var t=g(this.wallClock,this.timezone);this.internalValueUpdate=!0,this.value=new Date(t),this.hasValue=!0,this.syncHiddenInput(),this.emit("nile-change",this.changeDetail());}},{key:"onFieldChange",value:function onFieldChange(t){var _this2=this;return function(i){var _i$detail;i.stopPropagation();var s=Number((_i$detail=i.detail)===null||_i$detail===void 0?void 0:_i$detail.value),e=_(_objectSpread(_objectSpread({},_this2.wallClock),{},_defineProperty({},t,s)),_this2.minYear,_this2.maxYear);_this2.wallClock=e,_this2.emit("nile-input",_this2.liveDetail());};}},{key:"onTimezoneChange",value:function onTimezoneChange(t){var _t$detail;t.stopPropagation();var i=(_t$detail=t.detail)===null||_t$detail===void 0?void 0:_t$detail.value;"string"==typeof i&&y(i)&&(this.internalTimezoneUpdate=!0,this.timezone=i,this.emit("nile-input",this.liveDetail()));}},{key:"checkValidity",value:function checkValidity(){var _this$valueInput$chec,_this$valueInput3;return(_this$valueInput$chec=(_this$valueInput3=this.valueInput)===null||_this$valueInput3===void 0?void 0:_this$valueInput3.checkValidity())!==null&&_this$valueInput$chec!==void 0?_this$valueInput$chec:!0;}},{key:"reportValidity",value:function reportValidity(){var _this$valueInput$repo,_this$valueInput4;return(_this$valueInput$repo=(_this$valueInput4=this.valueInput)===null||_this$valueInput4===void 0?void 0:_this$valueInput4.reportValidity())!==null&&_this$valueInput$repo!==void 0?_this$valueInput$repo:!0;}},{key:"setCustomValidity",value:function setCustomValidity(t){var _this$valueInput5,_this$formControlCont2;(_this$valueInput5=this.valueInput)!==null&&_this$valueInput5!==void 0&&_this$valueInput5.setCustomValidity(t),(_this$formControlCont2=this.formControlController)===null||_this$formControlCont2===void 0?void 0:_this$formControlCont2.updateValidity();}},{key:"getForm",value:function getForm(){var _this$formControlCont3,_this$formControlCont4;return(_this$formControlCont3=(_this$formControlCont4=this.formControlController)===null||_this$formControlCont4===void 0?void 0:_this$formControlCont4.getForm())!==null&&_this$formControlCont3!==void 0?_this$formControlCont3:null;}},{key:"renderField",value:function renderField(t,s,e,l,n){return i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"tsb__field\" part=\"field\">\n <nile-input\n type=\"number\"\n exportparts=\"base:field__base, input:field__input\"\n size=\"medium\"\n label=","\n ?disabled=","\n ?readonly=","\n min=","\n max=","\n step=\"1\"\n .value=","\n @nile-change=","\n ></nile-input>\n </div>\n "])),s,this.disabled,this.readonly,l,n,String(e),this.onFieldChange(t));}},{key:"renderCollapsed",value:function renderCollapsed(){var t=this.wallClock,e=!this.disabled&&!this.readonly;return i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div class=\"tsb__collapsed\" part=\"display\">\n <div\n class=","\n part=\"display-content\"\n role=","\n tabindex=","\n aria-labelledby=","\n aria-readonly=","\n @dblclick=","\n @pointerup=","\n @keydown=","\n >\n <span\n id=\"tsb-display-value\"\n class=","\n part=\"value\"\n >\n ","\n </span>\n <span class=\"tsb__tz\" part=\"timezone-label\">","</span>\n </div>\n ","\n ","\n </div>\n "])),h({tsb__display:!0,"tsb__display--editable":e}),e?"button":s,this.disabled?s:"0",this.label?"tsb-label tsb-display-value":s,this.readonly?"true":s,this.handleDisplayDoubleClick,this.handleDisplayPointerUp,this.handleDisplayKeyDown,h({tsb__value:!0,"tsb__value--empty":!this.hasValue}),this.hasValue?z(t):"No timestamp set",this.timezone,e?this.renderEditActions():s,this.copyable&&this.readonly&&!this.disabled?this.renderCopyAction():s);}},{key:"renderEditActions",value:function renderEditActions(){return i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <div class=\"tsb__actions\" part=\"actions\">\n <nile-button\n variant=\"secondary-grey\"\n ?disabled=","\n @click=","\n >Now</nile-button\n >\n <nile-button\n variant=\"primary\"\n title=\"Edit\"\n ?disabled=","\n @click=","\n ><nile-glyph\n name=\"ng-pencil\"\n size=\"16\"\n method=\"stroke\"\n color=\"currentColor\"\n ></nile-glyph\n ></nile-button\n >\n </div>\n "])),this.disabled,this.handleSetNow,this.disabled,this.handleEdit);}},{key:"renderCopyAction",value:function renderCopyAction(){return i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <div class=\"tsb__actions\" part=\"actions\">\n <nile-button\n variant=\"ghost\"\n title=","\n aria-label=","\n ?disabled=","\n @click=","\n ><nile-glyph\n name=","\n size=\"16\"\n method=\"stroke\"\n color=\"currentColor\"\n ></nile-glyph\n ></nile-button>\n </div>\n "])),this.justCopied?"Copied":"Copy timestamp",this.justCopied?"Copied":"Copy timestamp",!this.hasValue,this.handleCopy,this.justCopied?"ng-copy-check":"ng-copy");}},{key:"renderExpanded",value:function renderExpanded(){var t=this.wallClock,s=j(t.year,t.month);return i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <div class=\"tsb__expanded\" part=\"editor\">\n <div class=\"tsb__fields\" part=\"fields\">\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n </div>\n\n <div class=\"tsb__timezone\" part=\"timezone-select\">\n <nile-select\n searchEnabled\n label=\"Timezone\"\n size=\"medium\"\n ?disabled=","\n .value=","\n @nile-change=","\n >\n ","\n </nile-select>\n </div>\n\n <div class=\"tsb__actions\" part=\"editor-actions\">\n <nile-button\n variant=\"secondary-grey\"\n ?disabled=","\n @click=","\n >Set to Now</nile-button\n >\n <nile-button\n variant=\"secondary-grey\"\n ?disabled=","\n @click=","\n >Use Local Timezone</nile-button\n >\n <nile-button\n variant=\"secondary-grey\"\n ?disabled=","\n @click=","\n >Use UTC</nile-button\n >\n <nile-button\n variant=\"primary\"\n ?disabled=","\n @click=","\n >Done</nile-button\n >\n </div>\n </div>\n "])),this.renderField(w.Year,"Year",t.year,this.minYear,this.maxYear),this.renderField(w.Month,"Month",t.month,1,12),this.renderField(w.Day,"Day",t.day,1,s),this.renderField(w.Hour,"Hour",t.hour,0,23),this.renderField(w.Minute,"Minute",t.minute,0,59),this.renderField(w.Second,"Second",t.second,0,59),this.renderField(w.Millisecond,"Milliseconds",t.millisecond,0,999),this.disabled,this.timezone,this.onTimezoneChange,this.timezoneList.map(function(t){return i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-option value=",">","</nile-option>"])),t,t);}),this.disabled,this.handleStageNow,this.disabled,this.handleUseLocalTz,this.disabled,this.handleUseUtc,this.disabled,this.handleDone);}},{key:"render",value:function render(){var _this$valueString2;return i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <div\n class=\"tsb\"\n part=\"base\"\n role=\"group\"\n aria-labelledby=","\n >\n ","\n ","\n\n <input\n class=\"value-input\"\n type=\"text\"\n ?required=","\n ?disabled=","\n .value=","\n tabindex=\"-1\"\n aria-hidden=\"true\"\n />\n </div>\n "])),this.label?"tsb-label":s,this.label?i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<label id=\"tsb-label\" class=\"tsb__label\" part=\"label\"\n >","</label\n >"])),this.label):"",this.open&&!this.readonly?this.renderExpanded():this.renderCollapsed(),this.required,this.disabled,(_this$valueString2=this.valueString())!==null&&_this$valueString2!==void 0?_this$valueString2:"");}}],[{key:"styles",get:function get(){return[r];}}]);}(o));k.DOUBLE_TAP_MS=300,k.COPIED_FEEDBACK_MS=1600,t([e(".value-input")],k.prototype,"valueInput",void 0),t([l({attribute:"value",converter:{fromAttribute:function fromAttribute(t){return t;},toAttribute:function toAttribute(t){return null===t?null:t.toISOString();}}})],k.prototype,"value",null),t([d()],k.prototype,"defaultValue",void 0),t([l({type:String,reflect:!0})],k.prototype,"timezone",void 0),t([l({type:String,reflect:!0})],k.prototype,"name",void 0),t([l({type:Boolean,reflect:!0})],k.prototype,"disabled",void 0),t([l({type:Boolean,reflect:!0})],k.prototype,"required",void 0),t([l({type:Boolean,reflect:!0})],k.prototype,"readonly",void 0),t([l({type:Boolean,reflect:!0})],k.prototype,"copyable",void 0),t([l({type:String,reflect:!0})],k.prototype,"form",void 0),t([l({type:Boolean,reflect:!0})],k.prototype,"open",void 0),t([l({type:String,reflect:!0})],k.prototype,"label",void 0),t([l({attribute:!0,type:Number,reflect:!0})],k.prototype,"minYear",void 0),t([l({attribute:!0,type:Number,reflect:!0})],k.prototype,"maxYear",void 0),t([n()],k.prototype,"wallClock",void 0),t([n()],k.prototype,"timezoneList",void 0),t([n()],k.prototype,"hasValue",void 0),t([n()],k.prototype,"justCopied",void 0),_export("N",k=_C=t([a("nile-timestamp-builder")],k));}};});
|
|
2
|
+
//# sourceMappingURL=nile-timestamp-builder.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nile-timestamp-builder.cjs.js","sources":["../../../src/nile-timestamp-builder/nile-timestamp-builder.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2026\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, nothing } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './nile-timestamp-builder.css';\nimport NileElement from '../internal/nile-element';\nimport type { CSSResultGroup, PropertyValues } from 'lit';\nimport type { NileFormControl } from '../internal/nile-element';\nimport { FormControlController } from '../internal/form';\nimport { defaultValue } from '../internal/default-value';\nimport {\n EPOCH_WALLCLOCK,\n TimestampField,\n WallClock,\n clampWallClock,\n daysInMonth,\n epochToFields,\n fieldsToEpoch,\n formatWallClock,\n formatZonedValue,\n getLocalTimeZone,\n getTimezoneList,\n isValidTimeZone,\n normalizeValueInput,\n parseZonedValue,\n} from './nile-timestamp-builder-utils';\n\n/**\n * @event nile-init - Emitted when the component is added to the DOM.\n * @event nile-destroy - Emitted when the component is removed from the DOM.\n * @event nile-change - Emitted when the value is committed.\n * @event nile-input - Emitted as fields change, before the value is committed.\n * @event nile-expand - Emitted when the editor opens.\n * @event nile-collapse - Emitted when the editor closes.\n * @event nile-copy - Emitted after the value is written to the clipboard.\n * @event nile-copy-error - Emitted when the clipboard write is refused.\n */\n@customElement('nile-timestamp-builder')\nexport class NileTimestampBuilder\n extends NileElement\n implements NileFormControl\n {\n static get styles(): CSSResultGroup {\n return [styles];\n }\n\n private formControlController: FormControlController | null = null;\n private internalValueUpdate = false;\n private internalTimezoneUpdate = false;\n @query('.value-input') valueInput!: HTMLInputElement;private _value: Date | null = null;\n @property({\n attribute: 'value',\n converter: {\n fromAttribute: (value: string | null) => value,\n toAttribute: (value: Date | null) =>\n value === null ? null : value.toISOString(),\n },\n })\n get value(): Date | null {\n return this._value;\n }\n\n set value(input: Date | number | string | null) {\n if (typeof input === 'string') {\n const zoned = parseZonedValue(input);\n if (zoned && isValidTimeZone(zoned.timezone)) {\n this.timezone = zoned.timezone;\n }\n }\n const oldValue = this._value;\n const next = normalizeValueInput(input);\n if (next?.getTime() === oldValue?.getTime()) {\n this.internalValueUpdate = false;\n return;\n }\n this._value = next;\n this.requestUpdate('value', oldValue);\n }\n\n @defaultValue() defaultValue: Date | null = null;\n @property({ type: String, reflect: true }) timezone: string =\n getLocalTimeZone();\n @property({ type: String, reflect: true }) name = '';\n @property({ type: Boolean, reflect: true }) disabled = false;\n @property({ type: Boolean, reflect: true }) required = false;\n @property({ type: Boolean, reflect: true }) readonly = false;\n @property({ type: Boolean, reflect: true }) copyable = false;\n @property({ type: String, reflect: true }) form = '';\n @property({ type: Boolean, reflect: true }) open = false;\n @property({ type: String, reflect: true }) label = '';\n @property({ attribute: true, type: Number, reflect: true }) minYear = 1;\n @property({ attribute: true, type: Number, reflect: true }) maxYear = 9999;\n @state() wallClock: WallClock = EPOCH_WALLCLOCK;\n @state() timezoneList: string[] = [];\n @state() hasValue = false;\n @state() justCopied = false;\n\n get validity(): ValidityState {\n return this.valueInput?.validity;\n }\n\n get validationMessage(): string {\n return this.valueInput?.validationMessage ?? '';\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n this.timezoneList = getTimezoneList();\n\n if (!isValidTimeZone(this.timezone)) {\n this.timezone = getLocalTimeZone();\n }\n\n if (this.value !== null) {\n this.wallClock = epochToFields(this.value.getTime(), this.timezone);\n this.hasValue = true;\n } else {\n this.wallClock = epochToFields(Date.now(), this.timezone);\n this.hasValue = false;\n }\n\n this.formControlController = new FormControlController(this, {\n assumeInteractionOn: ['nile-change'],\n value: input => {\n const el = input as NileTimestampBuilder;\n return el.value === null ? undefined : (el.valueString() ?? undefined);\n },\n defaultValue: input => (input as NileTimestampBuilder).defaultValue,\n setValue: (input, val) => {\n (input as NileTimestampBuilder).value = val as string | null;\n },\n });\n\n this.emit('nile-init');\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n window.clearTimeout(this.copiedTimer);\n this.emit('nile-destroy');\n }\n\n protected willUpdate(changedProperties: PropertyValues): void {\n if (changedProperties.has('value')) {\n if (this.internalValueUpdate) {\n this.internalValueUpdate = false;\n } else {\n if (this.value === null) {\n this.hasValue = false;\n } else {\n this.wallClock = epochToFields(this.value.getTime(), this.timezone);\n this.hasValue = true;\n }\n }\n } else if (this.isTimezoneReassigned(changedProperties) && !this.open) {\n this.syncValueToTimezone();\n }\n }\n\n protected updated(changedProperties: PropertyValues): void {\n if (this.isTimezoneReassigned(changedProperties)) {\n if (this.internalTimezoneUpdate) {\n this.internalTimezoneUpdate = false;\n } else {\n this.emit('nile-input', this.liveDetail());\n }\n }\n }\n\n private isTimezoneReassigned(changedProperties: PropertyValues): boolean {\n return (\n changedProperties.has('timezone') &&\n changedProperties.get('timezone') !== undefined\n );\n }\n\n private syncValueToTimezone(): void {\n if (!this.hasValue || this.value === null) return;\n const epoch = fieldsToEpoch(this.wallClock, this.timezone);\n if (Number.isNaN(epoch) || epoch === this.value.getTime()) return;\n this.internalValueUpdate = true;\n this.value = new Date(epoch);\n this.syncHiddenInput();\n }\n\n private valueString(): string | null {\n return this.value === null ? null : this.value.toISOString();\n }\n\n private syncHiddenInput(): void {\n if (this.valueInput) {\n this.valueInput.value = this.valueString() ?? '';\n }\n this.formControlController?.updateValidity();\n }\n\n private changeDetail(): {\n value: string | null;\n localTimezoneValue: Date | null;\n unix: number | null;\n timezone: string;\n } {\n if (this.value === null) {\n return {\n value: null,\n localTimezoneValue: null,\n unix: null,\n timezone: this.timezone,\n };\n }\n const epoch = this.value.getTime();\n return {\n value: formatZonedValue(this.wallClock, this.timezone),\n localTimezoneValue: new Date(epoch),\n // Unix time (epoch milliseconds, matching Date.getTime()).\n unix: epoch,\n timezone: this.timezone,\n };\n }\n\n\n private liveDetail(): {\n value: string | null;\n localTimezoneValue: Date | null;\n unix: number | null;\n timezone: string;\n } {\n const epoch = fieldsToEpoch(this.wallClock, this.timezone);\n if (Number.isNaN(epoch)) {\n return {\n value: null,\n localTimezoneValue: null,\n unix: null,\n timezone: this.timezone,\n };\n }\n return {\n value: formatZonedValue(this.wallClock, this.timezone),\n localTimezoneValue: new Date(epoch),\n // Unix time (epoch milliseconds, matching Date.getTime()).\n unix: epoch,\n timezone: this.timezone,\n };\n }\n\n private commit(): void {\n const epoch = fieldsToEpoch(this.wallClock, this.timezone);\n this.internalValueUpdate = true;\n this.value = new Date(epoch);\n this.hasValue = true;\n this.syncHiddenInput();\n this.emit('nile-change', this.changeDetail());\n }\n\n\n private onFieldChange(field: TimestampField) {\n return (event: CustomEvent) => {\n event.stopPropagation();\n const raw = Number(event.detail?.value);\n const next = clampWallClock(\n { ...this.wallClock, [field]: raw },\n this.minYear,\n this.maxYear\n );\n this.wallClock = next;\n this.emit('nile-input', this.liveDetail());\n };\n }\n\n private onTimezoneChange(event: CustomEvent) {\n event.stopPropagation();\n const next = event.detail?.value;\n if (typeof next === 'string' && isValidTimeZone(next)) {\n this.internalTimezoneUpdate = true;\n this.timezone = next;\n this.emit('nile-input', this.liveDetail());\n }\n }\n\n private handleSetNow = () => {\n if (this.disabled || this.readonly) return;\n const now = Date.now();\n this.wallClock = epochToFields(now, this.timezone);\n this.commit();\n };\n\n /** Copies the canonical zoned value */\n private handleCopy = async () => {\n if (this.disabled || !this.hasValue) return;\n const text = formatZonedValue(this.wallClock, this.timezone);\n try {\n await navigator.clipboard.writeText(text);\n } catch {\n this.emit('nile-copy-error', { value: text });\n return;\n }\n this.justCopied = true;\n window.clearTimeout(this.copiedTimer);\n this.copiedTimer = window.setTimeout(() => {\n this.justCopied = false;\n }, NileTimestampBuilder.COPIED_FEEDBACK_MS);\n this.emit('nile-copy', { value: text });\n };\n\n private handleStageNow = () => {\n if (this.disabled || this.readonly) return;\n const now = Date.now();\n this.wallClock = epochToFields(now, this.timezone);\n this.emit('nile-input', this.liveDetail());\n };\n\n private handleUseLocalTz = () => {\n if (this.disabled || this.readonly) return;\n this.internalTimezoneUpdate = true;\n this.timezone = getLocalTimeZone();\n this.emit('nile-input', this.liveDetail());\n };\n\n private handleUseUtc = () => {\n if (this.disabled || this.readonly) return;\n this.internalTimezoneUpdate = true;\n this.timezone = 'UTC';\n this.emit('nile-input', this.liveDetail());\n };\n\n /** Touch input has no reliable `dblclick`, so double-taps are timed by hand. */\n private static readonly DOUBLE_TAP_MS = 300;\n private static readonly COPIED_FEEDBACK_MS = 1600;\n private lastTapAt = 0;\n private copiedTimer = 0;\n\n private handleDisplayDoubleClick = () => {\n this.handleEdit();\n };\n\n private handleDisplayPointerUp = (event: PointerEvent) => {\n if (event.pointerType === 'mouse') return;\n const now = Date.now();\n if (now - this.lastTapAt <= NileTimestampBuilder.DOUBLE_TAP_MS) {\n this.lastTapAt = 0;\n this.handleEdit();\n return;\n }\n this.lastTapAt = now;\n };\n\n /** Keyboard equivalent of the double-click/double-tap edit affordance. */\n private handleDisplayKeyDown = (event: KeyboardEvent) => {\n if (event.key !== 'Enter' && event.key !== ' ') return;\n event.preventDefault();\n this.handleEdit();\n };\n\n private handleEdit = () => {\n if (this.disabled || this.readonly || this.open) return;\n if (this.value === null) {\n this.wallClock = epochToFields(Date.now(), this.timezone);\n }\n this.open = true;\n this.emit('nile-expand', { open: true });\n };\n\n private handleDone = () => {\n this.open = false;\n this.commit();\n this.emit('nile-collapse', { open: false });\n };\n\n checkValidity(): boolean {\n return this.valueInput?.checkValidity() ?? true;\n }\n\n reportValidity(): boolean {\n return this.valueInput?.reportValidity() ?? true;\n }\n\n setCustomValidity(message: string): void {\n this.valueInput?.setCustomValidity(message);\n this.formControlController?.updateValidity();\n }\n\n getForm(): HTMLFormElement | null {\n return this.formControlController?.getForm() ?? null;\n }\n\n private renderField(\n field: TimestampField,\n fieldLabel: string,\n val: number,\n min: number,\n max: number\n ) {\n return html`\n <div class=\"tsb__field\" part=\"field\">\n <nile-input\n type=\"number\"\n exportparts=\"base:field__base, input:field__input\"\n size=\"medium\"\n label=${fieldLabel}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n min=${min}\n max=${max}\n step=\"1\"\n .value=${String(val)}\n @nile-change=${this.onFieldChange(field)}\n ></nile-input>\n </div>\n `;\n }\n\n private renderCollapsed() {\n const wc = this.wallClock;\n const editable = !this.disabled && !this.readonly;\n return html`\n <div class=\"tsb__collapsed\" part=\"display\">\n <div\n class=${classMap({\n tsb__display: true,\n 'tsb__display--editable': editable,\n })}\n part=\"display-content\"\n role=${editable ? 'button' : nothing}\n tabindex=${this.disabled ? nothing : '0'}\n aria-labelledby=${this.label ? 'tsb-label tsb-display-value' : nothing}\n aria-readonly=${this.readonly ? 'true' : nothing}\n @dblclick=${this.handleDisplayDoubleClick}\n @pointerup=${this.handleDisplayPointerUp}\n @keydown=${this.handleDisplayKeyDown}\n >\n <span\n id=\"tsb-display-value\"\n class=${classMap({\n tsb__value: true,\n 'tsb__value--empty': !this.hasValue,\n })}\n part=\"value\"\n >\n ${this.hasValue ? formatWallClock(wc) : 'No timestamp set'}\n </span>\n <span class=\"tsb__tz\" part=\"timezone-label\">${this.timezone}</span>\n </div>\n ${editable ? this.renderEditActions() : nothing}\n ${this.copyable && this.readonly && !this.disabled\n ? this.renderCopyAction()\n : nothing}\n </div>\n `;\n }\n\n private renderEditActions() {\n return html`\n <div class=\"tsb__actions\" part=\"actions\">\n <nile-button\n variant=\"secondary-grey\"\n ?disabled=${this.disabled}\n @click=${this.handleSetNow}\n >Now</nile-button\n >\n <nile-button\n variant=\"primary\"\n title=\"Edit\"\n ?disabled=${this.disabled}\n @click=${this.handleEdit}\n ><nile-glyph\n name=\"ng-pencil\"\n size=\"16\"\n method=\"stroke\"\n color=\"currentColor\"\n ></nile-glyph\n ></nile-button\n >\n </div>\n `;\n }\n\n private renderCopyAction() {\n return html`\n <div class=\"tsb__actions\" part=\"actions\">\n <nile-button\n variant=\"ghost\"\n title=${this.justCopied ? 'Copied' : 'Copy timestamp'}\n aria-label=${this.justCopied ? 'Copied' : 'Copy timestamp'}\n ?disabled=${!this.hasValue}\n @click=${this.handleCopy}\n ><nile-glyph\n name=${this.justCopied ? 'ng-copy-check' : 'ng-copy'}\n size=\"16\"\n method=\"stroke\"\n color=\"currentColor\"\n ></nile-glyph\n ></nile-button>\n </div>\n `;\n }\n\n private renderExpanded() {\n const wc = this.wallClock;\n const maxDay = daysInMonth(wc.year, wc.month);\n return html`\n <div class=\"tsb__expanded\" part=\"editor\">\n <div class=\"tsb__fields\" part=\"fields\">\n ${this.renderField(\n TimestampField.Year,\n 'Year',\n wc.year,\n this.minYear,\n this.maxYear\n )}\n ${this.renderField(TimestampField.Month, 'Month', wc.month, 1, 12)}\n ${this.renderField(TimestampField.Day, 'Day', wc.day, 1, maxDay)}\n ${this.renderField(TimestampField.Hour, 'Hour', wc.hour, 0, 23)}\n ${this.renderField(\n TimestampField.Minute,\n 'Minute',\n wc.minute,\n 0,\n 59\n )}\n ${this.renderField(\n TimestampField.Second,\n 'Second',\n wc.second,\n 0,\n 59\n )}\n ${this.renderField(\n TimestampField.Millisecond,\n 'Milliseconds',\n wc.millisecond,\n 0,\n 999\n )}\n </div>\n\n <div class=\"tsb__timezone\" part=\"timezone-select\">\n <nile-select\n searchEnabled\n label=\"Timezone\"\n size=\"medium\"\n ?disabled=${this.disabled}\n .value=${this.timezone}\n @nile-change=${this.onTimezoneChange}\n >\n ${this.timezoneList.map(\n tz => html`<nile-option value=${tz}>${tz}</nile-option>`\n )}\n </nile-select>\n </div>\n\n <div class=\"tsb__actions\" part=\"editor-actions\">\n <nile-button\n variant=\"secondary-grey\"\n ?disabled=${this.disabled}\n @click=${this.handleStageNow}\n >Set to Now</nile-button\n >\n <nile-button\n variant=\"secondary-grey\"\n ?disabled=${this.disabled}\n @click=${this.handleUseLocalTz}\n >Use Local Timezone</nile-button\n >\n <nile-button\n variant=\"secondary-grey\"\n ?disabled=${this.disabled}\n @click=${this.handleUseUtc}\n >Use UTC</nile-button\n >\n <nile-button\n variant=\"primary\"\n ?disabled=${this.disabled}\n @click=${this.handleDone}\n >Done</nile-button\n >\n </div>\n </div>\n `;\n }\n\n render() {\n return html`\n <div\n class=\"tsb\"\n part=\"base\"\n role=\"group\"\n aria-labelledby=${this.label ? 'tsb-label' : nothing}\n >\n ${this.label\n ? html`<label id=\"tsb-label\" class=\"tsb__label\" part=\"label\"\n >${this.label}</label\n >`\n : ''}\n ${this.open && !this.readonly\n ? this.renderExpanded()\n : this.renderCollapsed()}\n\n <input\n class=\"value-input\"\n type=\"text\"\n ?required=${this.required}\n ?disabled=${this.disabled}\n .value=${this.valueString() ?? ''}\n tabindex=\"-1\"\n aria-hidden=\"true\"\n />\n </div>\n `;\n }\n}\n\nexport default NileTimestampBuilder;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-timestamp-builder': NileTimestampBuilder;\n }\n}\n"],"names":["NileTimestampBuilder","NileTimestampBuilder_1","_o","C","constructor","this","formControlController","internalValueUpdate","internalTimezoneUpdate","_value","defaultValue","timezone","getLocalTimeZone","name","disabled","required","readonly","copyable","form","open","label","minYear","maxYear","wallClock","EPOCH_WALLCLOCK","timezoneList","hasValue","justCopied","handleSetNow","now","Date","epochToFields","commit","handleCopy","async","text","formatZonedValue","_context2","prev","next","navigator","clipboard","writeText","t0","abrupt","emit","value","window","clearTimeout","copiedTimer","setTimeout","COPIED_FEEDBACK_MS","stop","_callee","handleStageNow","liveDetail","handleUseLocalTz","handleUseUtc","lastTapAt","handleDisplayDoubleClick","handleEdit","handleDisplayPointerUp","event","pointerType","DOUBLE_TAP_MS","handleDisplayKeyDown","key","preventDefault","handleDone","_this","_inherits","_createClass","get","set","input","zoned","parseZonedValue","isValidTimeZone","oldValue","normalizeValueInput","getTime","requestUpdate","validity","_this$valueInput","valueInput","validationMessage","_this$valueInput$vali","_this$valueInput2","connectedCallback","super","getTimezoneList","FormControlController","assumeInteractionOn","el","undefined","valueString","setValue","val","disconnectedCallback","willUpdate","changedProperties","has","isTimezoneReassigned","syncValueToTimezone","updated","epoch","fieldsToEpoch","Number","isNaN","syncHiddenInput","toISOString","updateValidity","changeDetail","localTimezoneValue","unix","onFieldChange","field","stopPropagation","raw","detail","clampWallClock","_objectSpread","onTimezoneChange","checkValidity","_this$valueInput$chec","_this$valueInput3","reportValidity","_this$valueInput$repo","_this$valueInput4","setCustomValidity","message","getForm","_this$formControlCont3","_this$formControlCont4","renderField","fieldLabel","min","max","html","_templateObject","_taggedTemplateLiteral","String","renderCollapsed","wc","editable","_templateObject2","classMap","tsb__display","nothing","tsb__value","formatWallClock","renderEditActions","renderCopyAction","_templateObject3","_templateObject4","renderExpanded","maxDay","daysInMonth","year","month","_templateObject5","TimestampField","Year","Month","Day","day","Hour","hour","Minute","minute","Second","second","Millisecond","millisecond","map","tz","_templateObject6","render","_this$valueString2","_templateObject7","_templateObject8","styles","NileElement","__decorate","query","prototype","property","attribute","converter","fromAttribute","toAttribute","type","reflect","Boolean","state","customElement"],"mappings":"qzbA4CaA,EAAoBC,EAA1B,uBAAAC,EAAA,EAAA,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCAQGC,KAAAA,CAAqBC,qBAAAA,CAAiC,KACtDD,KAAAA,CAAmBE,mBAAAA,CAAAA,CAAG,EACtBF,KAAAA,CAAsBG,sBAAAA,CAAAA,CAAG,EAC4BH,KAAAA,CAAMI,MAAAA,CAAgB,IA8BnEJ,CAAAA,KAAAA,CAAYK,YAAgB,CAAA,IAAA,CACDL,KAAAA,CAAQM,QACjDC,CAAAA,CAAAA,CAAAA,CAAAA,CACyCP,KAAAA,CAAIQ,IAAG,CAAA,EAAA,CACNR,KAAAA,CAAQS,QAAG,CAAA,CAAA,CAAA,CACXT,KAAAA,CAAQU,QAAAA,CAAAA,CAAG,CACXV,CAAAA,KAAAA,CAAQW,UAAG,CACXX,CAAAA,KAAAA,CAAQY,UAAG,CACZZ,CAAAA,KAAAA,CAAIa,KAAG,EACNb,CAAAA,KAAAA,CAAIc,IAAG,CAAA,CAAA,CAAA,CACRd,KAAAA,CAAKe,KAAAA,CAAG,GACS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AARW,CAAoClM,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAyL,SAAA,CAAA,cAAA,CAAA,IAAA,EAC5BF,CAAAA,CAAAA,CAAAA,CAAA,CAARW,CAAyBlM,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAyL,SAAA,CAAA,UAAA,CAAA,IAAA,EACjBF,CAAAA,CAAAA,CAAAA,CAAA,CAARW,CAA2BlM,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAyL,SAAA,CAAA,YAAA,CAAA,IAAA,EAzDjBzL,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAoBC,GAAAsL,CAAA,CAAA,CADhCY,CAAc,CAAA,wBAAA,CAAA,CAAA,CACFnM"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["lit"],function(_export,_context){"use strict";var i,_templateObject,a;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){i=_lit.css;}],execute:function execute(){_export("s",a=i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: block;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n }\n\n :host([disabled]) {\n pointer-events: none;\n }\n\n :host([disabled]) .tsb__collapsed,\n :host([disabled]) .tsb__expanded {\n background: var(\n --nile-colors-neutral-100,\n var(--ng-colors-bg-disabled-subtle)\n );\n border-color: var(\n --nile-colors-neutral-500,\n var(--ng-colors-border-disabled-subtle)\n );\n }\n\n :host([disabled]) .tsb__label,\n :host([disabled]) .tsb__value,\n :host([disabled]) .tsb__tz {\n color: var(--nile-colors-text-disabled, var(--ng-colors-text-disabled));\n }\n\n .tsb {\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n }\n\n .tsb__label {\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));\n line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));\n }\n\n /* Collapsed view */\n .tsb__collapsed {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding: var(--nile-spacing-lg, var(--ng-spacing-lg))\n var(--nile-spacing-xl, var(--ng-spacing-xl));\n border: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-gray-300, var(--ng-colors-border-primary));\n border-radius: var(--nile-radius-md, var(--ng-radius-md));\n background: var(--nile-colors-white, var(--ng-colors-bg-primary));\n min-height: var(--nile-height-28px, var(--ng-height-28px));\n }\n\n .tsb__collapsed .tsb__actions nile-button::part(base) {\n height: var(--nile-height-28px, var(--ng-height-28px));\n padding-block: var(--nile-spacing-none, var(--ng-spacing-none));\n }\n\n .tsb__display {\n display: flex;\n align-items: baseline;\n flex-wrap: wrap;\n gap: var(--nile-spacing-lg, var(--ng-spacing-lg));\n flex: 1 1 var(--nile-width-208px, var(--ng-width-56));\n min-width: 0;\n }\n\n .tsb__display--editable {\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n touch-action: manipulation;\n }\n\n .tsb__display:focus-visible {\n outline: var(--nile-border-width-2, var(--ng-border-width-2)) solid\n var(--nile-colors-border-field-focused, var(--ng-colors-border-brand));\n outline-offset: var(--nile-spacing-xxs, var(--ng-spacing-xxs));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n }\n\n .tsb__value {\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-variant-numeric: tabular-nums;\n font-size: var(--nile-type-scale-4, var(--ng-font-size-text-md));\n font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-medium));\n letter-spacing: 0.01em;\n overflow-wrap: normal;\n }\n\n .tsb__value--empty {\n color: var(--nile-colors-gray-400, var(--ng-colors-text-placeholder));\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n }\n\n .tsb__tz {\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n color: var(--nile-colors-gray-500, var(--ng-colors-text-tertiary-600));\n white-space: nowrap;\n }\n\n .tsb__actions {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n flex-wrap: wrap;\n justify-content: flex-end;\n margin-left: auto;\n flex: 0 0 auto;\n }\n\n /* Expanded view */\n .tsb__expanded {\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding: var(--nile-spacing-xl, var(--ng-spacing-xl));\n border: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-gray-300, var(--ng-colors-border-primary));\n border-radius: var(--nile-radius-md, var(--ng-radius-md));\n background: var(--nile-colors-white, var(--ng-colors-bg-primary));\n }\n\n .tsb__fields {\n display: grid;\n grid-template-columns: repeat(\n auto-fit,\n minmax(var(--nile-width-99px, var(--ng-width-24)), 1fr)\n );\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n }\n\n .tsb__field {\n display: flex;\n flex-direction: column;\n min-width: 0;\n width: 100%;\n max-width: var(--nile-width-110px, var(--ng-width-108));\n }\n\n .tsb__field nile-input::part(input) {\n padding-inline: var(--nile-spacing-sm, var(--ng-spacing-sm));\n text-align: center;\n }\n\n .tsb__field nile-input::part(form-control-label) {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .tsb__timezone {\n display: flex;\n flex-direction: column;\n }\n\n @media (max-width: 480px) {\n .tsb__collapsed,\n .tsb__expanded {\n padding: var(--nile-spacing-lg, var(--ng-spacing-lg));\n }\n\n\n .tsb__actions {\n width: 100%;\n margin-left: 0;\n }\n\n\n [part='editor-actions'] nile-button {\n flex: 1 1 var(--nile-width-130px, var(--ng-width-32));\n }\n\n [part='editor-actions'] nile-button::part(base) {\n width: 100%;\n }\n }\n\n /* Visually-hidden hidden input used for form participation / validity. */\n .value-input {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n }\n"]))));}};});
|
|
2
|
+
//# sourceMappingURL=nile-timestamp-builder.css.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nile-timestamp-builder.css.cjs.js","sources":["../../../src/nile-timestamp-builder/nile-timestamp-builder.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2026\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: block;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n }\n\n :host([disabled]) {\n pointer-events: none;\n }\n\n :host([disabled]) .tsb__collapsed,\n :host([disabled]) .tsb__expanded {\n background: var(\n --nile-colors-neutral-100,\n var(--ng-colors-bg-disabled-subtle)\n );\n border-color: var(\n --nile-colors-neutral-500,\n var(--ng-colors-border-disabled-subtle)\n );\n }\n\n :host([disabled]) .tsb__label,\n :host([disabled]) .tsb__value,\n :host([disabled]) .tsb__tz {\n color: var(--nile-colors-text-disabled, var(--ng-colors-text-disabled));\n }\n\n .tsb {\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n }\n\n .tsb__label {\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));\n line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));\n }\n\n /* Collapsed view */\n .tsb__collapsed {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding: var(--nile-spacing-lg, var(--ng-spacing-lg))\n var(--nile-spacing-xl, var(--ng-spacing-xl));\n border: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-gray-300, var(--ng-colors-border-primary));\n border-radius: var(--nile-radius-md, var(--ng-radius-md));\n background: var(--nile-colors-white, var(--ng-colors-bg-primary));\n min-height: var(--nile-height-28px, var(--ng-height-28px));\n }\n\n .tsb__collapsed .tsb__actions nile-button::part(base) {\n height: var(--nile-height-28px, var(--ng-height-28px));\n padding-block: var(--nile-spacing-none, var(--ng-spacing-none));\n }\n\n .tsb__display {\n display: flex;\n align-items: baseline;\n flex-wrap: wrap;\n gap: var(--nile-spacing-lg, var(--ng-spacing-lg));\n flex: 1 1 var(--nile-width-208px, var(--ng-width-56));\n min-width: 0;\n }\n\n .tsb__display--editable {\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n touch-action: manipulation;\n }\n\n .tsb__display:focus-visible {\n outline: var(--nile-border-width-2, var(--ng-border-width-2)) solid\n var(--nile-colors-border-field-focused, var(--ng-colors-border-brand));\n outline-offset: var(--nile-spacing-xxs, var(--ng-spacing-xxs));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n }\n\n .tsb__value {\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-variant-numeric: tabular-nums;\n font-size: var(--nile-type-scale-4, var(--ng-font-size-text-md));\n font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-medium));\n letter-spacing: 0.01em;\n overflow-wrap: normal;\n }\n\n .tsb__value--empty {\n color: var(--nile-colors-gray-400, var(--ng-colors-text-placeholder));\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n }\n\n .tsb__tz {\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n color: var(--nile-colors-gray-500, var(--ng-colors-text-tertiary-600));\n white-space: nowrap;\n }\n\n .tsb__actions {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n flex-wrap: wrap;\n justify-content: flex-end;\n margin-left: auto;\n flex: 0 0 auto;\n }\n\n /* Expanded view */\n .tsb__expanded {\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding: var(--nile-spacing-xl, var(--ng-spacing-xl));\n border: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-gray-300, var(--ng-colors-border-primary));\n border-radius: var(--nile-radius-md, var(--ng-radius-md));\n background: var(--nile-colors-white, var(--ng-colors-bg-primary));\n }\n\n .tsb__fields {\n display: grid;\n grid-template-columns: repeat(\n auto-fit,\n minmax(var(--nile-width-99px, var(--ng-width-24)), 1fr)\n );\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n }\n\n .tsb__field {\n display: flex;\n flex-direction: column;\n min-width: 0;\n width: 100%;\n max-width: var(--nile-width-110px, var(--ng-width-108));\n }\n\n .tsb__field nile-input::part(input) {\n padding-inline: var(--nile-spacing-sm, var(--ng-spacing-sm));\n text-align: center;\n }\n\n .tsb__field nile-input::part(form-control-label) {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .tsb__timezone {\n display: flex;\n flex-direction: column;\n }\n\n @media (max-width: 480px) {\n .tsb__collapsed,\n .tsb__expanded {\n padding: var(--nile-spacing-lg, var(--ng-spacing-lg));\n }\n\n\n .tsb__actions {\n width: 100%;\n margin-left: 0;\n }\n\n\n [part='editor-actions'] nile-button {\n flex: 1 1 var(--nile-width-130px, var(--ng-width-32));\n }\n\n [part='editor-actions'] nile-button::part(base) {\n width: 100%;\n }\n }\n\n /* Visually-hidden hidden input used for form participation / validity. */\n .value-input {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n }\n`;\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTASaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import{css as i}from"lit";const a=i`
|
|
2
|
+
:host {
|
|
3
|
+
display: block;
|
|
4
|
+
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
5
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host([disabled]) {
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host([disabled]) .tsb__collapsed,
|
|
13
|
+
:host([disabled]) .tsb__expanded {
|
|
14
|
+
background: var(
|
|
15
|
+
--nile-colors-neutral-100,
|
|
16
|
+
var(--ng-colors-bg-disabled-subtle)
|
|
17
|
+
);
|
|
18
|
+
border-color: var(
|
|
19
|
+
--nile-colors-neutral-500,
|
|
20
|
+
var(--ng-colors-border-disabled-subtle)
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host([disabled]) .tsb__label,
|
|
25
|
+
:host([disabled]) .tsb__value,
|
|
26
|
+
:host([disabled]) .tsb__tz {
|
|
27
|
+
color: var(--nile-colors-text-disabled, var(--ng-colors-text-disabled));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.tsb {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: var(--nile-spacing-md, var(--ng-spacing-md));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.tsb__label {
|
|
37
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
38
|
+
font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
|
|
39
|
+
line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Collapsed view */
|
|
43
|
+
.tsb__collapsed {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
flex-wrap: wrap;
|
|
47
|
+
gap: var(--nile-spacing-lg, var(--ng-spacing-lg));
|
|
48
|
+
padding: var(--nile-spacing-lg, var(--ng-spacing-lg))
|
|
49
|
+
var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
50
|
+
border: var(--nile-border-width-1, var(--ng-border-width-1)) solid
|
|
51
|
+
var(--nile-colors-gray-300, var(--ng-colors-border-primary));
|
|
52
|
+
border-radius: var(--nile-radius-md, var(--ng-radius-md));
|
|
53
|
+
background: var(--nile-colors-white, var(--ng-colors-bg-primary));
|
|
54
|
+
min-height: var(--nile-height-28px, var(--ng-height-28px));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.tsb__collapsed .tsb__actions nile-button::part(base) {
|
|
58
|
+
height: var(--nile-height-28px, var(--ng-height-28px));
|
|
59
|
+
padding-block: var(--nile-spacing-none, var(--ng-spacing-none));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.tsb__display {
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: baseline;
|
|
65
|
+
flex-wrap: wrap;
|
|
66
|
+
gap: var(--nile-spacing-lg, var(--ng-spacing-lg));
|
|
67
|
+
flex: 1 1 var(--nile-width-208px, var(--ng-width-56));
|
|
68
|
+
min-width: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.tsb__display--editable {
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
user-select: none;
|
|
74
|
+
-webkit-user-select: none;
|
|
75
|
+
touch-action: manipulation;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.tsb__display:focus-visible {
|
|
79
|
+
outline: var(--nile-border-width-2, var(--ng-border-width-2)) solid
|
|
80
|
+
var(--nile-colors-border-field-focused, var(--ng-colors-border-brand));
|
|
81
|
+
outline-offset: var(--nile-spacing-xxs, var(--ng-spacing-xxs));
|
|
82
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-sm));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.tsb__value {
|
|
86
|
+
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
87
|
+
font-variant-numeric: tabular-nums;
|
|
88
|
+
font-size: var(--nile-type-scale-4, var(--ng-font-size-text-md));
|
|
89
|
+
font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-medium));
|
|
90
|
+
letter-spacing: 0.01em;
|
|
91
|
+
overflow-wrap: normal;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.tsb__value--empty {
|
|
95
|
+
color: var(--nile-colors-gray-400, var(--ng-colors-text-placeholder));
|
|
96
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.tsb__tz {
|
|
100
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
101
|
+
color: var(--nile-colors-gray-500, var(--ng-colors-text-tertiary-600));
|
|
102
|
+
white-space: nowrap;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.tsb__actions {
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
gap: var(--nile-spacing-md, var(--ng-spacing-md));
|
|
109
|
+
flex-wrap: wrap;
|
|
110
|
+
justify-content: flex-end;
|
|
111
|
+
margin-left: auto;
|
|
112
|
+
flex: 0 0 auto;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Expanded view */
|
|
116
|
+
.tsb__expanded {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
gap: var(--nile-spacing-lg, var(--ng-spacing-lg));
|
|
120
|
+
padding: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
121
|
+
border: var(--nile-border-width-1, var(--ng-border-width-1)) solid
|
|
122
|
+
var(--nile-colors-gray-300, var(--ng-colors-border-primary));
|
|
123
|
+
border-radius: var(--nile-radius-md, var(--ng-radius-md));
|
|
124
|
+
background: var(--nile-colors-white, var(--ng-colors-bg-primary));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.tsb__fields {
|
|
128
|
+
display: grid;
|
|
129
|
+
grid-template-columns: repeat(
|
|
130
|
+
auto-fit,
|
|
131
|
+
minmax(var(--nile-width-99px, var(--ng-width-24)), 1fr)
|
|
132
|
+
);
|
|
133
|
+
gap: var(--nile-spacing-md, var(--ng-spacing-md));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.tsb__field {
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
min-width: 0;
|
|
140
|
+
width: 100%;
|
|
141
|
+
max-width: var(--nile-width-110px, var(--ng-width-108));
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.tsb__field nile-input::part(input) {
|
|
145
|
+
padding-inline: var(--nile-spacing-sm, var(--ng-spacing-sm));
|
|
146
|
+
text-align: center;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.tsb__field nile-input::part(form-control-label) {
|
|
150
|
+
display: block;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
text-overflow: ellipsis;
|
|
153
|
+
white-space: nowrap;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.tsb__timezone {
|
|
157
|
+
display: flex;
|
|
158
|
+
flex-direction: column;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@media (max-width: 480px) {
|
|
162
|
+
.tsb__collapsed,
|
|
163
|
+
.tsb__expanded {
|
|
164
|
+
padding: var(--nile-spacing-lg, var(--ng-spacing-lg));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
.tsb__actions {
|
|
169
|
+
width: 100%;
|
|
170
|
+
margin-left: 0;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
[part='editor-actions'] nile-button {
|
|
175
|
+
flex: 1 1 var(--nile-width-130px, var(--ng-width-32));
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
[part='editor-actions'] nile-button::part(base) {
|
|
179
|
+
width: 100%;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* Visually-hidden hidden input used for form participation / validity. */
|
|
184
|
+
.value-input {
|
|
185
|
+
position: absolute;
|
|
186
|
+
width: 1px;
|
|
187
|
+
height: 1px;
|
|
188
|
+
padding: 0;
|
|
189
|
+
margin: -1px;
|
|
190
|
+
overflow: hidden;
|
|
191
|
+
clip: rect(0, 0, 0, 0);
|
|
192
|
+
white-space: nowrap;
|
|
193
|
+
border: 0;
|
|
194
|
+
}
|
|
195
|
+
`;export{a as s};
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import{__decorate as t}from"tslib";import{html as i,nothing as s}from"lit";import{query as e,property as l,state as n,customElement as a}from"lit/decorators.js";import{classMap as h}from"lit/directives/class-map.js";import{s as r}from"./nile-timestamp-builder.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";import{F as u}from"../internal/form.esm.js";import{d}from"../internal/default-value.esm.js";import{g as c,E as p,e as m,f as b,p as v,i as y,n as $,a as f,b as g,c as _,d as z,h as w,T as C}from"./nile-timestamp-builder-utils.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";import"./timezones.esm.js";var k;let x=k=class extends o{constructor(){super(...arguments),this.formControlController=null,this.internalValueUpdate=!1,this.internalTimezoneUpdate=!1,this._value=null,this.defaultValue=null,this.timezone=c(),this.name="",this.disabled=!1,this.required=!1,this.readonly=!1,this.copyable=!1,this.form="",this.open=!1,this.label="",this.minYear=1,this.maxYear=9999,this.wallClock=p,this.timezoneList=[],this.hasValue=!1,this.justCopied=!1,this.handleSetNow=()=>{if(this.disabled||this.readonly)return;const t=Date.now();this.wallClock=m(t,this.timezone),this.commit()},this.handleCopy=async()=>{if(this.disabled||!this.hasValue)return;const t=b(this.wallClock,this.timezone);try{await navigator.clipboard.writeText(t)}catch{return void this.emit("nile-copy-error",{value:t})}this.justCopied=!0,window.clearTimeout(this.copiedTimer),this.copiedTimer=window.setTimeout((()=>{this.justCopied=!1}),k.COPIED_FEEDBACK_MS),this.emit("nile-copy",{value:t})},this.handleStageNow=()=>{if(this.disabled||this.readonly)return;const t=Date.now();this.wallClock=m(t,this.timezone),this.emit("nile-input",this.liveDetail())},this.handleUseLocalTz=()=>{this.disabled||this.readonly||(this.internalTimezoneUpdate=!0,this.timezone=c(),this.emit("nile-input",this.liveDetail()))},this.handleUseUtc=()=>{this.disabled||this.readonly||(this.internalTimezoneUpdate=!0,this.timezone="UTC",this.emit("nile-input",this.liveDetail()))},this.lastTapAt=0,this.copiedTimer=0,this.handleDisplayDoubleClick=()=>{this.handleEdit()},this.handleDisplayPointerUp=t=>{if("mouse"===t.pointerType)return;const i=Date.now();if(i-this.lastTapAt<=k.DOUBLE_TAP_MS)return this.lastTapAt=0,void this.handleEdit();this.lastTapAt=i},this.handleDisplayKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.handleEdit())},this.handleEdit=()=>{this.disabled||this.readonly||this.open||(null===this.value&&(this.wallClock=m(Date.now(),this.timezone)),this.open=!0,this.emit("nile-expand",{open:!0}))},this.handleDone=()=>{this.open=!1,this.commit(),this.emit("nile-collapse",{open:!1})}}static get styles(){return[r]}get value(){return this._value}set value(t){if("string"==typeof t){const i=v(t);i&&y(i.timezone)&&(this.timezone=i.timezone)}const i=this._value,s=$(t);s?.getTime()!==i?.getTime()?(this._value=s,this.requestUpdate("value",i)):this.internalValueUpdate=!1}get validity(){return this.valueInput?.validity}get validationMessage(){return this.valueInput?.validationMessage??""}connectedCallback(){super.connectedCallback(),this.timezoneList=f(),y(this.timezone)||(this.timezone=c()),null!==this.value?(this.wallClock=m(this.value.getTime(),this.timezone),this.hasValue=!0):(this.wallClock=m(Date.now(),this.timezone),this.hasValue=!1),this.formControlController=new u(this,{assumeInteractionOn:["nile-change"],value:t=>{const i=t;return null===i.value?void 0:i.valueString()??void 0},defaultValue:t=>t.defaultValue,setValue:(t,i)=>{t.value=i}}),this.emit("nile-init")}disconnectedCallback(){super.disconnectedCallback(),window.clearTimeout(this.copiedTimer),this.emit("nile-destroy")}willUpdate(t){t.has("value")?this.internalValueUpdate?this.internalValueUpdate=!1:null===this.value?this.hasValue=!1:(this.wallClock=m(this.value.getTime(),this.timezone),this.hasValue=!0):this.isTimezoneReassigned(t)&&!this.open&&this.syncValueToTimezone()}updated(t){this.isTimezoneReassigned(t)&&(this.internalTimezoneUpdate?this.internalTimezoneUpdate=!1:this.emit("nile-input",this.liveDetail()))}isTimezoneReassigned(t){return t.has("timezone")&&void 0!==t.get("timezone")}syncValueToTimezone(){if(!this.hasValue||null===this.value)return;const t=g(this.wallClock,this.timezone);Number.isNaN(t)||t===this.value.getTime()||(this.internalValueUpdate=!0,this.value=new Date(t),this.syncHiddenInput())}valueString(){return null===this.value?null:this.value.toISOString()}syncHiddenInput(){this.valueInput&&(this.valueInput.value=this.valueString()??""),this.formControlController?.updateValidity()}changeDetail(){if(null===this.value)return{value:null,localTimezoneValue:null,unix:null,timezone:this.timezone};const t=this.value.getTime();return{value:b(this.wallClock,this.timezone),localTimezoneValue:new Date(t),unix:t,timezone:this.timezone}}liveDetail(){const t=g(this.wallClock,this.timezone);return Number.isNaN(t)?{value:null,localTimezoneValue:null,unix:null,timezone:this.timezone}:{value:b(this.wallClock,this.timezone),localTimezoneValue:new Date(t),unix:t,timezone:this.timezone}}commit(){const t=g(this.wallClock,this.timezone);this.internalValueUpdate=!0,this.value=new Date(t),this.hasValue=!0,this.syncHiddenInput(),this.emit("nile-change",this.changeDetail())}onFieldChange(t){return i=>{i.stopPropagation();const s=Number(i.detail?.value),e=_({...this.wallClock,[t]:s},this.minYear,this.maxYear);this.wallClock=e,this.emit("nile-input",this.liveDetail())}}onTimezoneChange(t){t.stopPropagation();const i=t.detail?.value;"string"==typeof i&&y(i)&&(this.internalTimezoneUpdate=!0,this.timezone=i,this.emit("nile-input",this.liveDetail()))}checkValidity(){return this.valueInput?.checkValidity()??!0}reportValidity(){return this.valueInput?.reportValidity()??!0}setCustomValidity(t){this.valueInput?.setCustomValidity(t),this.formControlController?.updateValidity()}getForm(){return this.formControlController?.getForm()??null}renderField(t,s,e,l,n){return i`
|
|
2
|
+
<div class="tsb__field" part="field">
|
|
3
|
+
<nile-input
|
|
4
|
+
type="number"
|
|
5
|
+
exportparts="base:field__base, input:field__input"
|
|
6
|
+
size="medium"
|
|
7
|
+
label=${s}
|
|
8
|
+
?disabled=${this.disabled}
|
|
9
|
+
?readonly=${this.readonly}
|
|
10
|
+
min=${l}
|
|
11
|
+
max=${n}
|
|
12
|
+
step="1"
|
|
13
|
+
.value=${String(e)}
|
|
14
|
+
@nile-change=${this.onFieldChange(t)}
|
|
15
|
+
></nile-input>
|
|
16
|
+
</div>
|
|
17
|
+
`}renderCollapsed(){const t=this.wallClock,e=!this.disabled&&!this.readonly;return i`
|
|
18
|
+
<div class="tsb__collapsed" part="display">
|
|
19
|
+
<div
|
|
20
|
+
class=${h({tsb__display:!0,"tsb__display--editable":e})}
|
|
21
|
+
part="display-content"
|
|
22
|
+
role=${e?"button":s}
|
|
23
|
+
tabindex=${this.disabled?s:"0"}
|
|
24
|
+
aria-labelledby=${this.label?"tsb-label tsb-display-value":s}
|
|
25
|
+
aria-readonly=${this.readonly?"true":s}
|
|
26
|
+
@dblclick=${this.handleDisplayDoubleClick}
|
|
27
|
+
@pointerup=${this.handleDisplayPointerUp}
|
|
28
|
+
@keydown=${this.handleDisplayKeyDown}
|
|
29
|
+
>
|
|
30
|
+
<span
|
|
31
|
+
id="tsb-display-value"
|
|
32
|
+
class=${h({tsb__value:!0,"tsb__value--empty":!this.hasValue})}
|
|
33
|
+
part="value"
|
|
34
|
+
>
|
|
35
|
+
${this.hasValue?z(t):"No timestamp set"}
|
|
36
|
+
</span>
|
|
37
|
+
<span class="tsb__tz" part="timezone-label">${this.timezone}</span>
|
|
38
|
+
</div>
|
|
39
|
+
${e?this.renderEditActions():s}
|
|
40
|
+
${this.copyable&&this.readonly&&!this.disabled?this.renderCopyAction():s}
|
|
41
|
+
</div>
|
|
42
|
+
`}renderEditActions(){return i`
|
|
43
|
+
<div class="tsb__actions" part="actions">
|
|
44
|
+
<nile-button
|
|
45
|
+
variant="secondary-grey"
|
|
46
|
+
?disabled=${this.disabled}
|
|
47
|
+
@click=${this.handleSetNow}
|
|
48
|
+
>Now</nile-button
|
|
49
|
+
>
|
|
50
|
+
<nile-button
|
|
51
|
+
variant="primary"
|
|
52
|
+
title="Edit"
|
|
53
|
+
?disabled=${this.disabled}
|
|
54
|
+
@click=${this.handleEdit}
|
|
55
|
+
><nile-glyph
|
|
56
|
+
name="ng-pencil"
|
|
57
|
+
size="16"
|
|
58
|
+
method="stroke"
|
|
59
|
+
color="currentColor"
|
|
60
|
+
></nile-glyph
|
|
61
|
+
></nile-button
|
|
62
|
+
>
|
|
63
|
+
</div>
|
|
64
|
+
`}renderCopyAction(){return i`
|
|
65
|
+
<div class="tsb__actions" part="actions">
|
|
66
|
+
<nile-button
|
|
67
|
+
variant="ghost"
|
|
68
|
+
title=${this.justCopied?"Copied":"Copy timestamp"}
|
|
69
|
+
aria-label=${this.justCopied?"Copied":"Copy timestamp"}
|
|
70
|
+
?disabled=${!this.hasValue}
|
|
71
|
+
@click=${this.handleCopy}
|
|
72
|
+
><nile-glyph
|
|
73
|
+
name=${this.justCopied?"ng-copy-check":"ng-copy"}
|
|
74
|
+
size="16"
|
|
75
|
+
method="stroke"
|
|
76
|
+
color="currentColor"
|
|
77
|
+
></nile-glyph
|
|
78
|
+
></nile-button>
|
|
79
|
+
</div>
|
|
80
|
+
`}renderExpanded(){const t=this.wallClock,s=w(t.year,t.month);return i`
|
|
81
|
+
<div class="tsb__expanded" part="editor">
|
|
82
|
+
<div class="tsb__fields" part="fields">
|
|
83
|
+
${this.renderField(C.Year,"Year",t.year,this.minYear,this.maxYear)}
|
|
84
|
+
${this.renderField(C.Month,"Month",t.month,1,12)}
|
|
85
|
+
${this.renderField(C.Day,"Day",t.day,1,s)}
|
|
86
|
+
${this.renderField(C.Hour,"Hour",t.hour,0,23)}
|
|
87
|
+
${this.renderField(C.Minute,"Minute",t.minute,0,59)}
|
|
88
|
+
${this.renderField(C.Second,"Second",t.second,0,59)}
|
|
89
|
+
${this.renderField(C.Millisecond,"Milliseconds",t.millisecond,0,999)}
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<div class="tsb__timezone" part="timezone-select">
|
|
93
|
+
<nile-select
|
|
94
|
+
searchEnabled
|
|
95
|
+
label="Timezone"
|
|
96
|
+
size="medium"
|
|
97
|
+
?disabled=${this.disabled}
|
|
98
|
+
.value=${this.timezone}
|
|
99
|
+
@nile-change=${this.onTimezoneChange}
|
|
100
|
+
>
|
|
101
|
+
${this.timezoneList.map((t=>i`<nile-option value=${t}>${t}</nile-option>`))}
|
|
102
|
+
</nile-select>
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
<div class="tsb__actions" part="editor-actions">
|
|
106
|
+
<nile-button
|
|
107
|
+
variant="secondary-grey"
|
|
108
|
+
?disabled=${this.disabled}
|
|
109
|
+
@click=${this.handleStageNow}
|
|
110
|
+
>Set to Now</nile-button
|
|
111
|
+
>
|
|
112
|
+
<nile-button
|
|
113
|
+
variant="secondary-grey"
|
|
114
|
+
?disabled=${this.disabled}
|
|
115
|
+
@click=${this.handleUseLocalTz}
|
|
116
|
+
>Use Local Timezone</nile-button
|
|
117
|
+
>
|
|
118
|
+
<nile-button
|
|
119
|
+
variant="secondary-grey"
|
|
120
|
+
?disabled=${this.disabled}
|
|
121
|
+
@click=${this.handleUseUtc}
|
|
122
|
+
>Use UTC</nile-button
|
|
123
|
+
>
|
|
124
|
+
<nile-button
|
|
125
|
+
variant="primary"
|
|
126
|
+
?disabled=${this.disabled}
|
|
127
|
+
@click=${this.handleDone}
|
|
128
|
+
>Done</nile-button
|
|
129
|
+
>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
`}render(){return i`
|
|
133
|
+
<div
|
|
134
|
+
class="tsb"
|
|
135
|
+
part="base"
|
|
136
|
+
role="group"
|
|
137
|
+
aria-labelledby=${this.label?"tsb-label":s}
|
|
138
|
+
>
|
|
139
|
+
${this.label?i`<label id="tsb-label" class="tsb__label" part="label"
|
|
140
|
+
>${this.label}</label
|
|
141
|
+
>`:""}
|
|
142
|
+
${this.open&&!this.readonly?this.renderExpanded():this.renderCollapsed()}
|
|
143
|
+
|
|
144
|
+
<input
|
|
145
|
+
class="value-input"
|
|
146
|
+
type="text"
|
|
147
|
+
?required=${this.required}
|
|
148
|
+
?disabled=${this.disabled}
|
|
149
|
+
.value=${this.valueString()??""}
|
|
150
|
+
tabindex="-1"
|
|
151
|
+
aria-hidden="true"
|
|
152
|
+
/>
|
|
153
|
+
</div>
|
|
154
|
+
`}};x.DOUBLE_TAP_MS=300,x.COPIED_FEEDBACK_MS=1600,t([e(".value-input")],x.prototype,"valueInput",void 0),t([l({attribute:"value",converter:{fromAttribute:t=>t,toAttribute:t=>null===t?null:t.toISOString()}})],x.prototype,"value",null),t([d()],x.prototype,"defaultValue",void 0),t([l({type:String,reflect:!0})],x.prototype,"timezone",void 0),t([l({type:String,reflect:!0})],x.prototype,"name",void 0),t([l({type:Boolean,reflect:!0})],x.prototype,"disabled",void 0),t([l({type:Boolean,reflect:!0})],x.prototype,"required",void 0),t([l({type:Boolean,reflect:!0})],x.prototype,"readonly",void 0),t([l({type:Boolean,reflect:!0})],x.prototype,"copyable",void 0),t([l({type:String,reflect:!0})],x.prototype,"form",void 0),t([l({type:Boolean,reflect:!0})],x.prototype,"open",void 0),t([l({type:String,reflect:!0})],x.prototype,"label",void 0),t([l({attribute:!0,type:Number,reflect:!0})],x.prototype,"minYear",void 0),t([l({attribute:!0,type:Number,reflect:!0})],x.prototype,"maxYear",void 0),t([n()],x.prototype,"wallClock",void 0),t([n()],x.prototype,"timezoneList",void 0),t([n()],x.prototype,"hasValue",void 0),t([n()],x.prototype,"justCopied",void 0),x=k=t([a("nile-timestamp-builder")],x);export{x as N};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register([],function(_export,_context){"use strict";var a;return{setters:[],execute:function execute(){_export("T",a=["Europe/Andorra","Asia/Dubai","Asia/Kabul","Europe/Tirane","Asia/Yerevan","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","America/Argentina/Buenos_Aires","America/Argentina/Cordoba","America/Argentina/Salta","America/Argentina/Jujuy","America/Argentina/Tucuman","America/Argentina/Catamarca","America/Argentina/La_Rioja","America/Argentina/San_Juan","America/Argentina/Mendoza","America/Argentina/San_Luis","America/Argentina/Rio_Gallegos","America/Argentina/Ushuaia","Pacific/Pago_Pago","Europe/Vienna","Australia/Lord_Howe","Antarctica/Macquarie","Australia/Hobart","Australia/Currie","Australia/Melbourne","Australia/Sydney","Australia/Broken_Hill","Australia/Brisbane","Australia/Lindeman","Australia/Adelaide","Australia/Darwin","Australia/Perth","Australia/Eucla","Asia/Baku","America/Barbados","Asia/Dhaka","Europe/Brussels","Europe/Sofia","Atlantic/Bermuda","Asia/Brunei","America/La_Paz","America/Noronha","America/Belem","America/Fortaleza","America/Recife","America/Araguaina","America/Maceio","America/Bahia","America/Sao_Paulo","America/Campo_Grande","America/Cuiaba","America/Santarem","America/Porto_Velho","America/Boa_Vista","America/Manaus","America/Eirunepe","America/Rio_Branco","America/Nassau","Asia/Thimphu","Europe/Minsk","America/Belize","America/St_Johns","America/Halifax","America/Glace_Bay","America/Moncton","America/Goose_Bay","America/Blanc-Sablon","America/Toronto","America/Nipigon","America/Thunder_Bay","America/Iqaluit","America/Pangnirtung","America/Atikokan","America/Winnipeg","America/Rainy_River","America/Resolute","America/Rankin_Inlet","America/Regina","America/Swift_Current","America/Edmonton","America/Cambridge_Bay","America/Yellowknife","America/Inuvik","America/Creston","America/Dawson_Creek","America/Fort_Nelson","America/Vancouver","America/Whitehorse","America/Dawson","Indian/Cocos","Europe/Zurich","Africa/Abidjan","Pacific/Rarotonga","America/Santiago","America/Punta_Arenas","Pacific/Easter","Asia/Shanghai","Asia/Urumqi","America/Bogota","America/Costa_Rica","America/Havana","Atlantic/Cape_Verde","America/Curacao","Indian/Christmas","Asia/Nicosia","Asia/Famagusta","Europe/Prague","Europe/Berlin","Europe/Copenhagen","America/Santo_Domingo","Africa/Algiers","America/Guayaquil","Pacific/Galapagos","Europe/Tallinn","Africa/Cairo","Africa/El_Aaiun","Europe/Madrid","Africa/Ceuta","Atlantic/Canary","Europe/Helsinki","Pacific/Fiji","Atlantic/Stanley","Pacific/Chuuk","Pacific/Pohnpei","Pacific/Kosrae","Atlantic/Faroe","Europe/Paris","Europe/London","Asia/Tbilisi","America/Cayenne","Africa/Accra","Europe/Gibraltar","America/Godthab","America/Danmarkshavn","America/Scoresbysund","America/Thule","Europe/Athens","Atlantic/South_Georgia","America/Guatemala","Pacific/Guam","Africa/Bissau","America/Guyana","Asia/Hong_Kong","America/Tegucigalpa","America/Port-au-Prince","Europe/Budapest","Asia/Jakarta","Asia/Pontianak","Asia/Makassar","Asia/Jayapura","Europe/Dublin","Asia/Jerusalem","Asia/Kolkata","Indian/Chagos","Asia/Baghdad","Asia/Tehran","Atlantic/Reykjavik","Europe/Rome","America/Jamaica","Asia/Amman","Asia/Tokyo","Africa/Nairobi","Asia/Bishkek","Pacific/Tarawa","Pacific/Enderbury","Pacific/Kiritimati","Asia/Pyongyang","Asia/Seoul","Asia/Almaty","Asia/Qyzylorda","Asia/Qostanay","Asia/Aqtau","Asia/Atyrau","Asia/Oral","Asia/Beirut","Asia/Colombo","Africa/Monrovia","Europe/Vilnius","Europe/Luxembourg","Europe/Riga","Africa/Tripoli","Africa/Casablanca","Europe/Monaco","Europe/Chisinau","Pacific/Majuro","Pacific/Kwajalein","Asia/Yangon","Asia/Ulaanbaatar","Asia/Hovd","Asia/Choibalsan","Asia/Macau","America/Martinique","Europe/Malta","Indian/Mauritius","Indian/Maldives","America/Mexico_City","America/Cancun","America/Merida","America/Monterrey","America/Matamoros","America/Mazatlan","America/Chihuahua","America/Ojinaga","America/Hermosillo","America/Tijuana","America/Bahia_Banderas","Asia/Kuala_Lumpur","Asia/Kuching","Africa/Maputo","Africa/Windhoek","Pacific/Noumea","Pacific/Norfolk","Africa/Lagos","America/Managua","Europe/Amsterdam","Europe/Oslo","Asia/Kathmandu","Pacific/Nauru","Pacific/Niue","Pacific/Auckland","Pacific/Chatham","America/Panama","America/Lima","Pacific/Tahiti","Pacific/Marquesas","Pacific/Gambier","Pacific/Port_Moresby","Pacific/Bougainville","Asia/Manila","Asia/Karachi","Europe/Warsaw","America/Miquelon","Pacific/Pitcairn","America/Puerto_Rico","Asia/Gaza","Asia/Hebron","Europe/Lisbon","Atlantic/Madeira","Atlantic/Azores","Pacific/Palau","America/Asuncion","Asia/Qatar","Indian/Reunion","Europe/Bucharest","Europe/Belgrade","Europe/Kaliningrad","Europe/Moscow","Europe/Simferopol","Europe/Kirov","Europe/Astrakhan","Europe/Volgograd","Europe/Saratov","Europe/Ulyanovsk","Europe/Samara","Asia/Yekaterinburg","Asia/Omsk","Asia/Novosibirsk","Asia/Barnaul","Asia/Tomsk","Asia/Novokuznetsk","Asia/Krasnoyarsk","Asia/Irkutsk","Asia/Chita","Asia/Yakutsk","Asia/Khandyga","Asia/Vladivostok","Asia/Ust-Nera","Asia/Magadan","Asia/Sakhalin","Asia/Srednekolymsk","Asia/Kamchatka","Asia/Anadyr","Asia/Riyadh","Pacific/Guadalcanal","Indian/Mahe","Africa/Khartoum","Europe/Stockholm","Asia/Singapore","America/Paramaribo","Africa/Juba","Africa/Sao_Tome","America/El_Salvador","Asia/Damascus","America/Grand_Turk","Africa/Ndjamena","Indian/Kerguelen","Asia/Bangkok","Asia/Dushanbe","Pacific/Fakaofo","Asia/Dili","Asia/Ashgabat","Africa/Tunis","Pacific/Tongatapu","Europe/Istanbul","America/Port_of_Spain","Pacific/Funafuti","Asia/Taipei","Europe/Kiev","Europe/Uzhgorod","Europe/Zaporozhye","Pacific/Wake","America/New_York","America/Detroit","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Indiana/Indianapolis","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Vevay","America/Chicago","America/Indiana/Tell_City","America/Indiana/Knox","America/Menominee","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/North_Dakota/Beulah","America/Denver","America/Boise","America/Phoenix","America/Los_Angeles","America/Anchorage","America/Juneau","America/Sitka","America/Metlakatla","America/Yakutat","America/Nome","America/Adak","Pacific/Honolulu","America/Montevideo","Asia/Samarkand","Asia/Tashkent","America/Caracas","Asia/Ho_Chi_Minh","Pacific/Efate","Pacific/Wallis","Pacific/Apia","Africa/Johannesburg"]);}};});
|
|
2
|
+
//# sourceMappingURL=timezones.cjs.js.map
|